LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 03: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, 04:38 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

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, 08:58 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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



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 07:55 PM
Sync system time ust Linux - Newbie 9 05-17-2012 03: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 03:19 PM
Easiest way to sync system time between two servers? JohnRock Linux - Networking 3 06-06-2009 07:26 PM
Sync KDE/System Time w/ NTP carlosinfl Linux - General 6 03-15-2006 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 AM.

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
Open Source Consulting | Domain Registration