最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】VMWare Workstation和Ubuntu之间无法共享(复制和粘贴)剪贴板

VMWare crifan 15141浏览 0评论

【问题】

折腾:

【已解决】Ubuntu中用sudo apt-get install安装某软件,结果出错:E: Unable to locate package

期间,突然发现,之前在VMWare和Ubuntu之间,可以正常共享的剪贴板。此刻不起效果了。

注:同时发现,之前通过:

【记录】VMWare Workstation中实现Win7和Ubuntu虚拟机之间的文件共享

弄好的,文件夹共享,此刻也不行了:

/mnt/hgfs

下面是空的。

 

【解决过程】

1.打算尝试重新安装VMWare Tools:

try to reinstall vmware tools

2.然后自动出现VMWareTools的tar包:

auto show vmware tools tar

3.安装提示,去安装:

即,拷贝所看到的这个,在/mnt/crifan下面的VMWareTools-8.8.2-590212.tar.gz,解压,进去后,运行:

sudo ./vmware-install.pl

然后一步步,都直接输入回车即可。

唯一的一步要注意的是,关于kernel header的部分,要输入no(懒得关心细节,无需安装此header即可)

 

最后部分的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$ 

4.此时,剪贴板的共享,即复制和粘贴,已经可以工作了。

5.再去顺带看看文件夹共享,是否也可用了,结果还是不行:

crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ ls /mnt/hgfs/

所以,继续参考:

【记录】VMWare Workstation中实现Win7和Ubuntu虚拟机之间的文件共享

去先试试之前的命令,也不行:

crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ modprobe vmhgfs
FATAL: Module vmhgfs not found.
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ lsmod | grep vmhgfs
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ vmware-hgfsclient
crosstool_ng
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ 

6.所以干脆再重新安装之前的方法,再安装一遍那个open-vm-tools,再mount一下,就可以了:

crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ sudo apt-get install open-vm-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  open-vm-dkms
Suggested packages:
  open-vm-toolbox
The following NEW packages will be installed:
  open-vm-dkms open-vm-tools
0 upgraded, 2 newly installed, 0 to remove and 203 not upgraded.
Need to get 0 B/842 kB of archives.
After this operation, 8,401 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package open-vm-dkms.
(Reading database ... 156230 files and directories currently installed.)
Unpacking open-vm-dkms (from .../open-vm-dkms_2012.12.26-958366-0ubuntu3_all.deb) ...
Selecting previously unselected package open-vm-tools.
Unpacking open-vm-tools (from .../open-vm-tools_2012.12.26-958366-0ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up open-vm-dkms (2012.12.26-958366-0ubuntu3) ...
Loading new open-vm-tools-2012.12.26 DKMS files...
First Installation: checking all kernels...
Building only for 3.8.0-19-generic
Building for architecture i686
Building initial module for 3.8.0-19-generic
Done.

vmblock:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-19-generic/updates/dkms/

vmci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-19-generic/updates/dkms/

vmhgfs.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-19-generic/updates/dkms/

vmxnet.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-19-generic/updates/dkms/

vsock.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.8.0-19-generic/updates/dkms/

depmod....

DKMS: install completed.
Setting up open-vm-tools (2012.12.26-958366-0ubuntu3) ...
update-initramfs: deferring update (trigger activated)
 * Loading open-vm-tools modules                                         [ OK ] 
 * Remove pcnet32 module, if vmxnet is loaded                            [ OK ] 
 * Starting open-vm daemon vmtoolsd                                      [ OK ] 
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.8.0-19-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ sudo mount -t vmhgfs .host:/ /mnt/hgfs
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ ls /mnt/hgfs
crosstool_ng
crifan@ubuntu:~/develop/vmwaretools/vmware-tools-distrib$ 

 

【总结】

以后,不用再去用vmware自带的vmware tools了。

还是用下面这个好用:

sudo apt-get install open-vm-tools
sudo mkdir /mnt/hgfs
sudo mount -t vmhgfs .host:/ /mnt/hgfs

转载请注明:在路上 » 【已解决】VMWare Workstation和Ubuntu之间无法共享(复制和粘贴)剪贴板

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (2)

  1. 目前也是出现VM和ubuntu之间无法共享剪贴板的问题,但是重装后依然不可共享。同时安装过程中,在哪个"kernel header"的地方,是默认选择的【no】。请问后续有遇到这样的问题么
    shhdgl9年前 (2016-01-04)回复
  2. 最新的vmware Workstation11,功能强大多了(附vmware Workstation 11.0下载地址:http://www.itpux.com/article-3-1.html )
    IT技术网站10年前 (2015-02-07)回复
85 queries in 0.197 seconds, using 22.30MB memory