<p>Thank for this</p>
<p>Igor Laskovy<br>
Kiev, Ukraine</p>
<div class="gmail_quote">On Jun 8, 2012 11:20 AM, "Fredric Morenius" <<a href="mailto:fredric.morenius@ericsson.com">fredric.morenius@ericsson.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello All,<br>
<br>
An update on the use of the qemu-nbd/kpartx based solution to inject files into VM images:<br>
<br>
After some more testing it has turned out that injection into the UEC version of CirrOS (this: <a href="https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz" target="_blank">https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz</a>) works fine, but injection into the qcow2 version of the image produces the error given in the previous mail, so there seems to be robustness problems with these tools.<br>

<br>
BR Fredric<br>
<br>
-----Original Message-----<br>
From: Pádraig Brady [mailto:<a href="mailto:P@draigBrady.com">P@draigBrady.com</a>]<br>
Sent: den 30 maj 2012 18:03<br>
To: Fredric Morenius<br>
Cc: openstack; <a href="mailto:igor.laskovy@gmail.com">igor.laskovy@gmail.com</a><br>
Subject: Re: [Openstack] File injection support<br>
<br>
On 05/30/2012 03:47 PM, Fredric Morenius wrote:<br>
> Hello Pádraig,<br>
><br>
> I am also trying to get file injection to work in Essex, but have run<br>
> into some issues, as stated here:<br>
> <a href="https://answers.launchpad.net/nova/+question/198878" target="_blank">https://answers.launchpad.net/nova/+question/198878</a><br>
<br>
Igor Laskovy also had that "device-mapper: resume ioctl failed:" issue with the "qemu-nbd" on a cirros image too, though he didn't need the injection though and just avoided it.<br>
<br>
> The image I am launching is a simple bare container qcow2 image<br>
> (CirrOS, this:<br>
> <a href="https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64" target="_blank">https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64</a><br>
> -disk.img )<br>
<br>
That image is a simple single partition image, and so should not need the patch referenced below.<br>
What system are you using? If you installed libguestfs then that should be tried as a method without need for the patch below.<br>
<br>
> Would it be possible to backport this:<br>
> <a href="https://github.com/openstack/nova/commit/2b3a1e7" target="_blank">https://github.com/openstack/nova/commit/2b3a1e7</a><br>
> So that file injection as I am trying to do it will work? Or is there any other way to make it work?<br>
<br>
The backport is trivial and already done in the Fedora/EPEL Essex packages.<br>
<br>
I was thinking though that this was extra functionality and so not appropriate for the official stable branch?<br>
<br>
> ***************** NOT A CONTRIBUTION ***************** The content of<br>
> this email shall not be considered as a contribution to OpenStack<br>
<br>
:)<br>
<br>
cheers,<br>
Pádraig.<br>
</blockquote></div>