/WindowsLinucx

Collection of tools and resources for Windows

Primary LanguageHTML

-----------------------------------------------------

Setting up a Windows VM using QEMU

Run Sh as usual and don't forget to change the config.json!

With this you can run Windows on Linux, Ubuntu, Debian and so on

Exemple iso "https://go.microsoft.com/fwlink/?linkid=2270353&clcid=0x409&culture=en-us&country=us" Windows 11 Ltsc

Don't use this script for anything illegal!

Prerequisites

  • Ensure you have qemu-kvm installed.
  • Have sufficient disk space (at least 60GB) for the VM.

Run the following commands ( Use Codespace ) :

cd /tmp && sudo rm -r * && clear
wget -O win.iso "https://go.microsoft.com/fwlink/?linkid=2270353&clcid=0x409&culture=en-us&country=us"
wget https://github.com/HindiaFtNpc/WindowsLinucx/raw/main/bios64.bin
sudo apt update
sudo apt install qemu-kvm -y
qemu-img create -f raw win.img 60G
sudo qemu-system-x86_64 -m 8G -smp 4 -cpu host -boot order=c -drive file=win.iso,media=cdrom -drive file=win.img,format=raw -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device usb-tablet -vnc :0 -smp cores=4 -device e1000,netdev=n0 -netdev user,id=n0 -vga qxl -accel kvm -bios bios64.bin
curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | \
sudo tee /etc/apt/trusted.gpg.d/playit.gpg >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/playit.gpg] \
https://playit-cloud.github.io/ppa/data ./" | sudo tee \
/etc/apt/sources.list.d/playit-cloud.list
sudo apt update
sudo apt install playit