Changes
→Issues
{{Roughstub}}
* Kernel linux-2.6.17.13 was patched by the patch-2.6.17.13-vs2.0.2.1. Initial conditions: the following example of Linuxdiff and rebuild;* Util-vserver-VServer based solution was 0.30.211 tools were used for the experiment:creating containers;
# vserver-info
Versions:
VS-API: 0x00020002
util-vserver: 0.30.211; Dec 5 2006, 17:10:21
Features:
CC: gcc, gcc (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
syscall(2) invocation: alternative
vserver(2) syscall#: 273/glibc
Paths:
prefix: /usr/local
vserver-Rootdir: /vservers
#
VServer v345 was built using vserver vX build utility and populated by using the tarballed template of Fedora Core 4.
# vserver v345 start
Starting system logger: [ OK ]
sh-2.05b#
.........
As a result we obtain running virtual environment v345:
# vserver-stat
CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
0 51 90.9M 26.3M 0m58s75 2m42s57 33m45s93 root server
49153 4 10.2M 2.8M 0m00s00 0m00s11 21m45s42 v345
#
Install the OpenVZ kernel, as described in [[quick Quick installation]].
After the kernel is installed, reboot the machine. After rebooting and logging in you will see the following reply on vserver-stat call:
# vserver-stat
can not change context: migrate kernel feature missing and 'compat' API disabled: Function not implemented
It is a natural thing that now virtual environment v345 is unavailable. The following steps will be devoted to making it
work over OpenVZ kernel.
OpenVZ solution requires installing a set of tools: vzctl and vzquota packages. Download and install it, as described in [[quick installation]].
Then launch the OpenVZ:
# /sbin/service vz start
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
Currently vzlist utility is unable to find any containers:
# vzlist
Containers not found
# cd /vz
# mkdir private
# mkdir private/345
# mv /vservers/v345 /vz/private/345
Now it is time for creating configuration files for OpenVZ container. Use the basic sample
configuration presented in /etc/sysconfig/vz-scripts/ve-vps.basic.conf-sample file:
# cd /etc/sysconfig/vz-scripts
# cp ve-vps.basic.conf-sample 345.conf
# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
345 5 running 192.168.0.145 test345.my.org
# vzctl exec 345 ls -l
total 48
drwxr-xr-x 15 root root 4096 Jul 27 2004 usr
drwxr-xr-x 17 root root 4096 Oct 26 2004 var
[[Category:HOWTO]]