⬢ DragonFlyBSD Kernel Audit
DF-5297 / qemu-launch.sh
← back to finding ↓ download raw
#!/bin/sh
cd /home/maxx/dfbsd/dfbsd/dfbsd-qemu
pkill -f 'qemu-system-x86_64' 2>/dev/null
sleep 1
rm -f vm.pid boot-mon.sock
exec qemu-system-x86_64 \
  -enable-kvm -m 4096 -smp 6 \
  -drive file=disk.qcow2,if=virtio,format=qcow2 \
  -netdev user,id=n0,hostfwd=tcp:127.0.0.1:5522-:22 \
  -device virtio-net-pci,netdev=n0 \
  -display none -monitor unix:boot-mon.sock,server,nowait \
  -serial file:boot.log \
  -device piix3-usb-uhci,id=uhci0 \
  -chardev socket,id=rc0,host=127.0.0.1,port=7788,reconnect=1 \
  -device usb-redir,chardev=rc0,bus=uhci0.0,debug=4 \
  -pidfile vm.pid