Difference between revisions of "Using openVZ live CD"

From Notes_Wiki
m
m
 
Line 1: Line 1:
<yambe:breadcrumb>OpenvZ</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Virtualization tools]] > [[OpenvZ]] > [[Using openVZ live CD]]
=Using openVZ live CD=


We can use openVZ live CD to create few test containers using:
We can use openVZ live CD to create few test containers using:
Line 22: Line 21:
*If you access other terminals using '<tt>Ctrl+Alt+F&lt;n&gt;</tt>' combination after reaching run-level 3, then do not run setup again after logging in.
*If you access other terminals using '<tt>Ctrl+Alt+F&lt;n&gt;</tt>' 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.
*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.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Virtualization tools]] > [[OpenvZ]] > [[Using openVZ live CD]]

Latest revision as of 13:15, 24 August 2022

Home > CentOS > CentOS 6.x > Virtualization tools > OpenvZ > Using openVZ live CD

We can use openVZ live CD to create few test containers using:

  1. Boot using openVZ live CD
  2. Choose normal boot option from boot menu
  3. 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
  4. Exit from terminal so that system goes to runlevel 3.
  5. Ping and check network connectivity. If network is not working we can restore network connectivity using standard ifconfig, route, etc. commands
  6. 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.
  7. scp -p templates from system on LAN to /vz/template/cache so that we can create some test containers using these templates.

Note:

  • 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.



Home > CentOS > CentOS 6.x > Virtualization tools > OpenvZ > Using openVZ live CD