Advertisement
Guest User

Untitled

a guest
Feb 10th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Use command below to generate a MAC address
  4. # printf '52:54:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
  5. qemu-system-x86_64 \
  6.   -name "W10_x64_gpu" \
  7.   -machine type=q35,accel=kvm \
  8.   -global ICH9-LPC.disable_s3=1 \
  9.   -global ICH9-LPC.disable_s4=1 \
  10.   -cpu host,kvm=off,hv_vapic,hv_relaxed,hv_spinlocks=0x1fff,hv_time,hv_vendor_id=12alphanum \
  11.   -smp 8,sockets=1,cores=4,threads=2 \
  12.   -m 8G \
  13.   -balloon none \
  14.   -rtc clock=host,base=localtime \
  15.   -vnc 127.0.0.1:2 \
  16.   -device qxl,bus=pcie.0,addr=1c.2 \
  17.   -vga none \
  18.   -nographic \
  19.   -serial none \
  20.   -parallel none \
  21.   -k en-us \
  22.   -usb -usbdevice tablet \
  23.   -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  24.   -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 \
  25.   -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE.fd \
  26.   -drive if=pflash,format=raw,file=W10_VARS.fd \
  27.   -boot menu=on \
  28.   -boot order=c \
  29.   -drive id=disk0,if=virtio,cache=none,format=raw,file=W10_x64_gpu.img \
  30.   -drive file=W10.Arium.10.3.S-1712.iso,index=1,media=cdrom \
  31.   -drive file=../virtio-win-0.1.141.iso,index=2,media=cdrom \
  32.   -netdev type=tap,id=net0,ifname=tap0,script=tap_ifup,downscript=tap_ifdown,vhost=on \
  33.   -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