Shyam Goud
2013-02-07 06:48:05 UTC
Hello,
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.
Followed these steps:
1. Copied (ServerA) VM disk image to my openstack server. Image type
shows as qcow2.
/***@oscontroller-desktop:/home/os-controller# qemu-img info disk//
//image: disk//
//file format: //*qcow2*//
//virtual size: 10G (10737418240 bytes)//
//disk size: 9.8G//
//cluster_size: 2097152//
//backing file:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda//
/
2. And added disk image to glance,
/***@oscontroller-desktop:/home/os-controller# glance image-list
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
| ID | Name | Disk Format | Container
Format | Size | Status |
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
| 1214e050-5445-49af-a35f-0f01071ae83f | ubuntu-precise-21012013 |
qcow2 | bare | 250019840 | active |
| 2f9dfb90-6a1f-4226-8cac-d85d4f6b2258 | jenkins-disk-img | qcow2
| bare | 10546577408 | active |/
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.
Followed these steps:
1. Copied (ServerA) VM disk image to my openstack server. Image type
shows as qcow2.
/***@oscontroller-desktop:/home/os-controller# qemu-img info disk//
//image: disk//
//file format: //*qcow2*//
//virtual size: 10G (10737418240 bytes)//
//disk size: 9.8G//
//cluster_size: 2097152//
//backing file:
/var/lib/nova/instances/_base/902ba3cda1883801594b6e1b452790cc53948fda//
/
2. And added disk image to glance,
/***@oscontroller-desktop:/home/os-controller# glance image-list
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
| ID | Name | Disk Format | Container
Format | Size | Status |
+--------------------------------------+-------------------------+-------------+------------------+-------------+--------+
| 1214e050-5445-49af-a35f-0f01071ae83f | ubuntu-precise-21012013 |
qcow2 | bare | 250019840 | active |
| 2f9dfb90-6a1f-4226-8cac-d85d4f6b2258 | jenkins-disk-img | qcow2
| bare | 10546577408 | active |/