Advertisement
Guest User

heroesbsodconfig

a guest
May 10th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. #!/bin/bash
  2. # Start virtual windows session
  3.  
  4. export QEMU_PA_SAMPLES=8192
  5. export QEMU_AUDIO_DRV=pa
  6.  
  7.   #CPU Options
  8.   OPTS="-M pc -enable-kvm -m 8192 -mem-path /dev/hugepages -mem-prealloc -balloon none -smp 4,cores=4,threads=1,sockets=1"
  9.  
  10.   case $1 in
  11.     hv )  OPTS="$OPTS -cpu host,kvm=off,hv_relaxed,hv_vapic,hv_time,hv_spinlocks=0x1000" ;;
  12.     *  )  OPTS="$OPTS -cpu host,kvm=off" ;;
  13.   esac
  14.  
  15.  
  16.   #UEFI
  17.   OPTS="$OPTS -drive if=pflash,format=raw,file=/home/user/ISOs/OVMF.fd"
  18.  
  19.   # The hard disk is exposed to the guest as a virtio-block device. OVMF has a
  20.   # driver stack that supports such a disk. We specify this disk as first boot
  21.   # option. OVMF recognizes the boot order specification.
  22.   OPTS="$OPTS -device virtio-scsi-pci,id=scsi"
  23.   OPTS="$OPTS -drive file=/dev/sdb,id=disk_primary,format=raw,if=none"
  24.   OPTS="$OPTS -device scsi-hd,drive=disk_primary,bootindex=0"
  25.  
  26.   #VFIO Devices
  27.   OPTS="$OPTS -device vfio-pci,host=01:00.0,romfile=/home/user/ISOs/furyx.rom"
  28.   OPTS="$OPTS -device vfio-pci,host=01:00.1"
  29.   OPTS="$OPTS -device vfio-pci,host=02:00.0"
  30.  
  31.   OPTS="$OPTS -net nic,model=virtio -net user"
  32.  
  33.   OPTS="$OPTS -rtc base=localtime,clock=host"  
  34.   OPTS="$OPTS -vga none"
  35.   OPTS="$OPTS -soundhw hda"
  36.  
  37.  
  38. qemu-system-x86_64 $OPTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement