infra:proxmox

Set storage size 0 to create a btrfs subvolume.

example test container
pct create 100 local-btrfs:vztmpl/debian-11-standard_11.0-1_amd64.tar.gz \
  --rootfs local-btrfs:0 \
  --arch amd64 \
  --cores 1 \
  --memory 512 \
  --swap 0 \
  --net0 name=eth0,bridge=vmbr0,firewall=1,ip=dhcp \
  --ostype debian \
  --features nesting=1 \
  --unprivileged 1 \
  --onboot 1 \
  --hostname test
chmod +rx /var/lib/pve/local-btrfs/images/100/subvol-100-disk-0.subvol

Add bind mount to a container

share /mnt/bindmounts/shared
pct set 100 -mp0 raid6-btrfs:0,mp=/srv
chmod +rx /var/lib/pve/raid6-btrfs/images/100/subvol-100-disk-0.subvol
  • infra/proxmox.txt
  • Last modified: 06/01/2022 18:11
  • by harm