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:
<domain type='kvm'> <name>demovm</name> <uuid>4a9b3f53-fa2a-47f3-a757-dd87720d9d1d</uuid> <memory unit='KiB'>4194304</memory> <currentMemory unit='KiB'>4194304</currentMemory> <memoryBacking> <hugepages> <page size='2' unit='M' nodeset='0'/> </hugepages> </memoryBacking> <vcpu placement='static'>2</vcpu> <cputune> <shares>4096</shares> <vcpupin vcpu='0' cpuset='4'/> <vcpupin vcpu='1' cpuset='5'/> <emulatorpin cpuset='4,5'/> </cputune> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-model'> <model fallback='allow'/> <topology sockets='2' cores='1' threads='1'/> <numa> <cell id='0' cpus='0-1' memory='4194304' unit='KiB' memAccess='shared'/> </numa> </cpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/root/cirros-0.3.5-x86_64-disk.img'/> <target dev='vda' bus='virtio'/> </disk> <disk type='dir' device='disk'> <driver name='qemu' type='fat'/> <source dir='/usr/src/dpdk-stable-16.11.1'/> <target dev='vdb' bus='virtio'/> <readonly/> </disk> <interface type='vhostuser'> <mac address='00:00:00:00:00:01'/> <source type='unix' path='/var/run/openvswitch/dpdkvhostuser0' mode='client'/> <model type='virtio'/> <driver queues='2'> <host mrg_rxbuf='off'/> </driver> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> </devices> </domain>
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=fat:/usr/src/dpdk-stable-16.11.1,if=none,id=drive-virtio-disk1,readonly=on: Driver 'vvfat' is not whitelisted
If I comment the disk that cause this error, the instance starts without error. Is there a way to whitelist this vvfat driver to instance this VM?
And the strange thing about this error is that when I check the available drives, there is vvfat in the list:
/usr/libexec/qemu-kvm -drive format=? Supported formats: ftps http null-aio null-co file quorum blkverify vvfat blkreplay qed raw qcow2 bochs dmg vmdk parallels vhdx vpc https sheepdog host_cdrom ssh host_device nbd gluster qcow iscsi rbd tftp ftp vdi blkdebug luks cloop
Here some information about the environment:
cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
virsh --version 2.0.0
/usr/libexec/qemu-kvm --version QEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), Copyright (c) 2003-2008 Fabrice Bellard
Thanks in advance for the help
Marco Aurelio Gomes NCC - UNESP
On 04/19/2017 10:00 AM, Marco Aurelio L. Gomes wrote:
Hi,
I'm using virsh to instance a VM in my environment, but I'm running on some issues.
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=fat:/usr/src/dpdk-stable-16.11.1,if=none,id=drive-virtio-disk1,readonly=on: Driver 'vvfat' is not whitelisted
If I comment the disk that cause this error, the instance starts without error. Is there a way to whitelist this vvfat driver to instance this VM?
And the strange thing about this error is that when I check the available drives, there is vvfat in the list:
/usr/libexec/qemu-kvm -drive format=? Supported formats: ftps http null-aio null-co file quorum blkverify vvfat blkreplay qed raw qcow2 bochs dmg vmdk parallels vhdx vpc https sheepdog host_cdrom ssh host_device nbd gluster qcow iscsi rbd tftp ftp vdi blkdebug luks cloop
Here some information about the environment:
cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
virsh --version 2.0.0
/usr/libexec/qemu-kvm --version QEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), Copyright (c) 2003-2008 Fabrice Bellard
Thanks in advance for the help
If you look here:
https://rwmj.wordpress.com/2015/09/25/virt-v2v-libguestfs-and-qemu-remote-dr...
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/976a86fff9adb9a2a6968b9f73fe9a61526...
--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.
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
On 2017-04-19 13:52, Johnny Hughes wrote:
On 04/19/2017 10:00 AM, Marco Aurelio L. Gomes wrote:
Hi,
I'm using virsh to instance a VM in my environment, but I'm running on some issues.
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=fat:/usr/src/dpdk-stable-16.11.1,if=none,id=drive-virtio-disk1,readonly=on: Driver 'vvfat' is not whitelisted
If I comment the disk that cause this error, the instance starts without error. Is there a way to whitelist this vvfat driver to instance this VM?
And the strange thing about this error is that when I check the available drives, there is vvfat in the list:
/usr/libexec/qemu-kvm -drive format=? Supported formats: ftps http null-aio null-co file quorum blkverify vvfat blkreplay qed raw qcow2 bochs dmg vmdk parallels vhdx vpc https sheepdog host_cdrom ssh host_device nbd gluster qcow iscsi rbd tftp ftp vdi blkdebug luks cloop
Here some information about the environment:
cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
virsh --version 2.0.0
/usr/libexec/qemu-kvm --version QEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), Copyright (c) 2003-2008 Fabrice Bellard
Thanks in advance for the help
If you look here:
https://rwmj.wordpress.com/2015/09/25/virt-v2v-libguestfs-and-qemu-remote-dr...
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/976a86fff9adb9a2a6968b9f73fe9a61526...
--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.
CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt