VirtualBox is a virtualization product originally made by innotek. VirtualBox can be used on 32-bit or 64-bit Intel and AMD CPUs. The base package was released as free and open source software (GPLv2) in January of 2007. An add-on package which contains some features missing from the open-source version, such as USB 2.0 support, is licensed under a proprietary use that allows free use for personal and educational users.
VirtualBox comes with openSUSE and should work out-of-the-box. From openSUSE 11.4 on USB devices attached to the host can be used in guest operating systems after removing the '#' character in the last 2 lines of /etc/udev/rules.d/60-vboxdrv.rules. After a reboot USB support will work. Please consider the security risks this might cause.
In OpensuSE 12.2 modify the file /etc/udev/rules.d/10-vboxdrv.rules, and comment out the last 2 lines which mention ACTION=="remove". A reboot after that is required.
Installing the latest Version of the Guest Additions
The Guest Additions is a software that is installed in the guest operating system and aims to make interaction with and connecting to the guest simple and seamless, for example by enabling features like folder sharing with the host. By default openSUSE installs the Virtualbox guest additions automatically when it's installed as a Virtualbox guest.
However, as of openSUSE 11.4 the packaged Guest Additions version is slightly old, and may not allow use of Shared Folders with a Windows XP host for example.
To install the latest version from terminal follow these steps:
- sudo zypper rm virtualbox-guest-kmp-default virtualbox-guest-tools virtualbox-guest-x11
- sudo zypper in kernel-devel gcc make
- (Virtualbox menu)->Devices->Install Guest Additions. Then: sudo /media/VBOXADDITIONS_*/VBoxLinuxAdditions.run
By default only the root user will be able to access Shared Folders mounted from the host system (usually these appear under /media). To allow ordinary users access to these folders:
- Open the User and Group Management module in YaST and add each user you want to grant permission to the vboxsf group
- Have the affected users logout and log back in, they should now be able to access Shared Folders.
- You might have a permission error when opening the directory /media. A quick fix is to change the permission of that directory.
- chmod o+rx /media
That should suffice and the sf_SHARENAME directory under /media should be accessible now.
Note: A lot of forum posts and guides on the Web advise you to fiddle around with /etc/fstab settings or manually mount Shared Folders using scripts. This simpler method removes the need for hacks like that.
OSE version usb support (rpm package from the distro)
Note that this is a security risk, see the bug 664520.
That said to enable usb support for the package that came from the openSUSE repos make sure the user is a member of the vboxusers group.
Do the following.
Copy /usr/lib/udev/rules.d/60-vboxdrv.rules to /etc/udev/rules.d
Uncomment those lines with SUBSYSTEM in it.
This is not needed if you downloaded and installed the package from virtualbox.org.
Rebuild host kernel module
After a kernel update, it is possible that VirtualBox throw an error before starting virtual machines:
su zypper in virtualbox-host-source kernel-devel systemctl stop vboxdrv vboxconfig
After that you need to reboot system.
Tested on openSUSE Tumbleweed 20180128