<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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>
<small><i>root@oscontroller-desktop:/home/os-controller# qemu-img
info disk</i><i><br>
</i><i>image: disk</i><i><br>
</i><i>file format: </i><i><b>qcow2</b></i><i><br>
</i><i>virtual size: 10G (10737418240 bytes)</i><i><br>
</i><i>disk size: 9.8G</i><i><br>
</i><i>cluster_size: 2097152</i><i><br>
</i><i>backing file:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda</i><i><br>
</i></small><br>
2. And added disk image to glance,<br>
<br>
<i><small>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 |</small></i><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>
<i><small>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] <b>ImageUnacceptable:
Image 2f9dfb90-6a1f-4226-8cac-d85d4f6b2258 is unacceptable:
fmt=qcow2 backed by:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda</b><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</small></i><br>
++++++++++++++++++++<br>
<br>
Thanks,<br>
Shyam.<br>
</body>
</html>