I was configuring kvm on my laptop which has ubuntu 14.04 as the host OS. I added a Fedora guest OS using the virt-manager and it worked fine.
However, after I rebooted the virtual machine, the guest OS is not coming up. It gives me an error as,
Booting from hard disk Boot failed: not a bootable disk No bootable device
When I searched for this error, the solutions suggested changing the xml configuration file of my guest OS. I tried changing the xml configuration file using the command
virsh edit ramesh-guest but no luck.
This is my xml configuration file.
<disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/ramesh-guest.img'/> <target dev='hda' bus='virtio'/>
I also tried changing the storage type as suggested here but to no luck.
I see the available storage types as,
However, if I set the storage type as something other than raw, I get the error as,
Error starting domain: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/var/lib/libvirt/images/ramesh-guest.img,if=none,id=drive-virtio-disk0,format=qcow2: could not open disk image /var/lib/libvirt/images/ramesh-guest.img: Image is not in qcow2 format
I installed the Fedora guest OS into my KVM using the network installation method and I got the image from here.