Skip to contentSkip to conversation

Problem with VBD

DISCUSSION Pasi Kärkkäinen 2 participants 4 messages Oct 12, 2004

lore
Share & tools
lore
#0 lore raw

Hi!

$ xm create -n -f xmtest
Using config file "xmtest".
(vm
    (name testdomain)
    (memory 128)
    (image
        (linux
            (kernel /boot/vmlinuz-2.6.8-foo1-XenU)
            (ip :1.2.3.4:::tesmo:eth0:dhcp)
            (root '/dev/xda1 ro')
            (args 1)
        )
    )
    (device (vbd (uname phy:loop0) (dev xda1) (mode w)))
    (device (vif (mac aa:00:00:2f:d4:fb)))
)

That's how I create the domain.

The domain starts, and this is the console output before kernel panic:

<snip>
Xen virtual console successfully installed as tty Event-channel device installed.
[XEN] Initialising virtual block device driver XL VBD: can't get major 0 with name xvd
[XEN] Initialising virtual ethernet driver. <snip>
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "xda1" or unknown-block(2,0) Please append a correct "root=" boot option

Kernel panic: VFS: Unable to mount root fs on unknown-block(2,0)

Is there something (driver?) missing from my unprivileged kernel?

/dev/loop0 is set up correctly with ext2-image on host..

$ losetup /dev/loop0
/dev/loop0: [4805]:471449 (Debian-3.0r2.ext2)
$ xm list
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    470.8
testdomain         4      128    0  -----    144.6    9604
$ xm vbd-list testdomain
(blkdev (idx 0) (vdev 3329) (device 1792) (mode w) (dev xda1) (uname phy:loop0))

Thanks for your help!

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#1 lore raw
Quoted 1 line

(device (vbd (uname phy:loop0) (dev xda1) (mode w)))

Instead of running losetup and then using phy:loop0, you can now just specify file:/path/to/file

Quoted 1 line
Kernel panic: VFS: Unable to mount root fs on unknown-block(2,0)

We've got rid of the xda devices - use the sd* and hd* devices instead, then it should work.

Did you see xda in the documentation somewhere? It'd be nice to know where it's still mentioned so that we can delete it!

Cheers,
Mark

Quoted 28 lines

Is there something (driver?) missing from my unprivileged kernel?

/dev/loop0 is set up correctly with ext2-image on host..

$ losetup /dev/loop0
/dev/loop0: [4805]:471449 (Debian-3.0r2.ext2)
$ xm list
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    470.8
testdomain         4      128    0  -----    144.6    9604
$ xm vbd-list testdomain
(blkdev (idx 0) (vdev 3329) (device 1792) (mode w) (dev xda1) (uname
phy:loop0))

Thanks for your help!

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.
Quoted 9 lines

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#2 lore raw
Quoted 5 lines · Mark A. Williamson
Quoted 1 line

(device (vbd (uname phy:loop0) (dev xda1) (mode w)))

Instead of running losetup and then using phy:loop0, you can now just specify file:/path/to/file

OK.. nice! I think this is missing from the docs..

Quoted 8 lines
Quoted 1 line
Kernel panic: VFS: Unable to mount root fs on unknown-block(2,0)

We've got rid of the xda devices - use the sd* and hd* devices instead, then it should work.

Did you see xda in the documentation somewhere? It'd be nice to know where it's still mentioned so that we can delete it!

hmm.. xda is used in the example-configuration..

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0-install.tgz

in install/etc/xen/xmexample1

btw. Is there any way to give more memory than the physical memory to domains?

Say, I have 512 MB of physical RAM in the box, is it possible to create 4 domains each seeing 256 MB of RAM?

I guess no. This should be mentioned in the FAQ and in the docs.. I didn't find answer to this question.

Thanks for your help! Xen 2 looks very good.

-- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#3 lore raw
Quoted 1 line

OK.. nice! I think this is missing from the docs..

We're attacking the docs with a vengeance now. It's the last major showstopper for a 2.0 release...

Quoted 6 lines

hmm.. xda is used in the example-configuration..

http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0-install.tg
z

in install/etc/xen/xmexample1

Right, that's gotta go! I vaguely remember seeing that some time before.

Quoted 5 lines

btw. Is there any way to give more memory than the physical memory to domains?

Say, I have 512 MB of physical RAM in the box, is it possible to create 4 domains each seeing 256 MB of RAM?

Xen doesn't overcommit memory, so you can't do that, no. However, you could use the balloon driver to shift the memory allocation between domains at runtime (e.g. reduce dom0's memory footprint a little, then increase dom1's footprint instead).

Quoted 2 lines

I guess no. This should be mentioned in the FAQ and in the docs.. I didn't find answer to this question.

Yes, it is a frequent query so it should be in there. We'll add it whilst documentation updating...

Quoted 1 line

Thanks for your help! Xen 2 looks very good.

Full release Real Soon Now (TM)!

Cheers,
Mark

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl