DF-2421 / up_ahci.sh
#!/bin/sh # Relaunch the guest QEMU with the live AHCI test hardware (same shape the # DF-2420/2421/4203 verification used). Run from dfbsd-qemu/ or anywhere. cd /home/maxx/dfbsd/dfbsd/dfbsd-qemu qemu-system-x86_64 \ -enable-kvm -m 4096 -smp 6 \ -drive file=disk.qcow2,if=none,id=sysdisk,format=qcow2 \ -device virtio-blk-pci,drive=sysdisk,bootindex=0 \ -device ahci,id=ahcibrd \ -drive id=ahcidisk,if=none,format=qcow2,file=/tmp/opencode/ahci-scratch.qcow2 \ -device ide-hd,bus=ahcibrd.0,drive=ahcidisk,bootindex=2 \ -drive id=ahcicd,if=none,format=raw,file=/tmp/opencode/ahci-cd.iso,readonly=on \ -device ide-cd,bus=ahcibrd.1,drive=ahcicd,bootindex=3 \ -netdev user,id=n0,hostfwd=tcp:127.0.0.1:5522-:22 \ -device virtio-net-pci,netdev=n0,bootindex=1 \ -display none -monitor unix:boot-mon.sock,server,nowait \ -serial file:boot.log \ -daemonize -pidfile vm.pid echo "launched $(cat vm.pid)" |