From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=D9MUBy7s; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id CEE035A0271 for ; Wed, 24 Sep 2025 12:31:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758709897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IpFdjMQKxTIZ+E74QcDICm5vMVSjvfXc+cKi5AQPrxI=; b=D9MUBy7sfBxnzakJoTE75Vw78QaPuLGLHs1KlZjbrm6Z1cggEhX4aeVVqF3xQcbhlbMNiq 1s52Hi+vDkMm9sONoU7SK56Gk1Qkx4DfZun5eOkJAb+MeBGsU0B9ir6hiDUsTkYXaVrGXM SD5oMDttQTi5inrq1XzbpmNbk67WXHE= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-362-Bc4QtwEBOpCzM-SchPZgyg-1; Wed, 24 Sep 2025 06:31:36 -0400 X-MC-Unique: Bc4QtwEBOpCzM-SchPZgyg-1 X-Mimecast-MFC-AGG-ID: Bc4QtwEBOpCzM-SchPZgyg_1758709895 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7F0C71956089; Wed, 24 Sep 2025 10:31:34 +0000 (UTC) Received: from localhost (unknown [10.45.224.19]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5DAC71800452; Wed, 24 Sep 2025 10:31:33 +0000 (UTC) Date: Wed, 24 Sep 2025 11:31:31 +0100 From: "Richard W.M. Jones" To: Stefano Brivio Subject: Re: [PATCH] test: Update README.md Message-ID: <20250924103131.GU1460@redhat.com> References: <20250919014329.6007-1-yuhuang@redhat.com> <20250919115822.4e3aab21@elisabeth> <20250922220338.49013fce@elisabeth> <20250923123213.61ddd9d5@elisabeth> <20250924104632.75b3f5a8@elisabeth> <20250924085621.GT1460@redhat.com> <20250924110909.43a16cfa@elisabeth> MIME-Version: 1.0 In-Reply-To: <20250924110909.43a16cfa@elisabeth> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: OgyhaIxfR4Ja9ggV031C7W598jH07oa2wt9gt64w14s_1758709895 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID-Hash: OA23V4KC4AEGZBPWT7SD7XAWS6UMS3HC X-Message-ID-Hash: OA23V4KC4AEGZBPWT7SD7XAWS6UMS3HC X-MailFrom: rjones@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Yumei Huang , passt-dev@passt.top, david@gibson.dropbear.id.au, berrange@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, Sep 24, 2025 at 11:09:09AM +0200, Stefano Brivio wrote: > And now that you say that, I just realised that it would be as simple > as: > > https://libguestfs.org/guestfs-faq.1.html#permission-denied-when-running-libguestfs-as-root > > LIBGUESTFS_BACKEND=direct virt-edit... While that will indeed work, we're trying to discourage people from doing that, since it removes the other good things that libvirt does, such as setting up SELinux. The real solution here IMHO is for libvirt to make session mode work for root without changing UID. It actually goes out of its way to stop this working at the moment[1]. Rich. [1] In qemuStateInitialize -> virQEMUDriverConfigNew, I think -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v