Editing Config Files

Use your favorite text editor to make the following changes to:

/etc/libvirt/qemu.conf

Security - uncomment the following line of code and change the value:

security_default_confined = 0

Add these lines to the bottom of the file:

cgroup_device_acl = [
    "/dev/null", "/dev/full", "/dev/zero",
    "/dev/random", "/dev/urandom",
    "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
    "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio",
    # Your devices go here
]

clear_emulator_capabilities = 0

Inside cgroup_device_acl, add the paths to your keyboard and mouse.

Sample configuration:

cgroup_device_acl = [
	"/dev/null", "/dev/full", "/dev/zero",
	"/dev/random", "/dev/urandom",
	"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
	"/dev/rtc","/dev/hpet", "/dev/vfio/vfio",
    # Your devices go here
	"/dev/input/by-id/usb-30fa_USB_Optical_Mouse-event-mouse",
	"/dev/input/by-id/usb-EVGA_Z12_Gaming_Keyboard-event-kbd",
]

clear_emulator_capabilities = 0

Save the file, then restart the libvirtd service.

systemctl restart libvirtd

You can now continue to the next page.


DarwinKVM Docs Version 2.0.0~prerelease
Copyright © 2024 RoyalGraphX. Distributed by a BSD 3-Clause License.
Last Modified: Sat, 7 Sep 2024 18:00:00 CDT