meta data for this page

LXC

rename CT

pct set <VMID> --hostname <newname>

update CT templates

# pveam - Proxmox VE Appliance Manager
pveam update

Shrink container disc

It is not supported. Command

pct resize <VMID> rootfs <newsize>

cannot be used.

Workaround 1:

  • Stop container
  • Edit <vmid>conf and set new disk size
  • Perform backup
  • Restore LXC from backup

Workaround 2:

  • Change ZFS volume size
    zfs set refquota=8G rpool/data/subvol-810-disk-0
  • Adjust LXC config:
    • Edit <vmid>conf and set new disk size, OR
    • pct rescan