Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: same VirtualBox for all users?

  1. #1

    Default same VirtualBox for all users?

    So, on OpenSuse 11.3 I installed VirtualBox, and I would like to put other account to be able to start virtual os-es, but... I would like to have them 2-3 and that other users see them when they start VirtualBox and that they can start them, but not to add new one..

    is this possibble?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,580
    Blog Entries
    14

    Default Re: same VirtualBox for all users?

    Yep, very possible. Simply add the users that you want to give access to the VM's to the 'vboxusers' group, using Yast2-User and Group Management.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: same VirtualBox for all users?

    By default VirtualBox places its files in a hidden .VirtualBox folder in your user /home directory.
    Better to change those settings and place the files in a folder all users can access.

  4. #4

    Default Re: same VirtualBox for all users?

    tnx...

    but, for example, I installed virtualBox as a root, and then added another user..
    and another user does not see virtual machine created by root

  5. #5

    Default Re: same VirtualBox for all users?

    I changed default folder and it's group and permissions (I didn't changed owner), but it is still the same

  6. #6

    Default Re: same VirtualBox for all users?

    Quote Originally Posted by bongo_zg View Post
    tnx...

    but, for example, I installed virtualBox as a root, and then added another user..
    and another user does not see virtual machine created by root
    Replace /srv/vbox in the example below with the path where you installed your virtual machines and run this command as root:

    Code:
    find /srv/vbox -type d -exec chmod 775 "{}" ";" -exec chown "root:vboxusers" "{}" ";" ; find /srv/vbox -type f -exec chmod 664 "{}" ";" -exec chown "root:vboxusers" "{}" ";"'
    write an alias in /root/.alias if you have to run it often:
    Code:
    alias vboxperm='find /srv/vbox -type d -exec chmod 775 "{}" ";" -exec chown "root:vboxusers" "{}" ";" ; find /srv/vbox -type f -exec chmod 664 "{}" ";" -exec chown "root:vboxusers" "{}" ";"'

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,580
    Blog Entries
    14

    Default Re: same VirtualBox for all users?

    You install Vbox as root, that's all. Configuration is done on user level.

    You have to place the Virtual Disks and the Virtual Machines in a folder that has has 'rwx' for the owning group vboxusers. Ditto for the VDI's and the VM's.
    Now, for each user, you configure VBox to use the VM's and VDI's. If you know how to do that for one user, the others are the same. This creates an individual config of Vbox for each user, though all use the same VM's and VDI's. Yet one user can run a VM full screen as a default, an other user runs the same VM scaled by default.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: same VirtualBox for all users?

    hm, does it means that root created one virtual disk (.vdi), but all users will have to create their own virtual machines?

  9. #9

    Default Re: same VirtualBox for all users?

    Quote Originally Posted by bongo_zg View Post
    hm, does it means that root created one virtual disk (.vdi), but all users will have to create their own virtual machines?
    Nope. As explained by Knurpht above and as done by the command I provided in my previous post, members of the vboxusers group should have read/write/execute access to the VDI directory and read/write access to virtual machines as well as to other files (.xml and logs).

  10. #10

    Default Re: same VirtualBox for all users?

    it's still not working...

    as I understod, default disk and machine folder should be the same for all users, all those files should be at some folder accessible for all (I use /opt/virtualBox), and all files/folders shoul be in vboxusers group, and all should have rw rights (inside the group)...

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •