Custom disksize and storage with 'pct create'

pizza

Renowned Member
Nov 7, 2015
96
9
73
Howto set custom disksize when using pct create and storage=nfs in command line? The default is 4GB.

The command: pct create 100 lxc-backup.tar.gz -description LXC -hostname server -memory 1024 -nameserver 8.8.8.8 -storage nfs
 
The rootfs parameter has a size, so this works for me:

Code:
root@proxmox4 ~ > pct create 101 container-general-linux:vztmpl/alpine-3.7-20180413.tar.gz -description LXC -hostname alpine -memory 128 -rootfs local-zfs:1
extracting archive '/mnt/pve/container-general-linux/template/cache/alpine-3.7-20180413.tar.gz'
Total bytes read: 7086080 (6.8MiB, 37MiB/s)
Detected container architecture: amd64