Hi experts,
First I post my log
root@intel_5500_server:/> ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:17:BB:5E:88
inet addr:128.224.165.205 Bcast:128.224.165.255
Mask:255.255.255.0
inet6 addr: fe80::215:17ff:febb:5e88/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2375 errors:0 dropped:0 overruns:0 frame:0
TX packets:1247 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:175314 (171.2 KiB) TX bytes:120518 (117.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
peth0 Link encap:Ethernet HWaddr 00:15:17:BB:5E:88
inet6 addr: fe80::215:17ff:febb:5e88/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5075 errors:0 dropped:0 overruns:0 frame:0
TX packets:1426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3443173 (3.2 MiB) TX bytes:138468 (135.2 KiB)
Memory:b1960000-b1980000
root@intel_5500_server:/> xm list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 12737 8 r-----
26.7
xx.cfg 3 128 2 -b----
2.7
root@intel_5500_server:/>
does it mean the domU boot up?
2. one anther question is, which kernel module is for /dev/xvda
3.my domU cfg file is
root@intel_5500_server:/> cat xx.cfg
disk = [''phy:/dev/sda,xvda,w'' ]
kernel = "/vmlinuz-2.6.31.13"
vcpus=2
extra = "3 selinux=0 enforcing=0"
root = "/dev/xvda1 ro"
and my dom0 root=/dev/sda1 and my disk just has one sda1 partition. can I
use /dev/xvda1 for domU, I''m not sure what''s the relations
between /dev/sda1
and /dev/xvda1
4. I create the device by
mknod /dev/xvda b 202 0
mknod /dev/xvda1 b 202 1
when I mount -t ext3 /dev/xvda /
root@intel_5500_server:/> mount -t ext3 /dev/xvda /
mount: /dev/xvda is not a valid block device
does it mean my xvda device driver is not loaded
Thanks
Lei
--
"We learn from failure, not from success!"
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 12:48:34AM +0800, lei yang wrote:> Hi experts, > > First I post my log > > [2]root@intel_5500_server:/> xm list > Name ID Mem VCPUs State > Time(s) > Domain-0 0 12737 8 r----- > 26.7 > xx.cfg 3 128 2 -b---- > 2.7 > [3]root@intel_5500_server:/> > > does it mean the domU boot up? >You should check the guest console: xm console xx.cfg> 2. one anther question is, which kernel module is for /dev/xvda > > > 3.my domU cfg file is > [4]root@intel_5500_server:/> cat xx.cfg > disk = [''phy:/dev/sda,xvda,w'' ]Is /dev/sda unused disk? If /dev/sda is the disk you boot dom0 from then you can''t use it for the guest!> kernel = "/vmlinuz-2.6.31.13" > vcpus=2 > extra = "3 selinux=0 enforcing=0"On the extra-line you should have also "earlyprintk=xen console=hvc0" to make the console work.> root = "/dev/xvda1 ro" > > > and my dom0 root=/dev/sda1 and my disk just has one sda1 partition. can I > use /dev/xvda1 for domU, I''m not sure what''s the relations between > /dev/sda1 and /dev/xvda1 >I''m confused.. Are you trying to use the _same_ disk for the guest as you use for dom0? You can''t do that. You need to have another disk for the guest, or an image file, or lvm volume..> 4. I create the device by > mknod /dev/xvda b 202 0 > mknod /dev/xvda1 b 202 1 > when I mount -t ext3 /dev/xvda / > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda / > mount: /dev/xvda is not a valid block device > does it mean my xvda device driver is not loaded >xvda is the device name in the *guest*, which means the guest kernel will see the virtual disk as /dev/xvda. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 1:40 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Sat, May 15, 2010 at 12:48:34AM +0800, lei yang wrote: > > Hi experts, > > > > First I post my log > > > > [2]root@intel_5500_server:/> xm list > > Name ID Mem VCPUs State > > Time(s) > > Domain-0 0 12737 8 r----- > > 26.7 > > xx.cfg 3 128 2 -b---- > > 2.7 > > [3]root@intel_5500_server:/> > > > > does it mean the domU boot up? > > > > You should check the guest console: > > xm console xx.cfg > > > > 2. one anther question is, which kernel module is for /dev/xvda > > > > > > 3.my domU cfg file is > > [4]root@intel_5500_server:/> cat xx.cfg > > disk = [''phy:/dev/sda,xvda,w'' ] > > Is /dev/sda unused disk? > If /dev/sda is the disk you boot dom0 from then you can''t use it for the > guest! > > > kernel = "/vmlinuz-2.6.31.13" > > vcpus=2 > > extra = "3 selinux=0 enforcing=0" > > On the extra-line you should have also "earlyprintk=xen console=hvc0" > to make the console work. > > > root = "/dev/xvda1 ro" > > > > > > and my dom0 root=/dev/sda1 and my disk just has one sda1 partition. > can I > > use /dev/xvda1 for domU, I''m not sure what''s the relations between > > /dev/sda1 and /dev/xvda1 > > > > I''m confused.. Are you trying to use the _same_ disk for the guest as you > use for dom0? > You can''t do that. > >my dom0 use /dev/sda1, can I use domU with second partition /dev/sda2(may be it correspond xvda2?) if I can''t use the second partition, hown do I use "an image file" , how to produce a image file, and can I put it in /dev/sda1 to use Actually, I don''t know what does mean by "disk = [''phy:/dev/sda,xvda,w'' ]" can you explan it for me does virtual disk use the phy disk space in fact? Thanks Lei> You need to have another disk for the guest, or an image file, or lvm > volume.. > > > 4. I create the device by > > mknod /dev/xvda b 202 0 > > mknod /dev/xvda1 b 202 1 > > when I mount -t ext3 /dev/xvda / > > > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda / > > mount: /dev/xvda is not a valid block device > > does it mean my xvda device driver is not loaded > > > > xvda is the device name in the *guest*, which means the guest kernel > will see the virtual disk as /dev/xvda. > > -- Pasi > > >-- "We learn from failure, not from success!" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 02:00:10AM +0800, lei yang wrote:> > I''m confused.. Are you trying to use the _same_ disk for the guest as > you use for dom0? > You can''t do that. > > > my dom0 use /dev/sda1, can I use domU with second partition /dev/sda2(may > be it correspond xvda2?) >Yes you can. Or you can use a file in dom0 filesystem. Or you can create LVM volumegroup and create an LVM volume for the guest.> if I can''t use the second partition, hown do I use "an image file" , how > to produce a image file, and can I put it in /dev/sda1 to use >You can create an empty image file with "dd", for example, or with any another normal unix/linux tool. Usually the tool you use to install the guest OS can make guest image files for you.> Actually, I don''t know what does mean by "disk = [''phy:/dev/sda,xvda,w'' ]" > can you explan it for me >It means use xen "phy:" driver for the guest virtual disk, which requires you to specify a ''physical'' block device in dom0. The block device in question is "/dev/sda", and it''s mapped to be "/dev/xvda" in the guest. "w" means it''s in read/write mode. Another options is to use "file:" driver, which enables you to use image files instead of block devices.> does virtual disk use the phy disk space in fact? >Depends how you set it up. Also I recommend you to start the guest with "xm create -f /etc/xen/<guest> -c", which opens up the guest terminal immediately and allows you to see the guest kernel boot process with all the messages. -- Pasi> Thanks > Lei > > You need to have another disk for the guest, or an image file, or lvm > volume.. > > 4. I create the device by > > mknod /dev/xvda b 202 0 > > mknod /dev/xvda1 b 202 1 > > when I mount -t ext3 /dev/xvda / > > > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda / > > mount: /dev/xvda is not a valid block device > > does it mean my xvda device driver is not loaded > > > > xvda is the device name in the *guest*, which means the guest kernel > will see the virtual disk as /dev/xvda. > -- Pasi > > -- > "We learn from failure, not from success!" > > References > > Visible links > 1. mailto:pasik@iki.fi_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Pasi,
I find some of my concept is not clear.
After I boot domU, my domU root=/dev/sda1, I just have one hard disk and
just one partition-->sda1
and run
root@intel_5500_server:/root> service xend start &
[1] 2114
root@intel_5500_server:/root> mount: xenfs already mounted or /proc/xen busy
mount: according to mtab, none is already mounted on /proc/xen
Nothing to flush.
[ 86.292484] xenbus_probe wake_waiting
[ 86.296663] xenbus_probe wake_waiting
Traceback (most [ 86.301310] XENBUS: Unable to read cpu state
recent call last[ 86.307501] XENBUS: Unable to read cpu state
):
File "/usr[ 86.313693] XENBUS: Unable to read cpu state
/sbin/xend", lin[ 86.320070] XENBUS: Unable to read cpu state
e 158, in <modul[ 86.326362] XENBUS: Unable to read cpu state
e>
sys.exit[ 86.332740] XENBUS: Unable to read cpu state
(main())
File[ 86.339068] XENBUS: Unable to read cpu state
"/usr/sbin/xend[ 86.345378] XENBUS: Unable to read cpu state
", line 133, in [ 86.351797] xenbus_probe_devices backend
main
start_[ 86.358882] xenbus_probe_devices failed xenbus_directory
[ 86.364819] backend_probe_and_watch devices probed ok
blktapctrl()
[ 86.370770] backend_probe_and_watch watch add ok ok
[ 86.377463] backend_probe_and_watch all done
[ 86.382232] xenbus_probe_devices device
File "/usr/sbin/[ 86.386832] xenbus_probe_devices failed xenbus_directory
[ 86.394018] frontend_probe_and_watch devices probed ok
xend", line 108,[ 86.400078] frontend_probe_and_watch watch add ok ok
[ 86.406862] frontend_probe_and_watch all done
in start_blktapctrl
start_daemon("blktapctrl", "")
File "/usr/sbin/xend", line 74, in start_daemon
os.execvp(daemon, (daemon,) + args)
File "/usr/lib/python2.5/os.py", line 354, in execvp
_execvpe(file, args)
File "/usr/lib/python2.5/os.py", line 392, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
root@intel_5500_server:/root>
I got above error, I don''t know what cause it.
then I find I don''t have /dev/xvda in Dom0,
so I create it with
mknod /dev/xvda b 202 0
mknod /dev/xvda1 b 202 1
in dom0, question: do I need to create it in dom0? if not, where it can be
create?
Then I create a image " dd if=/dev/zero of=domU.image bs=1M
count=1000"
and my domU cfg file is
disk = [''file:/domU.image,xvda1,w'']
kernel = "/vmlinuz-2.6.31.13"
vcpus=2
extra = "3 selinux=0 enforcing=0"
root = "/dev/xvda1 ro"
(if I don''t create /dev/xvda1 in dom0, it will tell me no /dev/xvda1
device)
does this file miss something?
I don''t use initrd file for dom0 or domU, does it need for me?
then I boot domU with
xm create -f xx.cfg -c,
I got
[ 0.266829] List of all partitions:
[ 0.266841] ca01 1024000 xvda1 driver: vbd
[ 0.266849] No filesystem could mount root, tried: ext3 vfat msdos
iso9660
[ 0.266868] Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(202,1)
[ 0.266879] Pid: 1, comm: swapper Not tainted 2.6.31.13 #1
any idea?
Thanks
Lei
On Sat, May 15, 2010 at 2:35 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> On Sat, May 15, 2010 at 02:00:10AM +0800, lei yang wrote:
> >
> > I''m confused.. Are you trying to use the _same_ disk for
the guest
> as
> > you use for dom0?
> > You can''t do that.
> >
> >
> > my dom0 use /dev/sda1, can I use domU with second partition
> /dev/sda2(may
> > be it correspond xvda2?)
> >
>
> Yes you can.
>
> Or you can use a file in dom0 filesystem. Or you can create LVM volumegroup
> and create an LVM volume for the guest.
>
> > if I can''t use the second partition, hown do I use
"an image file" ,
> how
> > to produce a image file, and can I put it in /dev/sda1 to use
> >
>
> You can create an empty image file with "dd", for example, or
with any
> another
> normal unix/linux tool.
>
> Usually the tool you use to install the guest OS can make guest image files
> for you.
>
> > Actually, I don''t know what does mean by "disk >
[''phy:/dev/sda,xvda,w'' ]"
> > can you explan it for me
> >
>
> It means use xen "phy:" driver for the guest virtual disk, which
requires
> you to
> specify a ''physical'' block device in dom0. The block
device in question is
> "/dev/sda",
> and it''s mapped to be "/dev/xvda" in the guest.
"w" means it''s in
> read/write mode.
>
> Another options is to use "file:" driver, which enables you to
use image
> files instead of block devices.
>
> > does virtual disk use the phy disk space in fact?
> >
>
> Depends how you set it up.
>
> Also I recommend you to start the guest with "xm create -f
/etc/xen/<guest>
> -c",
> which opens up the guest terminal immediately and allows you to see the
> guest kernel boot process with all the messages.
>
> -- Pasi
>
> > Thanks
> > Lei
> >
> > You need to have another disk for the guest, or an image file, or
> lvm
> > volume..
> > > 4. I create the device by
> > > mknod /dev/xvda b 202 0
> > > mknod /dev/xvda1 b 202 1
> > > when I mount -t ext3 /dev/xvda /
> > >
> > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda /
> > > mount: /dev/xvda is not a valid block device
> > > does it mean my xvda device driver is not loaded
> > >
> >
> > xvda is the device name in the *guest*, which means the guest
kernel
> > will see the virtual disk as /dev/xvda.
> > -- Pasi
> >
> > --
> > "We learn from failure, not from success!"
> >
> > References
> >
> > Visible links
> > 1. mailto:pasik@iki.fi
>
--
"We learn from failure, not from success!"
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 01:29:13PM +0800, lei yang wrote:> Hi Pasi, > > I find some of my concept is not clear. > > After I boot domU, my domU root=/dev/sda1, I just have one hard disk and > just one partition-->sda1 >If using a pvops domU kernel then you shouldn''t use sd* for the guest disk. pvops kernels only support xvd* as a guest disk.> and run > [1]root@intel_5500_server:/root> service xend start & > [1] 2114 > [2]root@intel_5500_server:/root> mount: xenfs already mounted or /proc/xen > busy > mount: according to mtab, none is already mounted on /proc/xen > Nothing to flush.Have you read: http://wiki.xensource.com/xenwiki/XenParavirtOps Especially the troubleshooting sections?> [ 86.292484] xenbus_probe wake_waiting > [ 86.296663] xenbus_probe wake_waiting > Traceback (most [ 86.301310] XENBUS: Unable to read cpu state > recent call last[ 86.307501] XENBUS: Unable to read cpu state > ): > File "/usr[ 86.313693] XENBUS: Unable to read cpu state > /sbin/xend", lin[ 86.320070] XENBUS: Unable to read cpu state > e 158, in <modul[ 86.326362] XENBUS: Unable to read cpu state > e> > sys.exit[ 86.332740] XENBUS: Unable to read cpu state > (main()) > File[ 86.339068] XENBUS: Unable to read cpu state > "/usr/sbin/xend[ 86.345378] XENBUS: Unable to read cpu state > ", line 133, in [ 86.351797] xenbus_probe_devices backend > main > start_[ 86.358882] xenbus_probe_devices failed xenbus_directory > [ 86.364819] backend_probe_and_watch devices probed ok > blktapctrl() > [ 86.370770] backend_probe_and_watch watch add ok ok > [ 86.377463] backend_probe_and_watch all done > [ 86.382232] xenbus_probe_devices device > File "/usr/sbin/[ 86.386832] xenbus_probe_devices failed > xenbus_directory > [ 86.394018] frontend_probe_and_watch devices probed ok > xend", line 108,[ 86.400078] frontend_probe_and_watch watch add ok ok > [ 86.406862] frontend_probe_and_watch all done > in start_blktapctrl > start_daemon("blktapctrl", "") > File "/usr/sbin/xend", line 74, in start_daemon > os.execvp(daemon, (daemon,) + args) > File "/usr/lib/python2.5/os.py", line 354, in execvp > _execvpe(file, args) > File "/usr/lib/python2.5/os.py", line 392, in _execvpe > func(fullname, *argrest) > OSError: [Errno 2] No such file or directory > [3]root@intel_5500_server:/root> > I got above error, I don''t know what cause it. > then I find I don''t have /dev/xvda in Dom0, > so I create it with > > mknod /dev/xvda b 202 0 > mknod /dev/xvda1 b 202 1 > > in dom0, question: do I need to create it in dom0? if not, where it can be > create? > > Then I create a image " dd if=/dev/zero of=domU.image bs=1M count=1000" > > > and my domU cfg file is > > disk = [''file:/domU.image,xvda1,w''] > kernel = "/vmlinuz-2.6.31.13" > vcpus=2 > extra = "3 selinux=0 enforcing=0" > root = "/dev/xvda1 ro" > > (if I don''t create /dev/xvda1 in dom0, it will tell me no /dev/xvda1 > device) > does this file miss something? > > I don''t use initrd file for dom0 or domU, does it need for me? > > then I boot domU with > xm create -f xx.cfg -c, > I got > > [ 0.266829] List of all partitions: > [ 0.266841] ca01 1024000 xvda1 driver: vbd > [ 0.266849] No filesystem could mount root, tried: ext3 vfat msdos > iso9660 > [ 0.266868] Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(202,1) > [ 0.266879] Pid: 1, comm: swapper Not tainted 2.6.31.13 #1 > > any idea? >The image file is empty, so it doesn''t contain a filesystem that could be mounted in the guest. You need to actually *INSTALL* a guest to the image file. -- Pasi> Thanks > Lei > > > > > > > On Sat, May 15, 2010 at 2:35 AM, Pasi Kärkkäinen <[4]pasik@iki.fi> wrote: > > On Sat, May 15, 2010 at 02:00:10AM +0800, lei yang wrote: > > > > I''m confused.. Are you trying to use the _same_ disk for the > guest as > > you use for dom0? > > You can''t do that. > > > > > > my dom0 use /dev/sda1, can I use domU with second partition > /dev/sda2(may > > be it correspond xvda2?) > > > > Yes you can. > > Or you can use a file in dom0 filesystem. Or you can create LVM > volumegroup > and create an LVM volume for the guest. > > if I can''t use the second partition, hown do I use "an image file" > , how > > to produce a image file, and can I put it in /dev/sda1 to use > > > > You can create an empty image file with "dd", for example, or with any > another > normal unix/linux tool. > > Usually the tool you use to install the guest OS can make guest image > files for you. > > Actually, I don''t know what does mean by "disk > [''phy:/dev/sda,xvda,w'' ]" > > can you explan it for me > > > > It means use xen "phy:" driver for the guest virtual disk, which > requires you to > specify a ''physical'' block device in dom0. The block device in question > is "/dev/sda", > and it''s mapped to be "/dev/xvda" in the guest. "w" means it''s in > read/write mode. > > Another options is to use "file:" driver, which enables you to use image > files instead of block devices. > > does virtual disk use the phy disk space in fact? > > > > Depends how you set it up. > > Also I recommend you to start the guest with "xm create -f > /etc/xen/<guest> -c", > which opens up the guest terminal immediately and allows you to see the > guest kernel boot process with all the messages. > > -- Pasi > > Thanks > > Lei > > > > You need to have another disk for the guest, or an image file, or > lvm > > volume.. > > > 4. I create the device by > > > mknod /dev/xvda b 202 0 > > > mknod /dev/xvda1 b 202 1 > > > when I mount -t ext3 /dev/xvda / > > > > > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda / > > > mount: /dev/xvda is not a valid block device > > > does it mean my xvda device driver is not loaded > > > > > > > xvda is the device name in the *guest*, which means the guest > kernel > > will see the virtual disk as /dev/xvda. > > -- Pasi > > > > -- > > "We learn from failure, not from success!" > > > > References > > > > Visible links > > 1. mailto:[5]pasik@iki.fi > > -- > "We learn from failure, not from success!" > > References > > Visible links > 1. mailto:root@intel_5500_server/root > 2. mailto:root@intel_5500_server/root > 3. mailto:root@intel_5500_server/root > 4. mailto:pasik@iki.fi > 5. mailto:pasik@iki.fi_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, May 15, 2010 at 5:49 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Sat, May 15, 2010 at 01:29:13PM +0800, lei yang wrote: > > Hi Pasi, > > > > I find some of my concept is not clear. > > > > After I boot domU, my domU root=/dev/sda1, I just have one hard disk > and > > just one partition-->sda1 > > > > If using a pvops domU kernel then you shouldn''t use sd* for the guest disk. > pvops kernels only support xvd* as a guest disk. > > > > and run > > [1]root@intel_5500_server:/root> service xend start & > > [1] 2114 > > [2]root@intel_5500_server:/root> mount: xenfs already mounted or > /proc/xen > > busy > > mount: according to mtab, none is already mounted on /proc/xen > > Nothing to flush. > > Have you read: > http://wiki.xensource.com/xenwiki/XenParavirtOps > > Especially the troubleshooting sections? >> > [ 86.292484] xenbus_probe wake_waiting > > [ 86.296663] xenbus_probe wake_waiting > > Traceback (most [ 86.301310] XENBUS: Unable to read cpu state > > recent call last[ 86.307501] XENBUS: Unable to read cpu state > > ): > > File "/usr[ 86.313693] XENBUS: Unable to read cpu state > > /sbin/xend", lin[ 86.320070] XENBUS: Unable to read cpu state > > e 158, in <modul[ 86.326362] XENBUS: Unable to read cpu state > > e> > > sys.exit[ 86.332740] XENBUS: Unable to read cpu state > > (main()) > > File[ 86.339068] XENBUS: Unable to read cpu state > > "/usr/sbin/xend[ 86.345378] XENBUS: Unable to read cpu state > > ", line 133, in [ 86.351797] xenbus_probe_devices backend > > main > > start_[ 86.358882] xenbus_probe_devices failed xenbus_directory > > [ 86.364819] backend_probe_and_watch devices probed ok > > blktapctrl() > > [ 86.370770] backend_probe_and_watch watch add ok ok > > [ 86.377463] backend_probe_and_watch all done > > [ 86.382232] xenbus_probe_devices device > > File "/usr/sbin/[ 86.386832] xenbus_probe_devices failed > > xenbus_directory > > [ 86.394018] frontend_probe_and_watch devices probed ok > > xend", line 108,[ 86.400078] frontend_probe_and_watch watch add ok > ok > > [ 86.406862] frontend_probe_and_watch all done > > in start_blktapctrl > > start_daemon("blktapctrl", "") > > File "/usr/sbin/xend", line 74, in start_daemon > > os.execvp(daemon, (daemon,) + args) > > File "/usr/lib/python2.5/os.py", line 354, in execvp > > _execvpe(file, args) > > File "/usr/lib/python2.5/os.py", line 392, in _execvpe > > func(fullname, *argrest) > > OSError: [Errno 2] No such file or directory > > [3]root@intel_5500_server:/root> > > I got above error, I don''t know what cause it. > > then I find I don''t have /dev/xvda in Dom0, > > so I create it with > > > > mknod /dev/xvda b 202 0 > > mknod /dev/xvda1 b 202 1 > > > > in dom0, question: do I need to create it in dom0? if not, where it > can be > > create? > > > > Then I create a image " dd if=/dev/zero of=domU.image bs=1M > count=1000" > > > > > > and my domU cfg file is > > > > disk = [''file:/domU.image,xvda1,w''] > > kernel = "/vmlinuz-2.6.31.13" > > vcpus=2 > > extra = "3 selinux=0 enforcing=0" > > root = "/dev/xvda1 ro" > > > > (if I don''t create /dev/xvda1 in dom0, it will tell me no /dev/xvda1 > > device) > > does this file miss something? > > > > I don''t use initrd file for dom0 or domU, does it need for me? > > > > then I boot domU with > > xm create -f xx.cfg -c, > > I got > > > > [ 0.266829] List of all partitions: > > [ 0.266841] ca01 1024000 xvda1 driver: vbd > > [ 0.266849] No filesystem could mount root, tried: ext3 vfat msdos > > iso9660 > > [ 0.266868] Kernel panic - not syncing: VFS: Unable to mount root > fs on > > unknown-block(202,1) > > [ 0.266879] Pid: 1, comm: swapper Not tainted 2.6.31.13 #1 > > > > any idea? > > > > The image file is empty, so it doesn''t contain a filesystem that could be > mounted in the guest. > You need to actually *INSTALL* a guest to the image file. > >dd if=/dev/zero of=domU.image bs=1M count=1000 I don''t know how to install filesystem into the empty file(domU.image)[?].I searched with google, can''t get a goode answer. Lei> -- Pasi > > > Thanks > > Lei > > > > > > > > > > > > > > On Sat, May 15, 2010 at 2:35 AM, Pasi Kärkkäinen <[4]pasik@iki.fi> > wrote: > > > > On Sat, May 15, 2010 at 02:00:10AM +0800, lei yang wrote: > > > > > > I''m confused.. Are you trying to use the _same_ disk for the > > guest as > > > you use for dom0? > > > You can''t do that. > > > > > > > > > my dom0 use /dev/sda1, can I use domU with second partition > > /dev/sda2(may > > > be it correspond xvda2?) > > > > > > > Yes you can. > > > > Or you can use a file in dom0 filesystem. Or you can create LVM > > volumegroup > > and create an LVM volume for the guest. > > > if I can''t use the second partition, hown do I use "an image > file" > > , how > > > to produce a image file, and can I put it in /dev/sda1 to use > > > > > > > You can create an empty image file with "dd", for example, or with > any > > another > > normal unix/linux tool. > > > > Usually the tool you use to install the guest OS can make guest > image > > files for you. > > > Actually, I don''t know what does mean by "disk > > [''phy:/dev/sda,xvda,w'' ]" > > > can you explan it for me > > > > > > > It means use xen "phy:" driver for the guest virtual disk, which > > requires you to > > specify a ''physical'' block device in dom0. The block device in > question > > is "/dev/sda", > > and it''s mapped to be "/dev/xvda" in the guest. "w" means it''s in > > read/write mode. > > > > Another options is to use "file:" driver, which enables you to use > image > > files instead of block devices. > > > does virtual disk use the phy disk space in fact? > > > > > > > Depends how you set it up. > > > > Also I recommend you to start the guest with "xm create -f > > /etc/xen/<guest> -c", > > which opens up the guest terminal immediately and allows you to see > the > > guest kernel boot process with all the messages. > > > > -- Pasi > > > Thanks > > > Lei > > > > > > You need to have another disk for the guest, or an image > file, or > > lvm > > > volume.. > > > > 4. I create the device by > > > > mknod /dev/xvda b 202 0 > > > > mknod /dev/xvda1 b 202 1 > > > > when I mount -t ext3 /dev/xvda / > > > > > > > > [5]root@intel_5500_server:/> mount -t ext3 /dev/xvda / > > > > mount: /dev/xvda is not a valid block device > > > > does it mean my xvda device driver is not loaded > > > > > > > > > > xvda is the device name in the *guest*, which means the guest > > kernel > > > will see the virtual disk as /dev/xvda. > > > -- Pasi > > > > > > -- > > > "We learn from failure, not from success!" > > > > > > References > > > > > > Visible links > > > 1. mailto:[5]pasik@iki.fi > > > > -- > > "We learn from failure, not from success!" > > > > References > > > > Visible links > > 1. mailto:root@intel_5500_server/root > > 2. mailto:root@intel_5500_server/root > > 3. mailto:root@intel_5500_server/root > > 4. mailto:pasik@iki.fi > > 5. mailto:pasik@iki.fi >-- "We learn from failure, not from success!" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Reasonably Related Threads
- 2.6.31.6 pv_ops can''t boot pv_ops DomU kernel
- 2.6.31.6 pv_ops can''t boot pv_ops DomU kernel
- Kernel DomU 2.6.36.1 dont boot PVonHVM
- Kernel DomU 2.6.36.1 dont boot PVonHVM
- How to boot Ubuntu 9.04(Jaunty) or Debian Lenny (vmlinuz-2.6.26-2-686-bigmem) as domU under Lenny''s vmlinuz-2.6.26-2-xen-686 as dom0. PVM''s initrd issue