|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Re: How to kown the DomU is up
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|