VirtualBox 虚拟机与宿主机时间同步
VirtualBox 大约 856 字场景
VirtualBox
中虚拟机在后台运行时,宿主机待机休眠,宿主机再次启动时发现虚拟机时间与宿主机时间不一致。
进入安装目录
cd "C:\Program Files\Oracle\VirtualBox"
查看虚拟机
.\VBoxManage.exe list vms
输出
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage.exe list vms
"AlpineLinux" {3130d03e-1168-4659-ac05-c0ccad671365}
"minikube" {dccbe560-da12-4d55-aec2-9cecb5a6b8e6}
开启时间同步
.\VBoxManage.exe guestproperty set <uuid|vmname> --timesync-set-start
示例
.\VBoxManage.exe guestproperty set AlpineLinux --timesync-set-start
关闭时间同步
.\VBoxManage.exe guestproperty set <uuid|vmname> --timesync-set-stop
示例
.\VBoxManage.exe guestproperty set AlpineLinux --timesync-set-stop
时间同步阈值
VirtualBox
每10
秒钟执行一次时间查询操作。仅当时间差达到阈值(默认为20
分钟)时,才会执行真实重新同步。
调整时间阈值
.\VBoxManage.exe guestproperty set <uuid|vmname> --timesync-set-threshold 10000
示例
.\VBoxManage.exe guestproperty set AlpineLinux --timesync-set-threshold 10000
阅读 1830 · 发布于 2022-09-09
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
PostgreSQL 使用 \copy 命令时报 character with byte sequence 0xc3 0xa5 in encoding "UTF8" has no equivalent in encoding "GBK"阅读 9913
-
Spring Boot 返回值额外增加了一些字段阅读 374
-
Rust 标准库 API 文件操作 File阅读 716
-
设计模式之模板方法模式阅读 2469
-
minikube 与本地机器之间传递文件阅读 748
-
curl error 18: transfer closed with outstanding read data remaining阅读 403
-
Spring Boot 分层构建 Docker 镜像阅读 851
-
IDEA Kubernetes 远程 Debug 连接中断问题阅读 868
-
IDEA 多个 Vue.js 工程识别 Webpack @ 别名阅读 839
-
Cookie 设置 HttpOnly 属性防篡改阅读 2537