In this article, we will examine how to set up and use Oracle VM VirtualBox 7.0, which you can download for free, to create new virtual machines on the openSUSE Leap 15 (15.4) Linux distribution.
How to Set Up Oracle VM VirtualBox 7.0.0 to Create a Virtual Machine on openSUSE Leap 15
Oracle VM VirtualBox is a great free open-source virtualization software. Using this software on your host computer allows you to run any Windows, Linux, or macOS system you want to operate virtually without needing a dual-boot system setup.
Any operation you perform on these virtual machines you have installed will not harm the operating system installed on your physical computer. A virus that will only infect your virtual computer when connected to the same network can also infect your host system. Although this is the only downside, it is a great way to experience various operating systems on your computer that supports virtualization.
Many users generally use the Windows system on their host PCs, but those aiming to gain advanced experience prefer a Linux-based distribution.
Another Linux platform is the openSUSE distribution developed by the SUSE company. There are two variants of this distribution, Leap and Tumbleweed. When there are system updates in the Leap type, the version is changed, but in the Tumbleweed type, the updates are pulled from the Internet and installed instantly, but there is no change in the system version.
We recommend choosing Oracle VM software to create and use a new virtual machine in the openSUSE Leap 15 (15.4) distribution.
How to Download and Install Oracle VM VirtualBox
You can download VirtualBox virtualization software developed by Oracle from the official website for Windows, Linux, or macOS platforms. The setup file extension may be different according to the operating system you downloaded, so you should install the program according to the file extension.
When you are redirected to the VirtualBox 7.0.0 Platform Packages webpage, click Linux Distributions.
You can see the distributions you can download for Linux hosts on this page. Click on the link to download the setup file that is compatible with your openSUSE system and has the rpm package extension, and then save the file.
After downloading the VirtualBox.rpm setup file, you need to update your openSUSE system’s repository sources before starting the installation. To do this, open the terminal and execute the command “sudo zypper refresh”.
sudo zypper refresh
In order for VirtualBox to run smoothly on your computer, execute the “sudo zypper in gcc make kernel-devel” command in the terminal to install GCC and kernel packages on your system and press Y and Enter to confirm the packages to be installed.
sudo zypper in gcc make kernel-devel
When installing Oracle software on your openSUSE system, you need to download and import the signed key. If you continue without downloading the key, you will not get an error during the installation phase, but you may get an error on your guest machines in the future.
Execute the commands below in the terminal to download the oracle_vbox key and add it to your system.
After making the necessary preparations, go to the location where you downloaded the VirtualBox.rpm file and execute the command “sudo zypper install VirtualBox-7.0-7.0.0_153978_openSUSE153-1.x86_64.rpm” in the terminal to start the installation, and then press Y and Enter.
After installing Oracle VirtualBox, you need to add your current user account on your SUSE system to the vboxusers group, otherwise you will get a warning about user control.
To make your existing user account a member of the vboxusers group created by Oracle, execute the command “sudo gpasswd -a $USER vboxusers” in the terminal and then reboot your computer with the command “sudo reboot” for the changes to take effect.
sudo gpasswd -a $USER vboxusers
When you restart your SUSE computer, find VirtualBox from the applications menu and run it.
When you run the Oracle VM VirtualBox virtualization software, you can check Help / About from the tool menu to check version 7.0.
How to Install Extension Pack
In order to use USB, webcam, or other host hardware in your guest virtual machines that you will run in VirtualBox, you need to install the Extension Pack application.
Likewise, visit the virtualbox.org website, and this time click on the All Supported Platforms link in the “Extension Pack” title and save the vbox-extpack package to your computer.
Go to Downloads and double-click on the relevant file to install the Extension Pack on your SUSE system.
As soon as you double-click the installation file, when the Oracle program opens, click the Install button in the Question window.
To read the full text of the license agreement of the extension package, scroll down the page and then click the I Agree button.
Wait while the driver package for virtual machines is installed.
Open File / Tools / Extension Pack Manager to verify the installation process.
You can check that you added version 7.0.0 of the Oracle VM VirtualBox Extension Pack to the program.
For fast file transfer between your host PC and guest machine, change Shared Clipboard and Drag’n’Drop properties to Bidirectional in General / Advanced settings.
To install Windows using the ISO file, set Optical to the top of the Boot Order devices in the System / Motherboard settings and enable the Secure Boot feature.
In order to use your virtual computer faster, configure the vCPU setting to 2 or higher in the Processor settings.
To get better quality images, enable 3D Acceleration from Display / Screen settings and change the Video Memory size to 256 MB.
To increase the performance of the virtual disk, select the SATA controller from the Storage settings and enable the Host I/O Cache feature.
Likewise, set the Windows 10.vdi disk file to run as Solid-State Drive (SSD).
Finally, to use your USB 3.0 devices in your Microsoft Windows 10 virtual system, select the USB 3.0 (xHCI) Controller from the USB settings and close the settings window.
After making the settings of the Win10 virtual computer you have prepared, click the Start button from the tool menu to run it.
You can now set up your system when the Windows 10 setup wizard opens over the ISO image you added when you ran the VM.
If you want to completely remove your Windows 10 virtual system from your system later, right-click on it from the virtual machine library and click Remove. When the Question window opens, if you want to completely delete all files related to this machine from your system, click Delete All Files.
How to Uninstall VirtualBox
If you no longer want to use Oracle virtualization software on your openSUSE Leap 15 system, you can use the terminal to easily uninstall it.
Before completely uninstalling VirtualBox from your SUSE system, run the command “sudo rpm -qa | grep -i VirtualBox” in the terminal to check if it is installed. If you see the program, execute the command “sudo rpm -e VirtualBox-7.0” to start the uninstall process.
Finally, we recommend that you also delete the vboxusers group that was added to your system when installing VirtualBox. First, check that the group exists with the command “cat /etc/group | grep vbox” and execute the command “sudo groupdel vboxusers” to delete it.