Skip to content

Instantly share code, notes, and snippets.

@sergeycherepanov
Last active February 6, 2025 14:16
Show Gist options
  • Save sergeycherepanov/c259763907487f1caa04411b1306dfe7 to your computer and use it in GitHub Desktop.
Save sergeycherepanov/c259763907487f1caa04411b1306dfe7 to your computer and use it in GitHub Desktop.
Install x86_64 Windows 10/11 on external SSD via qemu on Apple Silicon Macos
  1. Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install quemu and swtpm
brew install qemu swtpm
  1. Download UEFI Bios
curl -o $HOME/bios64.bin https://raw.githubusercontent.com/BlankOn/ovmf-blobs/refs/heads/master/bios64.bin
  1. Create VirtualTPM device
mkdir -p /tmp/swtpm
swtpm socket --tpmstate dir=/tmp/swtpm --ctrl type=unixio,path=/tmp/swtpm/swtpm-sock --tpm2 --log level=20
  1. Run qumu vm with VNC and run socket
sudo $(which qemu-system-x86_64) -smp 4 -m 4096 -boot d \
-cdrom <path/to/iso/image.iso> \
-drive file=/dev/rdiskX,format=raw,media=disk \
-smbios type=0,uefi=on \
-bios $HOME/bios64.bin \
-chardev socket,id=chrtpm,path=/tmp/swtpm/swtpm-sock \
-tpmdev emulator,id=tpm0,chardev=chrtpm \
-device tpm-tis,tpmdev=tpm0 \
-vnc 127.0.0.1:1
  1. Connect via RealVNC to 127.0.0.1:5901 and continue install in GUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment