Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine datetime is out of sync after roll-back... #55

Open
fatmcgav opened this issue Feb 9, 2016 · 8 comments
Open

Machine datetime is out of sync after roll-back... #55

fatmcgav opened this issue Feb 9, 2016 · 8 comments

Comments

@fatmcgav
Copy link

fatmcgav commented Feb 9, 2016

As per title, when rolling back a VM, the datetime of that VM gets out of sync...

This causes issues when then come to use the rolled back VM...

Is it possible to trigger a datetime update after a rollback?

@ryuzee
Copy link
Collaborator

ryuzee commented Feb 9, 2016

Are you using VirtualBox as the provider? If so, there seems to be two options.

The first one is to use NTP service in your VM.
The second one is to install VBoxGuestAddition to your guest when you do not do it yet.

If you've already installed VBoxGuestAddition and the issue continues to happen, I recommend you to check VBoxService settings in your VM as follows.

sudo /usr/sbin/VBoxService --enable-timesync
sudo /usr/sbin/VBoxService --timesync-set-threshold 60000
sudo /usr/sbin/VBoxService --timesync-interval 60

@fatmcgav
Copy link
Author

@ryuzee Sorry, should've specified that...

I'm running Parallels provider on OSX...

@ryuzee
Copy link
Collaborator

ryuzee commented Feb 10, 2016

@fatmcgav got it... I do not have any Parallels environment. Please wait for other answer(s). However, using NTP seems to be a easiest solution...

@legal90
Copy link
Contributor

legal90 commented Feb 10, 2016

@fatmcgav I guess it could be fixed by enabling "TimeSync" feature in Parallels Desktop.
vagrant-parallels plugin v1.5.0+ automatically enables it for VMs running under Parallels Desktop 10.1.2 and higher.

You can also enable it manually: "Actions" -> "Configure" -> "Options" -> "More options" -> "Time: Sync from OSX".
Or via CLI:

prlctl set <vm_uuid> --time-sync on

It should sync the VM date/time automatically after the snapshot roll-back.

@fatmcgav
Copy link
Author

@legal90 Ah, that's useful to know...

However I'm not sure that vagrant-parallels does enable it by default, at least not for me... As I just checked on the VM's I spotted the issue with, and it's switched off...

prlctl list -i 738584ae-0330-48de-a5f2-69733d3161bc |grep Time
Time Synchronization: off

@fatmcgav
Copy link
Author

Just to add, I'm running Parallels 10.3.0 with vagrant-parallels 1.6.1...

@legal90
Copy link
Contributor

legal90 commented Feb 10, 2016

Ah, sorry, that's my mistake. vagrant-parallels enables it only for Parallels Desktop 11+.
For earlier versions we keep it disabled by default because of Parallels/vagrant-parallels#186

@fatmcgav
Copy link
Author

Ah, damn... Yeh, that screws things up :(

OK, plan b then...

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants