Search

Search for:
Language:  

No categories for selected product

Parallels Virtuozzo Containers 4.6 unattended installation

Article ID: 9496 
Last Review: Apr, 16 2012
Views:
APPLIES TO:
  • Parallels Virtuozzo Containers for Linux 4.6

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 procmail

2. 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_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 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 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-agent

where 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 install

and 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 install

and 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=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:

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





Email subscription for changes to this article Email subscription for changes to this article

Please provide feedback on this article

* Did this article help you solve your issue?
Yes
No
What can we do to improve this article?

PLEASE NOTE: Knowledge Base feedback is reviewed occasionally and we do not reply to most of the individual comments. Please contact us using one of the Support channels for a response to any support inquiries. We appreciate your feedback.

Subscribe me for article updates. My email
 
 
 
 
 
 
For Home
For Hosters
For SaaS
For IaaS
For Developers
For Health Care
 
Desktop Virtualization
- Parallels Desktop 7 for Mac
- Parallels Transporter
- Parallels Mobile
- Parallels Desktop Switch to Mac Edition
- Parallels Workstation
- Parallels Workstation Extreme
- Parallels Desktop for Mac Enterprise Edition
Server Virtualization
- Parallels Server for Mac 4.0
- Parallels Server for Mac 4.0 Mac mini Edition
- Parallels Server for Mac Bare Metal Edition
- Parallels Server Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Parallels Small Business Panel
- Parallels Domain/SSL Reseller Program
- Parallels Partner Storefront
More Products