[gentoo-user] wakeup in virtualbox vm?
Hi, I have a gentoo-guest in a virtualbox vm that is running on a mac. When I do not use it I just put it to sleep and wake it up, when needed. Is there a way that the guest recognizes the wakeup and than sets the time using ntpdate or based on the clock of the host-os which is ntp-synchronized? Regards, Konstantin -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 Captain, this ship will not survive the forming of the cosmos. B'Elana Torres
Re: [gentoo-user] wakeup in virtualbox vm?
On 18 Jul 2009, at 09:49, Konstantinos Agouros wrote: ... Is there a way that the guest recognizes the wakeup and than sets the time using ntpdate or based on the clock of the host-os which is ntp-synchronized? I doubt it. I know little about virtualisation, so am ready to be proved wrong on that one. I can only think to make a cron job to call an ntp pool on a regular basis. I think there may be a switch to ntp which allows it to make larger jumps. The problem with this is that etiquette would tend to dictate not syncing with the upstream ntp server more than once per hour, so each time you wake it up your clock is going to be wrong for an average of 45 minutes (allowing for Sod's Law). Solution that occurs to me is to run your own local ntp server on another machine which doesn't sleep (or on the host Mac itself) and sync with that; thus your cron job can run every minute to update the clock, and the time it takes to correct after waking will be insignificant. Or sleep or hibernate the guest o/s before sleeping the host. Stroller. PS: shouldn't the correct virtualisation terminology be host o/s and parasite o/s? Methinks the marketing department were allowed to write the docs on this one.
Re: [gentoo-user] wakeup in virtualbox vm?
On Sat, 2009-07-18 at 08:49 +, Konstantinos Agouros wrote: I have a gentoo-guest in a virtualbox vm that is running on a mac. When I do not use it I just put it to sleep and wake it up, when needed. Is there a way that the guest recognizes the wakeup and than sets the time using ntpdate or based on the clock of the host-os which is ntp-synchronized? If you install the virtualbox guest additions in your Gentoo guest, virtualbox can take care of syncing your guest's clock with the host's clock. I use app-emulation/virtualbox-guest-additions on a development VM at work that I suspend every night, and the clock is always correct when I resume the machine in the morning. If I remember correctly, it is only necessary to start the virtualbox-guest-additions service for the clock syncing to work. My host machine is an XP box, but I suspect it should work the same for a Mac host. I do not have access to the machine from home, but if you cannot get it working, respond back and I would be happy to check my setup on Monday. Regards, Brandon Vargo