我照着教程在Ubuntu上sudo安装那个粘贴的工具
sudo apt-get install open-vm-tools-desktop
结果给我来句
然后我在虚拟机上点击安装然后取消结果给我来句这个
客户机操作系统已将 CD-ROM 门锁定,并且可能正在使用 CD-ROM,这可能会导致客户机无法识别介质的更改。如果可能,请在断开连接之前从客户机内部弹出 CD-ROM。
根据我查到的情况并进行成功了的就是,在虚拟机设备设置那把ios映像换成物理检测就行了
具体如下图:
1、首先把linux虚拟机关机或退出,然后点击“编辑虚拟机设置”。
2、点击CD/DVD,选择使用物理驱动器–自动检测。
3、然后点击虚拟机中的安装vmware tool,这里我的己安装了所以显示重新安装vmware tool。
4、安装完vmware tool后就会出现如下图里的VMwareTools-9.9.0-2304977.tar.gz的linux压缩包文件。
5、这里我们鼠标右键选择使用归档管理器打开,然后另存到桌面(为了方便使用终端找到该压缩文件)
6、点击按图中方式打开终端
7、在终端中先进入桌面目录,即输入”cd 桌面”。再解压VMwareTools-9.9.0-2304977.tar.gz压缩包,即在终端输入”tar -zxvf VMwareTools-9.9.0-2304977.tar.gz”。
8、进入解压后的v文件mware-tools-distrib夹中,用root身份执行文件夹里vmware-install.pl的文件。
9、接着就一直接Enter键就行了,如果一遍没有安装好,可以再执行一次第8步。
这是安装过程中出现的所有语句,我有的敲了y
[root@localhost mnt]# cd ../..
[root@localhost /]# cd /tmp
[root@localhost tmp]# ls
keyring-0Xytmd keyring-hyGJPh keyring-UvmLHe virtual-carsonzhu.FBAXXT
keyring-4WJiO6 keyring-Hzpfne orbit-carsonzhu virtual-carsonzhu.YLd5ur
keyring-Dtts8C keyring-nPu72R orbit-gdm
keyring-fRCtRE keyring-P2Kgdv pulse-JJ4pstxF4ptg
keyring-GgwNeg keyring-tLjlND pulse-rR5aSeUpvxJC
[root@localhost tmp]# cd /mnt
[root@localhost mnt]# cp VMwareTools-10.0.0-2977863.tar.gz /tmp
[root@localhost mnt]# cd /tmp
[root@localhost tmp]# ls
keyring-0Xytmd keyring-Hzpfne orbit-gdm
keyring-4WJiO6 keyring-nPu72R pulse-JJ4pstxF4ptg
keyring-Dtts8C keyring-P2Kgdv pulse-rR5aSeUpvxJC
keyring-fRCtRE keyring-tLjlND virtual-carsonzhu.FBAXXT
keyring-GgwNeg keyring-UvmLHe virtual-carsonzhu.YLd5ur
keyring-hyGJPh orbit-carsonzhu VMwareTools-10.0.0-2977863.tar.gz
[root@localhost tmp]# tar zxpf VMwareTools-10.0.0-2977863.tar.gz
[root@localhost tmp]# ls
keyring-0Xytmd keyring-nPu72R pulse-rR5aSeUpvxJC
keyring-4WJiO6 keyring-P2Kgdv virtual-carsonzhu.FBAXXT
keyring-Dtts8C keyring-tLjlND virtual-carsonzhu.YLd5ur
keyring-fRCtRE keyring-UvmLHe VMwareTools-10.0.0-2977863.tar.gz
keyring-GgwNeg orbit-carsonzhu vmware-tools-distrib
keyring-hyGJPh orbit-gdm
keyring-Hzpfne pulse-JJ4pstxF4ptg
[root@localhost tmp]# cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]# ls
bin doc FILES installer vgauth vmware-install.real.pl
caf etc INSTALL lib vmware-install.pl
[root@localhost 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/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/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 common agent library files?
[/usr/lib]
In which directory do you want to install the common agent transient files?
[/var/lib]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "yes" is a relative path. Please enter an absolute path.
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 10.0.0 build-2977863 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 Thinprint services in the virtual machine:
Stopping Virtual Printing daemon: done
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定]
VMware User Agent (vmware-user): [确定]
Unmounting HGFS shares: [确定]
Guest filesystem driver: [确定]
Found a compatible pre-built module for vmci. Installing it...
Found a compatible pre-built module for vsock. Installing it...
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]
Could not create the '/mnt/hgfs' directory. Please make sure it is writeable
and/or not currently in use.
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 ]
Found a compatible pre-built module for vmxnet. Installing it...
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.
Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes]
Do you want to enable Common Agent (caf)? [yes]
Detected X server version 1.13.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.
Generating the key and certificate files.
Successfully generated the key and certificate files.
Starting Virtual Printing daemon: done
Checking acpi hot plug [确定]
Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [确定]
VM communication interface: [确定]
VM communication interface socket family: [确定]
Blocking file system: [确定]
Guest operating system daemon: [确定]
VGAuthService: [确定]
Common Agent: [确定]
The configuration of VMware Tools 10.0.0 build-2977863 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
Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/sr0 ...