#!/bin/sh VM_MACHINE_PATH="$(dirname "$0")/../machines/Gentoo" /usr/bin/qemu-system-x86_64 \ -rtc base=localtime \ -m 8G \ -usb \ -vga none \ -accel kvm \ -machine q35 \ -cpu host,kvm=off \ -smp maxcpus=4,cores=2,threads=2,sockets=1 \ -netdev user,id=vmnic,hostname=Gentoo \ -device vfio-pci,host=01:00.1 \ -device vfio-pci,host=01:00.0, \ -device virtio-net,netdev=vmnic \ -device usb-host,vendorid=0x1852,productid=0x7022 \ -device usb-host,vendorid=0x046d,productid=0xc31c \ -device usb-host,vendorid=0x046d,productid=0xc52b \ -device virtio-balloon \ -drive if=pflash,format=raw,readonly,file=/usr/share/edk2-ovmf/OVMF_CODE.fd \ -drive if=pflash,format=raw,file="${VM_MACHINE_PATH}/OVMF_VARS.fd" \ -drive file="${VM_MACHINE_PATH}/disk.img",format=raw,if=virtio \ -display none -cdrom systemrescuecd-x86-5.3.1.iso