Page 1 of 1

disable guest time sync

Posted: 9. Nov 2010, 10:19
by maraja
Hi,

I am using VB 3.2.10 on a OSX host and Ubuntu Destktop 10.04 guest.

Trying to disable the time sync, and make the guest starting on March, 15 2010 - I have found some clues on the VB manual so I did the following:

VBoxManage guestproperty set "Ubuntu 10.04 Desktop" --timesync-set-start 15032010
VBoxManage guestproperty set "Ubuntu 10.04 Desktop" --timesync-interval 0

Rebooted the guest, but it keep syncing time.

Then tried the following (on the guest):

s?udo apt-get remove ntpdate
Rebooted but it still keep syncing time :roll:

Can please anyone give me a clue about how to disable the time sync on a Ubuntu guest?
Thanks a lot!

Re: disable guest time sync

Posted: 10. Nov 2010, 00:01
by Sasquatch
If you have installed the Guest Additions, you can remove them (but loose resolution and mouse), but you can then install the GA again with the parameter to disable timesync. There should be a parameter, but I haven't found it. Else you just remove the GA and have to deal with the low resolution and mouse.

Re: disable guest time sync

Posted: 10. Nov 2010, 00:30
by Perryg
Well I use the following. There may be other ways but I have not looked. This is VM specific.

Code: Select all

VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
Top is host time bottom is guest time.
Stop-time-sync.jpg
Stop-time-sync.jpg (15.34 KiB) Viewed 2995 times

Re: disable guest time sync

Posted: 10. Nov 2010, 12:01
by maraja
Sasquatch wrote:If you have installed the Guest Additions, you can remove them (but loose resolution and mouse), but you can then install the GA again with the parameter to disable timesync. There should be a parameter, but I haven't found it. Else you just remove the GA and have to deal with the low resolution and mouse.
thanks Sasquatch, I will try first Perryg's hint as I better like to keep GA active
Perryg wrote:Well I use the following. There may be other ways but I have not looked. This is VM specific.

Code: Select all

VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
Top is host time bottom is guest time.
Stop-time-sync.jpg
thanks Perryg, I tried this on the host, but get this error:

Code: Select all

VBoxManage setextradata "Ubuntu 10.04 Desktop" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10
(C) 2005-2010 Oracle Corporation
All rights reserved.
what am I doing wrong?

Re: disable guest time sync

Posted: 10. Nov 2010, 15:34
by Perryg
Well I don't know. What happens if you just issue VBoxManage in a terminal and hit enter? Do you get a listing of various commands?
This is done on the host.

Re: disable guest time sync

Posted: 10. Nov 2010, 17:01
by maraja
Perryg wrote:Well I don't know. What happens if you just issue VBoxManage in a terminal and hit enter? Do you get a listing of various commands?
This is done on the host.
this one worked:

Code: Select all

VBoxManage setextradata "Ubuntu 10.04 Desktop" "GetHostTimeDisabled" "1"
thank you so much for your help!

Re: disable guest time sync

Posted: 10. Nov 2010, 17:54
by Perryg
I see. Must be the difference of OSE and PUEL. I tried VBoxManage setextradata "<VM Name>" "GetHostTimeDisabled" "1" on my DEV machine (OSE) and it refuses to work. It does work on my PUEL machine.

I will make a note and save it for future reference.