VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Discussions related to using VirtualBox on Solaris hosts.
Post Reply
jcytam
Posts: 5
Joined: 28. Jul 2011, 15:31
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Ubuntu

VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by jcytam »

Hi guys,

I just installed VBox 4.1 on my Solaris 11 Express snv_151a system. I started VBox as root and created my first Ubuntu 11.04 64Bit Desktop VM, during the initial power up, I got the following pop up with the error:

"Failed to open a session for the virtual machine XXX"

Failed to load VMMR0.r0
(VERR_SUPLIB_WRITE_NON_SYS_GROUP)

Details:
Result Code: NS_ERROR_FAILURE (0x800004005)
Component: Console
Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}

Furthermore, in the VBox.log:

00:00:01.505 pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_SUPLIB_WRITE_NON_SYS_GROUP szErr="The group is not a system group and it has write access to '/opt'"
00:00:01.505 VMSetError: /home/vbox/tinderbox/sol-rel/src/VBox/VMM/VMMR3/VM.cpp(591) int vmR3CreateU(UVM*, uint32_t, int (*)(VM*, void*), void*); rc=VERR_SUPLIB_WRITE_NON_SYS_GROUP
00:00:01.505 VMSetError: Failed to load VMMR0.r0
00:00:01.506 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={1968b7d3-e3bf-4ceb-99e0-cb7c913317bb} aComponent={Console} aText={Failed to load VMMR0.r0 (VERR_SUPLIB_WRITE_NON_SYS_GROUP)}, preserve=false
00:00:01.515 Using XKB for keycode to scan code conversion
00:00:01.542 Power up failed (vrc=VERR_SUPLIB_WRITE_NON_SYS_GROUP, rc=NS_ERROR_FAILURE (0X80004005))

Anybody facing the same issue?

Thanks alot
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by Perryg »

You shouldn't run VirtualBox as root.
jcytam
Posts: 5
Joined: 28. Jul 2011, 15:31
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by jcytam »

Hi Perryg

Thanks for your reply.

I get the same error even running VBox as normal user
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by Perryg »

I started VBox as root and created my first Ubuntu 11.04 64Bit Desktop VM
Well by doing this you have established your VBOX_USER_HOME env. to root.
You will need to reset the env and see if you can pickup the guest. Where did it create the VirtualBox VMs folder and where did it create the .VirtualBox.xml?

You can always use the VirtualBox users manual to see how to install in Solaris.
See chapter 2.4 Installing on Solaris hosts
jcytam
Posts: 5
Joined: 28. Jul 2011, 15:31
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by jcytam »

Thanks for your input.
Actually I followed the steps mentioned in the Chapter 2.4, It also indicated that the installation must be run as root "the installation must be performed as root and from the global zone as the VirtualBox installer loads kernel drivers which cannot be done from non-global zones. To verify which zone you are currently in, execute the zonename command"

VirtualBox VMs folder and .VirtualBox.xml are created in /root, since I ran VBox as root

Thanks and glad to have any input
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by Perryg »

It's not how you installed VirtualBox. It's how you created your guest.
Did you create the guest as root as you seem to state above? Also did you add your user name to the vboxuser group?
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by Ramshankar »

What is the permissions for /opt ? Please paste output of "ls -l /"
Oracle Corp.
jcytam
Posts: 5
Joined: 28. Jul 2011, 15:31
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by jcytam »

Thanks for your help guys, I really appreciate it.
@ Perry
i tried both to create the VMs as root and my user, including performing a clean up with pkgrm of VBox and the .Virtualbox folders.
Both credentials leads to the same error.
Yes I "rolemoded" both root and my user name into the vboxuser group...

@ Ramshankar
the permission on /opt is:
drwxrwxr-x root sys

The permission on /opt/VirtualBox:
drwxr-xr-x root bin
additioanlly, I tired to add root and my user name into the bin group and chmod 775 on /opt/VirtualBox. This result a damaged VBox installation and got an error at start up of VBox to reinstall VBox.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by Ramshankar »

As VirtualBox is rather strict when it comes to hardened/secure builds, I'd suggest not to make any chmod changes until we're clear what is the exact cause of this problem. It seems the cause is the group permissions for /opt. Here is what it should be like (by default):
drwxr-xr-x   10 root       sys            10 2011-07-18 15:55 opt/
Notice how the "sys" group does not have write permissions. VirtualBox's security hardening gets upset when it is anything but read-only for groups that are not "root" (group id 0) for it's path hierarchy. In this case it's "sys" and it does have write access which is the problem.

I don't know if you changed the permissions at some point or if Solaris 11 Express by itself ships /opt with such permissions or who is responsible for setting them.

My suggestion is to remove write permissions from /opt for the "sys" group

Code: Select all

chmod g-w /opt
Then reinstall VirtualBox.

EDIT: Just checked, Solaris 11 Express (snv_151a) does not ship with group writable permissions for /opt. So either you might have changed this manually or some other application/installer changed the permissions.
Oracle Corp.
jcytam
Posts: 5
Joined: 28. Jul 2011, 15:31
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Ubuntu

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GROUP

Post by jcytam »

Thank you Ramshankar! you are the best

chmod g-w /opt resolved the problem.

However, I don't remember that I add write permission to group on /opt manually...this SOL11E box is a fresh installation..

Thanks to all who help to resolve this issue.
Tsso
Posts: 25
Joined: 9. Sep 2012, 19:32

Re: VM Power up failed, error: VERR_SUPLIB_WRITE_NON_SYS_GRO

Post by Tsso »

sudo chown root:root /opt
sudo chown root:root /usr
sudo chown root:root /usr/lib

In my case, the last one was the culprit.
Post Reply