I'm really interested by "vmt" driver (VMware Tools driver) but I can't get it work.
These driver as been updated on the 4.8 version to support clean shutdown et reboot through hypervisor request as mentionned on the man page (in the past, it was "only" a timedelta sensor).
The vmt driver is a kernel level implementation of VMware Tools.
VMware Tools are intended to provide better support for operating systems running inside virtual machines.
vmt handles shutdown and reboot requests from the host by signalling init(8) with SIGUSR2 and SIGINT respectively.
vmt will log notifications that the guest has been suspended or resumed by the host.
It also provides access to the host machine's clock as a timedelta sensor.
vmt reports the guests hostname and first non-loopback IP address to the host.
More on Manual Pages
So, I have installed OpenBSD 4.8 on my VMware ESXi (4.1) hypervisor.
Then I have tested the following How To:
# cd /usr/src
# wget ftp://your.mirror/pub/OpenBSD/4.5/sys.tar.gz
# tar -xzvpf sys.tar.gz
# cp /bsd /bsd.backup
# cp /usr/src/sys/arch/i386/conf/GENERIC /usr/src/sys/arch/i386/conf/GENERIC.vmt
# vi /usr/src/sys/arch/i386/conf/GENERIC.vmt
-> uncomment the line: vmt0 at mainbus? # VMware Tools
# cd /usr/src/sys/arch/i386/conf
# config GENERIC.vmt
# cd ..
# make clean && make depend && make
# make install
But I don't have any shutdown / reboot functionnality working on my hypervisor.
Could you help me ?