{"id":13910,"date":"2022-09-07T22:02:38","date_gmt":"2022-09-07T19:02:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=13910"},"modified":"2024-03-09T21:30:38","modified_gmt":"2024-03-09T18:30:38","slug":"easy-way-to-install-virtualbox-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/easy-way-to-install-virtualbox-on-oracle-linux\/","title":{"rendered":"Easy way to Install VirtualBox on Oracle Linux"},"content":{"rendered":"\n

Are you running Oracle Linux desktop and want to do some Virtualizations? Thus, follow through this guide to learn how to install VirtualBox on Oracle Linux. In this tutorial, we will be using Oracle Linux 9.<\/p>\n\n\n\n

Easy way to Install VirtualBox on Oracle Linux<\/h2>\n\n\n\n

There are two ways in which you can easily install VirtualBox on Oracle Linux.<\/p>\n\n\n\n

    \n
  1. Manually using Oracle Linux RPM Binary Package<\/a><\/li>\n\n\n\n
  2. Automatically via Oracle Developer YUM repositories<\/a><\/li>\n<\/ol>\n\n\n\n

    Install Linux Kernel Headers on Oracle Linux<\/h3>\n\n\n\n

    Before you can proceed, ensure that the kernel headers matching the version of the running kernel is installed;<\/p>\n\n\n\n

    sudo dnf install kernel-uek-devel<\/code><\/pre>\n\n\n\n

    Confirm that the version numbers shown by these commands are similar;<\/p>\n\n\n\n

    uname -r<\/code><\/pre>\n\n\n\n
    5.15.0-1.43.4.2.el9uek.x86_64<\/strong><\/code><\/pre>\n\n\n\n
    rpm -q kernel-uek-devel<\/code><\/pre>\n\n\n\n
    kernel-uek-devel-5.15.0-1.43.4.2.el9uek.x86_64<\/strong><\/code><\/pre>\n\n\n\n

    If not, then update the kernel headers;<\/p>\n\n\n\n

    sudo dnf update kernel-uek-*<\/code><\/pre>\n\n\n\n

    Install VirtualBox on Oracle Linux using RPM Binary Package<\/h3>\n\n\n\n

    Download RPM binary package for your specific Oracle Linux release from VirtualBox downloads page<\/a>.<\/p>\n\n\n\n

    wget https:\/\/download.virtualbox.org\/virtualbox\/6.1.38\/VirtualBox-6.1-6.1.38_153438_el9-1.x86_64.rpm<\/code><\/pre>\n\n\n\n

    Once the download is complete, run the installation.<\/p>\n\n\n\n

    sudo dnf localinstall VirtualBox-6.1-6.1.38_153438_el9-1.x86_64.rpm<\/code><\/pre>\n\n\n\n

    You can also get the download link and do the installation directly;<\/p>\n\n\n\n

    sudo dnf install https:\/\/download.virtualbox.org\/virtualbox\/6.1.38\/VirtualBox-6.1-6.1.38_153438_el9-1.x86_64.rpm<\/code><\/pre>\n\n\n\n
    \n============================================================================================================================================================================\n Package                                   Architecture                 Version                                                   Repository                           Size\n============================================================================================================================================================================\nInstalling:\n VirtualBox-6.1                            x86_64                       6.1.38_153438_el9-1                                       @commandline                         91 M\nInstalling dependencies:\n SDL2                                      x86_64                       2.0.20-2.el9                                              ol9_appstream                       611 k\n libdecor                                  x86_64                       0.1.0-3.el9                                               ol9_appstream                        45 k\n pcre2-utf16                               x86_64                       10.37-3.el9.1                                             ol9_appstream                       211 k\n qt5-qtbase                                x86_64                       5.15.2-29.el9                                             ol9_appstream                       3.7 M\n qt5-qtbase-common                         noarch                       5.15.2-29.el9                                             ol9_appstream                        12 k\n qt5-qtbase-gui                            x86_64                       5.15.2-29.el9                                             ol9_appstream                       6.4 M\n qt5-qtx11extras                           x86_64                       5.15.2-6.el9                                              ol9_appstream                        41 k\n sdl12-compat                              x86_64                       0.0.1~git.20211125.4e4527a-4.el9                          ol9_appstream                        88 k\n xcb-util-image                            x86_64                       0.4.0-19.el9                                              ol9_appstream                        20 k\n xcb-util-keysyms                          x86_64                       0.4.0-17.el9                                              ol9_appstream                        15 k\n xcb-util-renderutil                       x86_64                       0.3.9-20.el9                                              ol9_appstream                        18 k\n xcb-util-wm                               x86_64                       0.4.1-22.el9                                              ol9_appstream                        32 k\n\nTransaction Summary\n============================================================================================================================================================================\nInstall  13 Packages\n\nTotal size: 102 M\nTotal download size: 11 M\nInstalled size: 240 M\nIs this ok [y\/N]: y\n<\/code><\/pre>\n\n\n\n

    Install VirtualBox on Oracle Linux via YUM Repositories<\/h3>\n\n\n\n

    If you like, you can install VirtualBox on Oracle Linux via YUM Repositories;<\/p>\n\n\n\n

    To use this method, install Oracle Linux Developer repositories;<\/p>\n\n\n\n

    \nsudo tee \/etc\/yum.repos.d\/ol9-epel.repo << 'EOL'\n[ol9_developer]\nname= Oracle Linux $releasever_$basearch\nbaseurl=https:\/\/yum.oracle.com\/repo\/OracleLinux\/OL9\/developer\/$basearch\/\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-oracle\ngpgcheck=1\nenabled=1\nEOL\n<\/code><\/pre>\n\n\n\n

    Next, install VirtualBox on Oracle Linux;<\/p>\n\n\n\n

    sudo dnf install VirtualBox-6*<\/code><\/pre>\n\n\n\n

    Add VirtualBox users to VBOXUSERS group<\/h3>\n\n\n\n

    VM users must be member of vboxusers<\/strong><\/code> group.<\/p>\n\n\n\n

    You can add users to group as follows;<\/p>\n\n\n\n

    sudo usermod -aG vboxusers USERNAME<\/code><\/pre>\n\n\n\n

    E.g, to add a user, kifarunix<\/code><\/strong>, to the group.<\/p>\n\n\n\n

    sudo usermod -aG vboxusers kifarunix<\/code><\/pre>\n\n\n\n

    Launching VirtualBox on Oracle Linux<\/h3>\n\n\n\n

    You can now launch and use VirtualBox on Oracle Linux.<\/p>\n\n\n\n

    \"Easy<\/figure><\/a><\/div>\n\n\n\n
    \"Easy<\/figure><\/a><\/div>\n\n\n\n

    That concludes our guide on how you can easily install VirtualBox on Oracle Linux.<\/p>\n\n\n\n

    Other Tutorials<\/h3>\n\n\n\n

    Install VirtualBox Guest Additions on Oracle Linux 9<\/a><\/p>\n\n\n\n

    Install Oracle Linux 9 on VirtualBox<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    Are you running Oracle Linux desktop and want to do some Virtualizations? Thus, follow through this guide to learn how to install VirtualBox on Oracle<\/p>\n","protected":false},"author":1,"featured_media":13913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[5755,5758,5756,5757],"class_list":["post-13910","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-install-virtualbox-oracle-linux","tag-oracle-linux-9-virtualbox","tag-oracle-linux-install-virtualbox","tag-virtualbox-oracle-linux-9","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13910"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=13910"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13910\/revisions"}],"predecessor-version":[{"id":20623,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13910\/revisions\/20623"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/13913"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=13910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=13910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=13910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}