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-devel

Re: [Xen-devel]xl create PV guest with qcow/qcow2 disk images fail

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel]xl create PV guest with qcow/qcow2 disk images fail
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Wed, 19 Oct 2011 11:55:24 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Chun Yan Liu <cyliu@xxxxxxxx>
Delivery-date: Wed, 19 Oct 2011 03:56:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1110191148580.3519@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4E988CC30200006600005222@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1110191148580.3519@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Wed, 19 Oct 2011, Stefano Stabellini wrote:
> On Fri, 14 Oct 2011, Chun Yan Liu wrote:
> > Hi, List,
> > 
> > I'm trying xl create a pv guest with qcow/qcow2 image, it always fails at 
> > libxl_device_disk_local_attach.
> > #xl create pv_config_file
> > libxl: error: libxl.c:1119:libxl_device_disk_local_attach: cannot locally 
> > attach a qdisk image if the format is not raw
> > libxl: error: libxl_create.c:467:do_domain_create: failed to run 
> > bootloader: -3
> > 
> > disk configuration is:
> > disk=[ 'tap:qcow2:/var/lib/xen/images/sles11pv/disk0.qcow2,xvda,w', ]
> > 
> > Is there any way to make it work?
> 
> This is a PV guest configured with pygrub, correct?
> If so, qcow/qcow2 are not supported in this scenario.
> 
> You could:
> 
> - avoid using pygrub (specify the kernel manually) and keep using qcow/qcow2;
> - switch to raw disks and keep using pygrub;
> - install a Linux kernel that support blktap2 (like the XCP kernel, see
>   http://wiki.xen.org/xenwiki/XenDom0Kernels) and switch to VHD format.
> 

The way to make it work would be to call qemu-nbd and nbd-client from xl
so that a /dev/nbd0 comes up in dom0 and pygrub can use it to extract
the kernel and initrd from the qcow2 image.

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