昨日闲来无事,就重新测试 Windows XP 下使用 VMWare 安装 CentOS 4.6 及安装 VMWare Tools ,(主要是解决之前一直未曾解决的 Host OS 和 Guest OS 之间时间无法同步的问题),想不到很简单的就成功了。(可能之前的安装方法有误吧,暂不去探究了)
于是今一早就写了这一个“Windows XP 下使用 VMWare 安装 CentOS 4.6 及 VMWare Tools (全过程图解)”;希望能给需要的朋友一些帮助吧。
【一】VMWare 下 CentOS 4.6 主机安装 VMWare Tools 过程图解
在这先大概介绍一下 VMWare tools 的作用:
1. 更新虚拟机中的显卡驱动, 使虚拟机中的XWindows可以运行在SVGA模式下.
2. 提供一个vmware-toolbox, 这个Xwindows下的工具可以让你修改一些VMWare的参数和功
能.
3. 虚拟机主机和客户机之间时间同步.
4. 支持同一个分区的真实启动和从虚拟机中启动, 自动修改相应的设置文件.
##########
VMware 强烈建议你在每一台虚拟机中完成操作系统安装之后立即安装 VMware Tools 套件。在客户操作系统中安装 VMware Tools 非常重要。如果你不安装 VMware Tools,虚拟机中的图形环境被限制为 VGA 模式图形(640x480,16 色)。
使用 VMware Tools,SVGA 驱动程序被安装,VMware Workstation 支持最高 32 位显示和高显示分辨率,显著提升总体的图形性能。
工具包中的其他工具通过支持下面的增强,让你更方便地使用你的虚拟机。注意,只有正在运行 VMware Tools 时,这些增强才可用。
在主机和客户机之间时间同步:
(注释:只有当你在客户操作系统中设置时钟为一个比在主机中设置的时间更早的时间时,才可以在客户和主机操作系统之间同步时间。)
自动捕获和释放鼠标光标
在主机和客户机之间或者从一台虚拟机到另一台虚拟机进行复制和粘贴操作
改善的网络性能
VMware Tools 工具包由两个组件组成:
一个为 VMware Workstation 虚拟图形卡优化的图形驱动程序。对于 Linux 客户操作系统,它包含我们自己的 XFree86 X server 版本。图形驱动程序由向导安装。安装之后,需要在重启动之后才可以使用。
一个小的后台应用程序,允许你在虚拟机中更改配置设置。VMware Workstation 控制光标设置和可移动设备的连接状态,例如软盘和 CD-ROM 驱动器。
光标设置允许你在虚拟机和主机图形用户界面之间平滑移动鼠标光标。光标设置也允许你在虚拟机和主机之间以及从一台虚拟机到另一台虚拟机复制和粘贴文本缓存。注意,只有当应用程序正在运行时,这些增强才可用。
#########
经过上面两大步骤,现在已经在 VMWare 下 成功安装好了 CentOS 4.6 系统了。接下来,我们将安装 VMWare Tools 。
先退出(关闭) CentOS 4.6 系统。


现在重新启动 CentOS 4.6 系统。VMWare Tools 的安装是要在虚拟机系统已经正常启动了的情况下才能安装。



[root@mail cdrom]# cp * /tmp
[root@mail cdrom]# cd /tmp
[root@mail tmp]# tar zxvf VMwareTools-6.0.2-59824.tar.gz
[root@mail cdrom]# cd vmware-tools-distrib
[root@mail vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.
Installing the content of the package.
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
The path "/usr/lib/vmware-tools" does not exist currently. This program is goingto create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the docunmentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no] yes (这里要输入 yes ,然后回车确定哦。)
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
Trying to find a suitable vmmemctl module for your running kernel.
The module bld-2.6.9-11.EL-i686smp-RHEL4 loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-11.EL-i686smp-RHEL4 loads perfectly in the running kernel.
pcnet32 31049 0
Unloading pcnet32 module
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
pcnet32 30153 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.


[root@mail vmware-tools-distrib]# /usr/bin/vmware-toolbox

[root@mail vmware-tools-distrib]# reboot (配置完毕后,需要重新启动 CentOS 4.6)
======================= 以下为转载内容 ==============================
最近在VMWare上学习FreeBSD,发现FreeBSD的时间总是不准,正常时间1分钟,BSD上才走大约半分钟,偏移得厉害。用ntpdate或ntpd都不能校正,无法正常同步时间。
VMWare下普遍存在虚拟机CPU时钟频率慢于标准频率的BUG,导致虚拟机系统时间不准确甚至出现大幅度的偏移。在虚拟Windows系统下可以通过安装VMWare Tools并开启时间同步功能解决。但是在FreeBSD的命令行下怎么设置VMTool的强制时间同步。
经测试(VMWare Workstation 6.2),FreeBSD同样也可以:
第一步、安装VMWare Tools:
VMWare中选择Settings > VMWare Tools Install.
mount /cdrom
cp /cdrom/vmware-freebsd-tools.tar.gz /tmp
umount /cdrom
解压并安装:
cd /tmp
tar zxf vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
第二步、修改配置:
这里有两种办法可以修改VMWare tool guest daemon的运行参数:
1.使用命令行方式
Unix下VMWare Tool的命令行程序为vmware-guestd,默认目录为/usr/sbin/vmware-guestd。这是一个通过脚本自动运行的后台程序,可以使用这个程序更改运行参数。
语法为:
--cmd "vmx.set_option
于是今一早就写了这一个“Windows XP 下使用 VMWare 安装 CentOS 4.6 及 VMWare Tools (全过程图解)”;希望能给需要的朋友一些帮助吧。
【一】VMWare 下 CentOS 4.6 主机安装 VMWare Tools 过程图解
在这先大概介绍一下 VMWare tools 的作用:
1. 更新虚拟机中的显卡驱动, 使虚拟机中的XWindows可以运行在SVGA模式下.
2. 提供一个vmware-toolbox, 这个Xwindows下的工具可以让你修改一些VMWare的参数和功
能.
3. 虚拟机主机和客户机之间时间同步.
4. 支持同一个分区的真实启动和从虚拟机中启动, 自动修改相应的设置文件.
##########
VMware 强烈建议你在每一台虚拟机中完成操作系统安装之后立即安装 VMware Tools 套件。在客户操作系统中安装 VMware Tools 非常重要。如果你不安装 VMware Tools,虚拟机中的图形环境被限制为 VGA 模式图形(640x480,16 色)。
使用 VMware Tools,SVGA 驱动程序被安装,VMware Workstation 支持最高 32 位显示和高显示分辨率,显著提升总体的图形性能。
工具包中的其他工具通过支持下面的增强,让你更方便地使用你的虚拟机。注意,只有正在运行 VMware Tools 时,这些增强才可用。
在主机和客户机之间时间同步:
(注释:只有当你在客户操作系统中设置时钟为一个比在主机中设置的时间更早的时间时,才可以在客户和主机操作系统之间同步时间。)
自动捕获和释放鼠标光标
在主机和客户机之间或者从一台虚拟机到另一台虚拟机进行复制和粘贴操作
改善的网络性能
VMware Tools 工具包由两个组件组成:
一个为 VMware Workstation 虚拟图形卡优化的图形驱动程序。对于 Linux 客户操作系统,它包含我们自己的 XFree86 X server 版本。图形驱动程序由向导安装。安装之后,需要在重启动之后才可以使用。
一个小的后台应用程序,允许你在虚拟机中更改配置设置。VMware Workstation 控制光标设置和可移动设备的连接状态,例如软盘和 CD-ROM 驱动器。
光标设置允许你在虚拟机和主机图形用户界面之间平滑移动鼠标光标。光标设置也允许你在虚拟机和主机之间以及从一台虚拟机到另一台虚拟机复制和粘贴文本缓存。注意,只有当应用程序正在运行时,这些增强才可用。
#########
经过上面两大步骤,现在已经在 VMWare 下 成功安装好了 CentOS 4.6 系统了。接下来,我们将安装 VMWare Tools 。
先退出(关闭) CentOS 4.6 系统。


现在重新启动 CentOS 4.6 系统。VMWare Tools 的安装是要在虚拟机系统已经正常启动了的情况下才能安装。



[root@mail cdrom]# cp * /tmp
[root@mail cdrom]# cd /tmp
[root@mail tmp]# tar zxvf VMwareTools-6.0.2-59824.tar.gz
[root@mail cdrom]# cd vmware-tools-distrib
[root@mail vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.
Installing the content of the package.
# 安装过程的画面,全部使用默认值,一直按 Enter 就对了
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
The path "/usr/lib/vmware-tools" does not exist currently. This program is goingto create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the docunmentation files?
[/usr/share/doc/vmware-tools]
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no] yes (这里要输入 yes ,然后回车确定哦。)
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
Trying to find a suitable vmmemctl module for your running kernel.
The module bld-2.6.9-11.EL-i686smp-RHEL4 loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-11.EL-i686smp-RHEL4 loads perfectly in the running kernel.
pcnet32 31049 0
Unloading pcnet32 module
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmhgfs module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
pcnet32 30153 0
Unloading pcnet32 module
Trying to find a suitable vmxnet module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.


[root@mail vmware-tools-distrib]# /usr/bin/vmware-toolbox

[root@mail vmware-tools-distrib]# reboot (配置完毕后,需要重新启动 CentOS 4.6)
======================= 以下为转载内容 ==============================
最近在VMWare上学习FreeBSD,发现FreeBSD的时间总是不准,正常时间1分钟,BSD上才走大约半分钟,偏移得厉害。用ntpdate或ntpd都不能校正,无法正常同步时间。
VMWare下普遍存在虚拟机CPU时钟频率慢于标准频率的BUG,导致虚拟机系统时间不准确甚至出现大幅度的偏移。在虚拟Windows系统下可以通过安装VMWare Tools并开启时间同步功能解决。但是在FreeBSD的命令行下怎么设置VMTool的强制时间同步。
经测试(VMWare Workstation 6.2),FreeBSD同样也可以:
第一步、安装VMWare Tools:
VMWare中选择Settings > VMWare Tools Install.
mount /cdrom
cp /cdrom/vmware-freebsd-tools.tar.gz /tmp
umount /cdrom
解压并安装:
cd /tmp
tar zxf vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
第二步、修改配置:
这里有两种办法可以修改VMWare tool guest daemon的运行参数:
1.使用命令行方式
Unix下VMWare Tool的命令行程序为vmware-guestd,默认目录为/usr/sbin/vmware-guestd。这是一个通过脚本自动运行的后台程序,可以使用这个程序更改运行参数。
语法为:
| 引用(0)
tyr
2009-4-3 16:23
真是好帖子,学习中
分页: 1/1
1
1
Windows XP 下使用 VMWare 安装 CentOS 4.6 及 VMWare Tools (第二部分)
Linux 下 zip,unzip 的用法


2008-2-11
12:07
1
5098


