LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2015, 03:26 AM   #1
soni
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
time sync problem between VirtualBox and host system


hello all,
i actually am new to using VirtualBox, so am not aware with much of its functionalities.

my problem here is that when i take a snapshot at say 10am , and then restore that snapshot an hour later at 11am and then start the VM then the time in the host system is 11am but the VM shows the time as 10am and continues from there itself.. i tried waiting for some time to see if it would sync the time automatically, but it didnt.

so is there any command using which i can sync the time between the VM and host system?

i have searched and found that VM GuestAdditions helps to sync the time instantly within 10 sec or so.. but i dont want to use it because i have heard that many problems have occured after installing the GuestAdditions..

so without GuestAdditions is there any command to sync the time?

thankyou to all in advance
 
Old 01-22-2015, 04:36 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Well I don't know about VBox. but can try setting manualy.

Code:
hwclock -s
 
Old 01-22-2015, 05:38 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Quote:
Originally Posted by soni View Post
i have heard that many problems have occured after installing the GuestAdditions
I've never encountered any problems after installing Guest Additions on any distro I've tried in VirtualBox. What problems, and where have you "heard" about them?
 
Old 01-22-2015, 09:58 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by brianL View Post
I've never encountered any problems after installing Guest Additions on any distro I've tried in VirtualBox. What problems, and where have you "heard" about them?
Same here. In fact many things are very difficult to do without them. Think of the guest additions like the hardware drivers on a real system. You might be able to skirt by with the kernel's built-in ones, but things will work much better with the real drivers.

Anyway, you should be able to use ntp for this. I believe it has a special flag you need to set when the time change will be bigger than a few seconds though, which is probably why it's not happening automatically.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 08:55 PM
Sync system time ust Linux - Newbie 9 05-17-2012 04:39 AM
Access server running on localhost on host system through virtualbox guest OS Jean-Luc Besson Linux - Virtualization and Cloud 3 05-15-2012 04:19 PM
Easiest way to sync system time between two servers? JohnRock Linux - Networking 3 06-06-2009 08:26 PM
Sync KDE/System Time w/ NTP carlosinfl Linux - General 6 03-15-2006 04:37 PM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration