[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Pasi Kärkkäinen <pasik@xxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.