Installation problems with virtualbox

hi,
I just tried to install virtual box by downloading the RPM from their website running it with yast. It said install succesful but I checked the install log and this is the result that I got. The program will not start. I want to run opensuse as my host and install Windows XP to run on top of it for my wife. I can provide any information just ask if it helps.
My software is
System
Atom
2GB of ram
ION
Linux 2.6.34.7-0.4-desktop x86_64
openSUSE 11.3 (x86_64)
4.5.2 (KDE 4.5.2) “release 10”
NVIDIA 260.19.12

VirtualBox Version is
VirtualBox-3.2-3.2.10_66523_openSUSE113-1.x86_64.rpm

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.34.7-0.4-desktop) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
Failed to open the X11 display!

I did try to run sudo /etc/init.d/vboxdrv setup it failed I than ran
vim /var/log/vbox-install.log and this information was in the file
/usr/share/virtualbox/src/vboxhost/vboxdrv/build_in_tmp: line 55: make: command not found

Hi you need to install make, gcc, kernel-source, kernel-syms and
linux-glibc-devel then run the setup again.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34.7-0.4-default
up 1 day 11:14, 2 users, load average: 0.00, 0.08, 0.07
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.12

I installed the software, uninstalled, than reinstalled clicked on the icon would not start fired up terminal ran sudo VirtualBox here was the output

Failed to open the X11 display!

Am I supposed to setup my video somehow, or do I need to recompile my nvidia driver?

you don’t have to use ‘sudo’ to start VirtualBox. You just have to be member of the vboxusers group.
If you start VirtualBox or any other GUI application with sudo, it will fail because nobody (even root) has access to your X display. So if you wanted to do that, you should first allow others to use your display, which can be done - as user, not root! - with the command:
xhost + local:.
But again, it is not needed here.

Just do that :


sudo zypper in -t pattern devel_basis
sudo zypper in kernel-devel kernel-desktop-devel kernel-source kernel-syms
sudo service vboxdrv setup

Then start VirtualBox as normal user.

no I just want to run VirtualBox. I had gone under user group management in yast changed my default group to vboxusers. Here is what I did with your comment. if xhost + office was not a good command to use for my situation how can I change those settings back. the only reason I ask is because I am trying to keep my install as clean as I can, I hate having lose ends and such. After using you command I am getting the same outputs the only reason I tried to sudo was because of the “Permission denied” outputs

office@Office:~> xhost + local
xhost: bad hostname “local”
office@Office:~> xhost + office
office being added to access control list
office@Office:~> VirtualBox
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Permission denied
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Permission denied
office@Office:~> sudo VirtualBox
root’s password:
Failed to open the X11 display!
office@Office:~>

I will try those new commands, sorry I was typing my post and had not seen your new one.

  • This is not
    xhost + local
    but
    xhost + local:
    and nothing else!
  • I understand that you just want to run VirtualBox, but in order to do that with this version (the Oracle version), you have to compile the kernel module first, i.e. follow the steps I described in my previous post.

Again: one does not start VirtualBox as root, but as a regular user. Also note what please_try_again wrote about ‘xhost + local’:

But again, it is not needed here.

Are you sure you are a member of the group ‘vboxusers’? Please show the output of the command

groups

[also called as regular user!] and do not forget you have to compile the respective VBox kernel module first.

semi-OT: Guys (please_try_again & other members of this forum), please note that ‘sudo’ is not a proper replacement for ‘su -’ to become root. Read the manual of ‘sudo’ to find out why. The only system I know where ‘sudo’ makes sense per default is Ubuntu and its derivates.

So why mention it? OP shouldn’t need to do it. Mixed messages.

office@Office:~> sudo service vboxdrv setup
root’s password:
sudo: service: command not found

also just tried to run

office@Office:~> VirtualBox
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Permission denied
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Permission denied
office@Office:~>

same results am I supposed to change the word “service” with another variable?

Once more: do not use ‘sudo’ to start root processes. Become root with ‘su -’.

Again #2: you have to be a member of the group ‘vboxusers’. Check that with the command ‘groups’ (as user, not as root). If you are not in ‘vboxusers’, start YaST, go to “Security and users” / “User and Group Management”, mark your user, then ‘Edit’, click the tab ‘details’ and check the group ‘vboxusers’, then click ‘ok’. After that, open a terminal, become root (su -) and command ‘/etc/init.d/vboxdrv setup’ (not ‘service xyz’, that is not a valid command).

Again#3: you have to install the mentioned Kernel development packages.

If you don’t see ‘vboxusers’ as part of the ouput of ‘groups’, become root and add yourself (your loging name) to the group vboxusers:


su -l
usermod -A vboxusers mich04

  • replace ‘mich04’ with your user name on your system

Yes it is a valid command. But that’s right, it’s not in the default user path (/sbin/service). I’ll try to remember that before advising to use sudo. (i promise :wink: )

@mich04, OK, use “su -l” before typing such commands and you shouldn’t get “command not found” errors anymore … unless the program you’re trying to run is indeed not installed.


su -l
zypper in -t pattern devel_basis
zypper in kernel-devel kernel-desktop-devel kernel-source kernel-syms
service vboxdrv setup

  • service vboxdrv setup and /etc/init.d/vboxdrv setup do the same… although the second one is more likely to work because by using that command, you’re calling the script directly.

Yes it is a valid command.

Whoops, sorry for that - you are correct, of course. Never stumbled over it before.

Well I finally got it to work except I am can only run it while I am root
office@Office:~> VirtualBox
/usr/bin/VirtualBox: line 72: /usr/lib/virtualbox/VirtualBox: Permission denied
/usr/bin/VirtualBox: line 72: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Permission denied
office@Office:~> su -l
Password:
Office:~ # VirtualBox

so I checked my groups here is what I got (double checked root groups just in case)
Office:~ # groups
root
Office:~ # exit
logout
office@Office:~> groups
users video

here is the command I tried earlier to add that group before I tried the other steps
office@Office:~> su -l
Password:
Office:~ # usermod -A vboxusers office
usermod: `vboxusers’ is primary group name.

Let’s do it with Yast then …

  • Start Yast -> User and Group Administration,
  • select your username
  • click on Edit
  • click on Details
  • In the panel on the right (Additional Groups), check vboxusers

That is what I had originally tried at the beginning of this process. I had also tried to change the default group settings my login in yast says I am part of the following groups
video,vboxusers. I did just try again to unselect and reselect the groups just to see if I could shake things up. I have also tried to restart my computer to see if I re-logging in would help

Try running:

SuSEconfig

as root in the terminal. It could be a virtualbox file has wrong permissions and SuSEconfig may be able to fix it.

Also I would recommend using the virtualbox repo over the RPM because you are able to update virtualbox easily with:


zypper ref
zypper up

when a new version comes out

I just got done running the commands you told me to here is the out-put
Office:~ # SuSEconfig
Starting SuSEconfig, the SuSE Configuration Tool…
Running in full featured mode.
Reading /etc/sysconfig and updating the system…
Executing /sbin/conf.d/SuSEconfig.desktop-file-utils…
Error in file “/usr/share/applications/kde4/kfontview.desktop”: “fonts/package” is an invalid MIME type (“fonts” is an unregistered media type)
Executing /sbin/conf.d/SuSEconfig.fonts…
Creating fonts.{scale,dir} files …
/etc/fonts/suse-font-dirs.conf unchanged
/etc/fonts/suse-hinting.conf unchanged
/etc/fonts/suse-bitmaps.conf unchanged
Creating cache files for fontconfig …
Creating 32bit cache files for fontconfig …
generating java font setup
Warning: cannot find a sans serif Japanese font. Japanese in Java might not work.
Warning: cannot find a serif Japanese font. Japanese in Java might not work.
Warning: cannot find a sans serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a serif simplified Chinese font. Simplified Chinese in Java might not work.
Warning: cannot find a sans serif traditional Chinese font. Traditional Chinese in Java might not work.
Warning: cannot find a serif traditional Chinese font. Traditional Chinese in Java might not work.
Warning: cannot find a sans serif Korean font. Korean in Java might not work.
Warning: cannot find a serif Korean font. Korean in Java might not work.
writing /usr/lib64/jvm/jre/lib/fontconfig.SuSE.properties
Executing /sbin/conf.d/SuSEconfig.glib2…
Executing /sbin/conf.d/SuSEconfig.groff…
Executing /sbin/conf.d/SuSEconfig.gtk2…
Executing /sbin/conf.d/SuSEconfig.ispell…
Executing /sbin/conf.d/SuSEconfig.permissions…
Executing /sbin/conf.d/SuSEconfig.postfix…
Setting up postfix local as MDA…
Setting SPAM protection to “off”…
Executing /sbin/conf.d/SuSEconfig.words…
Finished.
Office:~ # zypper ref
Repository ‘KDE45’ is up to date.
Repository ‘KDE Extra’ is up to date.
Repository ‘Mozilla’ is up to date.
Repository ‘Nvidia’ is up to date.
Repository ‘OpenOffice’ is up to date.
Repository ‘Packman’ is up to date.
Repository ‘Updates for openSUSE 11.3 11.3-1.82’ is up to date.
Repository ‘VLC’ is up to date.
Repository ‘VirtualBox’ is up to date.
Repository ‘openSUSE-11.3 11.3-1.82’ is up to date.
Repository ‘openSUSE-11.3-Non-Oss’ is up to date.
All repositories have been refreshed.
Office:~ # zypper up
Loading repository data…
Reading installed packages…

The following package updates will NOT be installed:
gstreamer-0_10-fluendo-mp3 gstreamer-0_10-plugin-gnomevfs kdeartwork4-screensaver

The following packages are going to be upgraded:
MozillaFirefox akregator kaddressbook kdepim4 kdepim4-runtime kdepim4-wizards kmail knotes kontact korganizer libkdepim4 marble
mozilla-js192 mozilla-xulrunner192 mozilla-xulrunner192-gnome python-kde4 python-qt4 python-sip

18 packages to upgrade.
Overall download size: 30.6 MiB. After the operation, additional 11.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package mozilla-js192-1.9.2.11-7.1.x86_64 (1/18), 438.0 KiB (1.2 MiB unpacked)
Retrieving: mozilla-js192-1.9.2.11-7.1.x86_64.rpm [done (137.0 KiB/s)]
Installing: mozilla-js192-1.9.2.11-7.1 [done]
Retrieving package python-sip-4.11.2-49.1.x86_64 (2/18), 46.0 KiB (114.0 KiB unpacked)
Retrieving: python-sip-4.11.2-49.1.x86_64.rpm [done]
Installing: python-sip-4.11.2-49.1 [done]
Retrieving package marble-4.5.2-6.18.x86_64 (3/18), 5.7 MiB (8.6 MiB unpacked)
Retrieving: marble-4.5.2-6.18.x86_64.rpm [done (96.7 KiB/s)]
Installing: marble-4.5.2-6.18 [done]
Retrieving package libkdepim4-4.4.7-7.1.x86_64 (4/18), 464.0 KiB (1.6 MiB unpacked)
Retrieving: libkdepim4-4.4.7-7.1.x86_64.rpm [done (72.6 KiB/s)]
Installing: libkdepim4-4.4.7-7.1 [done]
Retrieving package kdepim4-runtime-4.4.7-7.1.x86_64 (5/18), 1.1 MiB (4.9 MiB unpacked)
Retrieving: kdepim4-runtime-4.4.7-7.1.x86_64.rpm [done (120.8 KiB/s)]
Installing: kdepim4-runtime-4.4.7-7.1 [done]
Retrieving package mozilla-xulrunner192-1.9.2.11-7.1.x86_64 (6/18), 7.0 MiB (28.2 MiB unpacked)
Retrieving: mozilla-xulrunner192-1.9.2.11-7.1.x86_64.rpm [done (117.6 KiB/s)]
Installing: mozilla-xulrunner192-1.9.2.11-7.1 [done]
Retrieving package python-qt4-4.8-2.1.x86_64 (7/18), 2.1 MiB (13.0 MiB unpacked)
Retrieving: python-qt4-4.8-2.1.x86_64.rpm [done (125.2 KiB/s)]
Installing: python-qt4-4.8-2.1 [done]
Retrieving package korganizer-4.4.7-7.1.x86_64 (8/18), 1.3 MiB (4.4 MiB unpacked)
Retrieving: korganizer-4.4.7-7.1.x86_64.rpm [done (128.6 KiB/s)]
Installing: korganizer-4.4.7-7.1 [done]
Retrieving package knotes-4.4.7-7.1.x86_64 (9/18), 213.0 KiB (795.0 KiB unpacked)
Retrieving: knotes-4.4.7-7.1.x86_64.rpm [done (100.7 KiB/s)]
Installing: knotes-4.4.7-7.1 [done]
Retrieving package kdepim4-4.4.7-7.1.x86_64 (10/18), 3.1 MiB (12.2 MiB unpacked)
Retrieving: kdepim4-4.4.7-7.1.x86_64.rpm [done (127.7 KiB/s)]
Installing: kdepim4-4.4.7-7.1 [done]
Retrieving package akregator-4.4.7-7.1.x86_64 (11/18), 1.0 MiB (2.4 MiB unpacked)
Retrieving: akregator-4.4.7-7.1.x86_64.rpm [done (105.0 KiB/s)]
Installing: akregator-4.4.7-7.1 [done]
Retrieving package mozilla-xulrunner192-gnome-1.9.2.11-7.1.x86_64 (12/18), 41.0 KiB (114.0 KiB unpacked)
Retrieving: mozilla-xulrunner192-gnome-1.9.2.11-7.1.x86_64.rpm [done]
Installing: mozilla-xulrunner192-gnome-1.9.2.11-7.1 [done]
Retrieving package MozillaFirefox-3.6.11-33.1.x86_64 (13/18), 855.0 KiB (3.4 MiB unpacked)
Retrieving: MozillaFirefox-3.6.11-33.1.x86_64.rpm [done (92.2 KiB/s)]
Installing: MozillaFirefox-3.6.11-33.1 [done]
Additional rpm output:
Error in file “/usr/share/applications/kde4/kfontview.desktop”: “fonts/package” is an invalid MIME type (“fonts” is an unregistered media type)
Error in file “/usr/share/applications/kde4/kfontview.desktop”: “fonts/package” is an invalid MIME type (“fonts” is an unregistered media type)

Retrieving package python-kde4-4.5.2-182.2.x86_64 (14/18), 3.8 MiB (25.9 MiB unpacked)
Retrieving: python-kde4-4.5.2-182.2.x86_64.rpm [done (112.6 KiB/s)]
Installing: python-kde4-4.5.2-182.2 [done]
Retrieving package kontact-4.4.7-7.1.x86_64 (15/18), 887.0 KiB (1.6 MiB unpacked)
Retrieving: kontact-4.4.7-7.1.x86_64.rpm [done (92.1 KiB/s)]
Installing: kontact-4.4.7-7.1 [done]
Retrieving package kmail-4.4.7-7.1.x86_64 (16/18), 2.3 MiB (7.8 MiB unpacked)
Retrieving: kmail-4.4.7-7.1.x86_64.rpm [done (101.9 KiB/s)]
Installing: kmail-4.4.7-7.1 [done]
Retrieving package kdepim4-wizards-4.4.7-7.1.x86_64 (17/18), 108.0 KiB (529.0 KiB unpacked)
Retrieving: kdepim4-wizards-4.4.7-7.1.x86_64.rpm [done (166.7 KiB/s)]
Installing: kdepim4-wizards-4.4.7-7.1 [done]
Retrieving package kaddressbook-4.4.7-7.1.x86_64 (18/18), 241.0 KiB (843.0 KiB unpacked)
Retrieving: kaddressbook-4.4.7-7.1.x86_64.rpm [done (145.2 KiB/s)]
Installing: kaddressbook-4.4.7-7.1 [done]
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run ‘zypper ps’ to list these programs.

That’s true. I forgot to mention that if you ran VirtualBox as root, it switched the ownership of some files that normal users won’t be able to access afterwards.

I don’t know were you put your virtual machines. If for example, they were in /srv/vbox (but they are not ! It’s just an example), you could issue these commands as root to regain ownership of the virtual machines and log files/directories (Don’t forget to replace ‘/srv/vbox’ and ‘mich04’ is this example:

find /srv/vbox -type d -exec chmod 775 "{}" ";" -exec chown "mich04:vboxusers" "{}" ";" 
find /srv/vbox -type f -exec chmod 664 "{}" ";" -exec chown "mich04:vboxusers" "{}" ";"