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

Re: [Xen-users] kernel panics??

On Wednesday 14 July 2010 15:42:56 Alex Edwards wrote:

> hope these are of some help

>

> fstab

>

> /dev/xvda1 / ext3 defaults 1 1

> /dev/xvda2 none swao sw 0 0

> none /dev/pts devpts gid=5,mode=620 0 0

> none /dev/shm tmpfs defaults 0 0

> none /proc proc defaults 0 0

> none /sys sysfs defaults 0 0

>

> Config file

>

> name="Demo1"

> uuid = "4c458561-6f90-6d3b-f68c-8021b900e631"

> maxmem = 1024

> memory = 1024

> vcpus = 1

> kernel = "/boot/vmlinuz-2.6.18-194.8.1.el5xen"

> ramdisk = "/xen/initrd-2.6.18-194.8.1.el5xen-no-scsi.img"

> extra = "selinux=0 ro"

> vif= ["mac=00:12:3F:35:A1:56, bridge=br0"]

> >

> >

> >

> disk = [ "tap:aio:/xen/Demo1.img,xvda1,w",

> "tap:aio:/xen/Demo1.swap,xvda2,w" ]

>

> system config

<snipped xen-config>

>

> boot output

>

<snipped boot-log>

As you are using a ramdisk for the boot-process, the ramdisk itself needs to be properly configured.

It is complaining about the "switchroot"

This is generally the last command in the script INSIDE the ramdisk.

See:

http://en.wikipedia.org/wiki/Initrd

Specifically the following:

"Once the initial root file system is up, the kernel executes /linuxrc as its first process. When it exits, the kernel assumes that the real root file system has been mounted and executes "/sbin/init" to begin the normal user-space boot process."

In other words, check the "/linuxrc" file inside your ramdisk and make sure that it uses the correct device-names.

It is probably still pointing to "/dev/sda1" or similar, rather then "/dev/xvda1"

--

Joost Roeleveld

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>