4. XEN HYPERVISION

XEN Kernel - Setting and Configure

Note = Kernel-xen And Xend

      Xen  Setup CentOS 5

Configuration Setup- 1

1

  Summary

Name          : xen
Summary    : Xen is a virtual machine monitor
URL             : http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html
License       : GPLv2+, LGPLv2+
Description : This package contains the Xen tools and management daemons needed
                   : to run virtual machines on x86, x86_64, and ia64 systems.
                   : Information on how to use Xen can be found at the Xen project pages.
                   :
                   : The Xen system also requires the Xen hypervisor and domain-0
                   : kernel, which can be found in the kernel-xen* package.
                   :
                   : Virtualization can be used to run multiple operating systems on one
                   : physical system, for purposes of hardware consolidation, hardware
                   : abstraction, or to test untrusted applications in a sandboxed
                   : environment.

2

  Xen Install

[root@cos ~]# yum install kernel-xen xen

3

  Change GRUB Config , as  default=0 reboot

[root@cos ~]# nano -w /etc/grub.conf

4

  Check Your Kernel make sure that is *el5xen

[root@cos ~]# uname -an
Linux cos.noc.net.my  2.6.18-128.1.10.el5xen #1    SMP ....

5

  Install Virtual Machine Zones, for slow connection follow step no 5 with fully virtualized "NO"

[root@cos ~]# virt-install --prompt
What is    the name of your virtual machine? zones25
 How much RAM should be    allocated (in megabytes)? 256
 What would you    like to    use as the disk    (path)?    /zones/zones25.img
 How large would you like the disk (/zones/zones25.img)    to be (in gigabytes)? 30
 Would you like    to enable graphics support? (yes or no)    no
 What is the install location? http://centosf.centos.org/centos-5/5.4/os/i386/


6

  Setup Apache in XenHost  and Mount ISO O/S

[root@cos ~]# yum install httpd
[root@cos ~]# /sbin/service httpd start
[root@cos ~]# mkdir /mnt/iso
[root@cos ~]# mount -t iso9660 -o loop /media/CentOS.iso /mnt/iso

[root@cos ~]# cd /var/www/html
[root@cos html]# ln -s /mnt/iso    iso

What is the install location? http://xenhost.ip/iso

7

  From XenHost Login to zones

[root@cos ~]# xm console zones25

8

  Zone Inside Remove unneed service

for A in haldaemon kudzu lvm2-monitor  mcstrans  messagebus netfs restorecond\
> ; do chkconfig $A off ; service $A stop ; done

9

  XEN



10

  XEN



Previous Section    XEN ADMINISTRATION Next Section