Can anyone point me in the right direction to reset or resync the date and time on Vagrant?
From looking at this thread, it looks like that’s what I’m going to need to do, but I’m not sure the best way to do that, and the thread wasn’t very specific.
I can’t remember a specific incident, but there must have been a time recently where my computer went to sleep and the VM didn’t get suspended properly, and therefore the time and date got out of sync.
This is the error I’m getting when trying to run a vagrant provision command in Trellis:
I have another VM on my computer using Homestead, and I was able to do a vagrant provision on that site without issues, so something specifically must have happened to this Trellis site.
# Log in into the box
vagrant ssh
# VirtualBox syncs host time with guest, so we need to shut off VBox Guest Additions first
sudo service vboxadd-service stop
# Now you can set any date and time
sudo date -s "2020-05-04 10:25:00"
# Want to sync again with host? Restart Guest Additions
# Anyway on the next Vagrant up it will sync again regardless
sudo service vboxadd-service start
And I think I got it working. Or at least I was able to run vagrant provision without an error. But now I’m onto another bizarre issue, which I’ll start a new thread for.