[Openstack-operators] Creating image from running VM

Abel Lopez alopgeek at gmail.com
Mon Dec 17 16:20:33 UTC 2012


I might try coping the /boot partition onto /newboot, umount /boot, mv /newboot /boot,
then edit fstab accordingly, then you can try something like 'qemu-img convert -O raw' to make your VM into raw format, then you should be able to add it to glance and boot it in openstack.

On Dec 17, 2012, at 7:15 AM, Alexandra Kisin wrote:

> 
> Hello guys.
> 
> I have a running VM which is not running on Openstack environment. I want
> to create an image from this VM (which is installed with CentOS 6.2) and
> register it as a basic image in Openstack environment.
> The problem is that this VM was installed with following partitions:
>  Device Boot      Start         End      Blocks   Id  System
> /dev/vda1   *           3        1018      512000   83  Linux
> /dev/vda2            1018       20806     9972736   8e  Linux LVM
> 
> There is a /boot partition and 2 Logical volumes lv_root and lv_swap which
> are mapped to /root fs and swap.
> I've tried to get rid of /boot and swap partitions but the new created
> image was not bootable.
> 
> Please advise what is the best way to convert this VM to OpenStack format.
> 
> Thank you.
> 
> Alexandra Kisin
> Servers & Network group, IBM R&D Labs in Israel
> Unix & Virtualization Team
> 
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators




More information about the OpenStack-operators mailing list