pct command password option

Robertas

New Member
May 5, 2016
19
0
1
32
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

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!