NetBSD Problem Report #54613

From www@netbsd.org  Fri Oct 11 14:21:52 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E4F997A170
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Oct 2019 14:21:52 +0000 (UTC)
Message-Id: <20191011142151.CADBE7A24F@mollari.NetBSD.org>
Date: Fri, 11 Oct 2019 14:21:51 +0000 (UTC)
From: rnestor@mac.com
Reply-To: rnestor@mac.com
To: gnats-bugs@NetBSD.org
Subject: libvirtd install and run issues
X-Send-Pr-Version: www-1.0

>Number:         54613
>Category:       pkg
>Synopsis:       libvirtd install and run issues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 11 14:25:00 +0000 2019
>Last-Modified:  Tue Oct 22 23:50:01 +0000 2019
>Originator:     Bob Nestor
>Release:        NetBSD 9.0/pkgsrc-2019Q3
>Organization:
>Environment:
NetBSD bandit.home.net 9.0_BETA NetBSD 9.0_BETA (GENERIC) #0: Sun Oct  6 11:20:50 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Multiple issues with libvirtd:

First, libvirtd complains when dnsmasq and dmidecode aren't installed but the libvirtd package doesn’t appear to list these as dependencies. 

Second, libvirtd appears to have problems locating its conf file which is installed in /usr/pkg/etc/libvirt/libvirtd.conf. Not sure where it looks for it, but unless the "-f" parameter is used it can't seem to find the file.  Not sure if this has implications finding the “qemu" directory that it references. (Setting log level to 1 shows it can’t locate the qemu directory.)

Third, when trying to start libvirtd with dnsmasq and dmidecode installed and specifing the conf file I get this output and libvirtd exits:

2019-10-08 12:23:31.417+0000: 138722978752512: info : libvirt version: 1.2.9
2019-10-08 12:23:31.417+0000: 138722978752512: warning : virProcessGetStartTime:918 : Process start time of pid 26760 not available on this platform
2019-10-08 12:23:31.442+0000: 138722978752512: error : virGetGroupID:1039 : invalid argument: Failed to parse group 'root'
2019-10-08 12:23:31.442+0000: 138722978752512: error : virStateInitialize:749 : Initialization of QEMU state driver failed: invalid argument: Failed to parse group 'root'
2019-10-08 12:23:31.442+0000: 138722978752512: error : daemonRunStateInit:921 : Driver state initialization failed

>How-To-Repeat:
Install libvirtd on system and try to start it
>Fix:
For first issue, install dnsmasq and dmidecode

For second issue, use the -f parameter when starting libvirtd

For the third issue, unknown - can't find any parameters in libvirtd.conf to resolve this.

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54613: libvirtd install and run issues
Date: Tue, 22 Oct 2019 23:46:20 +0000

 hi,

 > invalid argument: Failed to parse group 'root'

 I have fixed this problem in wip/libvirt.
 It will fall back to user=root group=root, and group=root does not exist
 on netbsd.

 (It remains in wip because I have trouble communicating over
 libvirt-sock. I might take a look at it eventually.)

 > Second, libvirtd appears to have problems locating its conf file which
 > is installed in /usr/pkg/etc/libvirt/libvirtd.conf

 I have not fixed this. it's using our
 CONFIGURE_ARGS+=--sysconfdir=/usr/pkg/share/examples

 As an argument for finding the config files, too.
 The file in /usr/pkg/etc is just a dead copy.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.