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