WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Xen in RHEL 5.0...Installation problems

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen in RHEL 5.0...Installation problems
From: Dushmant Mohapatra <d_mpatra@xxxxxxxxx>
Date: Tue, 12 Jun 2007 13:03:44 -0700 (PDT)
Delivery-date: Tue, 12 Jun 2007 13:02:07 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=vD5FK2IH73jqNdyHsViMOzm560atbPlT5EeGHBdNTQsdRvOiY/xf+ZmSe8BJQt646luG4A55YyzdBKcEPKWxKmSsru5CIZcghWkkg6GFP+gwfBqXeMb2KFyVphGSdp2c52blahkuERWW7QZUQmsAyxGEkbawaleQpYw7kChqFYQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello..I am not very proficient in Linux kernel stuffs although I know my basics. I have a question and all suggestions/solutions will be highly appreciated...

I got to know that RHEL 5 has inbuilt Xen Support...So I tried to install a RHEL 5.0 Server on my P4 machine. On top of it I tried to install Xen specific RPMs and some other RPMs needed by Xen.

The additinal RPMs added after base RHEL 5.0 installation are :


bridge-utils-1.1.2.i386.rpm
iproute-2.6.18-4.el5.i386.rpm
kernel-xen-2.6.18-8.el5.i686.rpm
kernel-xen-devel-2.6.18-8.el5.i686.prm
udev-095-14.5.el5.i386.rpm


After all this the grub.conf gets modified automatically and looks like this:

# 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/hda
default=0
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/LogVol00 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/LogVol00 rhgb quiet
initrd /initrd-2.6.18-8.el5.img



After all this I am ready to boot properly into Xen Specific Linux and the original RHEL . But there is no /etc/xen directory and nor are the tools like xend and xm available.

So  I am not sure if I am missing some other RPMS that need to be installed??


On not being able to get it done this way I tried to erase the xen specific RPMs
kernel-xen-2.6.18-8.el5.i686.rpm
kernel-xen-devel-2.6.18-8.el5.i686.prm

and installed the RPMs obtained from Xen Source site (for RHEL 5). The RPMs installed are :
kernel-xen-2.6.18-3.1.0.i386.rpm
xen-devel-3.1.0-1.i386.rpm
xen-3.1.0-1.src.rpm
xen-3.1.0-1.i386.rpm



By doing this I see that /etc/xen directory has been created and I can see the tools xend,xm...

But after modifying the grub.conf and trying to boot into Xen I get kernel panic.

The grub.conf after modification is :

# 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/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Red Hat Enterprise Linux Server - XEN ENABLED
    root (hd0,0)
    kernel /xen-3.1.0.gz noreboot
    module /vmlinuz-2.6.18-xen_3.1.0 ro root=/dev/VolGroup00/LogVol00
    module /initrd-2.6.18-xen_3.1.0.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/LogVol00 rhgb quiet
    initrd /initrd-2.6.18-8.el5.img




Some of the kernel panic messages are like:
Reading all physical volumes.
No volume groups found
Volume Group "Vol Group00" not found.
Mount: could not find file system /dev/root
setuproot: moving /dev failed. No such file or directory
.
.
end-request:I/O error, dev fd0, sector 0





I am including here some details of my configurations:

[root@dyn-9-1-75-65 ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0


[root@dyn-9-1-75-65 ~]# cat /proc/partitions
major minor  #blocks  name

   3     0   39078144 hda
   3     1     104391 hda1
   3     2   38973690 hda2
 253     0   37945344 dm-0
 253     1    1015808 dm-1




[root@dyn-9-1-75-65 ~]# fdisk -l

Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        4865    38973690   8e  Linux LVM



[root@dyn-9-1-75-65 ~]# parted
GNU Parted 1.8.1
Using /dev/hda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           

Model: IC35L040AVVN07-0 (ide)
Disk /dev/hda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  107MB   107MB   primary  ext3         boot
 2      107MB   40.0GB  39.9GB  primary               lvm 




[root@dyn-9-1-75-65 ~]# lvm
lvm> pvdisplay
  --- Physical volume ---
  PV Name               /dev/hda2
  VG Name               VolGroup00
  PV Size               37.17 GB / not usable 12.24 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              1189
  Free PE               0
  Allocated PE          1189
  PV UUID               1xh1p6-cC8T-cocr-iyY2-Ta9x-KrOY-Io79SL
  
lvm> lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                KgakUg-SYE9-6Vn2-3Iks-3Wbo-ENYt-r2UDzE
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                36.19 GB
  Current LE             1158
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
  
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                6avXTk-0DYK-JHRc-bh56-4w68-eBJg-kAVw4s
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                992.00 MB
  Current LE             31
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1




Can any one pls suggest where I went wrong?

Thanks in advance
Dushmanta


Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users