Using openVZ live CD
We can use openVZ live CD to create few test containers using:
- Boot using openVZ live CD
- Choose normal boot option from boot menu
- Use setup command to configure live CD
- Set keyboard to us
- Set hostname to openVZ
- Add interface eth<n> and configure IP
- Configure gateway
- Configure DNS
- Set timezone (Asia / Calcutta)
- Set root password. Note that weak passwords like iiit123 get rejected
- Exit from setup
- Exit from terminal so that system goes to runlevel 3.
- Ping and check network connectivity. If network is not working we can restore network connectivity using standard ifconfig, route, etc. commands
- Use 'mount /ram -oremount,size=1800m' on system with 2GB RAM. By default openVZ only uses 50% of RAM to store files which may not be adequate.
- scp -p templates from system on LAN to /vz/template/cache so that we can create some test containers using these templates.
- If you access other terminals using 'Ctrl+Alt+F<n>' combination after reaching run-level 3, then do not run setup again after logging in.
- The templates would occupy about 200MB in .tar.gz format and about 600 MB after creating container. Hence if one copies just one template and create two containers with it, it would require 1400MB of RAM.