kern/171118: FreeBSD XENHVM guest doesn't shutdown cleanly
feld at feld.me
Mon Aug 27 14:10:04 UTC 2012
>Synopsis: FreeBSD XENHVM guest doesn't shutdown cleanly
>Arrival-Date: Mon Aug 27 14:10:03 UTC 2012
>Originator: Mark Felder
If you install FreeBSD as a guest on XenServer or XCP and utilize both sysutils/xen-tools and my Xen scripts (https://github.com/felderado/freebsd-xen-tools-scripts) the hypervisor will recognize the guest and give you additional features such as the ability to make the guest cleanly shutdown. When you do this to FreeBSD, it doesn't shutdown completely. It appears it is doing the equivalent of a "shutdown -h now" and halting instead of doing the complete poweroff. If you manually run "shutdown -p now" from the console it does cleanly poweroff the VM, indicating the capability exists; it just doesn't use the right shutdown method when the signal comes through XEN.
More information about the freebsd-bugs