How to set back the clock of Mac OS X host in Virtual Box

I have a Mac OS X as host and Windows XP as guest virtualbox machine. I need to set back the clock 2 years in the guest.

I used to use this command, but it does not work with Mac OS X as host.

VBoxManage setextradata <nameVm> “VBoxInternal/TM/UTCOffset” <nanoSeconds>

I tried this and it seems that it works.

pisco:~ chilcano$ vboxmanage modifyvm intix_winxp01 --biossystemtimeoffset  -63072000000
Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
(C) 2005-2010 Oracle Corporation
All rights reserved.

pisco:~ chilcano$ 

Notes:

  • intix_winxp is the name of guest vm.
  • -63072000000 are milisecs (365 + 365 days).
  • The command vboxmanage is in lowercase.

and if you want to reset time offset you have to run this:

pisco:~ chilcano$ vboxmanage modifyvm intix_winxp01 --biossystemtimeoffset  0
Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
(C) 2005-2010 Oracle Corporation
All rights reserved.

pisco:~ chilcano$ 

References

  1. About the clock of a VM (http://forum.virtualbox.org/viewtopic.php?f=7&p=150430)
  2. Detener la sincronización de tiempo/fechas entre Host y Guest en Virtual Box (https://holisticsecurity.wordpress.com/2009/11/27/detener-la-sincronizacion-de-tiempofechas-entre-host-y-guest-en-virtual-box)

@Chilcano

Tagged with:
Posted in Security
One comment on “How to set back the clock of Mac OS X host in Virtual Box
  1. In VMWare for Win32 or VMWare Fusion for Mac OSX you can do it too. Follow the steps:

    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1189

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
%d bloggers like this: