VOOZH about

URL: https://qiita.com/hideshi/items/a75f45e4d714708e46e3

⇱ Vagrantでホストとの時刻同期を止める #Linux - Qiita


👁 Image
10

Go to list of users who liked

11

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@hideshi(Hi de)

Vagrantでホストとの時刻同期を止める

10
Posted at

Vagrantを開発環境として使っていてテストなどで時間を過去に設定したい時、以下のコマンドを実行することでホストとの時刻同期を止めることができます。

$ date
Tue Jul 11 01:39:04 UTC 2017
$ sudo service vboxadd-service stop

その後はdateコマンドで任意の時刻を設定します。

$ sudo date -s "2017/07/02 01:40:00"
$ date
Sun Jul 2 01:40:02 UTC 2017

テストが終わったら同期するよう戻します。

$ sudo service vboxadd-service start
$ date
Tue Jul 11 01:50:04 UTC 2017
10

Go to list of users who liked

11
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10

Go to list of users who liked

11