From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MAxDF5kSdGSVzQAASxT56A (envelope-from ) for ; Mon, 29 May 2023 04:48:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sA8+FpkSdGS9iAAAG6o9tA (envelope-from ) for ; Mon, 29 May 2023 04:48:57 +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 068E93EB6B for ; Mon, 29 May 2023 04:48:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Svs-0004Ma-Kv; Sun, 28 May 2023 22:48:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Svo-0004MH-Mj for help-guix@gnu.org; Sun, 28 May 2023 22:48:24 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Svm-0002jJ-9L for help-guix@gnu.org; Sun, 28 May 2023 22:48:24 -0400 X-GND-Sasl: contact@robbyzambito.me Received: by mail.gandi.net (Postfix) with ESMTPSA id E279D1BF203 for ; Mon, 29 May 2023 02:48:16 +0000 (UTC) User-agent: mu4e 1.10.2; emacs 28.2 From: Robby Zambito To: help-guix@gnu.org Subject: Cannot run virt-manager as my user Date: Sun, 28 May 2023 22:35:32 -0400 Message-ID: <87a5xndf9t.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=contact@robbyzambito.me; helo=relay8-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, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685328537; a=rsa-sha256; cv=none; b=atKiwWxcVtFfXERXaiocTSEEFRwr6C3S2WOVy7p91rFj3I76zcZf6ziGdyr5y5g+iQmgU9 GfegxNQ1wPm6m+ujXHNgO3TcnbdRzqB8NdLRMN4yRuq4dyoE6iTNxLd4Qyo4llZl+zshKy pmhkvPpJ8ujnlTXM3dxazH5FQZ5f9Oo3aanUkTL/hGGO0WehvK2FjRNdcxgeqO39TEN0aZ pKBPCygsFW+25QneRdqSS00NK33dLosg2o04xxNDkNrKhy/zScF1OQK8ntFgD+gGTw8mel PZ4tTKwc+SbqdDnUVqIghAOmP8DJ9nZyGJ6cT27WgiS3PaZGW5t8hX6T36lX8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685328537; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=idX+b+Vb3Cy2wKw1QG5ooIucTXun8s8phuoezW6/Rao=; b=IOlxlBmwqZZ+iOlVmm4npRqtIAcNJVRONbsI+t47hK631dfFN1LdoFzzLW2+mVcJqyJaJ8 nWCjqa04qHSKc1WNLM6lde+RyCWUYJCSlXhVc4Ne9sDty6mRVYe6xWHnKjNJ+sQfzI200y /nons/rlDBmbTC1edpMzmXy2xyjCyntnWXjtHdvpYBXqB5wufZXQQzqrDVGlyz2gLOh9Q5 kJrfVsQzZmVqlCrKaimoVvC/nDOdgYEQlc4dj/Qlr3hcx1dgT8xUWcWshBbFfFcpG4EZYa GsqJObEX0sArcHeQwi/ucaVMLM+8opumnNJSDWAgww1JFH2hYevhuW0Hco9Y2Q== X-Migadu-Spam-Score: -0.71 X-Spam-Score: -0.71 X-Migadu-Queue-Id: 068E93EB6B X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: glO6hkoGINDG Hi, I am trying to set up virt-manager on my system in order to set up some virtual machines. I added the libvirtd service to my system by adding the following service to my system configuration: ``` (service libvirt-service-type) ``` and I've added myself to the libvirt group. I can see the service running when I do: ``` robby@lambda ~$ sudo herd status libvirtd Status of libvirtd: It is running since 10:34:29 PM (5 minutes ago). Running value is 256. It is enabled. Provides (libvirtd). Requires (). Will be respawned. ``` I can see the libvirt-sock file that I should be able to use: ``` robby@lambda ~$ groups users libvirt netdev audio video dialout wheel robby@lambda ~$ ll /var/run/libvirt/libvirt-sock srwxrwx--- 1 root libvirt 0 May 28 22:34 /var/run/libvirt/libvirt-sock ``` But I cannot use virt-manager or virsh as my user. I see the following behavior using virsh: ``` robby@lambda ~$ virsh -c qemu:///system error: failed to connect to the hypervisor error: internal error: Unable to get system bus connection: Could not connect: No such file or directory robby@lambda ~$ sudo virsh -c qemu:///system Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # ``` So I can use virsh while running as root - but I should also be able to use it when running as my user... When I try to connect using virt-manager, I see the following similar error: ``` Unable to connect to libvirt qemu:///system. internal error: Unable to get system bus connection: Could not connect: No such file or directory Libvirt URI is: qemu:///system Traceback (most recent call last): File "/gnu/store/sa4wwfmvlrry69gyilhb961gpbbamayf-virt-manager-4.1.0/share/virt-manager/virtManager/connection.py", line 923, in _do_open self._backend.open(cb, data) File "/gnu/store/sa4wwfmvlrry69gyilhb961gpbbamayf-virt-manager-4.1.0/share/virt-manager/virtinst/connection.py", line 171, in open conn = libvirt.openAuth(self._open_uri, File "/gnu/store/nb6yaafwa44jqfg9s5fbr5nbsa46panm-python-libvirt-8.6.0/lib/python3.10/site-packages/libvirt.py", line 147, in openAuth raise libvirtError('virConnectOpenAuth() failed') libvirt.libvirtError: internal error: Unable to get system bus connection: Could not connect: No such file or directory ``` Since this seems to be an issue relating to dbus, here are the following services I have running related to that: At a system level: ``` (service dbus-root-service-type) (service elogind-service-type) ``` As my user: ``` (service home-dbus-service-type) ``` Maybe there is some conflict between running dbus as my user and as root? Any advice for getting virt-manager working would be greatly appreciated! Thanks, Robby