Roboto3x

Basic Win10 Installer (Native Qemu)

Oct 30th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. #!/bin/bash
  2. INSTALLDIR="/home/me/Downloads"
  3. VMDIR="/mnt/data/firmware"
  4. OSDIR="/mnt/data/Windows"
  5.  
  6. sudo qemu-system-x86_64 \
  7.     -enable-kvm \
  8.     -m 8192 \
  9.     -machine q35,accel=kvm,kernel_irqchip=on \
  10.     -smp 8,cores=8 \
  11.     -cpu host,hv_time,kvm=off,hv_vendor_id=null \
  12.     -vga virtio \
  13.     -drive if=pflash,format=raw,readonly,file=$VMDIR/OVMF_CODE_.fd \
  14.     -drive if=pflash,format=raw,file=$VMDIR/OVMF_VARS_win02.fd \
  15.     -device vfio-pci,host=09:00.0,bus=pcie.0,multifunction=on \
  16.     -device vfio-pci,host=09:00.1,bus=pcie.0 \
  17.     -usb -device usb-kbd -device usb-mouse \
  18.     -netdev user,id=net0 \
  19.     -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:AB:3A:31 \
  20.     -device ich9-usb-uhci3 \
  21.     -device usb-host,vendorid=0x046d,productid=0xc246 \
  22.     -device usb-host,vendorid=0x046d,productid=0xc333 \
  23.     -hda $OSDIR/WinDisk.img \
  24.     -cdrom $INSTALLDIR/Win10_1903_V2_English_x64.iso \
  25. #    Simpler Guide here - https://linuxhint.com/install_qemu_debian/
Advertisement
Add Comment
Please, Sign In to add comment