[Openstack] QEMU Error

Aaron Rosen arosen at nicira.com
Mon Oct 22 18:09:19 UTC 2012


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 <ak_misc at hotmail.com> 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     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>




More information about the Openstack mailing list