sodcalculator

10 Tech How-To

Install Windows 10 in VirtualBox: Step-by-Step Guide

Guide 10-44672 · Updated · Step by step

This guide walks you through installing Windows 10 as a virtual machine using Oracle VM VirtualBox. You’ll end up with a fully functional Windows 10 system running inside your current OS, ideal for testing software, learning, or running Windows-only apps safely. Before starting, you’ll need a Windows 10 ISO file (downloadable from Microsoft’s official website) and VirtualBox installed on your host machine.

What You’ll Need

  • VirtualBox – Download and install the latest version from virtualbox.org. It’s free and works on Windows, macOS, and Linux.
  • Windows 10 ISO – Get the official ISO from Microsoft’s download page. Choose the edition (Home/Pro) and language that matches your license.
  • Enough disk space and RAM – At least 20 GB of free disk space for the virtual hard drive, and 4 GB of RAM (8 GB recommended) to allocate to the VM.
  • Windows 10 product key – You can install without one, but activation requires a valid key. If you don’t have one, you can skip it during setup and activate later.

Step-by-Step

  1. Open VirtualBox – Launch the application from your Start menu or Applications folder.
  2. Create a new virtual machine – Click the “New” button (blue gear icon) in the toolbar.
  3. Name your VM and set the OS type – Enter a name like “Windows 10”. VirtualBox will automatically detect the type and version if you type “Windows 10”. Ensure “Type” is “Microsoft Windows” and “Version” is “Windows 10 (64-bit)” (or 32-bit if your ISO is 32-bit). Click “Next”.
  4. Allocate memory (RAM) – Use the slider to assign at least 2048 MB (2 GB), but 4096 MB (4 GB) is recommended for smooth performance. Do not exceed half of your host’s total RAM. Click “Next”.
  5. Create a virtual hard disk – Choose “Create a virtual hard disk now” and click “Create”.
  6. Choose hard disk file type – Select “VDI (VirtualBox Disk Image)” and click “Next”.
  7. Storage on physical hard disk – Choose “Dynamically allocated” so the file grows as you use it, saving space initially. Click “Next”.
  8. Set disk size – Keep the default 50 GB (or set at least 25 GB). This is the maximum size the VM can use, not what it takes immediately. Click “Create”.
  9. Select the new VM and open settings – Highlight your VM in the left list, then click “Settings” (orange gear icon).
  10. Mount the Windows 10 ISO – Go to “Storage” > under “Storage Devices”, click the empty optical drive (it might say “Empty”). In the “Attributes” panel, click the disk icon next to “Optical Drive” and choose “Choose a disk file…”. Browse to your Windows 10 ISO and select it. Click “OK”.
  11. Start the VM – Click “Start” (green arrow). The VM will boot from the ISO.
  12. Windows Setup begins – You’ll see the Windows logo and “Setup” screen. Choose your language, time, and keyboard, then click “Next”.
  13. Click “Install now” – The big blue button in the center.
  14. Enter product key (or skip) – If you have a key, type it. If not, click “I don’t have a product key” (Windows 10 allows installing without one, but you’ll need to activate later).
  15. Select edition – Choose the edition that matches your key (e.g., Windows 10 Pro). If you skipped the key, pick any edition; you can change it later. Click “Next”.
  16. Accept license terms – Check the box and click “Next”.
  17. Choose installation type – Select “Custom: Install Windows only (advanced)”.
  18. Select the virtual disk – You’ll see one unallocated drive (the VDI). Click “Next”. Windows will partition and install automatically.
  19. Wait for installation – The VM will restart several times. Be patient; this can take 10–30 minutes depending on your hardware.
  20. Complete setup (OOBE) – After the final restart, you’ll go through Windows’ out-of-box experience: choose region, keyboard layout, sign in with a Microsoft account (or create a local account), set a PIN, and configure privacy settings. Follow the prompts.
  21. Install VirtualBox Guest Additions – Once Windows is running, go to the VirtualBox menu bar (at the top of the VM window) and click “Devices” > “Insert Guest Additions CD image…”. In Windows, open File Explorer, find the CD drive, and run “VBoxWindowsAdditions.exe”. Follow the installer and reboot the VM when prompted. Guest Additions improves screen resolution, clipboard sharing, and mouse integration.

Common Mistakes

  • Not enabling virtualization in BIOS – If you get an error like “VT-x is not available”, you need to enable Intel VT-x/AMD-V in your computer’s BIOS/UEFI settings. Restart your PC, enter BIOS (usually by pressing F2, F10, or Del), find virtualization settings (often under “Advanced” or “Security”), and enable it.
  • Allocating too much RAM – Giving the VM more than half of your host’s RAM can cause your host to become sluggish or even crash. Stick to 4 GB or less unless you have 16 GB+ RAM.
  • Choosing the wrong ISO – Ensure the ISO is 64-bit if you selected a 64-bit VM. A 32-bit ISO will not boot in a 64-bit VM (and vice versa). Check the file name and version.
  • Skipping Guest Additions – Without Guest Additions, the VM runs at a low resolution, mouse capture is clunky, and clipboard sharing doesn’t work. Always install them.
  • Not enough disk space – If the virtual disk is too small (e.g., 20 GB), Windows may run out of space during installation or later. Use at least 40 GB.

Tips

  • Enable 3D acceleration – In VM Settings > Display, check “Enable 3D Acceleration” and increase video memory to 128 MB. This makes the Windows interface smoother.
  • Use a fixed-size disk for better performance – If you have enough free space, choose “Fixed size” when creating the disk. It’s slightly faster than dynamically allocated.
  • Take snapshots – After you’ve installed Windows and updated it, take a snapshot (in VirtualBox, click “Snapshots” tab > “Take”). You can revert to this clean state anytime.
  • Share folders – To transfer files between host and VM, install Guest Additions, then in VM Settings > Shared Folders, add a host folder and set it as “Auto-mount”.
  • Use a USB drive – If you have a Windows 10 USB instead of ISO, you can attach it to the VM via Devices > USB.

Troubleshooting

  • “FATAL: No bootable medium found” – This means the VM didn’t boot from the ISO. Check that the ISO is mounted in Settings > Storage and that the optical drive is set as the first boot device (Settings > System > Motherboard > Boot Order).
  • “VT-x is not available” error – Enable virtualization in BIOS (see Common Mistakes). If it’s already enabled, try disabling Hyper-V on Windows host (Control Panel > Programs > Turn Windows features on or off > uncheck Hyper-V) because it conflicts with VirtualBox.
  • Windows installation freezes or crashes – This often happens due to insufficient RAM or CPU cores. Give the VM at least 2 CPU cores (Settings > System > Processor) and 4 GB RAM. Also, ensure your host has enough free disk space.
  • Black screen after boot – Try disabling 3D acceleration temporarily (Settings > Display > uncheck “Enable 3D Acceleration”). If it works, update Guest Additions to the latest version.
  • Mouse is stuck or not captured – Press the right Ctrl key to release the mouse. After installing Guest Additions, mouse integration should work seamlessly.
  • Windows is very slow – Increase RAM and CPU cores, enable 3D acceleration, and ensure the virtual disk is on an SSD if possible.

Frequently Asked Questions

Can I install Windows 10 in VirtualBox for free?

Yes, you can install and use Windows 10 without a product key. Microsoft allows you to skip key entry, but you’ll see a watermark and some personalization options will be disabled until you activate.

How much RAM should I give the Windows 10 VM?

At least 2 GB, but 4 GB is recommended for smooth performance. If your host has 8 GB or more, you can allocate 4 GB safely.

Do I need to enable virtualization in BIOS?

Yes, VirtualBox requires hardware virtualization (Intel VT-x or AMD-V) to run 64-bit guests. Most modern PCs have it enabled by default, but you may need to turn it on in BIOS if you encounter an error.

Can I run Windows 10 on a Mac with VirtualBox?

Yes, VirtualBox works on macOS. The steps are identical, but you’ll need to ensure your Mac’s processor supports virtualization (all Intel and Apple Silicon Macs do, but Apple Silicon requires the ARM version of Windows 10, which is not officially supported by VirtualBox yet).

Why is my VM screen resolution stuck at 800×600?

This happens because Guest Additions are not installed. Install them as described in Step 21, then reboot the VM. You’ll be able to adjust resolution to match your host screen.

Can I use a Windows 10 USB instead of an ISO?

Yes, you can attach a bootable USB drive to the VM via Devices > USB. However, it’s easier to create an ISO from the USB using a tool like Rufus, or simply download the official ISO.

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

The whole Tech How-To bed →