How to create Windows 10 virtual machine on VirtualBox

You can use VirtualBox to create a virtual machine with a Windows 10 installation, and in this guide, you will learn how to do it.

VirtualBox Windows 10 install
VirtualBox Windows 10 install

VirtualBox provides a free and easy way to create a virtual machine to run Windows 10 (or another OS) alongside the main installation without the need for extra hardware, and here’s how to set it up.

A virtual machine is a virtualization technology that allows you to run multiple operating systems in containers isolated from the main installation as a separate device but without the extra hardware.

Usually, the ability to create a virtual machine can come in handy in many scenarios. For example, to test untrusted applications, run legacy programs in older versions of Windows, install different operating systems like Linux or keep specific work separate. You can also use it to install and run Windows Insider Preview builds without the need for another computer.

In this guide, you will learn the steps to create a VirtualBox virtual machine with Windows 10.

How to install Windows 10 on VirtualBox

If you plan to set up one or multiple Windows 10 virtual machines, you will need to install VirtualBox, download the latest ISO file of Windows 10, and then continue with the instructions below.

To create a virtual machine to host a Windows 10 installation, use these steps:

  1. Open VirtualBox.

  2. Click the Machine menu and select the New option.

    Create vm option
    Create vm option
  3. In the Name field option, confirm a descriptive name for the virtual machine. For example, vm-win10-lab.

  4. (Optional) In the Machine Folder option, select the folder location to create the Windows 10 VM.

  5. In the “Type” option, select the Microsoft Windows platform option.

  6. In the Version option, select the Windows 10 (64-bit) option.

    Virtual machine OS settings
    Virtual machine OS settings
  7. Click the Next button.

  8. Specify the amount of system memory to allocate for the machine.

    VirtualBox vm RAM configuration
    VirtualBox vm RAM configuration
    Quick tip: Ideally, you want to give it at least 4GB of RAM, but this setting will depend on the amount of physical memory available on the device and the applications you will be using.
  9. Select the Create a virtual hard disk now option.

    VirtualBox vm hard disk configuration
    VirtualBox vm hard disk configuration
  10. Click the Create button.

  11. Select the VDI (VirtualBox Disk Image) option.

    VDI hard disk type
    VDI hard disk type
    Quick note: The application supports multiple hard drive file types, including VDI, VHD (Virtual Hard Disk), and VMDK (Virtual Machine Disk). While every option has its advantages and disadvantages, the VDI option is optimal for most use cases for general purposes.
  12. Click the Next button.

  13. Select the Dynamically allocated option to grow the size of the drive as needed.

    Storage dynamically allocated option
    Storage dynamically allocated option
  14. Click the Next button.

  15. Specify the size of the virtual hard drive.

    VirtualBox create virtual drive
    VirtualBox create a virtual drive
    Quick note: The default 50GB is suitable for installation and light applications, but the size will depend on the applications and files you want to store in the drive.
  16. Click the Create button.

  17. Right-click the newly created virtual machine from the left side and select the Settings option.

    Virtual machine settings option
    Virtual machine settings option
  18. Click on System.

  19. Click the Motherboard tab.

  20. (Optional) In the Boot order option, configure the boot order by selecting the item and using up and down arrows on the left. Or clear the item check box to disconnect peripherals.

    VirtualBox change boot order
    VirtualBox change boot order
  21. Click the Processor tab.

  22. In the Processors option, use the slider to select how many processors to allocate for the Windows 10 virtual machine.

    Virtual machine CPU allocation
    Virtual machine CPU allocation
    Quick note: The selection will depend on your hardware capability, but usually, you want to give at least two to four cores per machine.
  23. Click on Storage.

  24. Under the “Storage Devices” section, select the Optical Drive (disc icon) option.

  25. Under the “Attributes” section, click the disc icon menu, and select the Choose a disk file option.

    VirtualBox mount Windows 10 ISO
    VirtualBox mount Windows 10 ISO
  26. Select the Windows 10 ISO file.

  27. Click the Open button to mount the installation media.

  28. (Optional) Click on Display.

  29. Click the Screen tab.

  30. (Optional) In the Acceleration option, check the Enable 3D Acceleration option to improve video performance.

    Important: If Windows 10 graphics do not behave as expected (for example, transparent taskbar), you may want to consider disabling this option.
  31. In the Video Memory option, use the slider and specify the virtual machine’s amount of video memory. (The more, the better.)

    Virtual machine video memory allocation
    Virtual machine video memory allocation
  32. Click the OK button.

  33. Right-click the virtual machine, select the Start submenu and choose the Normal Start option.

    Start virtual machine option
    Start virtual machine option
  34. On the “Windows Setup” page, click the Next button.

    Install Windows 10 on VirtualBox
    Install Windows 10 on VirtualBox
  35. Click the Install now button.

  36. Confirm a valid product key to activate Windows 10.

    Quick note: You can skip this step, but since you will be setting up a new device, you will need a new product key to activate Windows 10. After the installation, you can enter the key on the “Activation” settings page.
  37. Click the Next button.

  38. Accept the licensing agreement.

  39. Click the Next button.

  40. Click the Custom: Install Windows only (Advanced) option to perform a clean install of Windows 10.

  41. Select the Drive 0 Unallocated Space drive.

  42. Click the Next button to continue with the installation.

  43. Continue with the on-screen directions to finish the out-of-box experience (OOBE) to complete the installation.

  44. After the installation, while on the Windows 10 desktop, click the Devices menu and select the Insert Guest Additions CD image option.

    Insert Guest Additions CD image
    Insert Guest Additions CD image
    Quick note: The Guest Additions is the package that contains all the VirtualBox drivers to allow the operating system to work correctly in the virtual environment.
  45. Open File Explorer in the virtual machine (Windows key + E keyboard shortcut).

  46. Click on This PC from the left side.

  47. Under the “Devices and drives” section, double-click to open the VirtualBox Guest Additions disc.

  48. Double-click the VBoxWindowsAdditions.exe file to launch the installer.

    VBox Windows Additions
    VBox Windows Additions
  49. Click the Next button.

  50. Click the Next button again.

    Virtual drivers install location
    Virtual drivers install location
  51. Click the Install button.

    VirtualBox install Windows 10 drivers
    VirtualBox install Windows 10 drivers
  52. Select the Reboot now option.

  53. Click the Finish button.

Once you complete the steps, the virtual machine will restart, and you can start using Windows 10 in a virtual environment.

While you can use VirtualBox to create virtual machines, Windows 10 also includes several features to avoid third-party virtualization technologies. For example, Windows Sandbox to test applications, Microsoft Defender Application Guard to load untrusted websites, and the Windows Subsystem for Linux 2 run distros of Linux like Ubuntu or Kali.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].