[SOLVED] Proxmox 4.2 pve-container 1.0-64 broken

dsafda

New Member
May 22, 2016
3
0
1
54
Code:
root@vds:~# pct create 100 /var/lib/vz/template/cache/centos-6-my-x86_64.tar.gz -cpuunits 0 -cpulimit 1 -description "test" -rootfs 1 -hostname ct1 -memory 290 -nameserver 8.8.8.8 -net0 name=eth0,hwaddr=33:33:33:33:33:01,ip=123.123.123.100/24,gw=123.123.123.1,bridge=vmbr0 -password lol -tty 1
400 too many arguments
pct create <vmid> <ostemplate> [OPTIONS]

fix: downgrade pve-container to Proxmox 4.1 version (1.0-32)

Code:
root@vds:~# apt-get install pve-container=1.0-32
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be DOWNGRADED:
  pve-container
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/68.3 kB of archives.
After this operation, 32.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: downgrading pve-container from 1.0-64 to 1.0-32
(Reading database ... 41142 files and directories currently installed.)
Preparing to unpack .../pve-container_1.0-32_all.deb ...
Unpacking pve-container (1.0-32) over (1.0-64) ...
Processing triggers for pve-manager (4.2-5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up pve-container (1.0-32) ...
Processing triggers for pve-manager (4.2-5) ...
root@vds:~# pct create 100 /var/lib/vz/template/cache/centos-6-my-x86_64.tar.gz -cpuunits 0 -cpulimit 1 -description "test" -rootfs 1 -hostname ct1 -memory 290 -nameserver 8.8.8.8 -net0 name=eth0,hwaddr=33:33:33:33:33:01,ip=123.123.123.100/24,gw=123.123.123.1,bridge=vmbr0 -password lol -tty 1
Formatting '/var/lib/vz/images/100/vm-100-disk-1.raw', fmt=raw size=1073741824
mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: done   
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 46855d8f-d623-4434-ac88-91c2247350be
Superblock backups stored on blocks:
  32768, 98304, 163840, 229376

Allocating group tables: done   
Writing inode tables: done   
Creating journal (8192 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done

extracting archive '/var/lib/vz/template/cache/centos-6-my-x86_64.tar.gz'
Total bytes read: 322816000 (308MiB, 152MiB/s)
Detected container architecture: amd64
Creating SSH host key 'ssh_host_ecdsa_key' - this may take some time ...
Creating SSH host key 'ssh_host_key' - this may take some time ...
Creating SSH host key 'ssh_host_ed25519_key' - this may take some time ...
Creating SSH host key 'ssh_host_dsa_key' - this may take some time ...
Creating SSH host key 'ssh_host_rsa_key' - this may take some time ...
root@vds:~# pct list
VMID  Status  Name   
100  stopped  ct1
 
No, the fix is to do not pass the password as argument. It is read from the console instead.

# pct create 100 /var/lib/vz/template/cache/centos-6-my-x86_64.tar.gz -cpuunits 0 -cpulimit 1 -description "test" -rootfs 1 -hostname ct1 -memory 290 -nameserver 8.8.8.8 -net0 name=eth0,hwaddr=33:33:33:33:33:01,ip=123.123.123.100/24,gw=123.123.123.1,bridge=vmbr0 -password -tty 1
 
Thanks for the reply.
I create hundreds of containers in batch so entering the password manually for every single container is not suitable for me.
Could I run the command like this?
Code:
echo $password | pct create 100 /var/lib/vz/template/cache/centos-6-my-x86_64.tar.gz -cpuunits 0 -cpulimit 1 -description "test" -rootfs 1 -hostname ct1 -memory 290 -nameserver 8.8.8.8 -net0 name=eth0,hwaddr=33:33:33:33:33:01,ip=123.123.123.100/24,gw=123.123.123.1,bridge=vmbr0 -password -tty 1
 

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!