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
阅读 2143 · 发布于 2022-09-09
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓
昵称:
随便看看
换一批
-
Alpine Linux 查看发行版本阅读 590
-
Linux ftp 操作阅读 1674
-
k3s Helm Error INSTALLATION FAILED Kubernetes cluster unreachable阅读 3867
-
OpenResty 历险记阅读 2822
-
VirtualBox 安装 Alpine Linux阅读 1278
-
Spring Boot 使用 @Valid 校验前端传递的参数阅读 5143
-
Android 生成 shape 图形阅读 2437
-
Arthas 获取 Spring Context 动态修改 Spring Boot 配置文件中的值阅读 7197
-
Spring Boot logback springProfile 区分部署环境阅读 9123
-
Spring Boot @ComponentScan exclude 不起作用阅读 1898