提出问题:在Ubuntu 15. 04版本上,不能实现剪贴板的共享
解决方法:发现没有装VMware Tools
安装VMware Tools步骤
1. 点击菜单栏,虚拟机 → 安装VMware工具 → Install
2.若没有反应,再选择虚拟机 →可移动设备→ CD/DVD→ 设置
选择你装虚拟机下的目录,点击 Linux.iso
再重新点击安装VMware Tools
这样会弹出一个包VMwareTools-9.6.0-1294478.tar.gz
3. 将VMwareTools-9.6.0-1294478.tar.gz 复制到一个文件夹
解压,用tar xzf VMwareTools-9.6.0-1294478.tar.gz 命令行
得到文件夹vmware-tools-distrib
4. 再使用sudo ./vmware-install.pl安装即可
注意,接下来只要一直按Enter键即可
5.重启,剪贴板的共享,即复制和粘贴,已经可以工作了。
.再去顺带看看文件夹共享,是否也可用了。
最后部分的log是:
vmware-tools-distrib/lib/lib64/libgiomm-2.4.so.1/
vmware-tools-distrib/lib/lib64/libgiomm-2.4.so.1/libgiomm-2.4.so.1
vmware-tools-distrib/lib/lib64/libcairomm-1.0.so.1/
vmware-tools-distrib/lib/lib64/libcairomm-1.0.so.1/libcairomm-1.0.so.1
vmware-tools-distrib/lib/lib64/libsexymm.so.2/
vmware-tools-distrib/lib/lib64/libsexymm.so.2/libsexymm.so.2
vmware-tools-distrib/lib/lib64/libgthread-2.0.so.0/
vmware-tools-distrib/lib/lib64/libgthread-2.0.so.0/libgthread-2.0.so.0
vmware-tools-distrib/lib/lib64/libXinerama.so.1/
vmware-tools-distrib/lib/lib64/libXinerama.so.1/libXinerama.so.1
vmware-tools-distrib/lib/lib64/libgnomecanvasmm-2.6.so.1/
vmware-tools-distrib/lib/lib64/libgnomecanvasmm-2.6.so.1/libgnomecanvasmm-2.6.so.1
vmware-tools-distrib/lib/lib64/libgnome-menu.so.2/
vmware-tools-distrib/lib/lib64/libgnome-menu.so.2/LICENSE
vmware-tools-distrib/lib/lib64/libgnome-menu.so.2/libgnome-menu.so.2
vmware-tools-distrib/lib/lib64/libpangomm-1.4.so.1/
vmware-tools-distrib/lib/lib64/libpangomm-1.4.so.1/libpangomm-1.4.so.1
vmware-tools-distrib/lib/lib64/libvmware-modconfig-console.so/
vmware-tools-distrib/lib/lib64/libvmware-modconfig-console.so/libvmware-modconfig-console.so
vmware-tools-distrib/lib/lib64/libssl.so.0.9.8/
vmware-tools-distrib/lib/lib64/libssl.so.0.9.8/libssl.so.0.9.8
vmware-tools-distrib/lib/lib64/libproc-3.2.7.so/
vmware-tools-distrib/lib/lib64/libproc-3.2.7.so/libproc-3.2.7.so
vmware-tools-distrib/lib/lib64/libhgfs.so/
vmware-tools-distrib/lib/lib64/libhgfs.so/libhgfs.so
vmware-tools-distrib/lib/lib64/libbonobo-activation.so.4/
vmware-tools-distrib/lib/lib64/libbonobo-activation.so.4/libbonobo-activation.so.4
vmware-tools-distrib/lib/lib64/libtpvmlpd.so/
vmware-tools-distrib/lib/lib64/libtpvmlpd.so/libtpvmlpd.so
vmware-tools-distrib/lib/lib64/libgtk-x11-2.0.so.0/
vmware-tools-distrib/lib/lib64/libgtk-x11-2.0.so.0/libgtk-x11-2.0.so.0
vmware-tools-distrib/lib/lib64/libcrypto.so.0.9.8/
vmware-tools-distrib/lib/lib64/libcrypto.so.0.9.8/libcrypto.so.0.9.8
vmware-tools-distrib/lib/lib64/libICE.so.6/
vmware-tools-distrib/lib/lib64/libICE.so.6/libICE.so.6
vmware-tools-distrib/lib/lib64/liburiparser.so.1/
vmware-tools-distrib/lib/lib64/liburiparser.so.1/liburiparser.so.1
vmware-tools-distrib/lib/lib64/libatkmm-1.6.so.1/
vmware-tools-distrib/lib/lib64/libatkmm-1.6.so.1/libatkmm-1.6.so.1
vmware-tools-distrib/lib/lib64/libvmtools.so/
vmware-tools-distrib/lib/lib64/libvmtools.so/libvmtools.so
vmware-tools-distrib/lib/lib64/libsigc-2.0.so.0/
vmware-tools-distrib/lib/lib64/libsigc-2.0.so.0/libsigc-2.0.so.0
vmware-tools-distrib/lib/lib64/libXrandr.so.2/
vmware-tools-distrib/lib/lib64/libXrandr.so.2/libXrandr.so.2
vmware-tools-distrib/lib/lib64/libz.so.1/
vmware-tools-distrib/lib/lib64/libz.so.1/libz.so.1
vmware-tools-distrib/lib/lib64/libXft.so.2/
vmware-tools-distrib/lib/lib64/libXft.so.2/libXft.so.2
vmware-tools-distrib/lib/lib64/libXcursor.so.1/
vmware-tools-distrib/lib/lib64/libXcursor.so.1/libXcursor.so.1
vmware-tools-distrib/lib/lib64/libfreetype.so.6/
vmware-tools-distrib/lib/lib64/libfreetype.so.6/libfreetype.so.6
vmware-tools-distrib/lib/lib64/libtpvmlp.so/
vmware-tools-distrib/lib/lib64/libtpvmlp.so/libtpvmlp.so
vmware-tools-distrib/lib/lib64/libXdmcp.so.6/
vmware-tools-distrib/lib/lib64/libXdmcp.so.6/libXdmcp.so.6
vmware-tools-distrib/lib/lib64/libexpat.so.0/
vmware-tools-distrib/lib/lib64/libexpat.so.0/libexpat.so.0
vmware-tools-distrib/lib/lib64/libxml2.so.2/
vmware-tools-distrib/lib/lib64/libxml2.so.2/libxml2.so.2
vmware-tools-distrib/lib/lib64/libvmGuestLib.so/
vmware-tools-distrib/lib/lib64/libvmGuestLib.so/libvmGuestLib.so
vmware-tools-distrib/lib/lib64/libgksu2.so.0/
vmware-tools-distrib/lib/lib64/libgksu2.so.0/libgksu2.so.0
vmware-tools-distrib/lib/lib64/libcairo.so.2/
vmware-tools-distrib/lib/lib64/libcairo.so.2/libcairo.so.2
vmware-tools-distrib/lib/share/
vmware-tools-distrib/lib/share/icons/
vmware-tools-distrib/lib/share/icons/vmware.png
vmware-tools-distrib/FILES
vmware-tools-distrib/installer/
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/installer/upstart-job.conf
vmware-tools-distrib/doc/
vmware-tools-distrib/doc/open_source_licenses.txt
vmware-tools-distrib/doc/README
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/etc/
vmware-tools-distrib/etc/suspend-vm-default
vmware-tools-distrib/etc/resume-vm-default
vmware-tools-distrib/etc/scripts/
vmware-tools-distrib/etc/scripts/vmware/
vmware-tools-distrib/etc/scripts/vmware/network
vmware-tools-distrib/etc/poweron-vm-default
vmware-tools-distrib/etc/statechange.subr
vmware-tools-distrib/etc/xsession-xdm.pl
vmware-tools-distrib/etc/vmware-user.Xresources
vmware-tools-distrib/etc/vmware-tools/
vmware-tools-distrib/etc/not_configured
vmware-tools-distrib/etc/xsession-gdm.sh
vmware-tools-distrib/etc/poweroff-vm-default
vmware-tools-distrib/etc/vmware-tools-libraries.conf
vmware-tools-distrib/etc/tpvmlp.conf
vmware-tools-distrib/etc/vmware-user.desktop
vmware-tools-distrib/etc/xsession-xdm.sh
vmware-tools-distrib/etc/installer.sh
vmware-tools-distrib/etc/manifest.txt.shipped
vmware-tools-distrib/etc/vmware-tools-prelink.conf
vmware-tools-distrib/bin/
vmware-tools-distrib/bin/vmware-config-tools.pl
vmware-tools-distrib/bin/vmware-uninstall-tools.pl
vmware-tools-distrib/bin/vm-support
vmware-tools-distrib/vmware-install.pl
vmware-tools-distrib/INSTALL
crifan@ubuntu:~/develop/vmwaretools$ cd vmware-tools-distrib/
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$
./vmware-install.pl
Please
re-run this program as the super user.
Execution
aborted.
Found
VMware Tools CDROM mounted at /media/crifan/VMware Tools.
Ejecting device
/dev/sr0 ...
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$
./vmware-install.pl
Please
re-run this program as the super user.
Execution
aborted.
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ sudo ./vmware-install.pl
The
installer found the following conflicting packages installed on the system and will now remove them:
open-vm-dkms
open-vm-tools
(Reading
database ... 156974 files and directories currently installed.)
Removing open-vm-dkms
...
--------
Uninstall Beginning --------
Module: open-vm-tools
Version:
2012.12.26
Kernel:
3.8.0-19-generic (i686)
-------------------------------------
Status:
Before uninstall, this module version was ACTIVE on this kernel.
vmblock.ko:
-
Uninstallation
-
Deleting from: /lib/modules/3.8.0-19-generic/updates/dkms/
-
Original module
-
No original module was found for this
module on this kernel.
-
Use the dkms install command to
reinstall any previous module version.
vmci.ko:
-
Uninstallation
-
Deleting from: /lib/modules/3.8.0-19-generic/updates/dkms/
-
Original module
-
No original module was found for this
module on this kernel.
-
Use the dkms install command to
reinstall any previous module version.
vmhgfs.ko:
-
Uninstallation
-
Deleting from: /lib/modules/3.8.0-19-generic/updates/dkms/
-
Original module
-
No original module was found for this
module on this kernel.
-
Use the dkms install command to
reinstall any previous module version.
vmxnet.ko:
-
Uninstallation
-
Deleting from: /lib/modules/3.8.0-19-generic/updates/dkms/
-
Original module
-
No original module was found for this
module on this kernel.
-
Use the dkms install command to
reinstall any previous module version.
vsock.ko:
-
Uninstallation
-
Deleting from: /lib/modules/3.8.0-19-generic/updates/dkms/
-
Original module
-
No original module was found for this
module on this kernel.
-
Use the dkms install command to
reinstall any previous module version.
depmod.....
DKMS:
uninstall completed.
------------------------------
Deleting
module version: 2012.12.26
completely
from the DKMS tree.
------------------------------
Done.
Removing open-vm-tools
...
*
Stopping open-vm
guest daemon vmtoolsd [ OK ]
*
Removing open-vm-tools
modules FATAL: Module vmhgfs not found.
FATAL:
Module vmxnet not found.
[
OK ]
Processing
triggers for ureadahead
...
ureadahead
will be reprofiled on next reboot
Processing
triggers for man-db
...
Processing
triggers for libc-bin
...
ldconfig
deferred processing now taking place
A
previous installation of VMware Tools has been detected.
The
previous installation was made by the tar installer
(version 4).
Keeping
the tar4 installer database format.
You
have a version of VMware Tools installed. Continuing this install will
first
uninstall the currently installed version. Do you wish to continue?
(yes/no)
[yes]
Uninstalling
the tar installation
of VMware Tools.
Stopping
services for VMware
Tools
vmware-tools
stop/waiting
File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders
is
backed
up to
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.0.
File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc is
backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc.old.0.
This
program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangorc,
and was about to remove it.
Somebody else apparently
did it already.
File /etc/vmware-tools/vmware-user.desktop
is backed up to
/etc/vmware-tools/vmware-user.desktop.old.0.
This
program previously created the file /sbin/mount.vmhgfs,
and was about to
remove
it. Somebody else apparently
did it already.
File /usr/lib/vmware-tools/lib32/libconf/etc/fonts/fonts.conf
is backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/fonts/fonts.conf.old.0.
This
program previously created the file /usr/bin/vmware-hgfsclient,
and was
about
to remove it. Somebody else apparently
did it already.
This
program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pango.modules,
and was about to
remove
it. Somebody else apparently
did it already.
This
program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders,
and was about to
remove
it. Somebody else apparently
did it already.
File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules
is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules.old.0.
This
program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules,
and was about to
remove
it. Somebody else apparently
did it already.
This
program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases,
and was about to
remove
it. Somebody else apparently
did it already.
This
program previously created the file /usr/bin/vmware-toolbox-cmd,
and was
about
to remove it. Somebody else apparently
did it already.
This
program previously created the file /usr/bin/vmware-xferlogs,
and was
about
to remove it. Somebody else apparently
did it already.
This
program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0,
and was about to remove it.
Since
there are files in that
directory that this program did not create, it
will
not be removed.
This
program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/pango,
and was about to remove it.
Since
there are files in that
directory that this program did not create, it
will
not be removed.
This
program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/fonts,
and was about to remove it.
Since
there are files in that
directory that this program did not create, it
will
not be removed.
This
program previously created the directory
/usr/lib/vmware-tools/lib/libtpvmlpd2.so,
and was about to remove it. Somebody
else apparently
did it already.
This
program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc,
and was about to remove it. Since
there
are files in that
directory that this program did not create, it will not
be
removed.
This
program previously created the directory
/usr/lib/vmware-tools/lib/libtpvmgp.so,
and was about to remove it. Somebody
else apparently
did it already.
This
program previously created the directory
/usr/lib/vmware-tools/lib32/libconf,
and was about to remove it. Since there
are
files in that
directory that this program did not create, it will not be
removed.
This
program previously created the directory /etc/vmware-tools/scripts/vmware,
and
was about to remove it. Since there are files in that
directory that this
program
did not create, it will not be removed.
This
program previously created the directory /usr/lib/vmware-tools/lib32,
and
was
about to remove it. Since there are files in that
directory that this
program
did not create, it will not be removed.
This
program previously created the directory /etc/vmware-tools/scripts,
and
was
about to remove it. Since there are files in that
directory that this
program
did not create, it will not be removed.
This
program previously created the directory /usr/lib/vmware-tools,
and was
about
to remove it. Since there are files in that
directory that this program
did
not create, it will not be removed.
update-initramfs:
Generating /boot/initrd.img-3.8.0-19-generic
The
removal of VMware Tools 8.8.2 build-590212 for Linux
completed
successfully.
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.8.2 build-590212 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.
[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]
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...
The
path "" is
not a valid path to the 3.8.0-19-generic kernel headers.
Would
you like to change it? [yes]
Enter
the path to the kernel header files for the
3.8.0-19-generic kernel?
The
path "" is
not a valid path to the 3.8.0-19-generic kernel headers.
Would
you like to change it? [yes]
Enter
the path to the kernel header files for the
3.8.0-19-generic kernel?
The
path "" is
not a valid path to the 3.8.0-19-generic kernel headers.
Would
you like to change it? [yes]
Enter
the path to the kernel header files for the
3.8.0-19-generic kernel?
The
path "" is
not a valid path to the 3.8.0-19-generic kernel headers.
Would
you like to change it? [yes]
Enter
the path to the kernel header files for the
3.8.0-19-generic kernel?
The
path "" is
not a valid path to the 3.8.0-19-generic kernel headers.
Would
you like to change it? [yes]
no
WARNING:
This program cannot compile any modules for the
following reason(s)...
-
This program could not find a
valid path to the kernel headers of the running
kernel.
Please ensure that the header files for the
running kernel are
installed
on this sytem.
[
Press Enter key to continue ]
The
communication service is used in addition
to the standard communication
between
the guest and the host. The rest of the software provided by VMware
Tools
is designed to work independently of this feature.
If
you wish to have the VMCI 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
VM communication interface socket family is used in conjunction
with the VM
communication
interface to provide a new communication path among guests and
host.
The rest of this software provided by VMware Tools is designed to work
independently
of this feature. If you wish to have the VSOCK 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 the Enter key to continue.]
The
module vmxnet3 has already been installed on this system by another
installer
or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=vmxnet3
to override.
The
module pvscsi has already been installed on this system by another
installer
or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=pvscsi
to override.
The
module vmmemctl has already been installed on this system by another
installer
or package and will not be modified by this installer. Use the flag
--clobber-kernel-modules=vmmemctl
to override.
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]
The
fast network device driver (vmxnet module) is used only for our
fast
networking
interface. The rest of the software provided by VMware Tools is
designed
to work independently of this feature.
If
you wish to have the fast network driver enabled, 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
vmblock module enables dragging or copying files from within a host and
dropping
or pasting them onto your guest (host to guest drag and drop and file
copy/paste).
The rest of the software provided by VMware Tools is designed to
work
independently of this feature (including guest to host drag and drop and
file copy/paste).
If
you would like the host to guest drag and drop and file copy/paste features,
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 ]
!!!
[EXPERIMENTAL] !!!
VMware
automatic kernel modules enables automatic building and installation of
VMware
kernel modules at boot they are not already present. By selecting yes,
you
will be enabling this experimental feature. You can always disable this
feature
by re-running vmware-config-tools.pl.
Would
you like to enable VMware
automatic kernel modules?
[no]
Disabling
timer-based audio scheduling in pulseaudio.
Detected
X server version 1.13.3
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.8.0-19-generic
vmware-tools
start/running
The
configuration of VMware Tools 8.8.2 build-590212 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
or by invoking "/usr/bin/vmware-toolbox" from
the command line
during
an X server session.
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
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$
快捷安装选项安装Ubuntu 15.04时无法安装VMware Tools的问题已解:http://www.linuxdiyf.com/linux/12721.html
安装Ubuntu Kylin 15.04 x64并安装VMware Tool:http://www.linuxdiyf.com/linux/12411.html
VMware工具下,解决ubuntu15.04无法连接网络:http://www.linuxdiyf.com/linux/12671.html
Linux虚拟机安装VMware Tools:http://www.linuxdiyf.com/linux/12944.html
Linux系统入门学习:在Debian安装VMware Tools:http://www.linuxdiyf.com/linux/10647.html