Skip to contentSkip to conversation

newbie xen question

DISCUSSION Nuutti Kotivuori 4 participants 8 messages Feb 8, 2005

lore
Share & tools
lore
#0 lore raw

All this time, I still haven't managed to make a single Xen domain boot, other than domain0. I am just completely dumbfounded at the moment.

I am starting the domain with the command line:

xm create -c name=i1 kernel=/tmp/vmlinuz memory=64 disk=phy:/dev/hda6,hda1,w root=/dev/hda1 restart=never

And all I ever get as a result is:

Xen virtual console successfully installed as tty Event-channel device installed.
xen_blk: Initialising virtual block device driver
xen_net: Initialising virtual ethernet driver.
...
VFS: Cannot open root device "hda1" or unknown-block(3,1) Please append a correct "root=" boot option

My xmdefconfig is empty. I first thought it to be just a devfs problem, since I used to use devfs=mount on the command line, but upon closer inspection, it never had anything to do with it. With 2.6, hda is looked up in sysfs, and Xen should support that.

My Xen things come from the 2.0.4-3 Debian packages and both dom0 and domU kernels are 2.6.10 debian kernels compiled by me.

-- Naked

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
In reply to B.G. Bruce
Quoted 5 lines

It has been my experience (as short as it is with Xen) that having devfs built into the kernel image that is booting a domU, irregardless of whether or not you pass devfs=nomount or not, will result in this error message. Try compiling your domU kernel without devfs at all and see what happens.

Correct - don't build devfs into your kernel at all if you want it to boot in a domU.

Cheers,
Mark

Quoted 45 lines

B.

Quoted 31 lines · Nuutti Kotivuori

All this time, I still haven't managed to make a single Xen domain boot, other than domain0. I am just completely dumbfounded at the moment.

I am starting the domain with the command line:

xm create -c name=i1 kernel=/tmp/vmlinuz memory=64
disk=phy:/dev/hda6,hda1,w root=/dev/hda1 restart=never

And all I ever get as a result is:

Xen virtual console successfully installed as tty Event-channel device installed.
xen_blk: Initialising virtual block device driver
xen_net: Initialising virtual ethernet driver.
...
VFS: Cannot open root device "hda1" or unknown-block(3,1) Please append a correct "root=" boot option

My xmdefconfig is empty. I first thought it to be just a devfs problem, since I used to use devfs=mount on the command line, but upon closer inspection, it never had anything to do with it. With 2.6, hda is looked up in sysfs, and Xen should support that.

My Xen things come from the 2.0.4-3 Debian packages and both dom0 and domU kernels are 2.6.10 debian kernels compiled by me.

-- Naked

Quoted 9 lines

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 9 lines

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw
In reply to Nuutti Kotivuori

It has been my experience (as short as it is with Xen) that having devfs built into the kernel image that is booting a domU, irregardless of whether or not you pass devfs=nomount or not, will result in this error message. Try compiling your domU kernel without devfs at all and see what happens.

B.

Quoted 30 lines · Nuutti Kotivuori

All this time, I still haven't managed to make a single Xen domain boot, other than domain0. I am just completely dumbfounded at the moment.

I am starting the domain with the command line:

xm create -c name=i1 kernel=/tmp/vmlinuz memory=64 disk=phy:/dev/hda6,hda1,w root=/dev/hda1 restart=never

And all I ever get as a result is:

Xen virtual console successfully installed as tty Event-channel device installed.
xen_blk: Initialising virtual block device driver
xen_net: Initialising virtual ethernet driver.
...
VFS: Cannot open root device "hda1" or unknown-block(3,1) Please append a correct "root=" boot option

My xmdefconfig is empty. I first thought it to be just a devfs problem, since I used to use devfs=mount on the command line, but upon closer inspection, it never had anything to do with it. With 2.6, hda is looked up in sysfs, and Xen should support that.

My Xen things come from the 2.0.4-3 Debian packages and both dom0 and domU kernels are 2.6.10 debian kernels compiled by me.

-- Naked

Quoted 10 lines

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#3 lore raw
Quoted 5 lines · B.G. Bruce

It has been my experience (as short as it is with Xen) that having devfs built into the kernel image that is booting a domU, irregardless of whether or not you pass devfs=nomount or not, will result in this error message. Try compiling your domU kernel without devfs at all and see what happens.

I am running with devfs compiled into the kernel without any problems.

Quoted 11 lines

B.

Quoted 8 lines · Nuutti Kotivuori

All this time, I still haven't managed to make a single Xen domain boot, other than domain0. I am just completely dumbfounded at the moment.

I am starting the domain with the command line:

xm create -c name=i1 kernel=/tmp/vmlinuz memory=64
disk=phy:/dev/hda6,hda1,w root=/dev/hda1 restart=never

Should the above be "/dev/hda1" instead of just "hda1"?

Signature · 9 lines
Jon Mason
[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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#4 lore raw
Quoted 1 line

I am running with devfs compiled into the kernel without any problems.

In your domU kernel? We've had more than one report of this not working at all IIRC, although it's fine in dom0.

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

xm create -c name=i1 kernel=/tmp/vmlinuz memory=64
disk=phy:/dev/hda6,hda1,w root=/dev/hda1 restart=never

Should the above be "/dev/hda1" instead of just "hda1"?

I think the tools sort that out automatically.

Cheers,
Mark

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#5 lore raw
Quoted 4 lines · Mark Williamson
Quoted 1 line

I am running with devfs compiled into the kernel without any problems.

In your domU kernel? We've had more than one report of this not working at all IIRC, although it's fine in dom0.

Oops..I only have it enabled in dom0, not domU. Sorry.

Signature · 9 lines
Jon Mason
[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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#7 lore raw
In reply to B.G. Bruce
Quoted 5 lines · B. G. Bruce

It has been my experience (as short as it is with Xen) that having devfs built into the kernel image that is booting a domU, irregardless of whether or not you pass devfs=nomount or not, will result in this error message. Try compiling your domU kernel without devfs at all and see what happens.

Ah, thanks! I remembered that advice back when talking about this whole mess earlier, but managed to forget it in the meantime.

The kernel boots nicely now.

-- Naked

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#6 lore raw
In reply to Mark Williamson
Quoted 5 lines · Mark Williamson
Quoted 2 lines

I am running with devfs compiled into the kernel without any problems.

In your domU kernel? We've had more than one report of this not working at all IIRC, although it's fine in dom0.

Chalk one up for domU not booting with devfs ;-) (And yes, I have devfs in dom0 kernel.)

-- Naked

-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click