rohan nigam
2009-Aug-28 18:00 UTC
[Xen-users] Problem running Debian 5-0 from stacklet.com as DomU
Hi All,
I am running "2.6.18-128.1.10.el5xen" kernel as Dom0 on the machine
that has dual socket quad-core AMD
Opteron and is running CentOS 5.3. Now I tried to start the Dom U on the
machine and downloaded an image from stacklet.com. Here''s my config
file.
kernel = "/boot/vmlinuz-2.6.18-128.1.10.el5xen"
ramdisk = "/boot/initrd-2.6.18-128.1.10.el5xen.img"
memory = "256"
name = "debian.5-0"
vcpus=1
vif = ['''']
dhcp = "dhcp"
disk = [''file:/opt/xen/debian-5.0/debian.5-0.x86.img,sda,w'']
root = "/dev/sda ro"
extra = ''xencons=tty''
When I do am ''xm create cfgfile -c'' everything seems to be
loading correctly until i get this:
USB Mass Storage support registered.
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com
device-mapper: dm-raid45: initialized v0.2429
Kernel panic - not syncing: Attempted to kill init!
Strangely, the domu is running and I can see it running when I am doing xm list
but I cannot do xm console because I get that Kernel Panic error.
[root@vmtest debian-5.0]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 7660 8 r----- 448.1
debian.5-0 142 256 1 -b---- 0.3
I am sure it has got something to do with my ''disk'' and
''root'' options in the config file or it might have something
to do with the fact that I am running both dom0 and dom U on the same node. But
I am not able to figure out what it is even after trying lot of things from the
previous threads on this topic.
my fstab.sys:
/dev/vg_root/lv_root / ext3 defaults 1 1
/dev/vg_root/lv_var /var ext3 defaults 1 2
/dev/vg_root/lv_virt /virt ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/vg_root/lv_swap swap swap defaults 0 0
fdisk -l:
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 8 64228+ de Dell Utility
/dev/sda2 * 9 270 2104515 c W95 FAT32 (LBA)
/dev/sda3 271 283 104422+ 83 Linux
/dev/sda4 284 9726 75850897+ 8e Linux LVM
my grub.conf:
default=1
imeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
serial --unit=1 --speed=57600
terminal --timeout=10 serial console
title CentOS (2.6.18-128.2.1.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-128.2.1.el5 com2=57600n8 console=com2,vga
sched=sedf
module
/vmlinuz-2.6.18-128.2.1.el5xen ro root=/dev/vg_root/lv_root selinux=0
console=tty0 console=ttyS1,57600n8 selinux=0
module /initrd-2.6.18-128.2.1.el5xen.img
title CentOS (2.6.18-128.1.10.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-128.1.10.el5 com2=57600n8 console=com2,vga
sched=sedf
module
/vmlinuz-2.6.18-128.1.10.el5xen ro root=/dev/vg_root/lv_root selinux=0
console=tty0 console=ttyS1,57600n8 selinux=0
module /initrd-2.6.18-128.1.10.el5xen.img
title CentOS (2.6.18-92.1.22.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-92.1.22.el5 com2=57600n8 console=com2,vga
sched=sedf
module
/vmlinuz-2.6.18-92.1.22.el5xen ro root=/dev/vg_root/lv_root selinux=0
console=tty0 console=ttyS1,57600n8 selinux=0
module /initrd-2.6.18-92.1.22.el5xen.img
title CentOS (2.6.18-92.1.13.el5xen)
root (hd0,2)
kernel /xen.gz-2.6.18-92.1.13.el5
module /vmlinuz-2.6.18-92.1.13.el5xen ro root=/dev/vg_root/lv_root
selinux=0
module /initrd-2.6.18-92.1.13.el5xen.img
title Other
rootnoverify (hd0,1)
chainloader +1t
Can someone please tell me where I am going wrong? I am relatively new at this.
Thanks.
Rohan
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users