解决Virtualbox虚拟机时间不同步的问题

因为特殊需求测试,需要将系统时间改到以前某个时间,但是笔者又不想修改当前的系统,于是用virtualbox弄了一个虚拟操作系统,但是仍然无法修改时间,时间与物理机器仍然同步,修改虚拟机器硬件时间,结果直接修改了物理机器的硬件时间,郁闷了。

通过ntpdate修正了物理机器,Google一下,这个是安装了增强包导致的,只需要在物理机器上运行:
VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"
即可,记得要先关闭虚拟机哟!

有一位强悍的哥们还直接关闭时间同步的通信通道,详情可见:
http://www.ideaexcursion.com/2008/08/19/synchronize-a-virtualized-domain-controller-with-external-time-servers/

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on July 7, 2012 1:02 AM.

rpm script can not execute was the previous entry in this blog.

openssh and X11 forwarding is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.