{"id":60688,"date":"2023-11-03T14:55:11","date_gmt":"2023-11-03T13:55:11","guid":{"rendered":"https:\/\/ekiwi-blog.de\/60688\/linux-mint-install-virtualbox-7\/"},"modified":"2023-11-03T14:55:11","modified_gmt":"2023-11-03T13:55:11","slug":"linux-mint-install-virtualbox-7","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/60688\/linux-mint-install-virtualbox-7\/","title":{"rendered":"Linux Mint: Install VirtualBox 7"},"content":{"rendered":"<p>Install the latest version of VirtualBox in Linux Mint.<\/p>\n<p><!--more--><\/p>\n<p>I have installed the latest Linux Mint 21. Unfortunately, it still comes with the old version of VirtualBox. Normally this is not a big deal, but the 7 version has some great improvements, such as support for Windows 11.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/60688\/linux-mint-install-virtualbox-7\/#Check_which_version_is_available\" >Check which version is available<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/60688\/linux-mint-install-virtualbox-7\/#Install_VirtualBox_7\" >Install VirtualBox 7<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Check_which_version_is_available\"><\/span>Check which version is available<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>But first, let&#8217;s check which version is in the package sources. It is quite possible that this will change in the future and we can save ourselves all the trouble here. This can be done with the following command<\/p>\n<pre>\r\napt-get -s install virtualbox\r\n<\/pre>\n<p>The parameter causes the installation to be simulated only. We see the version number in the output. We also see that we are using &#8220;jammy&#8221;. We&#8217;ll need that in a moment.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_1.png\" alt=\"\" width=\"654\" height=\"470\" class=\"aligncenter size-full wp-image-60680\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_1.png 654w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_1-300x216.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install_VirtualBox_7\"><\/span>Install VirtualBox 7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are various ways to install the latest version. You can download the current version from the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\" target=\"_blank\" rel=\"noopener\">download page<\/a>, e.g. as a .deb file.<\/p>\n<p>However, this has the disadvantage that updates are not installed automatically. We therefore choose the alternative and add the VirtualBox repository to our package sources.<\/p>\n<p>We start with the GPG key:<\/p>\n<pre>\r\nsudo apt install curl wget gnupg2 lsb-release y\r\ncurl -fsSL https:\/\/www.virtualbox.org\/download\/oracle_vbox_2016.asc|sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/vbox.gpg\r\ncurl -fsSL https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc|sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/oracle_vbox.gpg\r\n<\/pre>\n<p>We then add the package source to our system. Note, here we see the &#8220;jammy&#8221; from the screenshot above. Adjust accordingly for newer versions of Linux.<\/p>\n<pre>\r\necho \"deb [arch=amd64] http:\/\/download.virtualbox.org\/virtualbox\/debian jammy contrib\" | sudo tee \/etc\/apt\/sources.list.d\/virtualbox.list\r\n<\/pre>\n<p>Once this is done, we can install VirtualBox. To do this, we update the package sources, download the Linux headers and then install VirtualBox.<\/p>\n<pre>\r\nsudo apt update\r\nsudo apt install -y linux-headers-$(uname -r) dkms\r\nsudo apt install virtualbox-7.0 -y\r\n<\/pre>\n<p>Finally, we add our user to the &#8220;vboxusers&#8221; group.<\/p>\n<pre>\r\nsudo usermod -aG vboxusers $USER\r\nnewgrp vboxusers\r\n<\/pre>\n<p>VirtualBox can then be started.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_2.png\" alt=\"\" width=\"1019\" height=\"701\" class=\"aligncenter size-full wp-image-60684\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_2.png 1019w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_2-300x206.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/11\/virtualbox_2-768x528.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Install the latest version of VirtualBox in Linux Mint.<\/p>\n","protected":false},"author":1,"featured_media":18427,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1682],"class_list":["post-60688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-linux-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/60688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=60688"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/60688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/18427"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=60688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=60688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=60688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}