vmware中linux虚拟机的时间同步
作者:comet 日期:2010-07-05
使用vmware server创建的虚拟机会有时间不同步的情况,如果是windows的虚拟系统,可以通过安装vmware tools后在控制面板设置好便可以定时同步。如果是linux的虚拟系统,通过编辑vmx文件,添加或修改对应的选项:
tools.syncTime = TRUE
time.synchronize.continue = TRUE
time.synchronize.restore = TRUE
time.synchronize.resume.disk = TRUE
time.synchronize.shrink = TRUE
time.synchronize.tools.startup = TRUE
解释如下:
| Option | Effect |
| tools.syncTime | If set to TRUE, the clock syncs periodically. |
| time.synchronize.continue | If set to TRUE, the clock syncs after taking a snapshot. |
| time.synchronize.restore | If set to TRUE, the clock syncs after reverting to a snapshot. |
| time.synchronize.resume.disk | If set to TRUE, the clock syncs after resuming from suspend and after migrating to a new host using the VMware VMotion feature. |
| time.synchronize.shrink | If set to TRUE, the clock syncs after defragmenting a virtual disk. |
| time.synchronize.tools.startup | If set to TRUE, the clock syncs when the tools daemon starts up, normally while the guest operating system is booting. |
参考自:www.vmware.com/pdf/vmware_timekeeping.pdf
Tags: vmware
install vmware server on ubuntu server
作者:comet 日期:2009-03-10
在 ubuntu server 上仅安装 vmware server,并没安装 Web-based management interface 。本文在安装的过程没有太仔细的记录,过后才整理的。
OS: Ubuntu 8.04.02 Server
VMware: VMWare Server 1.0.8
安装环境需求
apt-get install build-essential linux-headers-`uname -r`
apt-get install libx11-6 libxtst6 libxext6 libsm6 libxrender1 libxt6 libxi6 xinetd
安装VMWare Server 1.0.2
作者:comet 日期:2007-06-07
1.安装依赖包
sudo apt-get install linux-headers-`uname -r` build-essential xinetd
2.执行安装脚本
sudo ./vmware-install.pl
3.不能编译vmmon模块的错误和解决方法 ,出错提示 Unable to build the vmmon module.
解决方法:
解包并编辑:
cd /usr/lib/vmware/modules/source
sudo tar xvf vmmon.tar
sudo gedit vmmon-only/include/compat_kernel.h
找到第 21 行
static inline _syscall1(int, compat_exit, int, exit_code);
替换为
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
接着打包并删除
sudo tar cvf vmmon.tar vmmon-only
sudo rm -rf vmmon-only
4.时间截止问题和解决方法,出错提示 Unable to get the last modification timestamp of the destination file /etc/vmware/ssl/rui.key.
解决方法:
sudo apt-get install ia32-libs (32位的系统不用装这个)
sudo /usr/bin/vmware-config.pl
5.搞掂!本文完成时已经出了 v1.0.3 :p
6.本文参考自 《如何在Ubuntu 7.04 Feisty(64bit)上安装VMWare Server 1.0.2 》 ( http://forum.ubuntu.org.cn/viewtopic.php?t=47136 ),有增减。











