pct create error since PVE 4.2

alex3137

Member
Jan 19, 2015
43
3
8
Hello

I use this command to create containers:

pct create 118 /var/lib/vz/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz -net0 bridge=vmbr1,gw=10.10.10.254,ip=10.10.10.118/24,name=eth0,type=veth -hostname test.my.domain -password 'demo' -rootfs local:0 -cpulimit 1 -memory 512 -swap 512

Since PVE 4.2, I get the following error: "400 too many arguments"

Am I doing anything wrong ?
 
The --password option does not take an argument. Instead it reads the password from the terminal (for security reasons).
 
  • Like
Reactions: alex3137
This is a bit of a problem for me. I used to be able to launch any number of containers in a few seconds. Now I need to launch 100 containers and I have to write the password 100 times....

Users should be able to choose if they want to use the password in command line or not.
 
This is a bit of a problem for me. I used to be able to launch any number of containers in a few seconds. Now I need to launch 100 containers and I have to write the password 100 times....

Users should be able to choose if they want to use the password in command line or not.

if you need to create 100 containers at a time, you should probably use the API (which still allows passing of passwords as string parameters). alternatively, you can use ssh authentication ("-ssh-public-keys" parameter for "pct create") and not set the root password at all (or later via ssh / puppet / ansible / whatever)