<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Padriag, Thanks for the info<br>
<br>
But i see this issue while converting as you suggested. <br>
<br>
root@oscontroller-desktop:/home/os-controller# qemu-img convert -f
qcow2 -O qcow2 disk newdisk <br>
<small><i>qemu-img: Could not open 'disk': No such file or
directory</i><i><br>
</i><i>qemu-img: Could not open 'disk'</i></small><br>
<br>
root@oscontroller-desktop:/home/os-controller# ls -lrt disk<br>
-rw-r--r-- 1 root root 10546577408 Feb 5 21:48 disk<br>
root@oscontroller-desktop:/home/os-controller# <br>
<br>
-Shyam.<br>
<br>
On Thursday 07 February 2013 02:55 PM, Pádraig Brady wrote:<br>
</div>
<blockquote cite="mid:5113730F.4050505@draigBrady.com" type="cite">On
02/07/2013 06:48 AM, Shyam Goud wrote:
<br>
<blockquote type="cite">Hello,
<br>
<br>
I have a VM Instacne (ServerA) running on KVM hypervisor, I want
to Launch the same VM in Openstack by adding its disk image to
glance.
<br>
<br>
Followed these steps:
<br>
<br>
1. Copied (ServerA) VM disk image to my openstack server. Image
type shows as qcow2.
<br>
<br>
/root@oscontroller-desktop:/home/os-controller# qemu-img info
disk//
<br>
//image: disk//
<br>
//file format: //*qcow2*//
<br>
//virtual size: 10G (10737418240 bytes)//
<br>
//disk size: 9.8G//
<br>
//cluster_size: 2097152//
<br>
//backing file:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda//
<br>
/
<br>
2. And added disk image to glance,
<br>
<br>
/root@oscontroller-desktop:/home/os-controller# glance
image-list
<br>
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
<br>
| ID | Name | Disk Format |
Container Format | Size | Status |
<br>
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
<br>
| 1214e050-5445-49af-a35f-0f01071ae83f | ubuntu-precise-21012013
| qcow2 | bare | 250019840 | active |
<br>
| 2f9dfb90-6a1f-4226-8cac-d85d4f6b2258 | jenkins-disk-img |
qcow2 | bare | 10546577408 | active |/
<br>
<br>
3. But While Launching the VM in Openstack, State goes to Error.
<br>
<br>
From nova-compute logs, i see the image is unacceptable Error.
Do i need convert the KVM VM image to different type ? Plz let
me know is there any other ways of doing it.
<br>
<br>
++++++++++++++++++++
<br>
/2013-02-06 21:29:50 TRACE nova.compute.manager [instance:
8ac2b752-cc56-4ee6-9247-5a19f5308c3c] reason=_("fmt=%(fmt)s
backed by: %(backing_file)s") % locals())
<br>
2013-02-06 21:29:50 TRACE nova.compute.manager [instance:
8ac2b752-cc56-4ee6-9247-5a19f5308c3c] *ImageUnacceptable: Image
2f9dfb90-6a1f-4226-8cac-d85d4f6b2258 is unacceptable: fmt=qcow2
backed by:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda*
<br>
2013-02-06 21:29:50 TRACE nova.compute.manager [instance:
8ac2b752-cc56-4ee6-9247-5a19f5308c3c]
<br>
2013-02-06 21:29:50 DEBUG nova.utils
[req-9c89ddb8-d71a-4d6f-b195-5deea24c7c92
584093aecc7c433985029b31e4d480f9
5e2050ba95674ddfaa9e286d0e481830] Got semaphore
"compute_resources" for method "abort_resource_claim"... from
(pid=13756) inner
/usr/lib/python2.7/dist-packages/nova/utils.py:713/
<br>
++++++++++++++++++++
<br>
</blockquote>
<br>
The reason is that the image isn't complete and needs a backing
file.
<br>
We disallow these explicitly for security reasons (consider a
backing
<br>
file reference to the host disk).
<br>
<br>
So to create a compatible image I suggest, before importing to
glance,
<br>
use qemu-img convert to merge the backing file like:
<br>
<br>
qemu-img convert -f qcow2 -O qcow2 disk newdisk
<br>
<br>
thanks,
<br>
Pádraig.
<br>
</blockquote>
<br>
</body>
</html>