This guide walks you through installing the Debian Linux operating system inside a virtual machine on Windows 11 using Oracle VirtualBox. You’ll end up with a fully functional Debian system that runs in a window on your desktop, letting you experiment, develop, or learn Linux without touching your main Windows installation. You’ll need a Windows 11 PC, the VirtualBox software, and the Debian ISO installer file downloaded beforehand.
What You’ll Need
- A Windows 11 PC with at least 8 GB of RAM (16 GB recommended) and about 20 GB of free disk space.
- Oracle VirtualBox installed (latest stable version). Download it from the official VirtualBox website.
- The Debian ISO file (the network install or full DVD image). Get it from the official Debian website.
- Optional: Enable virtualization in your PC’s BIOS/UEFI if it isn’t already on (most modern systems have it enabled by default).
Step-by-Step
- Download VirtualBox – Go to virtualbox.org, download the Windows installer, and run it. Accept the defaults; you can uncheck the optional components like USB support if you don’t need them, but keeping them is fine.
- Download the Debian ISO – Visit debian.org, choose “Download,” and pick the amd64 architecture. The “netinst” ISO is smaller and downloads the rest during installation; the full DVD image is larger but works offline. Save the file to a folder you can find later.
- Open VirtualBox – Launch the application. You’ll see the main manager window with a list of your virtual machines (empty on first run).
- Create a New Virtual Machine – Click the “New” button (or press Ctrl+N). A wizard appears.
- Name and OS type – Enter a name like “Debian VM.” VirtualBox usually auto-detects the type as “Linux” and version as “Debian (64-bit).” If not, set them manually. Click Next.
- Set memory size – Allocate at least 2048 MB (2 GB) of RAM. If you have 16 GB or more, give it 4096 MB. Don’t exceed half of your total RAM. Click Next.
- Create a virtual hard disk – Choose “Create a virtual hard disk now,” then click Create.
- Hard disk file type – Select “VDI (VirtualBox Disk Image)” and click Next.
- Storage on physical hard disk – Choose “Dynamically allocated.” This means the file starts small and grows as you use it. Click Next.
- Disk size – Set the size to at least 20 GB (25 GB is safer). You can leave the location as default. Click Create.
- Select the ISO – Back in the main window, click on your new VM, then click “Settings.” Go to “Storage,” click the empty optical drive under “Storage Devices,” then click the disk icon on the right and choose “Choose a disk file.” Browse to the Debian ISO you downloaded and select it. Click OK.
- Start the VM – Click the “Start” button (green arrow). The virtual machine will boot from the ISO.
- Choose Install – The Debian boot menu appears. Use the arrow keys to select “Install” (or “Graphical install” for a friendlier interface) and press Enter.
- Select language, location, keyboard – Follow the prompts. These are straightforward; choose your preferences.
- Network configuration – Debian will try to get an IP via DHCP. If your network uses DHCP (most home networks do), it will just work. If not, you’ll need to enter details manually. The hostname can be anything, e.g., “debian-vm.”
- Set root password and create a user – You’ll be asked for a root password (for admin tasks) and then to create a regular user account. Remember these credentials – you’ll need them later.
- Partition the disk – Choose “Guided – use entire disk,” select the virtual disk (usually /dev/sda), and then “All files in one partition.” This is the simplest option for a virtual machine. Confirm the changes when asked.
- Software selection – A list of software appears. For a basic system, keep “standard system utilities” and optionally “SSH server” if you want remote access. You can skip the desktop environment if you want a minimal server, but most users select “Debian desktop environment” and “GNOME” (or another desktop). Use the spacebar to select/deselect, then Tab to OK and Enter.
- Install GRUB boot loader – When asked, install GRUB to the master boot record. Select “Yes” and choose /dev/sda (the whole disk).
- Finish installation – The installer will finish and prompt you to remove the installation media. In VirtualBox, you can simply press Enter; the ISO will be “ejected” automatically. The VM will reboot.
- Log in – After reboot, you’ll see the GRUB menu, then the login screen. Enter the username and password you created. If you installed a desktop, you’ll see the graphical login; otherwise, you’ll get a text prompt.
Common Mistakes
- Not enough RAM – Giving the VM less than 2 GB can cause the installer to be very slow or fail.
- Wrong ISO architecture – Make sure you downloaded the amd64 version if your host is 64-bit (which it is on Windows 11).
- Forgetting to select the ISO – If you skip step 11, the VM boots to a blank screen saying “No bootable medium found.”
- Partitioning mistakes – Choosing “Guided – use entire disk” is safe. Manually partitioning can accidentally wipe the wrong disk if you’re not careful, but since it’s a virtual disk, the risk is low.
- Not installing GRUB – If you skip GRUB, the VM won’t boot after installation. Always install it to the master boot record.
Tips
- Install VirtualBox Guest Additions after Debian is running. In the VM menu, go to Devices → Insert Guest Additions CD image, then run the installer inside Debian. This improves screen resolution, clipboard sharing, and drag-and-drop.
- Take a snapshot of the VM right after a successful install. In VirtualBox, click the VM and then “Snapshots” → “Take.” If you break something later, you can revert instantly.
- Use a bridged network adapter if you want the VM to appear as a separate device on your LAN (for SSH, web servers, etc.).
- For a minimal server, skip the desktop environment during software selection – it saves resources and is easier to manage via SSH.
Troubleshooting
- “VT-x is not available” error – This means virtualization is disabled in your BIOS/UEFI. Restart your PC, enter the BIOS (usually by pressing Del, F2, or F12 during boot), find the virtualization setting (often called Intel VT-x or AMD-V), enable it, save and exit.
- Blank screen after starting the VM – Check that the ISO is attached correctly (Settings → Storage). If it is, try disabling “Enable EFI” in the VM settings (System → Motherboard → uncheck “Enable EFI”) – Debian often works better with legacy BIOS.
- Installer can’t find network – If the network setup fails, you can continue without network and configure it later. Or check your host’s network connection and ensure VirtualBox’s NAT adapter is enabled in VM settings.
- VM is very slow – Increase the RAM and CPU cores in Settings → System. Also ensure you have enough free disk space on your host.
- Debian boots to a black screen after GRUB – This is often a graphics driver issue. Try pressing “e” in GRUB, find the line starting with “linux,” add “nomodeset” at the end, and press Ctrl+X to boot. This disables the kernel’s graphics mode switching.
Frequently Asked Questions
Do I need a separate license for Debian?
No. Debian is free and open-source software. You can install and use it on as many machines as you like without paying anything.
Can I install Debian on VirtualBox without downloading the ISO?
No, you need the ISO file to boot the installer. VirtualBox does not have a built-in Debian image.
How much disk space will Debian take?
A minimal installation takes about 2–3 GB. With a desktop environment, expect 5–10 GB. The virtual disk file grows as you install software, so the 20 GB allocation is plenty.
Can I copy files between Windows and Debian?
Yes, once you install Guest Additions, you can enable shared folders (Devices → Shared Folders) and drag-and-drop. Alternatively, use a USB drive or a network share.
What is the default root password?
You set the root password during installation. If you left it blank, the root account is disabled and you’ll use sudo with your user account instead.
How do I update Debian after installation?
Open a terminal and run sudo apt update followed by sudo apt upgrade. Enter your user password when prompted.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- View Android Photos on Chromebook: Step-by-Step
- Fix Windows Could Not Prepare the Computer to Boot
- Windows 11 Security Settings: Best Config Guide
- Set a Google Play Budget & Stop Accidental Purchases
- Destiny 2 Error Code Anteater: Fixes & Causes
- Install Custom Recovery on Samsung Galaxy Trend