Chinaunix首页 | 论坛 | 博客
  • 博客访问: 43447
  • 博文数量: 21
  • 博客积分: 439
  • 博客等级: 下士
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-26 13:34
文章分类
文章存档

2012年(21)

我的朋友

分类: 虚拟化

2012-11-07 14:00:58

安装VM –tools

Vm-tools的安装分为windowslinux两种

1.      windows类的安装

进入终端,从dvd安装,安装完成后重启服务器

2.      linux类的安装

ubuntu系统需要提前安装如下两个包(gcclinux-headers(当前内核版本号)

aptitude install build-essential  linux-headers-2.6.24-28-server

先上传VMware-tools-linux-8.6.5-621624.iso文件到服务器,

挂载iso文件到服务器(服务器的挂载方法同上)

登陆客户端服务器:挂载cdrom

Mount /dev/cdrom /mnt(请注意cdrom在有些服务器上,有可能显示为cdrom1)

root@ubuntu:~# mount /dev/cdrom  /mnt/

mount: block device /dev/scd0 is write-protected, mounting read-only

root@ubuntu:~# tar vxfz /mnt/VMwareTools-8.6.5-621624.tar.gz  -C /usr/src/

………………………….

………………………….

vmware-tools-distrib/INSTALL

vmware-tools-distrib/bin/

vmware-tools-distrib/bin/vm-support

vmware-tools-distrib/bin/vmware-config-tools.pl

vmware-tools-distrib/bin/vmware-uninstall-tools.pl

vmware-tools-distrib/FILES

root@ubuntu:/usr/src/vmware-tools-distrib# ./vmware-install.pl

root@ubuntu:/usr/src/vmware-tools-distrib# ./vmware-install.pl

Creating a new VMware Tools installer database using the tar4 format.

Installing 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] 输入回车

What is the directory that contains the init scripts?

[/etc/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] 输入回车

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

is going to create it, including needed parent directories. Is this what you

want? [yes] 输入回车

The installation of VMware Tools 8.6.5 build-621624 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] 输入回车

Initializing...

Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:

   Guest operating system daemon: done

   Unmounting HGFS shares: done

   Guest filesystem driver: done

 Adding system startup for /etc/init.d/vmware-tools ...

   /etc/rc0.d/S36vmware-tools -> ../init.d/vmware-tools

   /etc/rc6.d/S36vmware-tools -> ../init.d/vmware-tools

   /etc/rcS.d/S38vmware-tools -> ../init.d/vmware-tools

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that

creates backups of virtual machines. Please refer to the VMware Knowledge Base

for more details on this capability. Do you wish to enable this feature?

[no] yes输入yes

Before you can compile modules, you need to have the following installed...

make

gcc

kernel headers of the running kernel

Searching for GCC...

Detected GCC binary at "/usr/bin/gcc".

The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.

Would you like to change it? [no] 输入回车

Searching for a valid kernel header path...

Detected the kernel headers at "/lib/modules/2.6.24-28-server/build/include".

The path "/lib/modules/2.6.24-28-server/build/include" appears to be a valid

path to the 2.6.24-28-server kernel headers.

Would you like to change it? [no] 输入回车

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-root/modules/vmsync-only'

make -C /lib/modules/2.6.24-28-server/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

          MODULEBUILDDIR= modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-28-server'

  CC [M]  /tmp/vmware-root/modules/vmsync-only/sync.o

  LD [M]  /tmp/vmware-root/modules/vmsync-only/vmsync.o

  Building modules, stage 2.

……………………………

The VMware Host-Guest Filesystem allows for shared folders between the host OS

and the guest OS in a Fusion or Workstation virtual environment.  Do you wish

to enable this feature? [no] 输入回车

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-root/modules/vmxnet-only'

make -C /lib/modules/2.6.24-28-server/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

          MODULEBUILDDIR= modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-28-server'

  CC [M]  /tmp/vmware-root/modules/vmxnet-only/vmxnet.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/vmware-root/modules/vmxnet-only/vmxnet.mod.o

  LD [M]  /tmp/vmware-root/modules/vmxnet-only/vmxnet.ko

make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-28-server'

make -C $PWD SRCROOT=$PWD/. \

          MODULEBUILDDIR= postbuild

make[1]: Entering directory `/tmp/vmware-root/modules/vmxnet-only'

make[1]: `postbuild' is up to date.

make[1]: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'

cp -f vmxnet.ko ./../vmxnet.o

make: Leaving directory `/tmp/vmware-root/modules/vmxnet-only'

The vmblock enables dragging or copying files between host and guest in a

Fusion or Workstation virtual environment.  Do you wish to enable this feature?

[no] 输入回车

No X install found.

Creating a new initrd boot image for the kernel.

update-initramfs: Generating /boot/initrd.img-2.6.24-28-server

完成vm-tools后,请重启服务器。

Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}
阅读(658) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~