Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] custom QEMU permissions

$
0
0
So I have compiled a custom version of qemu to check out virgl (the stock version from repo apparently is not compiled with virgl), but when I try to edit the xml file of my VM I with virsh and save I always get

Code:

error: internal error: Failed to start QEMU binary /usr/local/bin/qemu-system-x86_64 for probing: libvirt:  error : cannot execute binary /usr/local/bin/qemu_virgl-system-x86_64: Permission denied

Failed. Try again? [y,n,i,f,?]:


I figure there are three issues

1) apparmor permissions, there are various blogs on the internet but they may be outdated

2) the compiled binaries are under $USER profile for both owner and group and maybe libvirt has no permission to run them

3) maybe there are other things


Can someone tell me what are the right steps to set up the right permission? I have added myself to the groups kvm and libvirt already and kvm have been working fine with stock install qemu from repo. My custom install is in
$HOME/opt/qemu and I have syminked $HOME/opt/qemu/binqemu-system-x86_64 to /usr/local/bin and $HOME/opt/qemu/share/qemu to /usr/local/share/

Thanks.

Ubuntu 20.04

Viewing all articles
Browse latest Browse all 4211

Trending Articles