- Delete enterprise sources list file
sudo rm -f /etc/apt/sources.list.d/pve-enterprise.list
- Edit main sources list file at /etc/apt/sources.list
sudo nano /etc/apt/sources.list
- Set sources as below, adjust for your OS release (here buster)
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
# security updates
deb http://security.debian.org/debian-security buster/updates main contrib
Update LXC templates list (including turnkey)
Mounting local dirs to LXC container
- Config directory for LXC containers
- Edit config file for target LXC container (CT 100 here)
nano /etc/pve/lxc/100.conf
- Add line for target mount
mp0: /path/to/host/dir,mp=/path/to/lxc-ct/dir
- For write permissions run CT in privileged mode (add to same conf file)
Pass HDD to Virtual Machine
- Run as root (VM id 100 here)
qm set 100 -scsi2 /dev/disk/by-id/ata-XXXXXXXXXX-XXXXXXXXXXXXX
Note on mounting NFS shares in LXC
- Cannot mount into a privileged (or unprivileged) container.
- Alternatively, mount in host system and use mountpoints to pass to container.
# Install NFS client packages
sudo apt install nfs-common
- Edit FSTAB file at /etc/fstab
nano /etc/fstab
# Add this line to file
host.myserver.com:/home /mnt/home nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0