How to Install Virtual-Box on opensuse15.1

Installation of Virtual Box On OpenSuse 15.1

Process

To check the installed version of os

LinuxHelp:~ # cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.1 "
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Download the Virtual-Box repo file under repos.d directory

LinuxHelp:~ # cd /etc/zypp/repos.d/
LinuxHelp:/etc/zypp/repos.d # wget http://download.virtualbox.org/virtualbox/rpm/opensuse/13.2/virtualbox.repo
--2019-11-05 04:08:50--  http://download.virtualbox.org/virtualbox/rpm/opensuse/13.2/virtualbox.repo
Resolving download.virtualbox.org (download.virtualbox.org)... 23.36.4.43
Connecting to download.virtualbox.org (download.virtualbox.org)|23.36.4.43|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 258 [text/plain]
Saving to: ‘virtualbox.repo’

virtualbox.repo                                 100%[====================================================================================================>]     258  --.-KB/s    in 0s      

2019-11-05 04:08:50 (27.4 MB/s) - ‘virtualbox.repo’ saved [258/258]

Refresh the zipper repository to update the repository

LinuxHelp:/etc/zypp/repos.d # zypper refresh
Repository 'openSUSE-Leap-15.1-1' is up to date.                                                                                                                                             
Repository 'Non-OSS Repository' is up to date.                                                                                                                                               
Repository 'Main Repository' is up to date.                                                                                                                                                  
Retrieving repository 'Main Update Repository' metadata ...............................................................................................................................[done]
Building repository 'Main Update Repository' cache ....................................................................................................................................[done]
Repository 'Update Repository (Non-Oss)' is up to date.                                                                                                                                      
Retrieving repository 'VirtualBox for openSUSE 13.2 / Leap 42.1' metadata ----------------------------------------------------------------------------------------------------------------[|]
Looking for gpg key ID 98AB5139 in cache /var/cache/zypp/pubkeys.
Looking for gpg key ID 98AB5139 in repository VirtualBox for openSUSE 13.2 / Leap 42.1.
  gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
Retrieving repository 'VirtualBox for openSUSE 13.2 / Leap 42.1' metadata ----------------------------------------------------------------------------------------------------------------[/]

New repository or package signing key received:

  Repository:       VirtualBox for openSUSE 13.2 / Leap 42.1                                 
  Key Name:         Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
  Key Fingerprint:  7B0FAB3A 13B90743 5925D9C9 54422A4B 98AB5139                             
  Key Created:      Tue May 18 23:08:56 2010                                                 
  Key Expires:      (does not expire)                                                        
  Subkey:           B6748A65281DDC4B 2010-05-18 [does not expire]                            
  Rpm Name:         gpg-pubkey-98ab5139-4bf2d0b0                                             


Do you want to reject the key, or trust always? [r/a/?] (r): a
Retrieving repository 'VirtualBox for openSUSE 13.2 / Leap 42.1' metadata .............................................................................................................[done]
Building repository 'VirtualBox for openSUSE 13.2 / Leap 42.1' cache ..................................................................................................................[done]
All repositories have been refreshed.

Installed Required packages by using the below command

LinuxHelp:/etc/zypp/repos.d # zypper install gcc make automake autoconf kernel-source kernel-syms
Loading repository data...
Reading installed packages...
'make' is already installed.
No update candidate for 'make-4.2.1-lp151.7.39.x86_64'. The highest available version is already installed.
Resolving package dependencies...

The following 35 NEW packages are going to be installed:
  autoconf automake bc bison bison-lang fipscheck flex gcc gcc7 glibc-devel kernel-default-devel kernel-devel kernel-macros kernel-source kernel-syms libasan4 libatomic1 libcilkrts5
  libelf-devel libfipscheck1 libfl-devel libfl2 libitm1 liblsan0 libmpx2 libmpxwrappers2 libopenssl-1_1-devel libopenssl-devel libtsan0 libubsan0 linux-glibc-devel mozilla-nss-tools pesign
  pesign-obs-integration zlib-devel

The following 7 recommended packages were automatically selected:
  bc bison bison-lang flex gcc libelf-devel libopenssl-devel

35 new packages to install.
Overall download size: 170.8 MiB. Already cached: 0 B. After the operation, additional 864.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package autoconf-2.69-lp151.2.70.noarch                                                                                                     (1/35), 706.0 KiB (  2.2 MiB unpacked)
Retrieving: autoconf-2.69-lp151.2.70.noarch.rpm .........................................................................................................................[done (490.8 KiB/s)]
Retrieving package bc-1.07.1-lp151.3.11.x86_64                                

Use the following command to install the virtualbox

LinuxHelp:/etc/zypp/repos.d # zypper install virtualbox
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 5 NEW packages are going to be installed:
  libQt5OpenGL5 libQt5PrintSupport5 virtualbox virtualbox-kmp-default virtualbox-qt

The following recommended package was automatically selected:
  virtualbox-qt

5 new packages to install.
Overall download size: 38.4 MiB. Already cached: 0 B. After the operation, additional 98.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libQt5OpenGL5-5.9.7-lp151.3.1.x86_64                                                                                                 (1/5), 193.8 KiB (603.0 KiB unpacked)
Retrieving: libQt5OpenGL5-5.9.7-lp151.3.1.x86_64.rpm ..................................................................................................................................[done]
Retrieving package libQt5PrintSupport5-5.9.7-lp151.3.1.x86_64                                                                                           (2/5), 253.5 KiB (808.0 KiB unpacked)
Retrieving: libQt5PrintSupport5-5.9.7-lp151.3.1.x86_64.rpm ............................................................................................................................[done]
Retrieving package virtualbox-kmp-default-6.0.12_k4.12.14_lp151.28.13-lp151.2.9.1.x86_64                                                                (3/5), 495.0 KiB (  1.6 MiB unpacked)
Retrieving: virtualbox-kmp-default-6.0.12_k4.12.14_lp151.28.13-lp151.2.9.1.x86_64.rpm ....................................................................................[done (10.9 KiB/s)]
Retrieving package virtualbox-6.0.12-lp151.2.9.1.x86_64                                                                                                 (4/5),  12.2 MiB ( 38.1 MiB unpacked)
Retrieving: virtualbox-6.0.12-lp151.2.9.1.x86_64.rpm ....................................................................................................................[done (677.8 KiB/s)]
Retrieving package virtualbox-qt-6.0.12-lp151.2.9.1.x86_64                                                                                              (5/5),  25.3 MiB ( 57.8 MiB unpacked)
Retrieving: virtualbox-qt-6.0.12-lp151.2.9.1.x86_64.rpm .................................................................................................................[done (640.2 KiB/s)]
Checking for file conflicts: ..........................................................................................................................................................[done]
(1/5) Installing: libQt5OpenGL5-5.9.7-lp151.3.1.x86_64 ................................................................................................................................[done]
(2/5) Installing: libQt5PrintSupport5-5.9.7-lp151.3.1.x86_64 ..........................................................................................................................[done]
(3/5) Installing: virtualbox-kmp-default-6.0.12_k4.12.14_lp151.28.13-lp151.2.9.1.x86_64 ...............................................................................................[done]
(4/5) Installing: virtualbox-6.0.12-lp151.2.9.1.x86_64 ................................................................................................................................[done]
Additional rpm output:
setting /usr/lib/virtualbox/VBoxNetNAT to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxNetDHCP to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxNetAdpCtl to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxHeadless to root:vboxusers 4750. (wrong permissions 0750)


(5/5) Installing: virtualbox-qt-6.0.12-lp151.2.9.1.x86_64 .............................................................................................................................[done]
Additional rpm output:
setting /usr/lib/virtualbox/VirtualBoxVM to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxSDL to root:vboxusers 4750. (wrong permissions 0750)


Executing %posttrans scripts ..........................................................................................................................................................[done]

With this,Installation of VirtualBox On OpenSuse 15.1 comes to an end.

FAQ
Q
What is the latest version VirtualBox?
A
The latest version of the virtual box is 6.0.
Q
What is meant by a snapshot in VirtualBox?
A
Snapshots are one of the features in VirtualBox, which allows you to save and then revert back to the exact state of the virtual machine
Q
Can you list some alternatives to VirtualBox?
A
QEMU
KVM
Xenserver
VMware
Q
Is it platform-oriented?
A
No, It is not platform-oriented, we can use VirtualBox at any platform(Windows, Linux, Mac)
Q
What is VirtualBox?
A
VirtualBox is open-source software for virtualizing the x86 computing architecture that enables you to run more than one OS at a time