How to install minimal Container template on a Proxmox Server

Navigate to the following directory to how to install minimal Container template on a Proxmox Server

root@chris:~# cd /var
root@chris:/var# cd lib
root@chris:/var/lib# ls
apparmor initramfs-tools mlocate python-support urandom
apt initscripts nfs qemu-server usbutils
aptitude insserv open-iscsi rrdcached vim
container libxml-sax-perl pam samba vz
corosync logrotate postfix sgml-base xml-core
dbus lxc pve-cluster systemd
dhcp lxcfs pve-firewall tex-common
dictionaries-common man-db pve-manager ucf
dpkg misc python update-rc.d
root@chris:/var/lib# cd vz
root@chris:/var/lib/vz# ls
dump images lost+found private root template
root@chris:/var/lib/vz#
root@chris:/var/lib/vz#
root@chris:/var/lib/vz# cd template/cache/
root@chris:/var/lib/vz/template/cache#
root@chris:/var/lib/vz/template/cache# wget http://mirror.yandex.ru/mirrors/download.openvz.org/template/precreated/ubuntu-15.10-x86_64-minimal.tar.gz
 --2016-04-22 11:07:47-- http://mirror.yandex.ru/mirrors/download.openvz.org/template/precreated/ubuntu-15.10-x86_64-minimal.tar.gz
Resolving mirror.yandex.ru (mirror.yandex.ru)... 213.180.204.183, 2a02:6b8::183
Connecting to mirror.yandex.ru (mirror.yandex.ru)|213.180.204.183|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 91609120 (87M) [application/octet-stream]
Saving to: ‘ubuntu-15.10-x86_64-minimal.tar.gz’
ubuntu-15.10-x86_64 100%[=====================>] 87.37M 8.89MB/s in 12s
2016-04-22 11:07:59 (7.18 MB/s) - ‘ubuntu-15.10-x86_64-minimal.tar.gz’ saved [9160kl9120/91609120]

root@chris:/var/lib/vz/template/cache#

Error installing Proxmox VE: “unable to create volume group at /usr/bin/proxinstall line 519”

When installing Proxmox VE 4.1, it fails right at the begining of installation with messages and prompted “unable to create volume group at /usr/bin/proxinstall line 519”.

Error as follow below:
Device boot Start End Blocks Id System
/dev/sda1 * 32 524319 524208 83 Linux
/dev/sda2 524320 293033631 292509312 0e Linux LVM
/dev/sda3 0 – 0 0 Empty
/dev/sda4 0 – 0 0 Empty
Successfully wrote the new partition table
[..]
Physical volume /dev/sda2″ successfully created
A volume group called ‘pve’ already exists
unable to create volume group at /usr/bin/proxinstall line 519
umount: /target/boot: not found
umount: /target/var: not found
umount: /target/tmp: not found
umount: /target/proc: not found
umount: /target: not mounted

Solution

  • I resolved this problem by simply changing the RAID option to 0 and the file system to ZFS to overide the existing block (volume).
  • After this i reinstalled, haven reverted back to the existing file system and reinstalled Proxmox and it worked.

Copying HA-Proxy Configuration file from one Node to another via Proxmox VE

SCP Command
root@HA-Proxy-CL2:/# scp /etc/haproxy/haproxy.cfg root@xx.1×9.41.xx:/etc/haproxy/haproxy.cfg

Now navigate to the other node and view the copied files.
root@ha-proxy-cl1:/etc/haproxy# cp haproxy.cfg haproxy.cfg.bak