You can set the virtual machine to display the status of your Mac power supply.

When this feature is enabled, information about the Mac power status is passed to the virtual machine. The virtual machine can display the remaining charge on a battery and suspend or hibernate when the battery charge runs low.