Install Ubuntu 26.04 in VirtualBox on Windows: an illustrated beginner guide
Install Ubuntu 26.04 LTS in VirtualBox on Windows 11: download the ISO, verify it, configure the virtual disk, and follow screenshots and boot troubleshooting.
Want to install Ubuntu 26.04 LTS in VirtualBox on Windows 11 and start learning Linux? We will download and verify the official ISO, build a virtual machine, and follow the installer screenshots through the first boot. Then we will check that a saved file survives a restart and that you can return to the VM and shut it down properly. Keep a separate copy of important host files before experimenting.
The walkthrough targets Windows 11 on an Intel or AMD x86-64 computer, using the Oracle VirtualBox 7.2 interface and Ubuntu Desktop 26.04 LTS installer. Some screens can move between updates. The installer screenshots come from Ubuntu’s official documentation for that series; they are not a recording of an installation on your computer. The source does not identify an exact installer build for every screenshot. Windows on ARM and Apple Silicon require an appropriate architecture and workflow; do not automatically use an amd64 image on them.
First understand the host, guest, ISO, and virtual disk
The host is Windows on your real computer. The guest is the Ubuntu system running inside VirtualBox. The guest receives virtual processors, memory, a network adapter, and a disk. Those resources come from the host; creating a virtual machine does not create extra physical capacity.
An ISO supplies the installation media, much like a virtual DVD. A VDI is the virtual hard disk that retains Ubuntu and your files after installation. You attach the ISO while installing, then boot the installed system from the virtual disk. You do not need a USB flash drive for this workflow.
A virtual machine is not an absolute security boundary. Shared folders, clipboard integration, USB devices, and networking can connect guest and host. We will leave sharing disabled initially and use NAT networking. Keep important Windows files backed up and keep both the virtualization software and guest system updated.
1. Check resources before downloading
The published Ubuntu 26.04 requirements specify at least 6 GB of memory and 25 GB of storage for a comfortable experience. Those are guest resources; Windows still needs its own. Our practical example assumes a host with 16 GB RAM or more and assigns 8192 MB, or 8 GB, to Ubuntu, together with two virtual processors and a new 40 GB disk. This is a starting configuration, not a performance guarantee for every computer.
In Windows Task Manager, open Performance → CPU and check Virtualization. If it says Disabled, consult the computer manufacturer’s instructions for Intel VT-x or AMD-V/SVM in UEFI. Avoid changing unrelated boot or storage settings. A managed work computer may require its administrator. If the host cannot spare enough memory for Ubuntu while keeping Windows usable, reconsider the practice setup instead of allocating nearly all available RAM.
Choose a memorable VM folder on a drive with real free space. A dynamically allocated disk does not immediately consume its full 40 GB capacity, but it grows as Ubuntu writes data. Snapshots require additional space. The size shown for the virtual disk does not create that space on the physical drive.
2. Download Ubuntu and VirtualBox from their publishers
Visit the official Ubuntu Desktop download page. Choose the 26.04 LTS series and the Intel/AMD 64-bit, or amd64, image. The amd64 label also covers compatible Intel processors. A point-release number may appear in the filename; retain the actual filename rather than renaming it to match an example. LTS means long-term support. A higher-numbered interim release is not required for this tutorial.
On the VirtualBox download page, choose the appropriate Windows hosts package. Check the publisher in the Windows prompt and follow the installer. Configuring network components may briefly interrupt your connection, so save connected work first. The separately distributed Extension Pack is not required for this guide.
Check that the ISO download is complete
Open the official release directory and obtain SHA256SUMS for the exact image you downloaded. Open PowerShell in the download folder and run this command, replacing the illustrative filename with your actual one:
Get-FileHash -LiteralPath ".\ubuntu-26.04.x-desktop-amd64.iso" -Algorithm SHA256
Compare the resulting Hash with the SHA256SUMS entry for precisely that filename; letter case does not matter. Do not compare different point releases. Check the filename and download completion before unnecessarily downloading several gigabytes again. Matching hashes establish agreement with the published checksum. Authenticating the checksum list itself additionally requires checking its GPG signature, as explained in Ubuntu’s verification guide. Do not proceed with a mismatch.
3. Create the VM and choose manual installation
Open VirtualBox Manager and select Home, then New. Expert mode may collect the settings on one page; Basic mode presents a guided workflow. Use a descriptive name such as Ubuntu-Lab, choose the VM Folder, and select your verified ISO. Check that the detected type is Linux, the distribution is Ubuntu, and the guest is 64-bit. A descriptive name cannot repair an image built for the wrong architecture.
In VirtualBox 7.2, clear Install OS Using Unattended Installation to walk through Ubuntu’s installer yourself. Some older VirtualBox 7 interfaces instead provide Skip Unattended Installation; enable that option. Both choices mean that you want manual installation, rather than automatic setup with prefilled account credentials.
Assign only resources your host can spare. Our example uses 8192 MB and two virtual processors. Do not allocate more than half of the host’s available processor threads. Assigning excessive resources can slow down both Windows and Ubuntu rather than improving the guest.
Create a new virtual hard disk with a 40 GB capacity. VirtualBox normally uses VDI. Leaving full-size preallocation unselected gives dynamically allocated storage. Do not attach a raw physical disk or another VM’s existing disk. Keep the EFI setting suggested by the OS profile consistent during installation and afterwards. Review the summary and select Finish.
Before Start, inspect Settings and Storage. Expect the ISO in a virtual optical drive and one new disk for this guest. Use NAT for its network adapter. Leave Shared Clipboard, Drag and Drop, and shared folders disabled initially. Neither port forwarding nor bridged networking is needed for the installation described here.
4. Boot the ISO and open the Ubuntu installer
Start the VM you created. If a boot menu appears, choose the Ubuntu try/install entry and wait for the live environment to load. Select your language, accessibility preferences, and keyboard layout. Test the layout in the provided text field when available: an unexpected layout can cause confusion when you later type your password.
The NAT connection normally appears as virtual wired Ethernet inside Ubuntu even when Windows uses Wi-Fi. You do not necessarily need to find your home wireless network’s name inside the guest. When offered Try Ubuntu or Install Ubuntu, choose Install Ubuntu. The live environment is useful for exploration, but it is not a substitute for installing a persistent guest on the virtual disk.

Choose Interactive installation when asked about the installation method. The default application selection provides a simple starting point; you can add applications later. Additional driver and media options depend on your needs and connection. Ubuntu sees virtual hardware here, so an NVIDIA graphics card in the physical computer does not by itself mean that you should install its host driver in the guest.

5. Verify the target before selecting Erase disk
At Disk setup, select Erase disk and install Ubuntu only after verifying that you are inside the new VM window and that its only disk is the new VDI you created. This option erases the disk actually visible to the installer. The article’s intention to use a VM does not make an incorrect disk attachment safe; the storage configuration determines the destination.

For a practice guest without sensitive files, leaving disk encryption unselected simplifies the setup. That does not encrypt the VDI or hide it from other users of the host. If your use requires encryption, understand the passphrase option and keep the passphrase safely outside the guest. An Ubuntu login password and a disk-unlock passphrase serve different purposes. Do not select TPM-backed encryption merely because you saw it in instructions for a physical computer.
Create your own account using a simple username and a strong password for this environment. Keep password-required login enabled. The account in the screenshot is Canonical’s documentation example, not a ready-made login. Select your actual timezone, such as Africa/Cairo if you are in Egypt; correct time helps when interpreting logs and update errors.

At Ready to install, review the method, destination disk, and encryption before selecting Install. The official example below labels its disk vda. VirtualBox may show sda or another device name. Do not choose a target by copying the screenshot’s device name: check the disk, capacity, and guest attachments. Allow the installation to finish without forcibly powering off the VM.

6. Detach the ISO and boot the installed system
When installation completes, select Restart Now. If asked to remove installation media, detach the ISO from the virtual optical drive through Devices → Optical Drives, then press Enter. If it cannot be detached while running, shut down the guest cleanly and remove it from Storage before starting again. Detach the ISO; do not delete the VDI.
Seeing the installer again usually means that the VM is still booting from the ISO. Check its optical media and boot order before reinstalling. The successful outcome is Ubuntu’s login screen followed by the installed desktop using the account you created.

7. Update Ubuntu and verify that a file survives a restart
Open Terminal from the application menu or with Ctrl+Alt+T. First check that you are working inside the Ubuntu guest. Read its release information:
cat /etc/os-release
Check VERSION_ID and PRETTY_NAME for the installed series. Then run the following commands separately. Do not continue to package upgrades if refreshing the package lists fails:
sudo apt update
sudo apt upgrade
The first command downloads package lists. The second presents proposed upgrades for your review and confirmation. sudo may ask for your account password without displaying typed characters; that is normal. Investigate network or signature failures instead of disabling verification. Restart when an update requests it.
Open the text editor from the applications menu, type a short practice sentence, and save it in Documents as ubuntu-lab.txt. Restart Ubuntu using its own menu, log in again, and reopen the file. Finding the saved sentence demonstrates persistence across a restart. It does not by itself establish that your backups work or that the VM is completely isolated.
After updating and shutting down cleanly, you can create a snapshot named something like Clean install from the VM’s tools. Restoring a snapshot returns to an earlier state and can discard newer changes. A snapshot is not an independent backup: failure of the host drive can affect both the VM and its snapshots. For a separate copy, shut down the guest and copy its complete VM folder, including disks and snapshots, to other storage.
Common problems: change one thing at a time
VT-x/AMD-V error or missing 64-bit options
Check the host architecture, Windows virtualization status, UEFI settings, and the complete VirtualBox error message. VirtualBox can operate with Hyper-V on Windows, with performance implications. Disabling Memory Integrity or other protections should not be your first response. Review VirtualBox updates and Oracle’s documentation, and involve the administrator of a managed computer.
Black screen or a small, fixed-size window
Allow time for startup first. If needed, shut down the guest and review appropriate Linux display settings, including VMSVGA, and the assigned resources. Change one setting and retest. Guest Additions provide integration such as additional display modes. They are installed in the guest and are different from the Extension Pack. If you need them, use Oracle’s instructions for your version rather than an unknown download or script.
No internet or a failed apt update
Confirm that Windows is online and that the guest adapter is enabled, connected, and configured for NAT. Check the clock and exact error. DNS failures, repository signature errors, and unavailable mirrors have different causes. Do not add arbitrary repositories or bypass signature checks. Opening a trusted HTTPS page in the guest browser is a useful separate connection check.
Captured mouse or an accidentally closed window
Check the Host key shown in VirtualBox’s status bar. On Windows the default is usually Right Ctrl, which releases captured input. For ordinary shutdown, use Ubuntu’s power menu and Shut Down. Power Off resembles removing power. Save State freezes the current machine state; it does not replace completing updates and restarting when required.
Before moving on to Linux commands
Must Ubuntu and CentOS run together?
No. The two installation lessons in the Linux path are alternative practice environments. Begin with one that fits your resources, then select the correct distribution in the reference. APT commands apply to Ubuntu and Debian in this context; the DNF lesson covers CentOS and Fedora package management.
Did this change Windows startup?
In the described setup, VirtualBox stores the guest in files. We do not change Windows partitions or its boot menu. This differs from dual boot. Do not transfer the erase-disk step to a physical installation outside this context.
What should I learn next?
Open the Linux command reference with Ubuntu selected. Start with read-only commands such as pwd and ls before changing files. For another environment, see the CentOS Stream 10 installation guide. Compare commands by their purpose and distribution support rather than replacing names blindly.
After installation: continue in this order
- Learn Ubuntu users and file permissions with chmod and chown before changing ownership or using elevated privileges.
- Install, update, and remove a practice application with APT in the VM you just created.
- Then follow the systemctl and journalctl service-management walkthrough. Use the command reference with Ubuntu selected when you need to look up an unfamiliar command.
You do not need a second distribution for these exercises. The CentOS installation linked above is an alternative learning environment; use the package manager that matches the distribution.
Sources and image credits
Sources reviewed on 21/10/2026. Ubuntu 26.04 installer screenshots are by Canonical and Ubuntu Desktop documentation contributors. They remain complete, without cropping, redrawing, or annotations; any WebP display copy is a lossless format conversion. They are licensed under CC BY-SA 4.0; the repository license is retained alongside the assets. The explanatory diagrams are original Mira4Tech work, not application screenshots. Ubuntu is a Canonical trademark used for identification. Mira4Tech is independent and does not speak for or imply endorsement by Canonical or Oracle.