I installed Oracle Virtualbox through the Install/Remove Software option. When I run the program, it says this:
You are not a member of the “vboxusers” group. Please add yourself to this group before starting Virtualbox. You could do it by using: YaST / Security and Users / Users and Group Management. Don’t forget to re-login to your account!
How do I solve this problems so that Virtualbox will work?
Open up Yast and select Security and Users | Users and Group Management. Select your user and then Edit. You should see a tab called Details click on it and off on the right you’ll see Additional Groups: select vboxusers. Click OK a few times and then close Yast and log out and back in.
Thank you. It worked. Now, I need to install Microsoft Windows 7 Professional 32 bit and Microsoft Office 2010 Professional Plus 32 bit plus Microsoft 2010 Visual Studio Professional with MSDN.
On 04/01/2011 05:06 PM, wellywu wrote:
>
> Please add yourself to
> this group before starting Virtualbox … by using: YaST /
> Security and Users / Users and Group Management. Don’t forget to
> re-login to your account!
>
> How do I solve this problems so that Virtualbox will work?
try adding yourself to the vboxusers group in YaST! for example:
-open YaST
-go Security & Users (on left)
-then to User & Group Management (on the right)
-click on your login/name
-click on the Edit button
-click on the Details button
-in the Additional Groups window
–scroll down and find the vboxusers line
–left click to put a check mark in that group
-click OK
-look at your login/name line and check you have added yourself to the
vboxusers group in YaST
-click OK
-log out of your current session
-log into a new session
I tried running as root from the command line - one was just the name, the other had a %U on the end, as that is what the icon’s shortcut did:
linux-20mf:/home/stefan # VirtualBox
Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
/usr/bin/VirtualBox: line 4: 25941 Terminated LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox $@
linux-20mf:/home/stefan # VirtualBox %U
Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
/usr/bin/VirtualBox: line 4: 25969 Terminated LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox $@
I’m running 11.4 and haven’t done anything to my gtk+ theme.
So, where have you placed the Virtual Partitions and where are the Virtual Configurations (the folder “VirtualBox VMs”) located and what write permissions do you have there? I can tell you that when I installed VirtualBox in openSUSE 11.4 using the Oracle repository, the “VirtualBox VMs” folder was located in the /root folder and I do not know why. As root I moved them to my /home folder and as root I changed them to belong to me and then all worked OK. I did make sure that the Virtual Partitions went into a folder I have rights to. This was in addition to adding in myself to the vboxusers group.
Strangest thing, a reboot fixed the problem. Thanks for the response though jdmcdaniel3.
However don’t the Virtual Partitions and where are the Virtual Configuration files get generated after you run VirtualBox? I had just installed virtualbox and it wouldn’t run - I hadn’t configured anything. For instance, I am creating a virtual disk right now that will be in “~/VirtualBox VMs”
You can select where the virtual disks go, but the default may not be good, so make sure to place them where you have the correct rights. The “VirtualBox VMs” folder can be set in the program configuration , but the default in my case was in /root which is not good. It can be moved and the configuration changed, but it is one thing you would want to examine when you first install VirtualBox. So, as a new user who just installed VirtualBox, you don’t really know what it is doing or where anything goes by default and so it is possible to create your first VM in such a way by default as only root can use it. After you get the hang of it, it is a really nice Virtual Manager that works very well with openSUSE including 12.1.
To allow all users (members of vboxusers) to boot the virtual machines, set the VMs folder to a directory (preferably outside of /home). I personally use /srv/vbox. Change the user ownership of this directory to root and the group ownership to vboxusers. Example:
chown root:vboxusers /srv/vbox
Then you can create and use virtual machines as any user. However, every time you boot a virtual machine as a given user, the vm configuration file (a .xml file), as well as the logs will change ownership to this user and become unreadable for the rest of the world, including the vboxusers group (0600). IIt suffices to execute a command as root to restore the vm access rights to all members of the vboxusers group. Here’s the command:
Don’t forget to change /srv/vbox in this example to your vm folder.
Since this command is to simple to fit in a script (:O) and doesn’t require arguments (no need to make a function either), put in in an alias in your root environment and run it any time it’s needed.
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" "{}" ";"'
Of course the same default machine folder has to be set by each user in its VirtualBox preferences (the file is saved for each user in ~/VirtualBox/VirtualBox.xml).