{"id":17170,"date":"2023-06-12T20:06:27","date_gmt":"2023-06-12T17:06:27","guid":{"rendered":"https:\/\/kifarunix.com\/?p=17170"},"modified":"2024-03-10T10:01:11","modified_gmt":"2024-03-10T07:01:11","slug":"install-debian-12-on-virtualbox","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-debian-12-on-virtualbox\/","title":{"rendered":"Install Debian 12 on VirtualBox"},"content":{"rendered":"\n<p>Follow through this tutorial to learn how to install Debian 12 on VirtualBox. The <em><a href=\"https:\/\/www.debian.org\/News\/2023\/20230610\" target=\"_blank\" rel=\"noreferrer noopener\">Debian<\/a> project is proud to present its new stable version 12 (code name&nbsp;<q>b<\/q>ookworm)<\/em>.<\/p>\n\n\n\n<p>According to <a href=\"https:\/\/www.debian.org\/News\/2021\/20210814\" target=\"_blank\" rel=\"noreferrer noopener\">Debian News<\/a>, <em>Debian 12 <q>bullseye<\/q>&nbsp;includes numerous updated software packages (over 67% of all packages in the previous release).<\/em><\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-debian-12-on-virtual-box\">Installing Debian 12 on VirtualBox<\/a><ul><li><a href=\"#download-debian-12-iso\">Download Debian 12 ISO<\/a><\/li><li><a href=\"#create-new-virtual-machine\">Create New Virtual Machine<\/a><ul><li><a href=\"#name-and-operating-system-of-the-vm\">Name and Operating System of the VM<\/a><\/li><li><a href=\"#unattended-guest-os-install-setup\">Unattended Guest OS Install Setup<\/a><\/li><li><a href=\"#set-the-vm-hardware\">Set the VM Hardware<\/a><\/li><li><a href=\"#vm-virtual-hard-disk\">VM Virtual Hard Disk<\/a><\/li><li><a href=\"#virtual-machine-setup-summary\">Virtual Machine Setup Summary<\/a><\/li><li><a href=\"#install-debian-12-virtual-machine-on-virtual-box\">Install Debian 12 Virtual Machine on VirtualBox<\/a><\/li><li><a href=\"#booting-into-debian-12-on-virtual-box\">Booting into Debian 12 on VirtualBox<\/a><\/li><\/ul><\/li><li><a href=\"#additional-settings-for-the-virtual-machine\">Additional Settings for the Virtual Machine<\/a><\/li><li><a href=\"#other-tutorials\">Other Tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-debian-12-on-virtual-box\">Installing Debian 12 on VirtualBox<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"download-debian-12-iso\">Download Debian 12 ISO<\/h3>\n\n\n\n<p>Navigate to <a href=\"https:\/\/www.debian.org\/CD\/http-ftp\/#stable\" target=\"_blank\" rel=\"noreferrer noopener\">Debian CD\/DVD images page<\/a> and grab a stable release version ISO file for your specific system arch.<\/p>\n\n\n\n<p>We are using the <strong>amd<\/strong> version in this guide.<\/p>\n\n\n\n<p>You can choose to download a minimal installation ISO file;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/cdimage.debian.org\/debian-cd\/current\/amd64\/iso-cd\/debian-12.0.0-amd64-netinst.iso \\\n-P ~\/Downloads<\/pre>\n\n\n\n<p>Or a full installation DVD iso file;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -c https:\/\/cdimage.debian.org\/debian-cd\/current\/amd64\/iso-dvd\/debian-12.0.0-amd64-DVD-1.iso \\\n-P ~\/Downloads<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-new-virtual-machine\">Create New Virtual Machine<\/h3>\n\n\n\n<p>Next, launch VirtualBox and create a new Virtual Machine with your preferred settings such as&nbsp;<strong>networking<\/strong>,&nbsp;<strong>disk size<\/strong>,&nbsp;<strong>system resources<\/strong>&nbsp;etc.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"name-and-operating-system-of-the-vm\">Name and Operating System of the VM<\/h4>\n\n\n\n<p>To begin with;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>define the name of the virtual machine and the Operating system.<\/li>\n\n\n\n<li>set the installation folder<\/li>\n\n\n\n<li>Select the ISO image that will be used to install your Debian 12 vm on VirtualBox.<\/li>\n<\/ul>\n\n\n\n<p>Note that we will be using VirtualBox 7, which supports unattended guest VM installation. Luckily, Debian 12, both desktop and the server supports unattended installation.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"550\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/create-debian-12-vm-virtualbox.png\" alt=\"Install Debian 12 VM on VirtualBox\" class=\"wp-image-17175\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/create-debian-12-vm-virtualbox.png?v=1686587956 965w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/create-debian-12-vm-virtualbox-768x438.png?v=1686587956 768w\" sizes=\"(max-width: 965px) 100vw, 965px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"unattended-guest-os-install-setup\">Unattended Guest OS Install Setup<\/h4>\n\n\n\n<p>(Note, if you want to be able to choose whether to install desktop or headless server, i suggest you skip unattended installation and go through the installation process manually)<\/p>\n\n\n\n<p>To perform unattended guest OS installation, you need to provide;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Username and password for account to be created<\/li>\n\n\n\n<li>Hostname and domain name of the vm<\/li>\n\n\n\n<li>Choose whether to install VirtualBox Guest Additions automatically<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"547\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtualbox-unattended-installation.png\" alt=\"\" class=\"wp-image-17179\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtualbox-unattended-installation.png?v=1686588321 967w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtualbox-unattended-installation-768x434.png?v=1686588321 768w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"set-the-vm-hardware\">Set the VM Hardware<a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-1.png\"><\/a><\/h4>\n\n\n\n<p>Next, assign the VM required RAM and vCPUs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"547\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-ram-and-cpu-virtualbox.png\" alt=\"Install Debian 12 on VirtualBox\" class=\"wp-image-17176\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-ram-and-cpu-virtualbox.png?v=1686588063 880w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-ram-and-cpu-virtualbox-768x477.png?v=1686588063 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"vm-virtual-hard-disk\">VM Virtual Hard Disk<\/h4>\n\n\n\n<p>Create a Virtual hard disk for your Debian 12 vm. Choose the disk size of your preference.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"549\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtual-disk-virtualbox.png\" alt=\"Install Debian 12 VM on VirtualBox\" class=\"wp-image-17177\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtual-disk-virtualbox.png?v=1686588088 880w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-virtual-disk-virtualbox-768x479.png?v=1686588088 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"virtual-machine-setup-summary\">Virtual Machine Setup Summary<\/h4>\n\n\n\n<p>Go through the virtual machine setup summary and when you are happy with the configuration press <strong>Finish<\/strong> to create the virtual machine. Alternatively you can go back and modify the configuration.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"968\" height=\"550\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/installation-summary-debian-12.png\" alt=\"\" class=\"wp-image-17178\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/installation-summary-debian-12.png?v=1686588128 968w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/installation-summary-debian-12-768x436.png?v=1686588128 768w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"install-debian-12-virtual-machine-on-virtual-box\">Install Debian 12 Virtual Machine on VirtualBox<\/h4>\n\n\n\n<p>Immediately you click <strong>Finish<\/strong>, installation of Debian 12 desktop on VirtualBox will start.<\/p>\n\n\n\n<p>Just a seat back and wait for your VM to be installed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"booting-into-debian-12-on-virtual-box\">Booting into Debian 12 on VirtualBox<\/h4>\n\n\n\n<p>After the installation, your VM will reboot.<\/p>\n\n\n\n<p>The grub menu.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"537\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-grub.png\" alt=\"Install Debian 12 VM on VirtualBox\" class=\"wp-image-17180\" title=\"\"><\/figure><\/div>\n\n\n<p>Login interface<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"670\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/login-interface-debian-12.png\" alt=\"\" class=\"wp-image-17181\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/login-interface-debian-12.png?v=1686588599 855w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/login-interface-debian-12-768x602.png?v=1686588599 768w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/figure><\/div>\n\n\n<p>Login using the credentials set before.<\/p>\n\n\n\n<p>Go through initial setup and start using Debian 12 on VirtualBox.<\/p>\n\n\n\n<p>Similarly, your Debian 12 desktop should auto-resize if VirtualBox Guest Additions were installed successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"981\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-desktop-virtualbox.png\" alt=\"Install Debian 12 VM on VirtualBox\" class=\"wp-image-17182\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-desktop-virtualbox.png?v=1686588871 1914w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-desktop-virtualbox-768x394.png?v=1686588871 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/06\/debian-12-desktop-virtualbox-1536x787.png?v=1686588871 1536w\" sizes=\"(max-width: 1914px) 100vw, 1914px\" \/><\/figure>\n\n\n\n<p>If the desktop doesnt auto-resize, then head over to <strong>view<\/strong> menu option on the vm and toggle &#8220;<strong>Auto-resize Guest Display<\/strong>&#8220;. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"additional-settings-for-the-virtual-machine\">Additional Settings for the Virtual Machine<\/h3>\n\n\n\n<p>If you want to further customize your VM before installation, then select the vm and open the settings.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/07\/rocky-linux-9-virtualbox-2-1.png\"><\/a>We will only update the network settings of the vm at this point.<\/p>\n\n\n\n<p>Thus, under network settings;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Adapter 1 set it to NAT to allow the VM to access Internet via the host system.<\/li>\n\n\n\n<li>Adapter 2 you can set it to host only just in case you want it to communicate with other vms on your host machine and even facilitate easy access from the host system.]<\/li>\n<\/ul>\n\n\n\n<p>Note that you need to power off the machine to update the settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-tutorials\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-rocky-linux-8-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Rocky Linux 8 on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-rocky-linux-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install VirtualBox Guest Additions on Rocky Linux 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow through this tutorial to learn how to install Debian 12 on VirtualBox. The Debian project is proud to present its new stable version 12<\/p>\n","protected":false},"author":10,"featured_media":17184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[36,121,46],"tags":[6859,6863,6862,6861,6864,6865],"class_list":["post-17170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualization","category-howtos","category-virtualbox","tag-debian-12","tag-debian-12-install","tag-debian-12-virtualbox-vm","tag-install-debian-12-on-virtualbox","tag-virtualbox-debian-12","tag-virtualbox-guest-additions-for-debian-12","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\/17170"}],"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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=17170"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/17170\/revisions"}],"predecessor-version":[{"id":20789,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/17170\/revisions\/20789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/17184"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=17170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=17170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=17170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}