Hi John,

don't ask me why only strace shows the message (which is written to stderr, so should be visible when you run VirtualBox by hand):

VirtualBox: Error -10 in SUPR3HardenedMain!
VirtualBox: Effective UID is not root (euid=1001 egid=50 uid=1001 gid=50)

VirtualBox: Tip! It may help to reinstall VirtualBox.

Error -10 is "access denied", and the next line complains that the executable isn't installed as setuid root.

No idea which "make install" you're talking about... VirtualBox can't be installed in such a way. Must be a VERY strange recipe you're following (might have been applicable to some old 4.x builds, but certainly not to anything recent).

BTW, what's that %U rubbish in the command line? Looks wrong to me (smells like some desktop env parameter placeholder), but on the other hand shouldn't do too much harm. I'd leave it out.

Klaus

On 06.05.2017 14:06, John Frankish wrote:
After compiling VirtualBox-5.1.22 for linux, I am unable to start it.

I'd be grateful for any suggestions on how to fix this.

----------

As per google the user should be a member of the vboxusers group - I have 
checked that this is so.

As per google various libs in /usr/local/lib/virtualbox should be symlinked to 
/usr/local/lib/virtualbox/components - they appear to be hardlinked as part of "sudo 
make install".

As per google the /tmp folder should have the correct permissions - this 
appears to be so:

$ ls -l /tmp/.vbox-tc-ipc
total 4
srwx------    1 tc       staff            0 May  6 15:23 ipcd
-rw-------    1 tc       staff            6 May  6 15:23 lock
$ ls -l /
...
drwxrwxrwt    8 root     staff          360 May  6 15:23 tmp/

The various qt-5.x plugins appear to load correctly, before I get a VBox error 
pop-up:

$ QT_DEBUG_PLUGINS=1 VirtualBox %U
...
Qt WARNING: Found metadata in lib 
/usr/local/lib/qt5/plugins/imageformats/libqwebp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "webp"
        ],
        "MimeTypes": [
            "image/webp"
        ]
    },
    "className": "QWebpPlugin",
    "debug": false,
    "version": 329216
}

[error pop-up appears, click on OK, then..]
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqdds.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqgif.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqicns.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqico.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqjpeg.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqmng.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqsvg.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqtga.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqtiff.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqwbmp.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/imageformats/libqwebp.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so"
Qt WARNING: QLibraryPrivate::unload succeeded on 
"/usr/local/lib/qt5/plugins/platforms/libqxcb.so"
Qt WARNING: QLibraryPrivate::unload succeeded on "Xcursor" (faked)

Failed to create the VirtualBoxClient COM object.
The application will now terminate.
Callee RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)

I also tried with strace and got the following:

$ ls -l /usr/local/lib/virtualbox/VirtualBox
-rwsr-xr-x    1 root     root        136760 May  3 16:42 
/usr/local/lib/virtualbox/VirtualBox

$ strace VirtualBox %U
...
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="box", ...})   = 0
readlink("/proc/self/exe", "/usr/local/lib/virtualbox/VirtualBox", 4099) = 36
getuid32()                              = 1001
getuid32()                              = 1001
getgid32()                              = 50
geteuid32()                             = 1001
getegid32()                             = 50
geteuid32()                             = 1001
write(2, "VirtualBox", 10VirtualBox)              = 10
write(2, ": ", 2: )                       = 2
write(2, "Error ", 6Error )                   = 6
write(2, "-", 1-)                        = 1
write(2, "10", 210)                       = 2
write(2, " in ", 4 in )                     = 4
write(2, "SUPR3HardenedMain", 17SUPR3HardenedMain)       = 17
write(2, "!\n", 2!
)                      = 2
write(2, "VirtualBox", 10VirtualBox)              = 10
write(2, ": ", 2: )                       = 2
write(2, "Effective UID is not root (euid=", 32Effective UID is not root 
(euid=) = 32
write(2, "1001", 41001)                     = 4
write(2, " egid=", 6 egid=)                   = 6
write(2, "50", 250)                       = 2
write(2, " uid=", 5 uid=)                    = 5
write(2, "1001", 41001)                     = 4
write(2, " gid=", 5 gid=)                    = 5
write(2, "50", 250)                       = 2
write(2, ")", 1))                        = 1
write(2, "\n", 1
)                       = 1
write(2, "\n", 1
)                       = 1
write(2, "VirtualBox", 10VirtualBox)              = 10
write(2, ": ", 2: )                       = 2
write(2, "Tip! It may help to reinstall Vi"..., 42Tip! It may help to reinstall 
VirtualBox.
) = 42
setresgid32(50, 50, 50)                 = 0
setresuid32(1001, 1001, 1001)           = 0
getresuid32([1001], [1001], [1001])     = 0
getresgid32([50], [50], [50])           = 0
capset(0, 0, {CAP_NET_RAW, CAP_NET_RAW, 0}) = -1 EINVAL (Invalid argument)

..and also at some point:

$ VirtualBox %U
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

..but:

$ grep i965 /var/log/Xorg.0.log
[  2513.879] (II) modeset(0): [DRI2]   DRI driver: i965
[  2513.879] (II) modeset(0): [DRI2]   VDPAU driver: i965
[  2513.883] (II) AIGLX: Loaded and initialized i965

$ ls /usr/local/lib/dri/*swrast*
/usr/local/lib/dri/kms_swrast_dri.so  /usr/local/lib/dri/swrast_dri.so
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to