【转】CentOS下安装VMware tool详解

VMware 是非常好的虚拟机软件。如果系统安装了VMware Tools以后对虚拟机的性能会提升很多的。下面是如何在CentOS系统内安装VMware Tools。

一、首先在虚拟机种装入VMware Tools光盘

centos_vmware_tools_1

然后安装光盘:

centos_vmware_tools_2

这时候CentOS系统就已经挂载上了VMware Tools光盘。

二、解压缩VMware Tools。

[root@Shaoxing ~]# cd /media/VMware\ Tools/       进入光驱

[root@Shaoxing VMware Tools]# tar zxvf VMwareTools-6.0.2-59824.tar.gz -C /tmp/      解压缩tar包到/tmp 下

[root@Shaoxing VMware Tools]# cd /tmp/vmware-tools-distrib/    进入/tmp

centos_vmware_tools_3

三、安装VMware Tools

[root@Shaoxing vmware-tools-distrib]# ./vmware-install.pl       安装VMware Tools

下面的选项就按照默认值。一直回车就可以:

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]

The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall-tools.pl”.

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]

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.

Detected X.org version 6.8.

关闭控制台鼠标服务: [ 确定 ]
启动控制台鼠标服务: [ 确定 ]

Please choose one of the following display sizes (1 – 13):

# 显示分辨率,这里是以 1024×768 为例

# VMware Tools 安装的时候,会自动修改 X server 的配置文件

[1] ”640×480″
[2]< “800×600″
[3] ”1024×768″
[4] ”1152×864″
[5] ”1280×800″
[6] ”1152×900″
[7] ”1280×1024″
[8] ”1376×1032″
[9] ”1400×1050″
[10] ”1680×1050″
[11] ”1600×1200″
[12] ”1920×1200″
[13] ”2364×1773″
Please enter a number between 1 and 13:

[2] 3

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.EL i686 [ELF]
Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686
Build Date: 04 May 2006
Build Host: x8664-build.centos.org

Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006 P
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: “/tmp/vmware-config0/XF86ConfigLog.3131″, Time: Mon Jun 12 20:57:34 2006
(++) Using config file: “/tmp/vmware-config0/XF86Config.3131″
(WW) VMWARE(0): Failed to set up write-combining range (0xf0000000,0×1000000)

X is running fine with the new config file.

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定   ]
Guest filesystem driver:             [ 确定   ]
DMA setup:                        [ 确定   ]
Guest operating system daemon:                         [ 确定   ]

The configuration of VMware Tools 5.5.1 build-19175 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
“/usr/bin/vmware-toolbox” during an XFree86 session.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start

Enjoy,

–the VMware team
四、完成安装。

这回鼠标就可以自由出入真实和虚拟主机了。还可以直接拖拽文件。大家使用起来很方便。

注:经本人安装后,在图形界面下鼠标可以自由切换,但是命令行模式下鼠标还是需要ctrl+alt才能切换。本人的是CentOS 5.5。

转载于:https://www.cnblogs.com/qlwy/archive/2011/06/21/2121923.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: "空目录不被支持: /.git/objects/info" 是一个错误信息,指出在 Git 版本控制系统中不支持空目录的创建。 在 Git 中,目录没有实质性的含义,仅用于组织文件和目录结构。Git 跟踪的是文件的更改,而不是目录的创建或删除。因此,如果仅创建一个空目录,Git 将无法将其跟踪或提交到版本控制中。 然而,Git 可以支持空目录的存在,但需要在目录中至少包含一个文件或子目录。这样,Git 就能够将该文件或子目录纳入版本控制,并随之跟踪该目录的存在。 如果你确实需要在 Git 仓库中创建一个目录,但又没有实际文件或子目录可放入其中,你可以通过在目录中创建一个空的 ".gitkeep" 文件来实现。该文件的名称可以是任意的,但通常使用 ".gitkeep" 是为了表明该文件的作用是保持目录的存在,使其能够被 Git 跟踪。 综上所述,"空目录不被支持: /.git/objects/info" 错误信息的意思是在 Git 中无法创建空目录,并提供了一种解决方法,即确保目录中至少包含一个文件或子目录来跟踪。 ### 回答2: "empty directories is not supported: /.git/objects/info"的意思是无法创建空目录:/.git/objects/info。 在Git版本管理系统中,每个存储库都有一个名为".git"的隐藏文件夹,该文件夹包含了版本控制所需的所有信息和数据。在这个隐藏文件夹中,有一个文件夹名为"objects",它用于存储存储库中的所有对象。 在这种情况下,系统不允许创建名为"/.git/objects/info"的空目录。这是因为Git维护存储库的内部结构,并需要确保所有的目录和对象都是有效的和有用的。 如果你尝试创建空目录"/.git/objects/info",系统会拒绝这个请求,因为它会破坏Git存储库的结构,并可能导致一些错误或数据丢失。 所以,如果你需要在Git中存储一些特定信息,建议你使用其他有效的方法,例如使用分支、标签、提交信息或Git属性等。这些方法可以帮助你在不破坏存储库结构的情况下,有效地组织和管理你的工作。 ### 回答3: 空目录不被支持的意思是指在.git/objects/info目录下是不能存在空目录的。在Git中,.git文件夹是存储版本控制数据的核心文件夹,包含了所有的版本历史、对象和配置信息等等。 在Git中,对象是Git存储的最基本的数据单位,包括提交(commit)、树(tree)和blob等。.git/objects/info文件夹下存储了一些附加的对象信息。然而,Git不允许这些对象信息的文件夹下存在空目录,这是为了保持版本库的结构的一致性和简洁性。 当我们在.git/objects/info下创建空目录时,Git会发出上述错误信息。这是因为Git会在对象文件夹中自动清理空目录,以确保版本库不会包含无用的目录。空目录可能会导致版本库结构混乱,增加处理难度。 要解决这个问题,可以通过在.git/objects/info下创建一个不为空的文件,例如可以创建一个空的README文件。这样就不会有空目录存在了。或者,可以将该空目录删除,以保持版本库的结构简洁和一致。 总之,空目录不被支持的原因是为了保证版本库的结构简洁性和一致性。在.git/objects/info目录下不应该存在空目录,需要注意这一点,以避免产生不必要的错误提示。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值