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

[Xen-users] Re: How to kown the DomU is up

To: lei yang <yanglei.fage@xxxxxxxxx>
Subject: [Xen-users] Re: How to kown the DomU is up
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Fri, 14 May 2010 20:40:59 +0300
Cc: Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 14 May 2010 10:42:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikUvzHA0gXKZvAPamvo13eRwjsavUjqwB7Lmy6j@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikUvzHA0gXKZvAPamvo13eRwjsavUjqwB7Lmy6j@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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