原文链接:关闭VirtualBox虚拟机的时钟同步
在VirtualBox的虚拟机上默认虚拟机的时间是会和物理机同步的,但可以通过下面的命令来关闭
1. 首先查看虚拟机列表
1 VBoxManage list vms
2. 使用下面的命令来关闭虚拟机的时钟同步功能
1 VBoxManage setextradata “<VM_NAME>” “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″
3. 如果先重新开启虚拟机时钟同步功能,可以使用下面的命令
1 VBoxManage setextradata “<VM_NAME>” “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “0″
1 Microsoft Windows [版本 10.0.15063] 2 (c) 2017 Microsoft Corporation。保留所有权利。 3 ---进入安装路劲的盘符 4 C:\Users\junliu>cd D:\soft\systemSoft\Oracle 5 6 C:\Users\junliu>d: 7 8 9 10 D:\soft\systemSoft\Oracle>VBoxManage.exe list vms 11 "WinServer_2008" {5d6eaa44-f6b0-4ea7-b710-b5400a66f6b3} 12 "win7" {5c709b3b-0c44-4910-8c1b-07361568a9bd} 13 "sc_win_xp_pro_with_sp2_vl" {dc068d39-d649-460c-b938-19b7aa9d056c} 14 "sc_winxp_pro_with_sp2" {0f0415ce-232e-43a1-8867-59c966a41bf4} 15 "Oracle linux" {3c735df0-1665-46ea-ba3e-8e6b8e6bca16} 16 "Oracle12c_Oracle linux7" {e7425b83-7f90-4fef-8749-e9f33c325631} 17 "win7_server" {3c59633f-aa4e-4139-bf34-cadf99eba9f0} 18 "centos7_everthing_nginx" {43f53013-7301-4ac4-8d37-eb0a97e6f6e8} 19 "win2008r2_weblogic12c_1" {f0dcdd09-1f25-43ce-a1bd-7286452bc515} 20 "win7_myeclipse2017" {7b4d3d33-c612-4a10-b85b-e8426c49939b} 21 22 D:\soft\systemSoft\Oracle>VBoxManage.exe setextradata "WinServer_2008" 23 Oracle VM VirtualBox Command Line Management Interface Version 5.1.26 24 (C) 2005-2017 Oracle Corporation 25 All rights reserved. 26 27 Usage: 28 29 VBoxManage setextradata global|<uuid|vmname> 30 <key> 31 [<value>] (no value deletes key) 32 33 34 Syntax error: Not enough parameters 35 36 D:\soft\systemSoft\Oracle>VBoxManage.exe setextradata "win7" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1" 37 38 D:\soft\systemSoft\Oracle>