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-devel

[Xen-devel] Problem with VBD

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Problem with VBD
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Tue, 12 Oct 2004 14:44:30 +0300
Delivery-date: Tue, 12 Oct 2004 12:57:06 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>