LoginSignup
1
5

More than 3 years have passed since last update.

VirtualBoxの仮想マシンの時計がずれるのを防ぐ

Posted at

MacBookPro のVirtualBox でUbuntu を動かしているが、気がつくと10分も時計が遅れている。あまりにずれが大きすぎてnptd でも補正できないようだ。
以下のようにしたら解決できた。

VirtualBoxを動かしているホスト(今回はMacBookPro)で

VBoxManage guestproperty set  仮想マシン名 "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 1000

この後にゲストの仮想マシンをリブートする

仮想マシン名は以下のようにして確認できる

VBoxManage list vms
"ubuntu1804" {61a76010-42af-40be-9cee-193fea719515}

VBoxManage guestproperty set  "ubuntu1804" "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 1000
1
5
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
1
5