The following should do the trick for you in order to create a new disk and boot an iso using it :
IMAGE=centos-6.2.img qemu-img create -f raw $IMAGE 5G sudo kvm -hda $IMAGE -m 512 -smp 2 -cdrom centos_installer.iso -boot c Aaron On Mon, Oct 22, 2012 at 8:36 AM, AK Sathiya <[email protected]> wrote: > All, i am a newbi to the openstack. I am trying to create a QCOW2 image from > a Centos Linux installation iso and ran into the a road block. This is what > I did so far (just followed the admin manual for Openstack). > > IMAGE=centos-6.2.img > $ qemu-img create -f raw $IMAGE 5G > > VNCDISPLAY=:2 > $ MONITOR=/tmp/file.mon > $ sudo /usr/libexec/qemu-kvm -m 1024 -drive file=${IMAGE},if=virtio,index=0 > \ > -boot c -net nic -net user -nographic -vnc ${VNCDISPLAY} \ > -monitor unix:${MONITOR},server,nowait > > I have the distribution iso on the local directory of the user. > > I got the following error. what am i missing here? > > qemu-kvm: -drive file=centos-6.2.img,if=virtio,index=0: could not open disk > image centos-6.2.img:Operation not supported > > Any help is appreciated. > > AK > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : [email protected] > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

