# Setup Environment like server-side and Prepare ZFS Pool for Prefill

# Setup Proxmox

## Proxmox Documentation

[https://www.proxmox.com/en/proxmox-virtual-environment/get-started](https://www.proxmox.com/en/proxmox-virtual-environment/get-started)

[https://pve.proxmox.com/pve-docs/chapter-pve-installation.html](https://pve.proxmox.com/pve-docs/chapter-pve-installation.html)

### Enable No-Subscription Repository in web-GUI

node on the left -&gt; Updates -&gt; Repositories.  
Disable the enterprise repository and add the No-Subscription repository  
Go to the upper menu Update, press Refresh, then Upgrade

## Create ZFS Pool

See page [Create ZFS Pool](https://wiki.hdd-housing.eu/books/setup/page/create-zfs-pool "Create ZFS Pool"), then continue here.

## Permissions

```bash
chown - R 101100:101100 /pool/dataset-versitygw
chown - R 101110:101110 /pool/dataset-syncthing
```

ID 1100 is used for versitygw inside LXC  
ID 1110 is used for syncthing inside LXC

# Setup LXC

1. Go to "local" in webgui [![image.png](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/scaled-1680-/G7oimage.png)](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/G7oimage.png)
2. Click on "CT Templates" [![image.png](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/scaled-1680-/MuDimage.png)](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/MuDimage.png)
3. Then click button "Templates"
4. Download Debian 13
5. Click "Create CT" on top richt  
    [![image.png](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/scaled-1680-/Qbzimage.png)](https://wiki.hdd-housing.eu/uploads/images/gallery/2024-04/Qbzimage.png)
6. Give it Hostname and Password, Make sure Unpriviledged and Nesting is checked
7. Click next, choose the previous downloaded Template
8. Click next, default size 8GB is sufficient
9. Click next, assign 2 Cores
10. Click next, type 2048MiB Memory
11. Click next, choose IP according your network (or DHCP)
12. Click through finish

# Finishing Steps in LXC when using Proxmox

<p class="callout info">Only applies when using LXC on Proxmox.</p>

## Make ZFS Pool available in LXC

### On Host, LXC must be shutdown

```bash
nano /etc/pve/lxc/100.conf
# add this line, edit poolname if necessary:
mp0: mp=/poolname,/poolname
# mp=/poolname is the mountpoint in LXC
# ,/poolname is from host
```