Script to shutdown Linux Hostwhen Virtualbox Guest Windows is shutdown? -
i'm wondering if it's possible auto shutdown linux host when windows guest in virtualbox shutdown. i'm guessing sort of script this?
host: linux mint guest: windows 7 , windows 10.
when user presses shutdown in windows if linux shutdown automatically shortly after guest has safely shutdown.
you can use scrpit in cron, runs every 5 minutes or so. that:
#!/bin/bash vm_name='your_vm' vboxmanage showvminfo $vm_name | grep -qe 'state: +powered off' && shutdown -h
note, shutdown time, when vm not running.
Comments
Post a Comment