Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- INSTALLDIR="/home/me/Downloads"
- VMDIR="/mnt/data/firmware"
- OSDIR="/mnt/data/Windows"
- sudo qemu-system-x86_64 \
- -enable-kvm \
- -m 8192 \
- -machine q35,accel=kvm,kernel_irqchip=on \
- -smp 8,cores=8 \
- -cpu host,hv_time,kvm=off,hv_vendor_id=null \
- -vga virtio \
- -drive if=pflash,format=raw,readonly,file=$VMDIR/OVMF_CODE_.fd \
- -drive if=pflash,format=raw,file=$VMDIR/OVMF_VARS_win02.fd \
- -device vfio-pci,host=09:00.0,bus=pcie.0,multifunction=on \
- -device vfio-pci,host=09:00.1,bus=pcie.0 \
- -usb -device usb-kbd -device usb-mouse \
- -netdev user,id=net0 \
- -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:AB:3A:31 \
- -device ich9-usb-uhci3 \
- -device usb-host,vendorid=0x046d,productid=0xc246 \
- -device usb-host,vendorid=0x046d,productid=0xc333 \
- -hda $OSDIR/WinDisk.img \
- -cdrom $INSTALLDIR/Win10_1903_V2_English_x64.iso \
- # Simpler Guide here - https://linuxhint.com/install_qemu_debian/
Advertisement
Add Comment
Please, Sign In to add comment