Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Use command below to generate a MAC address
- # printf '52:54:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
- qemu-system-x86_64 \
- -name "W10_x64_gpu" \
- -machine type=q35,accel=kvm \
- -global ICH9-LPC.disable_s3=1 \
- -global ICH9-LPC.disable_s4=1 \
- -cpu host,kvm=off,hv_vapic,hv_relaxed,hv_spinlocks=0x1fff,hv_time,hv_vendor_id=12alphanum \
- -smp 8,sockets=1,cores=4,threads=2 \
- -m 8G \
- -balloon none \
- -rtc clock=host,base=localtime \
- -vnc 127.0.0.1:2 \
- -device qxl,bus=pcie.0,addr=1c.2 \
- -vga none \
- -nographic \
- -serial none \
- -parallel none \
- -k en-us \
- -usb -usbdevice tablet \
- -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
- -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,x-pci-sub-device-id=27395,x-pci-sub-vendor-id=5464,multifunction=on,romfile=vbios.rom \
- -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE.fd \
- -drive if=pflash,format=raw,file=W10_VARS.fd \
- -boot menu=on \
- -boot order=c \
- -drive id=disk0,if=virtio,cache=none,format=raw,file=W10_x64_gpu.img \
- -drive file=W10.Arium.10.3.S-1712.iso,index=1,media=cdrom \
- -drive file=../virtio-win-0.1.141.iso,index=2,media=cdrom \
- -netdev type=tap,id=net0,ifname=tap0,script=tap_ifup,downscript=tap_ifdown,vhost=on \
- -device virtio-net-pci,netdev=net0,addr=19.0,mac=52:54:BE:EF:96:25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement