Here are some quick tips on creating an OpenStack Glance image based on CentOS. There is a collection of good in-depth how-to’s on the internet, therefore will not be duplicating it here.
Create a raw image to install OS into:
# kvm-img create -f raw vvl-centos6_4.img 15G
Install the OS (note, this is recommended to be done inside a GNOME desktop where KVM is installed:
# kvm -m 2048 -cdrom <centos ISO> -drive file=vvl-centos6_4.img.img,if=virtio -net nic,model=virtio -net user
Then choose to install the Operating System. Once it is installed, add it to glance image manager:
#glance image-create –name VVL-CENTOS64 –is-public true –container-format ovf –disk-format ovf qcow2 < /dir/of/vvl-centos6_4.img
Leave A Reply