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 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, 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 https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack

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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

3 Comments

Leave a Reply
  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...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.