public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] wakeup in virtualbox vm?
@ 2009-07-18  8:49 Konstantinos Agouros
  2009-07-18 19:31 ` Stroller
  2009-07-18 20:13 ` Brandon Vargo
  0 siblings, 2 replies; 3+ messages in thread
From: Konstantinos Agouros @ 2009-07-18  8:49 UTC (permalink / raw
  To: gentoo-user

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: elwood@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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] wakeup in virtualbox vm?
  2009-07-18  8:49 [gentoo-user] wakeup in virtualbox vm? Konstantinos Agouros
@ 2009-07-18 19:31 ` Stroller
  2009-07-18 20:13 ` Brandon Vargo
  1 sibling, 0 replies; 3+ messages in thread
From: Stroller @ 2009-07-18 19:31 UTC (permalink / raw
  To: gentoo-user


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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] wakeup in virtualbox vm?
  2009-07-18  8:49 [gentoo-user] wakeup in virtualbox vm? Konstantinos Agouros
  2009-07-18 19:31 ` Stroller
@ 2009-07-18 20:13 ` Brandon Vargo
  1 sibling, 0 replies; 3+ messages in thread
From: Brandon Vargo @ 2009-07-18 20:13 UTC (permalink / raw
  To: gentoo-user

On Sat, 2009-07-18 at 08:49 +0000, 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-18 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18  8:49 [gentoo-user] wakeup in virtualbox vm? Konstantinos Agouros
2009-07-18 19:31 ` Stroller
2009-07-18 20:13 ` Brandon Vargo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox