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