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] change file: to tap:aio

To: Tait Clarridge <tait@xxxxxxxxxx>
Subject: Re: [Xen-users] change file: to tap:aio
From: Sebastian Biedermann <biedermann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Sep 2011 17:12:00 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Sep 2011 08:13:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1315925552.12119.1.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <4E6F6BC7.2020207@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1315925552.12119.1.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
On Tue, 2011-09-13 at 16:42 +0200, Sebastian Biedermann wrote:
Dear List,

I try to start a guest instance on hardware node-2 and the image is
located on hardware node-1.
The plan is to do live migration between the two nodes in later steps.
For this, I configured a NFS server on node-1 dom0 which provides the
image and I mount the filesytem on dom0 node-2.

I found out, that booting the instance remotley on node-2 using

disk = ['file:/xen/XenGuest1.img,xvda1,w', 'file:/xen/XenGuest1.swap,xvda2,w']

in the cfg file is not working, because I have to use 'tap:aio:' instead
of 'file:'

I can boot the instance locally on node-1 using the 'file:'
configuration, but not remotely on node-2.
If I do, I get the error during the boot process on node-2: 'Device
51714 (vbd) could not be connected losetup /dev/loop  failed'
I was not able to find out what is going on there or to fix this (there
are enough free loop devices).

Accordingly, I changed the cfg file to:

disk = ['tap:aio:/xen/XenGuest1.img,xvda1,w', 
'tap:aio:/xen/XenGuest1.swap,xvda2,w']

But now, I cannot boot it locally and also not remotley. The boot
process hangs with the Error:

XENBUS: Waiting for devices to initialise: 295s...

Can anyone please give me advice?
Thank you!!!

Try adding the following to /etc/modprobe.conf :

options loop max_loop=256




Unfortunately, this is not working. I increased the number of loop devices, I get the same error on node-2:

toor@node-2:/xen$ sudo mount 192.168.0.2:/xen /xen
toor@node-2:/$ cd /xen
toor@node-2:/xen$ ls
disk.img  my.lenny.cfg  swap.img
toor@node-2:/xen$ sudo xm create my.lenny.cfg -c
Using config file "./my.lenny.cfg".
toor@node-2:/xen$ Error: Device 51714 (vbd) could not be connected. losetup /dev/loop0 /xen/disk.img failed


--
Se


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