Re: one box for 2 users?



Hi Tobias,

Sorry for late reply but I was on holidays.

On Fri, Dec 5, 2014 at 9:34 PM, Tobias Edler <tobias edler gmail com> wrote:
I really like gnome-boxes, as it makes it very easy to set up and run a VM.

Cool.

Is there a way to allow another (local) user to run a box i created (only
one user at a time)?

So  far, i tried to symlink
~/.config/libvirt
~/.config/gnome-boxes
~/.cache/gnome-boxes
~/.local/share/gnome-boxes
but that didn't work. The box still won't show up when the other user starts
gnome-boxes

Boxes targets the typical case of private VMs mainly so it uses the
session connection of libvirt (the virtualization backend). If you'd
like to share your VMs with other users, I'm afraid your only option
is to add connection to system libvirt in Boxes. Both users will have
to do this and they both will need to be able to elevate their
privileges to root each time they connect. Go through the 'New'
wizard, choose "Enter URL" on source page and enter
"qemu+unix:///system" as URL. That should work. :)

If both users do not need to be able to manage the VM, you have
another option: Share the desktop connection with the secondary user.
Currently we do not have a UI for this:

https://bugzilla.gnome.org/show_bug.cgi?id=694854

so you'll have to edit the libvirt xml manually. `virsh list` should
get you list of all your VMs. Then do `virsh edit VM_NAME`, edit the
spice connection part and assign a specific port (remove autoport
option) and save the VM. For then on, whenever the VM is running, the
other user will be able to access it through spice connection (which
you can do through a URL again, just like system libvirt connection).

Here is a reference for the SPICE connection part of the libvirt xml:
http://libvirt.org/formatdomain.html#elementsGraphics

-- 
Regards,

Zeeshan Ali (Khattak)
________________________________________
Befriend GNOME: http://www.gnome.org/friends/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]