How to Install Oracle VirtualBox 7.0 in OpenSUSE

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

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, Windows, DOS/Windows, Solaris and OpenSolaris, OS/2, and OpenBSD.

Installing VirtualBox 7.0 in OpenSuse

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

$ wget -q
$ sudo rpm --import oracle_vbox.asc
$ cd /etc/zypp/repos.d 
$ sudo wget
Enable Virtualbox Repository on OpenSuse
Enable Virtualbox Repository on OpenSuse

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

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

Once the repositories have been refreshed, you will need to install a 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 7.0 with the following command.

$ sudo zypper install VirtualBox-7.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 in OpenSUSE
Running Virtualbox in OpenSUSE

Installing VirtualBox Extension Pack in OpenSuse

VirtualBox extensions pack extends 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 the AES algorithm.

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

$ wget

To install the extension pack, go to File –> Preferences –> Tools –> Extension Manager 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 and 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 in OpenSUSE
Virtualbox Extension Pack in OpenSUSE

[ You might also like: 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.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

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 7.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 “$releasever/$basearch” to “$basearch“.

    Apparently there is still no repository for openSUSE 15.1 on the official site of Virtualbox, there are only those listed here:

    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.

  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|] 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.


Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.