I am running a few Ubuntu VMs on a MacBook Pro host.
Whenever I pause a VM or save its state to disk, the next time I restart it, the system clock goes out of sync.
Is there a way for the VM to know it has just been resumed, and run a command? (for example, running ntpdate -u time.nist.gov
as root would do the trick)
I tried modifying the scripts in /etc/pm/sleep.d
, but these don't appear to be called on VM suspend/resume.
mkdir /media/cdrom ; mount /dev/cdrom /media/cdrom ; cd /media/cdrom ; ./VBoxLinuxAdditions.run
and it updated the guest additions from 4.0.10 to 4.0.12 and synchronized the clock. Good so far, but I guess I did have them installed before. (maybe there's a bug...) Now I'll test a save/resume cycle.