The VirtualBox binary needs to have the set-user-ID bit set when compiled with hardening enabled. Same goes for VBoxHeadless, VBoxSDL, VBoxNetDHCP, VBoxNetNAT, etc. I can compile this but I don’t understand SUSE infrastructure and optimizations. How to find a template or --build-info for virtualbox binary from SUSE?
The first question that has to be asked of course…
Is whether you chose to install Oracle Virtualbox for a particular reason.
VBox is available as a pre-compiled binary in an RPM package, which when installed you get VBox already set up with most common settings and if you have to do anything more, those things are relatively few and by choice (You may still need to add your User to the vobxusers group).
If you choose to install the packages from openSUSE, remove your Oracle VBox first.
You may need to do more than simply remove the Virtualbox packages, you may need to purge your system of all files related to your virtualbox install.
I use the “locate” utility to do this because it’s faster and simpler than “Find.”
If you decide to use “locate,”
Install the mlocate package
zypper in mlocate
Populate the locate database, the database updates every 24 hrs but you don’t want to wait until tomorrow for first use
updatedb
Now you can search for any name string you want, even including paths if you wish but you wouldn’t want to do that here, eg
locate virtualbox
locate vbox
If any files or folders exist with those names, remove them.
Then try re-installing VBox from the OSS again.
Remember also that when you uninstall packages, you don’t remove the configuration files, they’re preserved in case you decide to want to re-install and keep your prior settings. If your permission errors are in a config, the above should enable you to locate those files so they can also be removed so that a new install will install new, default config files.
I know locate and updatedb. I removed the dependencies and other stuff with rpmorphan and a bash loop. There are no configuration files from old VirtualBox install. Secondly, I got VMPlayer working so I think there isn’t any issue with my system.
[Tue Feb 19 18:32:57 root@flux /home/flux]
# zypper dup
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...
5 Problems:
Problem: problem with installed package nginx-1.15.8-125.7.x86_64
Problem: problem with installed package sshguard-2.3.1-39.2.x86_64
Problem: problem with installed package vim-plugin-nginx-1.15.8-125.7.noarch
Problem: problem with installed package virt-what-1.15-2.40.x86_64
Problem: problem with installed package xen-libs-4.12.0_02-626.17.x86_64
Problem: problem with installed package nginx-1.15.8-125.7.x86_64
Solution 1: install nginx-1.15.8-1.4.x86_64 (with vendor change)
obs://build.opensuse.org/Virtualization --> openSUSE
Solution 2: keep obsolete nginx-1.15.8-125.7.x86_64
**Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c): **c
[Tue Feb 19 18:37:59 root@flux /home/flux]
# zypper in -f virtualbox virtualbox-host-kmp-default virtualbox-qt
Loading repository data...
Reading installed packages...
Forcing installation of 'virtualbox-5.2.22-3.8.x86_64' from repository 'openSUSE-Tumbleweed-Oss'.
Forcing installation of 'virtualbox-qt-5.2.22-3.8.x86_64' from repository 'openSUSE-Tumbleweed-Oss'.
Forcing installation of 'virtualbox-host-kmp-default-5.2.22_k4.20.7_1-3.8.x86_64' from repository 'openSUSE-Tumbleweed-Oss'.
Resolving package dependencies...
The following 3 packages are going to be reinstalled:
virtualbox virtualbox-host-kmp-default virtualbox-qt
3 packages to reinstall.
Overall download size: 20.0 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
**Continue? [y/n/...? shows all options] (y): **y
.
.
.
Additional rpm output:
setting /usr/lib/virtualbox/VBoxNetDHCP to root:vboxusers 0755. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxNetAdpCtl to root:vboxusers 0755. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxHeadless to root:vboxusers 0755. (wrong permissions 0750)
(3/3) Installing: virtualbox-qt-5.2.22-3.8.x86_64 ..........................................................................................................................................................[done]
Additional rpm output:
setting /usr/lib/virtualbox/VirtualBox to root:vboxusers 0755. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxSDL to root:vboxusers 0755. (wrong permissions 0750)
Executing %posttrans scripts ...............................................................................................................................................................................[done]
[Tue Feb 19 18:40:25 flux@flux ~]
# uname -a
Linux flux 4.20.7-1-default #1 SMP PREEMPT Thu Feb 7 07:16:45 UTC 2019 (730812f) x86_64 x86_64 x86_64 GNU/Linux
[Wed Feb 20 00:19:43 root@flux /home/flux]
# zypper ve
Loading repository data...
Reading installed packages...
Dependencies of all installed packages are satisfied.