Tuesday 7 June 2011

ZEN


Zen Virtualizations

            The Xen virtualization provide multiple virtual server on one linux system.

            Daemons:
1.    xend
2.    xendomains

Requirements:
1.    YUM

            Install the required packages for Zen Server:
# yum install xen                                        (Install 7 packages)
            1.   xen                                               2.   SDL
            3.   bridge-utils                                  4.   libvirt
            5.   libvirt-python                               6.   python-virtinst
            7.   xen-libs
# yum install virt-manager                       (Install 2 packages)
            1.   virt-manager                                2.   Gnome-python-gnomekeyring
# yum install vnc
# yum install kernel-xen

            Reboot the system after installing all above required packages. During rebooting press arrow key for pause the kernel screen and select “xen” kernel line, and press enter key. This is the new kernel line appeared after installing xen kernel packages.

# ps –ef | grep xend                                   (For checking xen service running or not)

            Preparation for Creating Virtual Machine:
1.    Share the “/var/ftp/pub/” directory with NFS. The “/var/ftp/pub/” is the directory which contains the installation media.
# vi /etc/exports
                  /var/ftp/pub/         *(rw,sync)
# chkconfig nfs on
# service nfs restart
2.    Create a new partition about 5GB for creating virtual machine and mount it. For example reate a new partition “/dev/sda3”, and create a new directory “/new”. Mount the /dev/sda3 on /new directory. After that create a new file (any file name) in the /new directory.
# mount /dev/sda3 /new
# touch /new/virtual
           
# virt-manager                                             (It open GUI environment for configuring xen)
            Select Local Xen host > Connect. The virtual machine manager is open. Click on file > New Machine > Forward. Type your desired virtual system name (System1) > Forward. Select Paravirtualized > Forward. Enter the NFS installation media path (nfs:192.168.1.3:/var/ftp/pub/) in Install media URL. Where 192.168.1.3 is the NFS server IP address. Select Simple File and locate the newly created file “/new/virtual” > Open > Forward. Select Memory and CPU > Forward. Finish.
            The virtual machine now begin to start.

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...