Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2. OPTS="$OPTS -cpu host"
  3. OPTS="$OPTS -smp 8,sockets=1,cores=8,threads=1"
  4. OPTS="$OPTS -enable-kvm"
  5. OPTS="$OPTS -m 8000"
  6. OPTS="$OPTS -device vfio-pci,host=0b:00.0,multifunction=on"
  7. OPTS="$OPTS -device vfio-pci,host=0b:00.1"
  8. OPTS="$OPTS -drive file=/dev/sdb,index=0,media=disk,driver=raw"
  9. OPTS="$OPTS -drive file=/usr/share/edk2-ovmf/OVMF.fd,if=pflash,format=raw,unit=0"
  10. OPTS="$OPTS -monitor stdio"
  11. OPTS="$OPTS -vga none"
  12. OPTS="$OPTS -monitor stdio"
  13. qemu-system-x86_64 $OPTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement