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

Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Fri, 9 Apr 2010 08:45:44 +0100
Cc: Boris Derzhavets <bderzhavets@xxxxxxxxx>, xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Apr 2010 00:46:57 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rqaqq5p19raD4URMOHGwKvQspq/sdHa/6Bx+VauNi3s=; b=QYXwDhxJ4DL12Y5GI5RzIn/yhLxfL29CLEePe5hN3Iidxev+1Y4DzGGY6UC45WVUu5 l6ij4uqvimxJ71kR9M8UkfLpAiySSrJLZdgiiIVESAZivTkTdns+z4BbwLbilQeuvRIy Mzfd2tD0RoE42hwC6f7LEYL1BVZs7LuaHsiU8=
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:content-transfer-encoding; b=k1KXkwYdr9LVqlSPwvCCYI5LlIuNhfND8i7n4GOxXGq5d3QJXY0JXxy6IAV2dJspVv eLUGpa5ZdRWpQSdU0VPsyNNJMRhAOfT+k2Q8awv6fVzVdn5hI8ZQKTAeVC0NHaBaKzvL w4DVoBxnsEq5prkTEj3cVXDwmkQFWmTTiWRhY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100408212041.GQ1878@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: <s2gf4527be1004081350m38090bd0y872c582a071d952@xxxxxxxxxxxxxx> <707452.66702.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20100408212041.GQ1878@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Apr 8, 2010 at 10:20 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
> On Thu, Apr 08, 2010 at 02:14:17PM -0700, Boris Derzhavets wrote:
>>    I believe profile should look like
>>
>>    memory=512
>>    name='Gentoo-32-test'
>>    vif=['bridge=eth(x)']
>>    bootloader='/usr/bin/pygrub'
>>    disk=['file:/mnt/tb1_store/Xen
>>    VMs/Gentoo-32/Gentoo-32.sda1,xvda,w','phy:/dev/test/test,xvdb ,w']
>>    extra='gentoo=nodevfs console=xvc0'
>>
>>    It's PV domU , so xvda,xvda,.....
>>
>>    Blktap driver is not important, no "tap:aio"
>>
>
> Also I think Xen 4.0.0 needs to have "disk = [ 
> "tap:tapdisk:aio:/path/images/disk.img,xvda,w" ]" to use blktap2.

I tried that syntax but it does not work:

name='Gentoo-32-test'
vif=['bridge=eth0']
bootloader='/usr/bin/pygrub'
disk=[ "tap:tapdisk:aio:/mnt/tb1_store/Xen VMs/Gentoo-32/Gentoo-32.sda1,xvda,w"]
extra='gentoo=nodevfs console=xvc0'

Using config file "./Gentoo-32-test.cfg".
Error: [Errno 2] No such file or directory: 'aio:/mnt/tb1_store/Xen
VMs/Gentoo-32/Gentoo-32.sda1'

I changed the config back to file:/ and tried again, the xm create
process seemed to hang and the block script was stuck:


root     14152  0.0  0.0  17596  1572 ?        S<   08:43   0:00
/bin/bash /etc/xen/scripts/block add

eventually it errors  Error: Device 51712 (vbd) could not be
connected. /etc/xen/scripts/block failed; error detected.

And the remove script is also stuck:

/bin/bash /etc/xen/scripts/block remove

Andy

>
> I just created this: http://wiki.xensource.com/xenwiki/blktap2
>
> -- Pasi
>
>>    Boris.
>>
>>    Boris.
>>
>>    --- On Thu, 4/8/10, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
>>
>>      From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
>>      Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
>>      To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
>>      Cc: "xen-users List" <xen-users@xxxxxxxxxxxxxxxxxxx>
>>      Date: Thursday, April 8, 2010, 4:50 PM
>>
>>      memory=512
>>      name='Gentoo-32-test'
>>      vif=['']
>>      bootloader='/usr/bin/pygrub'
>>      disk=['file:/mnt/tb1_store/Xen
>>      VMs/Gentoo-32/Gentoo-32.sda1,sda1,w','phy:/dev/test/test,sdb1,w']
>>      extra='gentoo=nodevfs console=xvc0'
>>
>>      On Thu, Apr 8, 2010 at 7:59 PM, Boris Derzhavets
>>      <[1]bderzhavets@xxxxxxxxx> wrote:
>>
>>        Please, post your DomU's profile.
>>
>>        Boris.
>>
>>        --- On Thu, 4/8/10, Andrew Lyon <[2]andrew.lyon@xxxxxxxxx> wrote:
>>
>>          From: Andrew Lyon <[3]andrew.lyon@xxxxxxxxx>
>>          Subject: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
>>          To: "xen-users List" <[4]xen-users@xxxxxxxxxxxxxxxxxxx>
>>          Date: Thursday, April 8, 2010, 2:39 PM
>>
>>          On Thu, Apr 8, 2010 at 6:54 PM, Andrew Lyon
>>          <[5]andrew.lyon@xxxxxxxxx> wrote:
>>          > Hi,
>>          >
>>          > Ive just tried Xen 4.0 on Gentoo with 2.6.32 (also tried 2.6.31)
>>          > forward ported dom0 kernel, Xen itself seems to boot up
>>          successfully
>>          > and everything else on the system is working normally, but when I
>>          try
>>          > to start a domain xm create appears to hang and eventually I get a
>>          > hotplug scripts error:
>>          >
>>          > Error: Device 2049 (vbd) could not be connected.
>>          > /etc/xen/scripts/block failed; error detected.
>>          >
>>          > Which logs and other data would be helpful in diagnosing this
>>          problem?
>>          >
>>          > Andy
>>          >
>>
>>          Does Xen 4.0 require blktap2?
>>
>>          I've just checked the kernel config on this system and it is
>>          disabled:
>>
>>          # CONFIG_XEN_BLKDEV_TAP2 is not set
>>
>>          Andy
>>
>>          _______________________________________________
>>          Xen-users mailing list
>>          [6]Xen-users@xxxxxxxxxxxxxxxxxxx
>>          [7]http://lists.xensource.com/xen-users
>>
>>      -----Inline Attachment Follows-----
>>
>>      _______________________________________________
>>      Xen-users mailing list
>>      [8]Xen-users@xxxxxxxxxxxxxxxxxxx
>>      [9]http://lists.xensource.com/xen-users
>>
>> References
>>
>>    Visible links
>>    1. file:///mc/compose?to=bderzhavets@xxxxxxxxx
>>    2. file:///mc/compose?to=andrew.lyon@xxxxxxxxx
>>    3. file:///mc/compose?to=andrew.lyon@xxxxxxxxx
>>    4. file:///mc/compose?to=xen-users@xxxxxxxxxxxxxxxxxxx
>>    5. http://mc/compose?to=andrew.lyon@xxxxxxxxx
>>    6. http://mc/compose?to=Xen-users@xxxxxxxxxxxxxxxxxxx
>>    7. http://lists.xensource.com/xen-users
>>    8. file:///mc/compose?to=Xen-users@xxxxxxxxxxxxxxxxxxx
>>    9. http://lists.xensource.com/xen-users
>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>