Changes

Jump to: navigation, search

Migration from Linux-VServer to OpenVZ

3,023 bytes removed, 13:46, 11 March 2008
"fixed" openvz installation description -- refer to quick install
{{Roughstub}}
 
Current document describes the migration from Linux-VServer based virtualization solution to OpenVZ.
2. Starting migration to OpenVZ: downloading and installing the stable OpenVZ kernel.
First of all we should download and install Install the latest stable version of OpenVZ kernel: <code> # wget http://openvz.org/download/kernel/stable/ovzkernel-2.6.9-023stab032.1.i686.rpm # rpm -ihv ovzkernel-2.6.9-023stab032.1.i686.rpm</code> If you use grub bootloader, then before installing the OpenVZ kernel file /boot/grub/grub.conf looked like this: <code> # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux AS (2.6.17.13-vs2.0.2.1) root (hd0,0) kernel /vmlinuz-2.6.17.13-vs2.0.2.1 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.17.13-vs2.0.2.1.img</code> After installing it should look like this: <code> # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux AS (2.6.9-023stab032.1) root (hd0,0) kernel /vmlinuz-2.6.9-023stab032.1 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.9-023stab032.1.img title Red Hat Enterprise Linux AS (2.6.17.13-vs2.0.2.1) root (hd0,0) kernel /vmlinuz-2.6.17.13-vs2.0.2.1 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.17.13-vs2.0.2.1.img</code> And the default parameter should be set to 0 as described in purpose to make the OpenVZ kernel work by default after rebooting the machine[[quick installation]].
Some more manual configuring needed on this step:Update the /etc/sysctl.conf file according to the following listing ( Comment all other settings that are not presented in listing below ): <code> # On Hardware Node we generally need # packet forwarding enabled and proxy arp disabled net.ipv4.ip_forward = 1 net.ipv4.conf.default.proxy_arp = 0 # Enables source route verification net.ipv4.conf.all.rp_filter = 1 # Enables After the magic-sysrq key kernel.sysrq = 1 # TCP Explict Congestion Notification #net.ipv4.tcp_ecn = 0 # we do not want all our interfaces to send redirects net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0</code> As the SELinux should be disabledis installed, put the following line to /etc/sysconfig/selinux: <code> SELINUX=disabled</code> Now reboot the machine. After rebooting and loggin logging in you will see the following reply on vserver-stat call:
<code>
</code>
It is a natural thing that now virtual environments environment v345 is unavailable. The following steps will be devoted to making themit
work over OpenVZ kernel.
3. Downloading and istalling installing vzctl package OpenVZ solution reqires installing a set of tools: vzctl and vzquota packages. Let us download and install this tools:
<code> # wget httpOpenVZ solution requires installing a set of tools://openvz.org/download/utils/vzctl-3.0.13-1.i386.rpm # wget http://openvz.org/download/utils/and vzquota-3.0.9-1.i386.rpm # rpm -Uhv vzctl-3.0.13-1.i386.rpm vzquota-3.0.9-1packages.i386Download and install it, as described in [[quick installation]].rpm</code>
If rpm complains about unresolved dependencies, you'll have to satisfy them first, then repeat the installation.
</code>
Currently vzlist util utility is unable to find any containercontainers:
<code>
4. Updating different configurations in purpose to make existing templates work
Move the existing templates of guest OSes OSs to the right place:
<code>
</code>
5. Testing how the guest OSes succesfully OSs successfully work over OpenVZ. Reference to Users Guide of OpenVZ (vzctl).
After rebooting you will be able to see running container 345 that have been

Navigation menu