Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#768000: libvirt-daemon does not create user libvirt-qemu

2,054 views
Skip to first unread message

Heinrich Schuchardt

unread,
Nov 3, 2014, 7:20:03 PM11/3/14
to
Package: libvirt-daemon
Version: 1.2.9-3
Severity: important

Dear Maintainer,

sudo libvirtd

results in

2014-11-03 23:09:18.753+0000: 6885: info : libvirt version: 1.2.9,
package: 3 (root 2014-10-14-16:53:26 bogon)
2014-11-03 23:09:18.753+0000: 6885: error : virGetUserID:955 : invalid
argument: Failed to parse user 'libvirt-qemu'
2014-11-03 23:09:18.753+0000: 6885: error : virStateInitialize:749 :
Initialization of QEMU state driver failed: invalid argument: Failed to
parse user 'libvirt-qemu'
2014-11-03 23:09:18.753+0000: 6885: error : daemonRunStateInit:921 :
Driver state initialization failed

Installation of package libvirt-daemon did not create user libvirt-quemu.

Best regards

Heinrich Schuchardt

-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-daemon depends on:
ii libapparmor1 2.9.0-1
ii libaudit1 1:2.4-1
ii libavahi-client3 0.6.31-4
ii libavahi-common3 0.6.31-4
ii libblkid1 2.25.1-5
ii libc6 2.19-12
ii libcap-ng0 0.7.4-2
ii libdbus-1-3 1.8.8-2
ii libdevmapper1.02.1 2:1.02.90-2
ii libfuse2 2.9.3-15
ii libgnutls-deb0-28 3.3.8-3
ii libnetcf1 1:0.2.3-4.1
ii libnl-3-200 3.2.24-2
ii libnl-route-3-200 3.2.24-2
ii libnuma1 2.0.10-1
ii libparted2 3.2-6
ii libpcap0.8 1.6.2-2
ii libpciaccess0 0.13.2-3
ii librados2 0.80.7-1
ii librbd1 0.80.7-1
ii libsasl2-2 2.1.26.dfsg1-12
ii libselinux1 2.3-2
ii libssh2-1 1.4.3-4
ii libsystemd0 215-5+b1
ii libudev1 215-5+b1
ii libvirt0 1.2.9-3
ii libxen-4.4 4.4.1-3
ii libxenstore3.0 4.4.1-3
ii libxml2 2.9.1+dfsg1-4
ii libyajl2 2.1.0-2

Versions of packages libvirt-daemon recommends:
ii libxml2-utils 2.9.1+dfsg1-4
ii netcat-openbsd 1.105-7
ii qemu-kvm 2.1+dfsg-5+b1

libvirt-daemon suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Matti Palmström

unread,
Nov 3, 2014, 9:50:02 PM11/3/14
to
Furthermore the groups libvirt-qemu, libvirt, and libvirtd aren't
created. And most of the files under /etc/libvirt is missing.

This happens both on a system running systemd or sysvinit.

The user and groups are created if libvirt-daemon-system is installed.

Semi-fix:
Create the user libvirt-qemu.
Create the groups libvirt-qemu, libvirt, and libvirtd.
Add the user libvirt-qemu to the group libvirt-qemu.

Regards
/M

Guido Günther

unread,
Nov 4, 2014, 1:30:03 AM11/4/14
to
tags 768000 +moreinfo
thanks

On Tue, Nov 04, 2014 at 01:15:52AM +0100, Heinrich Schuchardt wrote:
> Package: libvirt-daemon
> Version: 1.2.9-3
> Severity: important
>
> Dear Maintainer,
>
> sudo libvirtd

You're running in privilged mode, this requires
libvirt-daemon-system. You need to run in session mode if you want to
do without libvirt-daemon-system (and the user shipped by it).

> results in
>
> 2014-11-03 23:09:18.753+0000: 6885: info : libvirt version: 1.2.9, package:
> 3 (root 2014-10-14-16:53:26 bogon)
> 2014-11-03 23:09:18.753+0000: 6885: error : virGetUserID:955 : invalid
> argument: Failed to parse user 'libvirt-qemu'
> 2014-11-03 23:09:18.753+0000: 6885: error : virStateInitialize:749 :
> Initialization of QEMU state driver failed: invalid argument: Failed to
> parse user 'libvirt-qemu'
> 2014-11-03 23:09:18.753+0000: 6885: error : daemonRunStateInit:921 : Driver
> state initialization failed
>
> Installation of package libvirt-daemon did not create user libvirt-quemu.

Because it shouldn't. The user is only needed when running the daemon
as root and this is what libvirt-daemon-system is for. It will then
also ship the necessary configs in etc. So I don't see a bug here.

Cheers,
-- Guido

Heinrich Schuchardt

unread,
Nov 4, 2014, 2:30:04 PM11/4/14
to
Thank you Guido for referring to package libvirt-daemon-system.

The reason why I tried to start libvirtd manually was because
virt-manager would not run.

With libvirt-daemon-system installed my problem has gone.

So should package virt-manager depend on libvirt-daemon-system instead
of libvirt-daemon?

Best regards

Heinrich Schuchardt
0 new messages