From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AGkaGKXdhGKJuAAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 13:51:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WCk+GKXdhGLXKwEA9RJhRA (envelope-from ) for ; Wed, 18 May 2022 13:51:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 18ED53B3FA for ; Wed, 18 May 2022 13:51:00 +0200 (CEST) Received: from localhost ([::1]:53862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrICh-0002Yn-Gm for larch@yhetil.org; Wed, 18 May 2022 07:50:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrI7N-00086w-HX for guix-devel@gnu.org; Wed, 18 May 2022 07:45:30 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:46293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrI7H-0005lJ-BC for guix-devel@gnu.org; Wed, 18 May 2022 07:45:28 -0400 Received: (Authenticated sender: allan@adair.no) by mail.gandi.net (Postfix) with ESMTPSA id 18E5524000C for ; Wed, 18 May 2022 11:45:03 +0000 (UTC) Message-ID: <8881f77c80bbc6fc4950ed64e2aef77f5a32c16f.camel@adair.no> Subject: libvirt: A potential problem in the package and looking for guidance From: Allan Adair To: guix-devel Content-Type: text/plain; charset="UTF-8" Date: Wed, 18 May 2022 13:43:48 +0200 MIME-Version: 1.0 User-Agent: Evolution 3.42.1 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=217.70.183.193; envelope-from=allan@adair.no; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652874661; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BdyiXVSIV4YaAl306wcwX2gguSAWkXNbStuJ7M4/tww=; b=b7JdWP68o9qEUUjAXhifn7wYfhtCrIASyGA6qYp50AunjLqcE0JI22SF+YS1PJDddp7kRt 5NFd3/xPnapUUQGt8dW5tuRu5aN3QkhphRwFOZ3apyI6yq1b5LLvSjKwIYRUbrP91KUeAm 3T2VDg6fbcnqAD9vpC8rGIosXrBiSKmh2KjFGOLKm3n4kjLgjEQ41maH2zVj1IjitUVesv 9p68cAatYdJcTGyejXY95Jj5bddSD36G629ZxrhtS2kHfQdwXIdqRb6ayNO2kGQEQ0zvZU MN3dF7HYkd/FWzniXlQ9uAkpojD2jWPIeRwTZWq778tPrOA7Vnl9Do21plp7Rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652874661; a=rsa-sha256; cv=none; b=nBMI48j6/REuSXIF1WdhL/xTZTjOWBgMoyjBAKO8xLV40HUm1Cyr7mW7kDuORwbmvUIDGp 8HFwF4iC7w4lojl0A2cs0w1jtzGzdAa5E4pV+DmcsbLI2izxkT7msU/fzUGkpnyo+q3SfR asAbqbsySdKECFmucFinxqap2IgVdfExqhSiiPNrZMeZlBJAKwwDHJsF2McazNLWfoJrsu SkBQiAE7Jz1Lq59W/ffYMo6BQZyALRWKYf2avWcrTTg0njvkru8utoQ2mo841kSIBDno1q gBmYbRdwkjEZRFkpcQ+gvq3yp1ccYS4+xTDNj7u8UFGk19IZk5z4TViT4chxdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.54 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 18ED53B3FA X-Spam-Score: -3.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: gNTxWXl2RmOC Hi Guix! I am using a libvirt-service-type in my system configuration and it seems to be working. I can launch VMs using virt-manager, for example. However I have run into a potential problem, and I think it has to do with the libvirt package. Additionally, I would like to present a plea to others on this list that perhaps someone could share their system configurations for libvirt- service-type if they use it in a similar way that I am attempting. My end goal is that I would like to be able to launch several VM guests, for them to be able to see each other through a local network, and I would like to be able to SSH from my my host to VM guests. The configuration for my service-type might be relevant here, so I will share it here. I don't think that "mdns-adv?" and "log-level" are particularly relevant to my problem, just keeping it exactly as it is defined on my system. My user is part of the "libvirt" group. (service libvirt-service-type (libvirt-configuration (unix-sock-group "libvirt") (mdns-adv? #t) (log-level 1))) I am trying to do everything through qemu://session in user space, not qemu://system. However it's not that big of a deal to use either. I just haven't gotten either to work! The first thing that I am trying to do is to SSH into a single running guest from my host, and I have so far been unsuccessful. So, the potential problem that I want to mention is that after having poked around a bit and created the default network under a qemu://system connection, a bridge device called "virbr0" is created. And then for my guest VM which runs under a qemu://session connection, it has a virtual network interface defined in XML. It was generated by the virt-manager GUI:
When I try to restart the VM with this modification, I get the following error: Error starting domain: '/usr/libexec/qemu-bridge-helper' is not a suitable bridge helper: No such file or directory Traceback (most recent call last): File "/gnu/store/s15ahi35w0i274lima3dk41a7vr3kdbn-virt-manager- 3.2.0/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/gnu/store/s15ahi35w0i274lima3dk41a7vr3kdbn-virt-manager- 3.2.0/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb callback(*args, **kwargs) File "/gnu/store/s15ahi35w0i274lima3dk41a7vr3kdbn-virt-manager- 3.2.0/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn ret = fn(self, *args, **kwargs) File "/gnu/store/s15ahi35w0i274lima3dk41a7vr3kdbn-virt-manager- 3.2.0/share/virt-manager/virtManager/object/domain.py", line 1329, in startup self._backend.create() File "/gnu/store/g2x37cxh2ag5h66f0p9zaz9pkz2vcvgg-python-libvirt- 7.9.0/lib/python3.9/site-packages/libvirt.py", line 1353, in create raise libvirtError('virDomainCreate() failed') libvirt.libvirtError: '/usr/libexec/qemu-bridge-helper' is not a suitable bridge helper: No such file or directory Because the package is searching specifically for "/usr/libexec/qemu- bridge-helper", I think this is a bug in the package definition. "/usr" should probably be a prefix from the store, right? Any comments or suggestions? Thanks in advance for a response, Allan