[libvirt-users] virsh confirmed edits do not persist

Ján Tomko jtomko at redhat.com
Thu Feb 21 13:47:49 UTC 2019


[please don't top-post on technical lists]

On Thu, Feb 21, 2019 at 08:16:33AM -0500, Josh Mcneil wrote:
>Thanks Ján!
>
>>What were the exact changes you were trying to make?
>
>I was following this guide:
>https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Passing_keyboard/mouse_via_Evdev
>
>Specifically, I was updating the domain tag to include `xmlns:qemu='
>http://libvirt.org/schemas/domain/qemu/1.0'`
>

https://libvirt.org/drvqemu.html#qemucommand
That is used to allow (unsupported) passing of arbitrary arguments to
QEMU, but the xmlns= line on its own does not do anything.
You need to add the actual <qemu:...> elements. The snippet in the wiki
you linked does not show that it belongs between </devices> and
</domain>.

Note that libvirt does support evdev passthrough via virtio-input
(the virtio-input-host QEMU device), which saves you from setting up the
permissions and cgroup acl manually, but requires virtio drivers in the
guest and won't give up control of the evdev while the guest is running.

Jano

>>both call virDomainDefineXMLFlags under the hood.
>
>That is good to know, thanks for the explanation.
>
>I appreciate the help, if you have any suggestions I'm happy to hear them
>
>Josh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190221/ba7d56fc/attachment.sig>


More information about the libvirt-users mailing list