vm-tools的卸载重装,只能复制粘贴,无法拖拽文件!

开始

  • ubuntu22.04 LTS
  • VMwareTools-10.3.25-20206839.tar.gz
  • VMware Workstation 17 Pro

各种该尝试的配置都尝试了,比如:
1.开启复制粘贴拖拽;
2.VMware Tools拖拽失效;
3.解决VMware无法拖拽.
均没有奏效.

安装过程报错, 报错异常:

The installation of VMware Tools 10.3.25 build-20206839 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] 

INPUT: [yes]  default

Initializing...

Segmentation fault (core dumped)   这里抛出了异常
  1. 写在前面: 折腾了十几次, 在 ubuntu22.04LTS, 通过网络方式安装vmtools后, 确实可以复制粘贴文本,但是无法自由拖拽文件.
  2. 相关配置,我翻找了不下是二十余篇博客,仍没办法解决无法拖拽文件的问题.

卸载

# 卸载vm-tools
sudo apt-get remove open-vm-tools
sudo apt-get remove --auto-remove open-vm-tools
sudo apt-get purge open-vm-tools
sudo apt-get purge --auto-remove open-vm-tools
sudo apt-get autoremove open-vm-tools

sudo ./bin/vmware-uninstall-tools.pl  # 同时,也执行一次 本地安装包内的卸载脚本
sudo rm -rf /etc/vmware-tools

[ √ ] 通过网络渠道 安装

安装 Open VM Tools-VMwareDocs

# 安装vm-tools
sudo apt-get update
sudo apt-get install open-vm-tools open-vm-tools-desktop

# 进入su模式, 启动服务(有警告,未找到解决方案)
sudo su
vmware-user
exit

警告如下

root@hostname:/home/dawn/桌面/vmware-tools-distrib# vmware-user
root@hostname:/home/dawn/桌面/vmware-tools-distrib# 
(vmware-user:8070): Gtk-WARNING **: 14:33:51.007: gtk_disable_setlocale() must be called before gtk_init()
root@hostname:/home/dawn/桌面/vmware-tools-distrib# exit
exit

[ x ] 通过本地方式 安装

手动安装VM Tools -VMwareDocs
也就是通过 重新安装 VMware Tools(T) VMware workstatioin自带的选项.

解压vm-tools本地压缩包到桌面

sudo ~/桌面/vmware-tools-distrib/vmware-install.pl

(补充记录,我的错误日志)通过在本地压缩包安装,vmware-install.pl 出现如下完整的安装日志:

sudo ./vmware-install.pl 
[sudo] dawn 的密码: 
open-vm-tools packages are available from the OS vendor and VMware recommends 
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more 
information.
Do you still want to proceed with this installation? [no] y

INPUT: [y]

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] 

INPUT: [/usr/bin]  default

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

INPUT: [/etc]  default

What is the directory that contains the init scripts? 
[/etc/init.d] 

INPUT: [/etc/init.d]  default

In which directory do you want to install the daemon files? 
[/usr/sbin] 

INPUT: [/usr/sbin]  default

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

INPUT: [/usr/lib/vmware-tools]  default

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] 

INPUT: [yes]  default

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

INPUT: [/usr/share/doc/vmware-tools]  default

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] 

INPUT: [yes]  default

The installation of VMware Tools 10.3.25 build-20206839 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] 

INPUT: [yes]  default

Initializing...

Segmentation fault (core dumped)

Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   VMware User Agent (vmware-user):                                    done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


^[^AThe installation status of vmsync could not be determined. 
Skippinginstallation.

The installation status of vmci could not be determined. Skippinginstallation.

The installation status of vsock could not be determined. Skippinginstallation.


The installation status of vmxnet3 could not be determined. 
Skippinginstallation.

The installation status of pvscsi could not be determined. 
Skippinginstallation.

The installation status of vmmemctl could not be determined. 
Skippinginstallation.

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] 

INPUT: [s invalid.  It must be one of "y" or "n".

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] 

INPUT: [yes]  default

The installation status of vmhgfs could not be determined. 
Skippinginstallation.

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] 

INPUT: [yes]  default


Skipping configuring automatic kernel modules as no drivers were installed by 
this installer.


Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? [yes] 

INPUT: [yes]  default



Detected X server version 1.21.1



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.


Skipping rebuilding initrd boot image for kernel as no drivers to be included 
in boot image were installed by this installer.

Job for vmware-tools.service failed because the control process exited with error code.
See "systemctl status vmware-tools.service" and "journalctl -xeu vmware-tools.service" for details.
Unable to start services for VMware Tools

Execution aborted.

Found VMware Tools CDROM mounted at /media/dawn/VMware Tools. Ejecting device 
/dev/sr0 ...
Enjoy,

--the VMware team

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值