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: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: [Xen-users] Re: How to kown the DomU is up
From: lei yang <yanglei.fage@xxxxxxxxx>
Date: Sat, 15 May 2010 02:00:10 +0800
Cc: Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 14 May 2010 11:02:03 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=1SrW+wVVZFSJkG1Z4Npk0ZELzufZ8zNPuUITD3bNvBI=; b=Dc32Bi98sOabcECag8CoUYRuhjmUxLexUWtmM0o26V8PaWLIuGh+xlmEkr69tWcuaB fArsOHnJkY1NgiIfSRG1URJ2gNCcc7M7ydm27wCqMc+0TJdG6D2fYMYr+4OmXGXPtx50 Cm62GIWzw43wwT7YDBwxycCqLlkBVjpt+LS8U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PTvw12gg2OLaIBSV1twl5NE2nAg2tRkXT81HY1rVH9C93deRsCul+gzA4Yo2mLqLMo pG+odfGxhT92HBL3Hq0e6VW4i3XwnOiRXuWtrEuUtIN5K6Qnml8g99sKTrY3jWx05EyD ustrioc4NfIW5TIPpS5s8PB6JbM+8HjAxbodI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100514174059.GW17817@xxxxxxxxxxx>
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> <20100514174059.GW17817@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Sat, May 15, 2010 at 1:40 AM, Pasi Kärkkäinen <pasik@xxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users