Virsh Error: Driver Is Not Whitelisted
Hi,
I’m using virsh to instance a VM in my environment, but I’m running on some issues. I created the following domain file:
When I run:
virsh create domain.xml
I got the following error:
error: Failed to create domain from domain.xml error: internal error: qemu unexpectedly closed the monitor:
2017-04-17T17:00:37.012369Z qemu-kvm: -drive file
2 thoughts on - Virsh Error: Driver Is Not Whitelisted
–8EFSiM09qrXHk3LFs1bevnBdwiSnS9knb Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
If you look here:
https://rwmj.wordpress.com/2015/09/25/virt-v2v-libguestfs-and-qemu-remote-drivers-in-rhel-7/
The things supported by qemu-img and qemu are not necessarily the same.
If you look at the last qemu-kvm.spec file, you can see what is set to rw and ro:
https://git.CentOS.org/raw/rpms!qemu-kvm/976a86fff9adb9a2a6968b9f73fe9a615266f59b/SPECS!qemu-kvm.spec
–block-drv-rw-whitelist=qcow2,raw,file,host_device,blkdebug,nbd,iscsi,gluster,rbd
–block-drv-ro-whitelist=vmdk,vhdx,vpc,ssh,https
So, those listed files are the only ones that will work.
You would need to recompile the qemu-kvm RPMs after modifying those whitelist lines in the spec file if you want to add things to the whitelist.
–8EFSiM09qrXHk3LFs1bevnBdwiSnS9knb
Hi,
As you suggested, I build the qemu-kvm-ev package from the SRPM, modify the configure script to include the vvfat driver to the whitelist, install the new binaries and now the instance could start.
Thanks for your help!
Marco Gomes NCC – UNESP