Resolution
In case of large Virtuozzo infrastructure it might be needed to use unattended mode of Virtuozzo 4.6 installer. Below is a step-by-step procedure for the case.Please read Virtuozzo 4.6 documentation before proceeding with the following actions:
http://www.parallels.com/products/pvcl/resources/docs/
1. Install 'procmail' package if needed (this package provides the file /usr/bin/lockfile required by Virtuozzo):
# yum install procmail2. Download Virtuozzo auto-installer, check available distributive sets and download the latest one, e.g. for 64-bit:
# wget http://download.parallels.com/pvc/46/lin/rtm/vzinstall-linux-x86_64.bin
# 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_643. 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/*.rpm4. Unpack Virtuozzo distributive archive:
# cd /root/virtuozzo/download/Linux/x86_64/
# ./virtuozzo-4.6.0-187-x86_64.sfx -d ./tempd --extract
# cd tempd5. Run Virtuozzo 4.6 installer in unattended mode:
In case PVC4.6 server has Internet access, please run this command:
# ./install -a -o --skip-reboot -k smp --lic-key <XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX> --pva-agentwhere XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX is your Virtuozzo license key.
In case you have no ready master part of Parallels Virtual Automation (PVA) 4.6 system in your network, you may pass its settings via Virtuozzo installer's command-line options (set required values marked by angle brackets in the example below, but remember to omit brackets), so it will create this new container with 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 installand wait until the server is rebooted and PVA subsystem is installed. It might take about 10-20 minutes, depending on your Internet channel bandwidth.
or
If the server has no Internet access, please 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 installand install PVA agent manually:
# wget http://download.pa.parallels.com/pva/4.6/pva_agent-linux-x86_64.tar.gz
# tar xzf pva_agent-linux-x86_64.tar.gz
# cd pva_agent
#./pva-setup action=install6. Install the latest Virtuozzo 4.6 updates:
# vzup2date -s -m batch --loader-autoconfig --self-update install7. Register this new PVA 4.6 server in the master PVA web-interface:
http://PVA_Master_IP_Address:4648/
New > Hardware Node
Note: If you need to create master PVA system manually by 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 http://download.pa.parallels.com/pva/4.6/pva_mn-linux-x86_64.tar.gz
# tar xzf pva_mn-linux-x86_64.tar.gz
# cd pva_mn
# ./pva-setup action=install