Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #!/bin/bash
  2. #OPTS="hv_vendor_id=proxmox"
  3. # Basic CPU settings.
  4. #OPTS="$OPTS -cpu host"
  5. OPTS="$OPTS -cpu host,kvm=off,-hypervisor,hv_relaxed,hv_spinlocks=0x1fff,hv_vap$
  6. OPTS="$OPTS -smp 8,sockets=1,cores=8,threads=1"
  7. # Enable KVM full virtualization support.
  8. OPTS="$OPTS -enable-kvm"
  9. # Assign memory to the vm.
  10. OPTS="$OPTS -m 8000"
  11. # VFIO GPU and GPU sound passthrough.
  12. OPTS="$OPTS -device vfio-pci,host=0b:00.0,multifunction=on"
  13. #romfile=/home/monty/Downloads/msi750titwinfrozer.dump"
  14. OPTS="$OPTS -device vfio-pci,host=0b:00.1"
  15. # Supply OVMF (general UEFI bios, needed for EFI boot support with GPT disks).
  16. #OPTS="$OPTS -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf$
  17. #OPTS="$OPTS -drive if=pflash,format=raw,file=$(pwd)/OVMF_VARS-pure-efi.fd"
  18. OPTS="$OPTS -drive file=/dev/sdb,index=0,media=disk,driver=raw"
  19. # Load our created VM image as a harddrive.
  20. #OPTS="$OPTS -hda $(pwd)/qemu_vm.qcow2"
  21. # Load our OS setup image e.g. ISO file.
  22. #OPTS="$OPTS -cdrom $(pwd)/windows_10_professional.iso"
  23. # Use the following emulated video device (use none for disabled).
  24. OPTS="$OPTS -vga qxl"
  25. #OPTS="$OPTS x-vga=on"
  26. # Redirect QEMU's console input and output.
  27. OPTS="$OPTS -monitor stdio"
  28. #OPTS="$OPTS -bios /usr/share/qemu/bios.bin"
  29. OPTS="$OPTS -drive file=/usr/share/edk2-ovmf/OVMF.fd,if=pflash,format=raw,unit=$
  30. qemu-system-x86_64 $OPTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement