1. VM菜单->VMware Tools Install
2. 挂载光驱(注意光驱所对应的设备名)
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]
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]
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 9.6.2 build-1688356 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.
The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.
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? [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/3.16.0-34-generic/build/include".
The path "/lib/modules/3.16.0-34-generic/build/include" appears to be a valid
path to the 3.16.0-34-generic kernel headers.
Would you like to change it? [no]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/modconfig-FXK2Rz/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.16.0-34-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-34-generic'
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/backdoor.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/backdoorGcc64.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/bdhandler.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/cpName.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/cpNameLite.o
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/dentry.o
In file included from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfsProto.h:37,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/module.h:39,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/dentry.c:34:
/tmp/modconfig-FXK2Rz/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default]
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from ./arch/x86/include/asm/percpu.h:44,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/wait.h:8,
from include/linux/fs.h:6,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/./shared/compat_fs.h:22,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/dentry.c:28:
include/linux/printk.h:106:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/dir.o
In file included from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/request.h:38,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/transport.h:26,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/bdhandler.c:30:
/tmp/modconfig-FXK2Rz/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default]
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/kref.h:18,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/request.h:32,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/transport.h:26,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/bdhandler.c:30:
include/linux/printk.h:106:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
CC [M] /tmp/modconfig-FXK2Rz/vmhgfs-only/file.o
In file included from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfsProto.h:37,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/dir.c:37:
/tmp/modconfig-FXK2Rz/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default]
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from ./arch/x86/include/asm/percpu.h:44,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/dir.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
In file included from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/hgfsProto.h:37,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/file.c:42:
/tmp/modconfig-FXK2Rz/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default]
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from ./arch/x86/include/asm/percpu.h:44,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /tmp/modconfig-FXK2Rz/vmhgfs-only/file.c:29:
include/linux/printk.h:106:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
/tmp/modconfig-FXK2Rz/vmhgfs-only/file.c: In function ‘HgfsAioRead’:
/tmp/modconfig-FXK2Rz/vmhgfs-only/file.c:791:4: error: implicit declaration of function ‘generic_file_aio_read’ [-Werror=implicit-function-declaration]
result = generic_file_aio_read(iocb, iov, numSegs, offset);
^
/tmp/modconfig-FXK2Rz/vmhgfs-only/file.c: In function ‘HgfsAioWrite’:
/tmp/modconfig-FXK2Rz/vmhgfs-only/file.c:863:4: error: implicit declaration of function ‘generic_file_aio_write’ [-Werror=implicit-function-declaration]
result = generic_file_aio_write(iocb, iov, numSegs, offset);
^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/modconfig-FXK2Rz/vmhgfs-only/file.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-FXK2Rz/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-34-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-FXK2Rz/vmhgfs-only'
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]
The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
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?
[yes]
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can be
enabled/disabled by re-running vmware-config-tools.pl.
Would you like to enable VMware automatic kernel modules?
[no]
Thinprint provides driver-free printing. Do you wish to enable this feature?
[yes]
Disabling timer-based audio scheduling in pulseaudio.
Detected X server version 1.16.0
Distribution provided drivers for Xorg X server are used.
Skipping X configuration because X drivers are not included.
Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.16.0-34-generic
vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.6.2 build-1688356 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 "/usr/bin/vmware-toolbox-cmd" from the
command line.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
Enjoy,
--the VMware team