LoginSignup
12
7

More than 5 years have passed since last update.

vagrant の時間変更

Posted at

概要

vagrantで時間による制約などの検証を行う場合にvagrantの時間を変更するコマンドを調べたのでメモしておく。

基本的には管理者権限を持っているものとする。

ホストOSとゲストOSの時刻同期を切る

$ service vboxadd-service stop 

時刻変更

$ date -s "2017/08/23 00:00:00"

ホストOSとゲストOSの時刻同期を接続

$ service vboxadd-service start
12
7
0

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
12
7