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>, Andrew Lyon <andrew.lyon@xxxxxxxxx>
Subject: Re: [Xen-users] Re: Xen 4.0 on gentoo hotplug scripts problem?
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Fri, 9 Apr 2010 04:44:54 -0700 (PDT)
Cc: xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Apr 2010 04:46:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1270813494; bh=xk1VzcbqXgv1jLyVNDhCPqTpOAkAU+//HClmKGoys10=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=2fYduWHXnQyMG6edYFzBL4X6YKKP3YUbzW4ayaBddg+6sT4VqmEoUz2G3Pi6X73SFzSGa4LouVfm8mURVQZjvvUBh7C+MA79ZAR3Cl+7/sgs7VUm3KhLBGIUaX8AROp2zutrrcxxsP5XMGXU0qaHh0IcWvVul4+o1rtnAozlE7g=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=MVsGDYKDkIxs767128fbiB+T3TYOP+dbKrQbm3dEVfPsQmD73GQqDz4NqoYlxBUtKUnMtoHCyVmr6s5G1FqEJpKf0Rl22VD9ywNuxp6rJr3KA0j6hKwfr9EAdE1EpdIvlN94TK/YKy2Na4jQeR9vNP4ffNHLV0OqlfzxLGzk9sY=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <g2zf4527be1004090121i464d2a9cnda9fcfee2410922a@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Does this profile work ?


  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'

Boris.
--- On Fri, 4/9/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: "Pasi Kärkkäinen" <pasik@xxxxxx>
Cc: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>, "xen-users List" <xen-users@xxxxxxxxxxxxxxxxxxx>
Date: Friday, April 9, 2010, 4:21 AM

On Fri, Apr 9, 2010 at 9:15 AM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
> On Fri, Apr 9, 2010 at 9:10 AM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
>> On Fri, Apr 09, 2010 at 08:45:44AM +0100, Andrew Lyon wrote:
>>> 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'
>>>
>>
>> Hmm.. that's weird. The blktap2 syntax is correct based on the latest blktap2 README here:
>> http://lxr.xensource.com/lxr/source/tools/blktap2/README
>>
>>> I changed the config back to file:/ and tried again, the xm create
>>> process seemed to hang and the block script was stuck:
>>>
>>
>> Ok, so you have some general problem, not really blktap2 related..
>>
>>>
>>> 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
>>>
>>
>> Did you install Xen 4.0.0 over some old version?
>>
>> Did you remove the old version first? Maybe your 4.0.0 is not completely/properly installed..
>
> I will try removing Xen first, including all of /etc/xen/
>
> Andy
>
>>
>> Pasi
>>
>>
>

I think you are onto something, after completely removing Xen I cannot
compile 4.0:

Wl,-O1          -L../../tools/libxc -lxenctrl    -L../../tools/libxc
-lxenctrl          -o libvhd.so.1.0.0 -luuid libvhd.o libvhd-journal.o
vhd-util-coalesce.o vhd-util-create.o vhd-util-fill.o
vhd-util-modify.o vhd-util-query.o vhd-util-read.o vhd-util-repair.o
vhd-util-resize.o vhd-util-revert.o vhd-util-set-field.o
vhd-util-snapshot.o vhd-util-scan.o vhd-util-check.o relative-path.o
atomicio.o ../../lvm/lvm-util.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lxenctrl
collect2: ld returned 1 exit status
make[6]: *** [libvhd.a] Error 1
make[6]: Leaving directory
`/var/tmp/portage/app-emulation/xen-tools-4.0.0/work/xen-4.0.0/tools/blktap2/vhd/lib'
make[5]: *** [subdir-all-lib] Error 2

Which makes me think that some part of 4.0 was compiled against 3.4.2...

Andy

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>