How to Install Oracle VirtualBox 6.0 in OpenSUSE

VirtualBox is a free and open source, powerful, feature-rich, cross-platform and popular x86 and AMD64/Intel64 virtualization software for enterprise and home use. It is targeted at server, desktop, and embedded use.

It runs on Linux, Windows, Macintosh, and Solaris hosts and supports a large number of guest operating systems including but not limited to Linux (2.4, 2.6, 3.x and 4.x), Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8, Windows 10), DOS/Windows 3.x, Solaris and OpenSolaris, OS/2, and OpenBSD.

In this article, we will explain how to install latest version of Oracle VirtualBox in OpenSUSE Linux distribution.

Installing VirtualBox 6.0 in OpenSuse

We will use official VirtualBox repository to install the latest version of VirtualBox on OpenSUSE Linux distribution using following commands.

$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc
$ sudo rpm --import oracle_vbox.asc
$ cd /etc/zypp/repos.d 
$ sudo wget https://download.virtualbox.org/virtualbox/rpm/opensuse/virtualbox.repo
Enable Virtualbox Repository on OpenSuse
Enable Virtualbox Repository on OpenSuse

Next, refresh the repository list using the following zypper command.

$ sudo zypper refresh
Refresh Repository in OpenSuse
Refresh Repository in OpenSuse

Once the repositories have been refreshed, you will need to install few required packages for building VirtualBox kernel modules and header files using the following command.

$ sudo zypper install gcc make perl kernel-devel dkms
Install Dependencies for Virtualbox
Install Dependencies for Virtualbox

Now install Virtualbox 6.0 with the following command.

$ sudo zypper install VirtualBox-6.0
Install VirtualBox in OpenSuse
Install VirtualBox in OpenSuse

Once the installation is done, search for Virtualbox in the launch/system menu’s search component and open it.

Running Virtualbox 6.0 in OpenSuse
Running Virtualbox 6.0 in OpenSuse

Installing VirtualBox Extension Pack in OpenSuse

VirtualBox extensions pack extend the functionality of the Oracle VM VirtualBox base package. It offers additional functionality such as VirtualBox RDP, PXE, ROM with E1000 support, USB 2.0 Host Controller support and disk image encryption with AES algorithm.

You can download the VirtualBox Extension Pack using the following wget command.

$ wget http://download.virtualbox.org/virtualbox/6.0.0/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack

To install the extension pack, go to File –> Preferences –> Extensions and click on the + sign to browse for the vbox-extpack file to install it.

After selecting the extension package file, read the message from the dialog box and click on Install as shown in the following screenshot.

Install Virtualbox Extension Pack in OpenSuse
Install Virtualbox Extension Pack in OpenSuse

Then read the use and evaluation License and click I Agree to start the actual installation. You will be prompted to enter your root user password, provide it to proceed.

Installing Virtualbox Extension Pack OpenSuse
Installing Virtualbox Extension Pack OpenSuse

Once the installation is complete, the extension package installed should be listed under Extensions.

Virtualbox Extension Pack
Virtualbox Extension Pack

Read Also: How to Enable USB in VirtualBox

That’s all! In this article, we’ve described how to install Oracle VirtualBox in openSUSE Linux. You can ask questions or share your thoughts about this article via the feedback form below.

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section Or start the conversation in our TecMint Community Forum for Linux Sysadmins. Find answers, share tips, and get help from other Linux experts. Join now (it’s free)!

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

3 thoughts on “How to Install Oracle VirtualBox 6.0 in OpenSUSE”

  1. So I followed this procedure until the command “$ sudo zypper refresh” where I got the same notorious repository error. In order to proceed, I had to go to YaST Control Center –> Software –> Software Repositories and manually edit the entry “VirtualBox for openSUSE 15.1 – x86_64“.

    I changed “URL of the Repository” from “http://download.virtualbox.org/virtualbox/rpm/opensuse/$releasever/$basearch” to “http://download.virtualbox.org/virtualbox/rpm/opensuse/15.0/$basearch“.

    Apparently there is still no repository for openSUSE 15.1 on the official site of Virtualbox, there are only those listed here: http://download.virtualbox.org/virtualbox/rpm/opensuse/.

    Not really sure if that was safe to install the packages from the repository designed for openSUSE 15.0 while I’m on openSUSE 15.1 but at least finally I’ve got Virtualbox working.

    Reply
  2. As Ken Doan, I thought I was typing all kinds of errors – so I followed the procedure multiple times and I too get a repository error and going past this error does not help – using info from Oracle does not help either – there seems to be errors or omissions for ordinary people – someone who knows everything will probably get it working – but for me the futzing around to get a simple application installed is just mind-blowingly complex and frustrating – spent hours on this now (running into days)

    my error is

    Repository ‘openSUSE-Tumbleweed-Non-Oss’ is up to date.
    Repository ‘openSUSE-Tumbleweed-Oss’ is up to date.
    Repository ‘openSUSE-Tumbleweed-Update’ is up to date.
    Retrieving repository ‘VirtualBox for openSUSE 20190930 – x86_64’ metadata ……………………………….[error]
    Repository ‘VirtualBox for openSUSE 20190930 – x86_64’ is invalid.
    [virtualbox|http://download.virtualbox.org/virtualbox/rpm/opensuse/20190930/x86_64] Valid metadata not found at specified URL
    Please check if the URIs defined for this repository is pointing to a valid repository.
    Skipping repository ‘VirtualBox for openSUSE 20190930 – x86_64’ because of the above error.
    Some of the repositories have not been refreshed because of an error.

    Reply

Got something to say? Join the discussion.

This site uses Akismet to reduce spam. Learn how your comment data is processed.