Running a Centos 7 virtual host, I am trying to set VirtIO drive settings "detect_zeroes" and "discard" to "unmap" values.
I have been able to do that on my test machine running Debian 10 without any issue, from the virt-manager interface.
However, on my CentOS 7 server, the option isn't available from the virt-manager interface.
I couldn't explain this, especially since libvirt and qemu version both seems more up to date on CentOS 7 than Debian 10.
I went ahead and edited the VM's config with virsh like follows:
Code: Select all
<driver name='qemu' type='raw' cache='none' io='native' discard='unmap' detect_zeroes='unmap'/>
Code: Select all
Error starting domain: unsupported configuration: detect_zeroes is not supported by this QEMU binary
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1506, in startup
self._backend.create()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1080, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: unsupported configuration: detect_zeroes is not supported by this QEMU binary
Code: Select all
discard='unmap'
Code: Select all
detect_zeroes='unmap'
I tried "qcow2" disk image format but it doesn't seem to add these settings neither to the virt-manager interface.
Installed packages:
Code: Select all
# yum list installed | grep "libvirt\|qemu"
ipxe-roms-qemu.noarch 20180825-3.git133f4c.el7 @base
libvirt.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-bash-completion.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-client.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-config-network.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-config-nwfilter.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-interface.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-lxc.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-network.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-nodedev.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-nwfilter.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-qemu.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-secret.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-storage.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-daemon-driver-storage-core.x86_64
libvirt-daemon-driver-storage-disk.x86_64
libvirt-daemon-driver-storage-gluster.x86_64
libvirt-daemon-driver-storage-iscsi.x86_64
libvirt-daemon-driver-storage-logical.x86_64
libvirt-daemon-driver-storage-mpath.x86_64
libvirt-daemon-driver-storage-rbd.x86_64
libvirt-daemon-driver-storage-scsi.x86_64
libvirt-daemon-kvm.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-glib.x86_64 1.0.0-1.el7 @anaconda
libvirt-libs.x86_64 4.5.0-36.el7_9.5 @updates
libvirt-python.x86_64 4.5.0-1.el7 @base
qemu-img.x86_64 10:1.5.3-175.el7_9.4 @updates
qemu-kvm.x86_64 10:1.5.3-175.el7_9.4 @updates
qemu-kvm-common.x86_64 10:1.5.3-175.el7_9.4 @updates
Maybe a missing package? Or something else?
I don't know what to look for at this point. Any help would be appreciated.
Thank you