Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
To install Debian 13, codename Trixie, in VirtualBox, install VirtualBox on a compatible host, create a 64-bit virtual machine, attach the official Debian amd64 ISO, run Debian Installer, and reboot from the new virtual disk. Use NAT for ordinary internet access, reserve enough RAM and CPU for the host, and install Guest Additions only after Debian is working if you want automatic resizing, shared folders, clipboard integration, or better mouse support.
This walkthrough targets Debian GNU/Linux 13 for the 64-bit PC (amd64) architecture and current VirtualBox 7.2.22. The Debian installation guide build identified for this release is 20250803+deb13u1. Arm hosts need Arm guests, so an amd64 Debian image is not the correct image for an Arm computer.
As an Amazon Associate I earn from qualifying purchases.
What do I need before installing Debian in VirtualBox?
Prepare the host, the virtualization software, and the installation media before creating the VM. VirtualBox provides the virtual hardware, but it does not provide Debian or a Debian license; you must supply an ISO image yourself.
- A compatible host: An x86_64 host can run the amd64 guest used in this guide. Oracle states that Arm hosts require Arm-based guests, so do not try to boot the amd64 ISO on an Arm host.
- VirtualBox: Oracle’s download page lists version 7.2.22 as the current release in this guide. Download the package for the host operating system and processor. Oracle lists packages for Debian 11, 12, and 13 x86_64 hosts, along with installers for other host platforms.
- Debian installation media: Download an official Debian 13 amd64 ISO and verify it using Debian’s installation-media verification instructions. A verification failure means you should download the image again rather than install it.
- Free memory: Memory assigned to a running VM is unavailable to the host. Oracle says a guest may need at least 1 or 2 GB to install and boot; leave a substantial reserve for the host and its other applications.
- Free storage: The VM folder must hold the virtual disk, configuration files, and any snapshots. Select a host location with enough capacity for the Debian installation, updates, applications, and future snapshots.
How do I install VirtualBox on the host?
- Download the VirtualBox package matching both the host operating system and the host CPU architecture.
- Run the platform installer with the host’s normal administrator privileges. Accept the networking and driver components requested by the installer; these components provide the virtual adapters and other host-side functions.
- Open VirtualBox Manager after installation and confirm that it starts without a driver or kernel-module error.
- Keep the VirtualBox release and Guest Additions release aligned whenever possible. Each VirtualBox release includes its own Guest Additions, and Oracle recommends matching versions for the best result.
If VirtualBox cannot start because a host kernel module failed to build, resolve that host-side problem before creating a Debian VM. The troubleshooting section below covers the relevant log and repair command.
Popular on Amazon
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
How do I create a Debian 13 virtual machine?
VirtualBox Manager creates the VM through Home → New. Choose manual installation if you want to make Debian’s language, partitioning, user, and software choices yourself.
1. Name the machine and choose the ISO
- Open VirtualBox Manager and select Home → New.
- Give the VM a clear name such as
Debian 13. Choose a machine folder on a drive with enough free space. - Select the downloaded Debian ISO as the operating-system image.
- For a manual Debian installation, deselect unattended installation. This leaves the ISO attached while allowing Debian Installer to present each decision.
Unattended installation can save time when you want VirtualBox to automate the standard choices. Manual installation is preferable when you need to choose a desktop environment, create a particular partition layout, set a custom hostname, or use a server-oriented software set.
2. Set memory, processors, and disk conservatively
| Setting | Starting point | How to decide |
|---|---|---|
| Memory | At least 1–2 GB for installation and boot | Give more only when the host can spare it. Keep enough RAM for the host and every application you intend to run beside the VM. |
| Processors | Use a modest number of virtual CPUs | Do not assign more than half of the host’s processor threads. Excessive allocation can make the host swap or prevent the VM from starting. |
| Virtual disk | A dynamically sized disk is convenient when host space is limited | Size it for the Debian base system, selected desktop or server packages, updates, applications, and snapshots. The host still needs enough free space as the virtual disk grows. |
| Firmware | Use VirtualBox’s suggested default | Enable EFI only when it matches the boot configuration you intend to use. Changing firmware after installation can make an otherwise valid system unbootable. |
For a simple test VM, begin near the lower end of the memory range and increase resources later while the VM is powered off. A graphical desktop, compilers, or several simultaneous applications need more headroom than a minimal command-line installation. The right disk size depends on the workload; a desktop with snapshots needs substantially more host storage than a temporary server image.
3. Finish the creation wizard
Review the summary before selecting Finish. Confirm that the ISO is attached to the optical drive, the VM folder is on the intended disk, and the memory and processor values leave the host usable. You can adjust most hardware later from Settings while the VM is powered off.
How do I run Debian Installer inside the VM?
Start the new VM and let it boot from the attached ISO. Debian Installer then guides you through the operating-system setup in a predictable sequence.
Also popular on Amazon
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
- Start the VM: Select the machine in VirtualBox Manager and choose Start. If a boot-device prompt appears, select the attached Debian optical image.
- Choose language and locale: These choices determine installer language, regional defaults, date formats, and related settings.
- Configure the keyboard: Select the layout that matches the keyboard you will use through the VM console.
- Configure the network: With the default NAT adapter, Debian normally obtains connectivity through the host. Supply a hostname and domain only when your environment requires them; a simple VM can use a local hostname without joining a domain.
- Create users and passwords: Set the requested administrative and regular-user credentials. Use a password you can enter reliably in the VM console and store it securely.
- Partition the virtual disk: For a normal single-purpose VM, choose guided partitioning using the entire virtual disk. This modifies the VM’s virtual disk, not the host’s physical partitions. Choose manual partitioning only when you have a specific layout requirement.
- Install the base system: Debian copies the core packages and configures the installed system. The duration depends on the host, disk, and selected mirror.
- Select software: Choose a desktop environment and standard utilities for a graphical workstation. For a server or command-line VM, select a smaller software set and omit a desktop.
- Install the boot loader: Accept the installer’s recommended target for a conventional single-disk VM unless you deliberately created another boot arrangement.
- Reboot: When Debian reports that installation is complete, allow the VM to restart. Detach the ISO or move the virtual disk ahead of the optical drive in the VM’s boot order so it starts from the installed Debian system rather than entering the installer again.
After the first boot, sign in and let Debian finish any first-login configuration. Shut down cleanly before changing virtual hardware or taking a snapshot.
Which VirtualBox network mode should I use for Debian?
NAT is the correct default for most Debian VMs because it provides outbound internet access through the host without placing the guest directly on the physical network. Bridged networking is for cases where Debian must appear as a separate machine on the local network.
| Mode | Use it when | Trade-off |
|---|---|---|
| NAT | The VM needs package downloads, updates, web access, or other outbound connections. | The guest is behind VirtualBox’s translation and is not normally addressed like an independent LAN computer. |
| Bridged | The guest must receive its own address from the physical LAN and be reachable as another machine on that network. | Network visibility and address assignment depend on the physical adapter, Wi-Fi restrictions, and the local network’s policies. |
Change the mode while the VM is powered off through Settings → Network. Keep the adapter enabled, select the desired attachment type, and boot Debian again. If there is no network during installation, return to NAT first; it is the simplest baseline for diagnosing whether the problem is VirtualBox configuration or the LAN itself.
How do I install Guest Additions on Debian?
Guest Additions are optional software installed inside the already-installed guest. They provide improved mouse integration, shared folders, better video modes, automatic window resizing, clipboard sharing, drag and drop, and time synchronization. They do not replace Debian Installer and should not be installed before Debian itself boots.
Option A: Install the ISO supplied with VirtualBox
- Boot Debian and sign in to the graphical session if you are using one.
- In the running VM window, choose Devices → Insert Guest Additions CD Image. VirtualBox presents its bundled
VBoxGuestAdditions.isoto Debian as a virtual optical disc. - Allow Debian’s file manager to mount the disc, or mount it from the desktop’s removable-media controls.
- Open a terminal in the mounted disc and run the Linux installer with administrative privileges, for example
sudo sh ./VBoxLinuxAdditions.run. Follow any prompts and wait for the build to finish. - Reboot Debian. Automatic resizing, clipboard integration, and shared-folder support become available only after the relevant guest modules load successfully.
Use the Guest Additions that belong to the installed VirtualBox release whenever practical. A host upgrade followed by an older guest additions build can produce missing integration features or module errors; update the guest additions and reboot after changing the host version.
Recommended Free Tools
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Option B: Use Debian guest packages
Debian’s VirtualBox guidance documents virtualbox-guest-x11 for a graphical guest and virtualbox-guest-utils for a headless guest through its Fast Track guidance for Debian 11–13. After enabling the required Debian package source according to that guidance, install the package that matches the guest:
- Graphical Debian VM:
sudo apt update && sudo apt install virtualbox-guest-x11 - Headless or command-line VM:
sudo apt update && sudo apt install virtualbox-guest-utils
The ISO method keeps the guest additions aligned with the VirtualBox host release. Debian packages can fit an administration workflow that prefers distribution-managed updates. Do not mix several Guest Additions versions casually; remove or replace an older installation if modules fail to load.
How should I choose a graphical desktop or headless Debian install?
Make the software-selection decision during Debian Installer rather than installing a large desktop and removing it later.
Graphical desktop
Select a desktop environment when you need a normal interactive workstation, graphical administration tools, automatic display resizing, or applications that require a graphical session. A desktop consumes more disk space and memory, so leave additional host capacity beyond the installation minimum.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Headless or server VM
Choose a smaller software set for a service, development shell, remote administration target, or command-line test environment. A headless guest avoids desktop overhead and pairs naturally with virtualbox-guest-utils when you need basic guest integration without X11.
Also popular on Amazon
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
What should I check after Debian boots?
Use a short acceptance checklist before relying on the VM:
- Debian boots from the virtual disk even when the ISO is not attached.
- The guest receives an address and can reach the internet in NAT mode if networking is required.
- The chosen user can sign in and use administrative commands.
- The selected desktop or server packages are present and the available disk space matches your plan.
- Guest Additions features work after a reboot if you installed them: resize the VM window, test clipboard behavior, and confirm that a configured shared folder is visible.
- The host remains responsive while the VM is busy. If the host swaps or freezes, reduce the VM’s memory or processor allocation.
How do I fix common Debian-on-VirtualBox problems?
VirtualBox kernel module will not build or load
On the host, inspect /var/log/vbox-install.log for the failing build step. Install the kernel headers appropriate to the host kernel, correct the reported dependency or compiler problem, and rerun sudo rcvboxdrv setup. Restart VirtualBox after the command completes and verify that the VM can start.
The 64-bit guest option is missing
Check the host architecture and the VirtualBox build first. An Arm host cannot run the x86_64/amd64 guest used in this walkthrough; obtain an Arm Debian image for an Arm guest instead. On an x86_64 host, confirm that you installed the package matching the host architecture and that hardware virtualization has not been disabled by the host configuration.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The host becomes slow or freezes when the VM starts
Power off the VM and reduce its RAM or virtual CPU count. Oracle warns that allocating too much memory can force host swapping or prevent the VM from starting, and assigning more than half of the host’s processor threads is specifically discouraged. Close other heavy applications before increasing the VM allocation again.
Debian has no network connection
Power off the guest, open Settings → Network, ensure the adapter is enabled, and select NAT. Boot Debian and test again. Use bridged mode only when the guest must be visible on the physical LAN; if bridged mode fails on Wi-Fi, return to NAT or check the local network’s policy.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
The VM keeps returning to Debian Installer
The ISO is probably still first in the boot order. Shut down Debian, choose Settings → Storage and remove the optical medium, or open Settings → System → Boot Order and place the virtual hard disk before the optical drive. Start the VM again and confirm that the installed system loads.
Display resizing or shared folders do not work
Install Guest Additions inside Debian and reboot. Check that the additions match the host VirtualBox version; a version mismatch can leave the VM running while integration modules remain unavailable.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Snapshots consume the host’s remaining storage
A snapshot preserves the VM state by creating additional differencing data as the guest changes. Keep free space in the VM folder for both the original virtual disk and snapshot growth, and delete obsolete snapshots through VirtualBox Manager only after deciding that you no longer need their saved state.
Which installation choices are best for different goals?
| Goal | Recommended choice | Why |
|---|---|---|
| Fast standard deployment | Unattended installation | VirtualBox automates routine choices when customization is not important. |
| Control over locale, users, partitions, and packages | Manual ISO installation | Debian Installer exposes each decision and makes the resulting VM easier to reproduce deliberately. |
| Internet access from a laptop or Wi-Fi host | NAT | The guest uses the host connection without needing a separate LAN address. |
| A guest that must be reached from other LAN devices | Bridged networking | Debian joins the physical network as a separate machine, subject to that network’s rules. |
| Graphical workstation | Desktop software selection plus Guest Additions | The desktop supplies the user interface and Guest Additions improve display, mouse, clipboard, and folder integration. |
| Lightweight server or shell environment | Minimal software selection plus headless guest utilities | Fewer packages reduce resource use and avoid unnecessary graphical components. |
There is no single best VM profile. Start with conservative hardware, NAT, and a manual installation when you are learning Debian; change one setting at a time after the base system boots. This approach makes failures easier to attribute and keeps the host usable throughout the setup.
Frequently Asked Questions
Can I install Debian 13 amd64 on an Arm-based computer?
Not as an amd64 guest. Arm hosts require Arm-based guests, so download an Arm Debian image and create an Arm-compatible VM; the amd64 ISO in this walkthrough is intended for an x86_64 host.
Why does Debian start the installer every time I boot the VM?
The installation ISO is still presented as the first boot device. Power off the VM, remove the ISO from the virtual optical drive or move the virtual hard disk ahead of it in the boot order, then start the machine again.
Free tools Windows power users keep installed
One-click scans. No signup required.
Do I need Guest Additions for a command-line Debian server?
No. Debian can run without Guest Additions. If you want basic integration in a headless guest, Debian documents the distribution package virtualbox-guest-utils; graphical features such as automatic display resizing require the graphical additions package and a desktop session.
Can I change RAM or CPUs after Debian is installed?
Yes, but power off the VM before changing virtual hardware. Increase resources gradually and keep the host’s memory reserve and the half-of-host-threads CPU limit in mind; changing firmware or boot storage settings deserves extra care because it can affect booting.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

