Subject: | FreeBSD detect_dmesg method is unreliable |
Detection failed in FreeBSD 8.x running under KVM. I elected to use the following method instead.
grep -qE '(QEMU|VirtIO)' /var/run/dmesg.boot
Note that checking /var/run/dmesg.boot is safer because there is no guarantee that the buffer as conveyed by the dmesg command will still contain the relevant strings.