{"id":2089,"date":"2018-10-31T04:48:19","date_gmt":"2018-10-31T04:48:19","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2089"},"modified":"2018-10-31T09:14:47","modified_gmt":"2018-10-31T09:14:47","slug":"how-to-install-virtualbox-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-virtualbox-on-centos-7\/","title":{"rendered":"How To Install VirtualBox on CentOS 7"},"content":{"rendered":"<p><a href=\"https:\/\/www.virtualbox.org\/\">VirtualBox<\/a> is an open source cross-platform virtualization software which allows you to run multiple guest operating systems (virtual machines) simultaneously.<\/p>\n<p>In this tutorial we will show you how to install VirtualBox from the Oracle repositories on CentOS 7 systems.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before continuing with this tutorial, make sure you are logged in as a <a href=\"\/post\/create-a-sudo-user-on-centos\/\">user with sudo privileges<\/a>.<\/p>\n<h2>Installing VirtualBox from Oracle repositories<\/h2>\n<p>Follow the steps below to install the VirtualBox on your CentOS 7 machine:<\/p>\n<ol>\n<li>Start by downloading the build tools necessary for compiling the vboxdrv kernel module:\n<p>sudo yum install kernel-devel kernel-headers make patch gcc<\/li>\n<li>Download the Oracle Linux repo file to \/etc\/yum.repos.d directory using the following <a href=\"\/post\/wget-command-examples\/\">wget command<\/a>:\n<p>sudo wget https:\/\/download.virtualbox.org\/virtualbox\/rpm\/el\/virtualbox.repo -P \/etc\/yum.repos.d<\/li>\n<li>Install the latest version of VirtualBox 5.2.x by typing:\n<p>sudo yum install VirtualBox-5.2<\/p>\n<p>During the installation you will be prompted to import repository the GPG key. Type y and hit Enter. Once the installation is complete you will see the following output:<\/p>\n<p>Creating group &#8216;vboxusers&#8217;. VM users must be member of that group!<\/p>\n<p>Verifying : VirtualBox-5.2-5.2.20_125813_el7-1.x86_64<\/p>\n<p>Installed:<br \/>\nVirtualBox-5.2.x86_64 0:5.2.20_125813_el7-1<\/li>\n<li>To verify that your VirtualBox installation was successful, run the following command which will check the status of the vboxdrv service.\n<p>The output should look something like this indicating that the service is enabled and active :<\/p>\n<p>\u25cf vboxdrv.service &#8211; VirtualBox Linux kernel module<br \/>\nLoaded: loaded (\/usr\/lib\/virtualbox\/vboxdrv.sh; enabled; vendor preset: disabled)<br \/>\nActive: active (exited) since Thu 2018-10-25 21:31:52 UTC; 6s ago<\/li>\n<\/ol>\n<h2>Installing VirtualBox Extension Pack<\/h2>\n<p>Thr VirtualBox Extension Pack provides several useful functionalities for guest machines such as virtual USB 2.0 and 3.0 devices, support for RDP, images encryption and more.<\/p>\n<p>At the time of writing this article, the latest version of VirtualBox is 5.2.20. Before downloading the extension pack using the command bellow you should check the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">VirtualBox download page<\/a> to see if a newer version is available.<\/p>\n<p>Download the extension pack file by typing:<\/p>\n<p>wget https:\/\/download.virtualbox.org\/virtualbox\/5.2.20\/Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack<\/p>\n<p>When the download is completed import the extension pack using the following command:<\/p>\n<p>sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack<\/p>\n<p>You will be presented with the Oracle license and prompted to accept the terms and conditions.<\/p>\n<p>Do you agree to these license terms and conditions (y\/n)?<\/p>\n<p>Type y and hit Enter. Once the installation is completed you will see the following output:<\/p>\n<p>0%&#8230;10%&#8230;20%&#8230;30%&#8230;40%&#8230;50%&#8230;60%&#8230;70%&#8230;80%&#8230;90%&#8230;100%<br \/>\nSuccessfully installed &#8220;Oracle VM VirtualBox Extension Pack&#8221;.<\/p>\n<h2>Starting VirtualBox<\/h2>\n<p>Now that you have VirtualBox installed on your CentOS system you can start it either from the command line by typing VirtualBox or by clicking on the VirtualBox icon (Applications -&gt; System Tools -&gt; Oracle VM VirtualBox).<img decoding=\"async\" src=\"http:\/\/lxer.com\/post\/how-to-install-virtualbox-on-centos-7\/centos-start-virtualbox.png\" alt=\"\" \/><\/p>\n<p>When the VirtualBox is started for the first time, a window like the following should appear:<img decoding=\"async\" src=\"http:\/\/lxer.com\/post\/how-to-install-virtualbox-on-centos-7\/centos-virtualbox.png\" alt=\"\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>You have learned how to install VirtualBox on your CentOS 7 machine. You can now install your first Windows or Linux guest machine. To find more information about VirtualBox visit the official <a href=\"https:\/\/www.virtualbox.org\/wiki\/Documentation\">VirtualBox documentation<\/a> page.<\/p>\n<p>If you have any question, please leave a comment below.<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=262239\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VirtualBox is an open source cross-platform virtualization software which allows you to run multiple guest operating systems (virtual machines) simultaneously. In this tutorial we will show you how to install VirtualBox from the Oracle repositories on CentOS 7 systems. Prerequisites Before continuing with this tutorial, make sure you are logged in as a user with &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/31\/how-to-install-virtualbox-on-centos-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Install VirtualBox on CentOS 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2089","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2089"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2089\/revisions"}],"predecessor-version":[{"id":2114,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2089\/revisions\/2114"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}