Hi Peter, Sorry for the incomplete description of the issue, we are working on a virtualization use case and trying to automate the VM creation and management using libvirt-python.
Since Libvirt is basically XML oriented, we wanted to convert the existing tested QEMU commands into Libvirt XML for VM management. Below is the QEMU command – its SRIOV based GPU pass-thru in our system with KVM hypervisor
Libvirt XML (Memory backing added)
When we check the Libvirt logs, we noticed that converted XML to QEMU args are almost similar to the original
Our goal is to have GTK window enabled using libvirt-Python API, and we are seeing below issues with the lIbvirt but same commands working thgrough QEMU args.
I assume there must be some security policies set at the Libvirt side to access the OpenGL , please help us to resolve it . Thanks, Shiv -----Original Message----- On Thu, Jan 27, 2022 at 04:05:19 +0000, M, Shivakumar wrote: > Hello, Hi, note that there's no need to CC both libvir-list and libvirt-users maling lists. > > > For our use-case with Libvirt we want to create the Memory backend
> object , > > Expected QEMU args would be > -object memory-backend-memfd,id=mem1,size=4096M Your description is a bit vague. Do you want to use it to back the guest memory? As by itself a memory object itself is useless without being attached somewhere In case you want to configure qemu to back the default memory of the VM by a memfd: Per
https://www.libvirt.org/formatdomain.html#memory-backing <domain type='kvm'> ... <memoryBacking> <source type='memfd'/> </memoryBacking> ... </domain> Results into invoking qemu with: -machine pc-i440fx-2.9,usb=off,vmport=off,dump-guest-core=off,memory-backend=pc.ram \ ... -object '{"qom-type":"memory-backend-memfd","id":"pc.ram","x-use-canonical-path-for-ramblock-id":false,"size":1048576000,"host-nodes":[0],"policy":"bind"}' \ > > Request you to please help us to specify this arg in the libvirt XML. > > Thanks, > Shiv |