Skip to content

Instantly share code, notes, and snippets.

@timohuovinen
Last active March 31, 2024 11:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timohuovinen/8804ee6468cd1cc1cf38bf0be04ed724 to your computer and use it in GitHub Desktop.
Save timohuovinen/8804ee6468cd1cc1cf38bf0be04ed724 to your computer and use it in GitHub Desktop.
Create and run a windows virtual machine using virtualbox

Virtualbox (free and open-source)

How to install an unlicensed copy of windows using virtualbox

  1. Install virtualbox 7 (or higher)
    1. Ubuntu 22.04 jammy for linux mint 21
    2. Download extensions pack for the same version.
  2. Virtualbox > Tools > Install Oracle VM Virtualbox Extensions Pack for the same version
  3. Download Windows 10 pro from Microsoft
  4. Create a machine
    1. System > Motherboard > Check EFI and Secure boot (boot order won’t work with EFI, required for windows 11)
    2. System > Motherboard > Check TPM 2.0 (Security chip emulation)
    3. Storage > Default resizing HDD (make it fixed size pre-allocated for best performance)
    4. Storage > Add Optical CD (Check the “live cd” option to make it bootable) and add windows ISO to it
  5. Start the machine and keep pressing F12 or Del to boot from CD
  6. Install windows normally
  7. In the Guest OS device window for windows
    1. Devices > Insert guest additions (you can download, unzip the iso and install them manually as well)
    2. In the Guest OS device window: Devices > Add Optical Drive, Webcam, Microphone etc
    3. View > Auto-resize guest display
  8. In the windows guest OS
  9. Open the guest additions CD in windows and install the amd64 package (if using amd64) (This will fix the screen resolution and other problems)
  10. Shutdown windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment