在ubuntu下如何安装VMwareTools

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
genhaosan
帖子: 55
注册时间: 2007-08-14 10:16
来自: gxtc

在ubuntu下如何安装VMwareTools

#1

帖子 genhaosan » 2007-08-17 16:21

在Server 2003中安装VMware Workstation 6.0.0.45731,然后在VMware Workstation 6.0.0.45731中安装ubuntu6.06 lts
如何安装vm tools
1、以ROOT身份进入LINUX

  2、按下 CTRL+ALT组合键,进入主操作系统,点击VMWARE状态栏安装提示,或者点击 SETTING菜单下的ENABLE VMWARE TOOLS子菜单。

  3、确认安装VMWARE TOOLS。

  这时我们并没有真正的安装上了VMWARE TOOLS软件包,如果您点击菜单:DEVICES,您就会发现光驱的菜单文字变为:ide1:0-> C:\\Program Files\\VMware\\VMware Workstation\\Programs\\linux.iso,这表示VMWARE将LINUX的ISO映象文件作为了虚拟机的光盘

  4、鼠标点击LINUX界面,进入LINUX。

  5、运行如下命令,注意大小写。

  mount -t iso9660 /dev/cdrom /mnt

  加载CDROM设备,这时如果进入 /mnt 目录下,你将会发现多了一个文件:vmware-linux-tools.tar.gz。这就是WMWARE TOOLS的LINUX软件包,也就是我们刚才使用WINISO打开LINUX.ISO文件所看到的。

  cp /mnt/vmware-linux-tools.tar.gz /tmp

  将该软件包拷贝到LINUX的 TMP目录下。

  umount /dev/cdrom

  卸载CDROM。

  cd /tmp

  进入TMP目录

  tar zxf vmware-linux-tools.tar.gz

  解压缩该软件包,默认解压到vmware-linux-tools目录下(与文件名同名)。

  cd vmware-linux-tools

  进入解压后的目录

  ./install.pl

  运行安装命令。

操作过程:
root@boysnet-desktop:~# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
root@boysnet-desktop:~# cd /mnt
root@boysnet-desktop:/mnt# ls
VMwareTools-6.0.0-45731.i386.rpm VMwareTools-6.0.0-45731.tar.gz
root@boysnet-desktop:/mnt# cp VMwareTools-6.0.0-45731.tar.gz /tmp
root@boysnet-desktop:/mnt# umount /dev/cdrom
umount: /mnt: device is busy
umount: /mnt: device is busy
root@boysnet-desktop:/mnt# cd /tmp
root@boysnet-desktop:/tmp# ls
VMwareTools-6.0.0-45731.tar.gz orbit-boysnet
gconfd-boysnet orbit-root
gconfd-root scim-helper-manager-socket-boysnet
kde-boysnet scim-panel-socket:0-boysnet
keyring-qQVrtq scim-socket-frontend-boysnet
ksocket-boysnet ssh-lhqtXI4487
mapping-boysnet virtual-boysnet.WCqMit
root@boysnet-desktop:/tmp# tar zxf VMwareTools-6.0.0-45731.tar.gz
root@boysnet-desktop:/tmp# ls
VMwareTools-6.0.0-45731.tar.gz orbit-root
gconfd-boysnet scim-helper-manager-socket-boysnet
gconfd-root scim-panel-socket:0-boysnet
kde-boysnet scim-socket-frontend-boysnet
keyring-qQVrtq ssh-lhqtXI4487
ksocket-boysnet virtual-boysnet.WCqMit
mapping-boysnet vmware-tools-distrib
orbit-boysnet
root@boysnet-desktop:/tmp# cd vmware-tools-distrib
root@boysnet-desktop:/tmp/vmware-tools-distrib# ls

FILES INSTALL bin doc etc installer lib vmware-install.pl
root@boysnet-desktop:/tmp/vmware-tools-distrib# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools. This may take from several minutes to over an hour
depending upon its size.

In which directory do you want to install the binary files?
[/usr/bin] y

The path "y" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?
[/usr/bin] /usr/bin

The file /usr/bin/vmware-config-tools.pl that this program was about to install
already exists. Overwrite? [yes] y

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] /etc

What is the directory that contains the init scripts?
[/etc/init.d] /etc/init.d

In which directory do you want to install the daemon files?
[/usr/sbin] /usr/sbin

In which directory do you want to install the library files?
[/usr/lib/vmware-tools] /usr/lib/vmware-tools

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] y

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools] /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] y

The installation of VMware Tools 6.0.0 build-45731 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] y


Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Trying to find a suitable vmmemctl module for your running kernel.

None of the pre-built vmmemctl modules for VMware Tools is suitable for your 这个VMtools版本不
running kernel. Do you want this program to try to build the vmmemctl module 适合我现在的kernel
for your system (you need to have a C compiler installed on your system)?

[yes] y

Setup is unable to find the "gcc" program on your machine. Please make sure it
is installed. Do you want to specify the location of this program by hand?
[yes] y

What is the location of the "gcc" program on your machine?
虽然最后我自己也没有装好!但步骤应该是这样了!如果有错漏或有更好的方法,请贴出来分享,谢谢!向大家学习
dongzhihuo
帖子: 41
注册时间: 2007-11-10 19:13

#2

帖子 dongzhihuo » 2007-11-13 19:24

谢谢楼主啊
我来试一下啊~!
这么好的东西到支持就不好了~!
huyaowen
帖子: 3
注册时间: 2007-11-20 18:19

#3

帖子 huyaowen » 2007-11-20 21:35

呵呵
What is the location of the "gcc" program on your machine?
这句话的回答才是最关键的
楼主更好停在这。晕了。
头像
盖茨他爹
帖子: 264
注册时间: 2007-12-02 1:23

#4

帖子 盖茨他爹 » 2008-06-27 3:15

选择YES就可以自动安装GCC啊
回复