Please note that the Homestead issue tracker is reserved for bug reports and enhancements. We are not always able to debug Vagrant, Provider or Operating System issues, but will do our best to help. Thank you!
Ubuntu 20.04 LTS
$ cat Homestead/Homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/src
to: /home/vagrant/src
type: "nfs"
sites:
- map: nojestorget.test
to: /home/vagrant/src/nojestorget/public
databases:
- homestead
- nojestorget
features:
- mariadb: true
- ohmyzsh: true
- webdriver: false
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
after.sh
sudo systemctl stop postgresql
sudo systemctl disable postgresql
sudo sed 's/log_bin/#log_bin/g' /etc/mysql/my.cnf > ~/my.cnf
sudo mv /etc/mysql/my.cnf /etc/mysql/my.bak
sudo mv ~/my.cnf /etc/mysql/my.cnf
sudo systemctl restart mariadb
grep 'log_bin' /etc/mysql/my.cnf
sudo apt-get install pv
echo 'Importing SQL file...'
pv ~/src/db.sql.gz | gunzip | mysql -u 'homestead' -psecret nojestorget
sudo mv /etc/mysql/my.bak /etc/mysql/my.cnf
sudo systemctl restart mariadb
Date not in future. Homestead isn't a timemachine...
```$ homestead ssh 10 ↵
zsh: correct 'ssh' to '.ssh' [nyae]? n
You are required to change your password immediately (password aged)
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64)
17 packages can be updated.
14 updates are security updates.
Last login: Sun Nov 24 07:13:32 2024 from 10.0.2.2
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for vagrant.
(current) UNIX password:
``` Last login: Sun Nov 24 07:15:19 2024 from 10.0.2.2
[Oh My Zsh] Would you like to update? [Y/n]:
Updating Oh My Zsh
fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
There was an error updating. Try again later?
vagrant@homestead ~$ date
Sat Feb 6 20:12:33 UTC 2297
vagrant@homestead ~$
No references i'm aware of...
Sat Feb 6 20:12:33 UTC 2297
First question: How did the whole coronavirus thing end up for us?
Second: Interesting! I'll have a look into this :D
Date not in future. Homestead isn't a timemachine...
oof, right in the feels...
First question: How did the whole coronavirus thing end up for us?
We moved to Mars ;)
Now after i halted it and bring it up again I got it again. I synced the time before ( computer fell asleep ).
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64)
Thanks for using
.....
* Homestead v10.8.0
* Settler v9.5.1 (Virtualbox, Parallels, Hyper-V, VMware)
18 packages can be updated.
14 updates are security updates.
vagrant@homestead ~$ Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.
hnn@Latitude-5490 ~$ homestead up ; homestead ssh 130 ↵
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Checking if box 'laravel/homestead' version '9.5.1' is up to date...
==> homestead: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> homestead: flag to force provisioning. Provisioners marked to run always will still run.
You are required to change your password immediately (password aged)
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64)
18 packages can be updated.
14 updates are security updates.
Last login: Wed Apr 29 17:25:13 2020 from 10.0.2.2
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for vagrant.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Connection to 127.0.0.1 closed.
hnn@Latitude-5490 ~$ homestead ssh
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64)
18 packages can be updated.
14 updates are security updates.
Last login: Sun Nov 24 11:55:27 2024 from 10.0.2.2
[Oh My Zsh] Would you like to update? [Y/n]:
Updating Oh My Zsh
fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
There was an error updating. Try again later?
vagrant@homestead ~$ date
Sun Feb 7 00:55:27 UTC 2297
vagrant@homestead ~$ timedatectl
Local time: Sun 2297-02-07 01:00:25 UTC
Universal time: Sun 2297-02-07 01:00:25 UTC
RTC time: Wed 2020-04-29 18:01:26
Time zone: UTC (UTC, +0000)
System clock synchronized: no
systemd-timesyncd.service active: yes
RTC in local TZ: no
vagrant@homestead ~$
I can't replicate this on any of my machines. Here's the log from my mac: https://gist.github.com/svpernova09/2b5c73e6e35e60e44565bcac18424f96
Virtualbox uses your host's clock when it virtualizes the vagrant image. There's nothing really homestead can do. By default, if your computer sleeps/goes into standby the VM is put in a saved state and resumed when the host wakes up. This wreaks havoc on time in the VM. We install NTP so as long as you're host has unfiltered outbound internet access it should be able to reach NTP services to auto-correct. You may want to set the service to restart in your after.sh
Hi.
NTP _IS NOT_ installed. When I type apt-get install ntp installs and removes chrony.
It seems that timedatectl service is less accurate than ntp service it self.
But this seems like an bug upstream of timedatectl/chrony instead of on Homestead. Since it doesn't even sync the time at all.
But after installing ntpd and it syncs the time.
Yes you are correct, I had Chrony/ntp confused.
Most helpful comment
We moved to Mars ;)