Article ID: 9496, created on Dec 24, 2010, last review on Aug 12, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.6


In case of a large Virtuozzo infrastructure, it might be necessary to use the unattended mode of the Virtuozzo 4.6 installer. Below is a step-by-step procedure for this case.

Please read Virtuozzo 4.6 documentation before proceeding with the following actions:

1. Install the "procmail" package if needed (this package provides the /usr/bin/lockfile file required by Virtuozzo):
# yum install procmail

2. Download the Virtuozzo auto-installer, check the available distributive sets, and download the latest one, e.g., for 64-bit:
# wget
# chmod +x vzinstall-linux-x86_64.bin
# ./vzinstall-linux-x86_64.bin list --archs x86_64
# ./vzinstall-linux-x86_64.bin download --templates Centos 5 x86_64

3. Install CentOS 5 EZ templates:
# cd /root/virtuozzo/download/Linux/x86_64/templates
# ./eztmpl-centos-5-x86_64-mysql_vsftpd-20100929.sfx --extract
# rpm -ihv /vz/tmp/*.rpm

4. Unpack the Virtuozzo distributive archive:
# cd /root/virtuozzo/download/Linux/x86_64/
# ./virtuozzo-4.6.0-187-x86_64.sfx -d ./tempd --extract
# cd tempd

5. Run the Virtuozzo 4.6 installer in unattended mode:

If the PVC4.6 server has Internet access, run this command:
# ./install -a -o --skip-reboot -k smp --lic-key <XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX> --pva-agent

(where XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX is your Virtuozzo license key).

If you have no ready master part of the Parallels Virtual Automation (PVA) 4.6 system in your network, you may transfer its settings via the Virtuozzo installer's command-line options (set required values marked by angle brackets in the example below, but remember to omit the brackets). This will create a new container with the master PVA system inside:
# ./install -a -o --skip-reboot -k smp --lic-key <XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX> --pva-agent --pva-node --pva-ip <IP_Address_For_Master_PVA> --pva-hostname <Hostname_For_Master_PVA> --pva-dns <DNS_IP_Address> --pva-password <Password_For_Master_PVA>

Install the latest Virtuozzo kernel and reboot the server:
# vzup2date -s --core -m batch --loader-autoconfig --reboot --self-update install

Wait until the server is rebooted and the PVA subsystem is installed. It might take about 10-20 minutes, depending on your Internet channel bandwidth.


If the server has no Internet access, skip PVA agent installation:
# ./install -a -o --skip-reboot -k smp --lic-key <XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX>
# vzup2date -s --core -m batch --loader-autoconfig --reboot --self-update install

and install PVA agent manually:
# wget
# tar xzf pva_agent-linux-x86_64.tar.gz
# cd pva_agent
#./pva-setup action=install

6. Install the latest Virtuozzo 4.6 updates:
# vzup2date -s -m batch --loader-autoconfig --self-update install

7. Register this new PVA 4.6 server in the master PVA web-interface:

New > Hardware Node

Note: If you need to create a master PVA system manually for some reason, then you may create it as new container with, e.g., ID #50 (note that PVA works on CentOS 5.4, not CentOS 5.5):
# vzpkg clean centos-5-x86_64
# vzpkg remove cache centos-5-x86_64
# vzpkg create cache centos-5-x86_64
# vzctl create 50 --ostemplate centos-5-x86_64 --ipadd <PVA_Master_IP_Address> --hostname <pva_master46_hostname.tld> --config slm.512MB
# vzpkg install 50 -p perl-DBI
# vzctl set 50 --save --diskspace 40000000:40000000
# vzctl set 50 --onboot yes --save
# vzctl start 50
# vzctl enter 50
# passwd root
# cd /root/
# wget
# tar xzf pva_mn-linux-x86_64.tar.gz
# cd pva_mn
# ./pva-setup action=install

36627b12981f68a16405a79233409a5e d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF