[libvirt] Error starting VM as a root user, but works fine as a normal (non-root) user

Justin Clift jclift at redhat.com
Thu Sep 23 21:25:31 UTC 2010


On 09/24/2010 03:34 AM, Eric Blake wrote:
<snip>
> It looks like the attempt to execute 'path/to/qemu-system-x86_64
> -version' is failing, leaving an empty string instead of version output.
> Could this be a SELinux issue preventing the execution of a file as root
> that doesn't have proper labelling? Does an strace yield any hints?
>
>>
>> [harsh at harshbora libvirt]$ virsh create ~/testVMs/my_vm.xml
>> Domain my_vm created from /home/harsh/testVMs/my_vm.xml
>
> Particularly since the same file can be executed as non-root?

Interesting thought.  Harsh, if you're not sure how to check, maybe do
a grep for "qemu" in /var/log/audit/audit.log and see if anything
interesting turns up?




More information about the libvir-list mailing list