disable guest time sync

This is for discussing general topics about how to use VirtualBox.
Post Reply
maraja
Posts: 10
Joined: 1. Jul 2008, 08:17
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows

disable guest time sync

Post 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!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: disable guest time sync

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: disable guest time sync

Post 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 2994 times
maraja
Posts: 10
Joined: 1. Jul 2008, 08:17
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows

Re: disable guest time sync

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: disable guest time sync

Post 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.
maraja
Posts: 10
Joined: 1. Jul 2008, 08:17
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows

Re: disable guest time sync

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: disable guest time sync

Post 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.
Post Reply