[virt-tools-list] QEMU/VirtFS user permission on files in shares

Sorrillo, Lawrence sorrillol at ornl.gov
Fri May 20 16:46:18 UTC 2016


All,
I have been using VirtFS in QEMU for filesystem  passthrough.

I would like files/dirs  created on the VirtFS share in the VM to have the 
UID/GID of the user logged into the VM and not the process that started the 
QEMU VM. 

Does anyone know how to accomplish this without running QEMU in privileged mode
or starting QEMU as the user that is going to be login to the VM  and write to the VirtFS share?

Thanks

-----Original Message-----
From: virt-tools-list-bounces at redhat.com [mailto:virt-tools-list-bounces at redhat.com] On Behalf Of virt-tools-list-request at redhat.com
Sent: Friday, May 20, 2016 12:00 PM
To: virt-tools-list at redhat.com
Subject: virt-tools-list Digest, Vol 83, Issue 14

Send virt-tools-list mailing list submissions to
	virt-tools-list at redhat.com

To subscribe or unsubscribe via the World Wide Web, visit
	https://www.redhat.com/mailman/listinfo/virt-tools-list
or, via email, send a message with subject or body 'help' to
	virt-tools-list-request at redhat.com

You can reach the person managing the list at
	virt-tools-list-owner at redhat.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of virt-tools-list digest..."


Today's Topics:

   1. Re: [PATCH 0/5] virt-manager: more spice+virgl	support
      (Cole Robinson)
   2. Ubuntu 16 (Imi8eos 24)
   3. Re: Ubuntu 16 (Christophe Fergeau)
   4. [virt-manager PATCH] virt-manager: fix	--show-domain-creator
      to not depend on manager window (Pavel Hrdina)
   5. [virt-manager PATCH] man: virt-manager: properly	indent
      --spice-disable-auto-usbredir (Pavel Hrdina)


----------------------------------------------------------------------

Message: 1
Date: Thu, 19 May 2016 14:26:22 -0400
From: Cole Robinson <crobinso at redhat.com>
To: Marc-Andr? Lureau <marcandre.lureau at redhat.com>,
	virt-tools-list at redhat.com
Subject: Re: [virt-tools-list] [PATCH 0/5] virt-manager: more
	spice+virgl	support
Message-ID: <7301e270-a703-c1c2-16ae-d85859f580ec at redhat.com>
Content-Type: text/plain; charset=utf-8

On 04/28/2016 08:22 AM, Marc-Andr? Lureau wrote:
> Hi
> 
> The following new series allows virt-manager to setup and use a
> local-only spice & virgl-enabled VM. It depends on qemu 2.6 and
> libvirt 1.3.3.
> 
> After this series, to configure a VM for virgl+spice, you can go to
> Spice display details, select "Local only", and "GL" and switch the
> video device to "virtio". To setup a new VM, you'll do similarly
> during a customize installation. The Fedora 24 pre-release works out
> of the box and allows easy testing.
> 
> (notes: a few patches are resent from older series. I didn't try to
> manually "simplify" glade 3.20 modifications of ui file)
> 
> Marc-Andr? Lureau (5):
>   ConnectionInfo: console is active if fd can be provided
>   virtinst: check minimum qemu/libvirt for spice+gl
>   virtinst: add listen=none graphics option
>   virt-manager: add opengl graphics option
>   gfxdetails: add local-only option
> 

So given the discussions we've been having on libvir-list and elsewhere, I'm
going to wait a while longer before exposing these knobs in the GUI since
there's lots of operational caveats.

I'll likely apply patch #2 and patch #3 to make sure the virt-install/virt-xml
command line is covered though, going to look at that soon.

Thanks,
Cole



------------------------------

Message: 2
Date: Fri, 20 May 2016 13:19:47 +0300
From: Imi8eos 24 <targocio at hotmail.com>
To: "virt-tools-list at redhat.com" <virt-tools-list at redhat.com>
Subject: [virt-tools-list] Ubuntu 16
Message-ID: <DUB124-W49EC35B56A4F82A37895FCC54B0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-7"

Hello, I am trying to create a local cluster and I want to install the image for Ubuntu 16 LTS but there is no such option in virtual manager, it goes until version 14.04, is there any way that I can update that?
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.redhat.com/archives/virt-tools-list/attachments/20160520/7f669b08/attachment.html>

------------------------------

Message: 3
Date: Fri, 20 May 2016 13:38:30 +0200
From: Christophe Fergeau <cfergeau at redhat.com>
To: Imi8eos 24 <targocio at hotmail.com>
Cc: "virt-tools-list at redhat.com" <virt-tools-list at redhat.com>
Subject: Re: [virt-tools-list] Ubuntu 16
Message-ID: <20160520113830.GI14379 at edamame.cdg.redhat.com>
Content-Type: text/plain; charset="us-ascii"

On Fri, May 20, 2016 at 01:19:47PM +0300, Imi8eos 24 wrote:
> Hello, I am trying to create a local cluster and I want to install the
> image for Ubuntu 16 LTS but there is no such option in virtual
> manager, it goes until version 14.04, is there any way that I can
> update that?

virt-manager (at least recent versions) get that data from libosinfo.
Latest libosinfo releases should have ubuntu data up to 15.10. Patches
welcome to add 16.04 :)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.redhat.com/archives/virt-tools-list/attachments/20160520/932390ec/attachment.bin>

------------------------------

Message: 4
Date: Fri, 20 May 2016 15:27:17 +0200
From: Pavel Hrdina <phrdina at redhat.com>
To: virt-tools-list at redhat.com
Subject: [virt-tools-list] [virt-manager PATCH] virt-manager: fix
	--show-domain-creator to not depend on manager window
Message-ID:
	<1f1cf94b5cbeb51148a5deb36c4ce2c3edccd34a.1463750765.git.phrdina at redhat.com>
	

Commit a0c2fdf4 fixed a bug that there was no way how to close the app.

The original issue isn't present anymore but reverting that commit isn't
enough.  We need to increment/decrement window count while
showing/closing the create window in order to not exit right after
the create window is opened.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1331707

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 virtManager/create.py | 5 +++++
 virtManager/engine.py | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/virtManager/create.py b/virtManager/create.py
index df92709..f4f9d05 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -110,6 +110,8 @@ def _remove_vmm_device(guest, devkey):
 class vmmCreate(vmmGObjectUI):
     __gsignals__ = {
         "action-show-domain": (GObject.SignalFlags.RUN_FIRST, None, [str, str]),
+        "create-opened": (GObject.SignalFlags.RUN_FIRST, None, []),
+        "create-closed": (GObject.SignalFlags.RUN_FIRST, None, []),
     }
 
     def __init__(self, engine):
@@ -197,12 +199,15 @@ class vmmCreate(vmmGObjectUI):
         if not self.is_visible():
             self._reset_state(uri)
             self.topwin.set_transient_for(parent)
+            self.emit("create-opened")
 
         self.topwin.present()
 
     def _close(self, ignore1=None, ignore2=None):
         if self.is_visible():
             logging.debug("Closing new vm wizard")
+            self.emit("create-closed")
+
         self.topwin.hide()
 
         self._cleanup_customize_window()
diff --git a/virtManager/engine.py b/virtManager/engine.py
index 7b10c91..001ef91 100644
--- a/virtManager/engine.py
+++ b/virtManager/engine.py
@@ -893,6 +893,8 @@ class vmmEngine(vmmGObject):
 
         obj = vmmCreate(self)
         obj.connect("action-show-domain", self._do_show_vm)
+        obj.connect("create-opened", self.increment_window_counter)
+        obj.connect("create-closed", self.decrement_window_counter)
         self.windowCreate = obj
         return self.windowCreate
 
@@ -968,7 +970,6 @@ class vmmEngine(vmmGObject):
         self._do_show_host(self.get_manager(), uri)
 
     def _show_domain_creator(self, uri):
-        self._show_manager()
         self._do_show_create(self.get_manager(), uri)
 
     def _show_domain_console(self, uri, clistr):
-- 
2.8.2



------------------------------

Message: 5
Date: Fri, 20 May 2016 15:33:16 +0200
From: Pavel Hrdina <phrdina at redhat.com>
To: virt-tools-list at redhat.com
Subject: [virt-tools-list] [virt-manager PATCH] man: virt-manager:
	properly	indent --spice-disable-auto-usbredir
Message-ID:
	<21e29a417808ccc40b6c60b7ebcccb2843396c4d.1463751127.git.phrdina at redhat.com>
	

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1331633

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---

Pushed as trivial.

 man/virt-manager.pod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/virt-manager.pod b/man/virt-manager.pod
index e2f9a7d..2422d4b 100644
--- a/man/virt-manager.pod
+++ b/man/virt-manager.pod
@@ -86,14 +86,14 @@ unique ID matching either the domain name, ID, or UUID
 Display the main window summarizing performance for all virtual machines
 on the host.
 
+=back
+
 =item B<--spice-disable-auto-usbredir>
 
 Auto USB redirection is supported by default. This option switches off it.
 
 =back
 
-=back
-
 Standard GTK options like --g-fatal-warnings are also accepted.
 
 =head1 BUGS
-- 
2.8.2



------------------------------

_______________________________________________
virt-tools-list mailing list
virt-tools-list at redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list

End of virt-tools-list Digest, Vol 83, Issue 14
***********************************************





More information about the virt-tools-list mailing list