← Back to team overview

openstack team mailing list archive

Re: QEMU Error

 

Thanks Aaron, i have only qemu-kvm not kvm. The issue was the image type is qcow2. When I changed it to the following I got pass that issue.
 
qemu-image create -f qcow2 $IMAGE 5 G
 
Howerve, I am not getting ISOLINUX 4.02 2010-07-21 ETCD Copyright (C) 1994-2010 H. Peter Anvin et alÿ. 
 
I have tried to boot with the same ISO on a different VM and it worked fined.
 
Not sure why. any ideas.
 
AK
 
 

> Date: Mon, 22 Oct 2012 11:09:19 -0700
> Subject: Re: [Openstack] QEMU Error
> From: arosen@xxxxxxxxxx
> To: ak_misc@xxxxxxxxxxx
> CC: openstack@xxxxxxxxxxxxxxxxxxx
> 
> 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@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~openstack
> > More help : https://help.launchpad.net/ListHelp
> >
 		 	   		  

Follow ups

References