[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Short how to for RHEL5 as dom0 and RHEL5 as domU


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Valdas <i4varu@xxxxxxxxx>
  • Date: Tue, 18 Sep 2007 14:01:17 -0700 (PDT)
  • Delivery-date: Tue, 18 Sep 2007 14:02:00 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Y6loeleeE4HE407r1Y9znKNDbDB3f5Qk/lGwrFOiC2zg/8Ogvj1cb5YDQ/pwTIM5pR3+TfAmnfwjlwRMzrG0mCRTYpNjcRf/oWF7nsGcVCwI1GGiU9y8V3BetHIMEsb2y9FKvirScc5hAiOcl0dKfNN4b4ZD6adBuPdAMxqPZqk=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hey,

I was looking for step by step installation for RHEL5 as dom0 and RHEL5 as 
domU, but could not find it.I put some instructions, hope it will save some 
time for somebody. If you will find some errors please fix them  :)

I assume that you already have rhel 5 up and running (webserver as well).I will 
install guest system in paravirtualized mode (mine processor does not support 
full virtualization). 





I.Xen DomU installation

1.Install xen kernel

kernel-xen-2.6.18-8.el5.i686.rpm
kernel-xen-devel-2.6.18-8.el5.i686.rpm


2.When i tried to install xen :  rpm -Uvh xen-3.0.3-25.el5.i386.rpm -Disk5
I had following dep missing

error: Failed dependencies:
        bridge-utils is needed by xen-3.0.3-25.el5.i386
        libSDL-1.2.so.0 is needed by xen-3.0.3-25.el5.i386
        libblktap.so.3.0 is needed by xen-3.0.3-25.el5.i386
        libxenctrl.so.3.0 is needed by xen-3.0.3-25.el5.i386
        libxenguest.so.3.0 is needed by xen-3.0.3-25.el5.i386
        libxenstore.so.3.0 is needed by xen-3.0.3-25.el5.i386
        python-virtinst is needed by xen-3.0.3-25.el5.i386
        xen-libs = 3.0.3-25.el5 is needed by xen-3.0.3-25.el5.i386

Do following: 

rpm -Uvh bridge-utils-1.1-2.i386.rpm -- Disk2/Server
rpm -Uvh SDL-1.2.10-8.el5.i386.rpm  -- Disk2/Server
rpm -Uvh xen-libs-3.0.3-25.el5.i386.rpm -- Disk3/Server

rpm -Uvh --nodeps libvirt-0.1.8-15.el5.i386.rpm --Disk5/VT, i had to do it with 
nodeps, not sure if it's right but works for me.
rpm -Uvh libvirt-python-0.1.8-15.el5.i386.rpm -- Disk5/VT
rpm -Uvh python-virtinst-0.99.0-2.el5.noarch.rpm -- Disk5/VT
rpm -Uvh xen-3.0.3-25.el5.i386.rpm -- Disk5/VT

should be all set :), now you have to edit this : 

vi /boot/grub/menu.lst

default=0  <--- change this from 1 to 0 if you want that xen kernel would start 
by default

timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-8.el5
        module /vmlinuz-2.6.18-8.el5xen ro root=/dev/VolGroup00/root rhgb quiet
        module /initrd-2.6.18-8.el5xen.img
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00/root rhgb quiet
        initrd /initrd-2.6.18-8.el5.img



save it and reboot it. On the boot  you will get that it cannot load some kind 
of module (microcode i think). You can ignore it, because it's compailed in 
kernel. After reboot, if you do uname -r you should get this : 2.6.18-8.el5xen.
 
issue : xm list

Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1894     2 r-----     27.4

should give you similar output. If not check if xend is running.


3. Virtual manager installation:

rpm -Uvh gnome-python2-gnomekeyring.... - DIsk5/Server
rpm -Uvh virt-manager....- DIsk5/VT



II. Rhel5 as DomU installation:

1.I got this from this forum from some smart guy :). You will need to have iso 
images for all 5 RHEL5 cd's.
Find a partition where you have around 3G of space.
create directoies CD1 CD2 CD3 CD4 and CD5.

Copy rhel-5-server-i386-disc1.iso to CD1   ...disk2->CD2 and so on.

now we have to export these directories through webserver. To do this we need 
to loop mount them on webserver tree. Create same 5 dirs under /var/www/html/ 
and loop mount them.
  
mount -o loop /root/CD1/rhel-5-server-i386-disc1.iso  /var/www/html/CD1
.
.
.
mount -o loop /root/CD5/rhel-5-server-i386-disc5.iso  /var/www/html/CD5

if you would go to /var/www/html/CD1 you should see content of disk1
you should be able to see them like this as well:

http://yourip/CD1 (if you do it though ssh make sure ip tables allows http 
traffic)

Launch virtual machine manager, when you reach install media URL:

enter http://192.x.x.x/CD1 --- it wont work with localhost or 127.0.0.1 address.

follow other steps in wizard and you should be all set !.

Enjoy!
-Valdas





















 





       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.