pct command password option

Robertas

New Member
May 5, 2016
19
0
1
33
Hey guys, I am trying to automate container creation by using pct command. Password option doesn't seem to work. So the command in question is:

pct create 113 /var/lib/vz/template/cache/centos-7-default_20160205_amd64.tar.xz -password changeit
400 too many arguments
pct create <vmid> <ostemplate> [OPTIONS]

It does work without password option, any thoughts welcome.
 
The pct password option reads the password from the terminal input (the parameter does not expect a value). Try the following instead:

# pct create 113 /var/lib/vz/template/cache/centos-7-default_20160205_amd64.tar.xz -password
 
  • Like
Reactions: Robertas