Archive for the tag 'Container'

Create and starting a openvz container.

To create and start a container, run the following commands:

# vzctl create CTID –ostemplate osname
# vzctl set CTID –ipadd a.b.c.d –save
# vzctl set CTID –nameserver a.b.c.d –save
# vzctl start CTID

Here CTID is the numeric ID for the container; osname is the name of the OS template for the container, and a.b.c.d is the IP address to be assigned to the container.

Example:

# vzctl create 101 –ostemplate fedora-core-5-minimal
# vzctl set 101 –ipadd 10.1.2.3 –save
# vzctl set 101 –nameserver 10.0.2.1 –save
# vzctl start 101

Service Container on a Parallels Virtuozzo Containers hardware node can be created using ‘vzsveinstall‘ utility:

# vzsveinstall -D DISTRIB_DIR -s SERVICE_CT_IP

- DISTRIB_DIR - path to Virtuozzo distribution directory hierarchy on a server.
- SERVICE_CT_IP - IP address to be assigned to Service Container;

In case you have downloaded Virtuozzo distributive already (example for 64-bit PVC 4.0) as file “virtuozzo-4.0.0-${build_version}-x86_64.sfx”, please extract it in the following way:

# mkdir -p /vz/full_distr
# bash /path/to/virtuozzo-4.0.0-${build_version}-x86_64.sfx -d /vz/full_distr –extract

Create Service Container then using this command (make sure old Service Container #1 does not exist):

# vzsveinstall -v -D /vz/full_distr -s SERVICE_CT_IP

Please refer to man page on ‘vzsveinstall‘ utility for additional information.

Reference: http://parallels.com

« Prev