On 01/15/2014 09:05 AM, Karoline Haus wrote:
I have trouble starting a VM using virsh start $vm. I do this as
root, because
as non-root user it did not work at all (especially it failed attaching to the
networks).
Non-root virsh connects to qemu:///session by default, which spawns an
unprivileged daemon instead of using the system one, see
http://libvirt.org/uri.html#URI_qemu
So, when I run the command (with sudo), I get the following error
in libvirtd.log:
2014-01-15 07:51:00.423+0000: 16158: warning : qemuDomainObjTaint:1573 :
Domain id=5 name='vader' uuid=f5b8c05b-9c7a-3211-49b9-2bd635f7e2aa is tainted:
high-privileges
2014-01-15 07:51:00.428+0000: 16158: error : virDBusCallMethod:1173 : Launch
helper exited with unknown return code 1
At the same time I get an error in /var/log/messages which seems related:
Jan 15 07:51:00 dbus[15845]: [system] Activating service
name='org.freedesktop.machine1' (using servicehelper)
Jan 15 07:51:00 dbus[15845]: [system] Activated service
'org.freedesktop.machine1' failed: Launch helper exited with unknown return code
1
It seems this is the error that happens when systemd is not the init [1].
Libvirt only tries to use systemd for creating cgroups for the VM if the
'org.freedesktop.machine1' service is present, otherwise it falls back to the
manual way of creating them.
Jan
[1]
https://bugs.freedesktop.org/show_bug.cgi?id=69962