Skip to contentSkip to conversation

xenU wont boot, cannot open root device

DISCUSSION Maurice Meeden 2 participants 3 messages Dec 22, 2004 – Dec 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to replace uml with xen, but I cant get the unpreviliged Domains booting..
Ive tested a cuple of filesystems in a file (ext3 or xfs formatted) and Ive also tried the ttylinux-xen image. But I always get this error:
VFS: Cannot open root device "hda1" or unknown-block(3,1)
Please append a correct "root=" boot option

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)

The config is the same as in the example:
kernel = "/uml/linux-2.6.9-xenU"
memory = 64
name = "ttylinux"
nics = 1
disk = [ 'file:/uml/ttylinux-xen,hda1,w' ]
root = "/dev/hda1 ro"

Ive also tried sda1 instead of hda1, or hexadecimal.

Ans I also tested different versions, xen 2.0.1 and 2.0-testing, with a stock Linux kernel, and the prepatched Gentoo-dev-2.6.9 Version. I compiled with and without 4k stacks, but always the same :-(

Ive no ideas what else I could try, can somebody give me an hint please?

Greetings Maurice

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#1 lore raw
Quoted 9 lines · Maurice Meeden

I am trying to replace uml with xen, but I cant get the unpreviliged Domains booting..
Ive tested a cuple of filesystems in a file (ext3 or xfs formatted) and Ive also tried the ttylinux-xen image. But I always get this error:
VFS: Cannot open root device "hda1" or unknown-block(3,1)
Please append a correct "root=" boot option

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)

Ive no ideas what else I could try, can somebody give me an hint please?

Are you using the prebuilt unprivileged-domain kernel image? If so, the one in 2.0.1 at least (maybe others, not sure) has devfs support enabled. This breaks things. I suggest you rebuild your domU kernel _without_ devfs support, and it should work correctly. I had this same problem when I began playing with Xen, but after rebuilding the kernel as I mentioned, it all worked correctly.

Signature · 8 lines
Derrik Pates
[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
author
#2 lore raw
Quoted 12 lines
Quoted 1 line · Maurice Meeden

I am trying to replace uml with xen, but I cant get the unpreviliged

Domains

Quoted 2 lines

booting..
Ive tested a cuple of filesystems in a file (ext3 or xfs formatted) and

Ive also

Quoted 4 lines

tried the ttylinux-xen image. But I always get this error:
VFS: Cannot open root device "hda1" or unknown-block(3,1) Please append a correct "root=" boot option

Kernel panic - not syncing: VFS: Unable to mount root fs on

unknown-block(3,1)

Quoted 8 lines
Quoted 1 line

Ive no ideas what else I could try, can somebody give me an hint please?

Are you using the prebuilt unprivileged-domain kernel image? If so, the one in 2.0.1 at least (maybe others, not sure) has devfs support enabled. This breaks things. I suggest you rebuild your domU kernel _without_ devfs support, and it should work correctly. I had this same problem when I began playing with Xen, but after rebuilding the kernel as I mentioned, it all worked correctly.

Thank you very much, it works now.
Ive thought its enough to add devfs=nomount to the kernel parameters, but you are right, CONFIG_DEVFS_FS must be unset.

Merry Xmas, Maurice

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/