Custom disksize and storage with 'pct create'

pizza

Renowned Member
Nov 7, 2015
95
8
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!