vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.2k stars 419 forks source link

Segmentation fault (core dumped) when installing vmware tools #521

Open lincj1994 opened 3 years ago

lincj1994 commented 3 years ago

Hi, I want to install VMware tools but I was warned the segmentation fault (core dumped) and vmware tools was not installed successfully.

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? [yes]

INPUT: [yes] default

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]

INPUT: [yes] default

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

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

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.4.

The removal of VMware Tools 10.3.23 build-17030940 for Linux completed successfully.

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.23 build-17030940 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 VGAuthService: done VMware User Agent (vmware-user): done Blocking file system: done Unmounting HGFS shares: done Guest filesystem driver: done

The 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: [yes] default

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.20.9

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.

The configuration of VMware Tools 10.3.23 build-17030940 for Linux for this running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take effect.

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
  3. Restart your X session.

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

--the VMware team

dsouders commented 3 years ago

Please note this message at the start of your installation:

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? [yes]

From this message:

The removal of VMware Tools 10.3.23 build-17030940 for Linux completed successfully.

It appears that you are trying to remove a VMware released version of Tools. VMware Tools for Linux is supported only for old distros that do not have vendor supplied packages of open-vm-tools. Since you are removing VMware Tools 10.3.23, I suspect that you may be trying to install another VMware Tools version. That might not work.

Vendors typically tweak open-vm-tools for their distros. VMware releases of Tools, and builds of open-vm-tools from source, might not work properly without the additional changes vendors make for their releases. If your distro has open-vm-tools, you should use the vendor supplied package. Please completely remove the old version of VMware Tools and then install the vendor supplied package.

cnitlrt commented 2 years ago

Hi,I have the same problem as you,Here is my solution,maybe can help you First you should cd vmware-tools-distrib/binand then run sudo ./vmware-uninstall-tools.pl for uninstall vmware-tools,and then try run

sudo apt-get remove open-vm-tools --purge
sudo apt-get remove open-vm-tools-desktop --purge
cd ..
sudo vmware-install.pl

may continue to segfault and ignore it,then try run

sudo apt-get install open-vm-tools open-vm-tools-desktop

Done

simonhf commented 1 year ago

may continue to segfault and ignore it,then try run

I followed the instructions but nothing worked (no copy and paste, no drag and drop outside guest) after the the final install :-(

Doesn't the last command just install the open source vm tools and effectively ignore / write over the manually built and installed via vmware-install.pl?

jantonisito commented 1 year ago

Got it working but not sure why (seems like voodoo to me). I installed ubuntu-22.04.1-live-server-amd64.iso. Did not like lack of GUI so installed Xfce and LXDE desktops and Slim. Cut and paste betw Win10 and VM did not work so I started googling and did the sudo apt remove --purge open-vm-tools then tried same steps as OP and got segmentation fault on /usr/bin/vmware-config-tools.pl. Reboot and tried same steps without shared folders mounted - same deal. On reboot I was getting a message about "VMTools not installed correctly". Repeating: sudo apt remove --purge open-vm-tools sudo apt install open-vm-tools open-vm-tools-desktop

Finally I SSHed into server from Win10 (which is voodoo) and ran: sudo apt remove --purge open-vm-tools sudo apt install open-vm-tools open-vm-tools-desktop again. Rebooted and this time cut and paste works.

Quite frustrating because I did not see this problem (cut and paste) for 2-3 years. It works out of the box on all the other VMs - Ubuntu 20.04 and 22.04 Desktop, Fedora 36 and CentOS 8 and 9.
Only Ubuntu Server had that issue.

johnwvmw commented 1 year ago

Your Ubuntu 22.04 system configuration "seems" very strange to say the least. I believe that UB 22.04 comes with open-vm-tools installed, If there is no desktop in the base installation, open-vmtools-desktop may not have been pre-installed.

Without open-vm-tools-desktop, copy/paste and drag-n-drop will not work.

What is very strange is that "/usr/bin/vmware-config-tools.pl" should not be on the system. That perl script is part of the 10.3.x VMware Tools (tar tools) meant for early Linux releases - before vendors were providing open-vm-tools packages. The presence of both new (correct) OVT runtime and the "old" runtime (for old Linux kernels) is probably what lead to the SIGSEGV.

I suspect that during the UB 22.04 installation and setup, the "linux.iso" was mounted and tools 10.3.2x was installed.

Your fix - remove both versions of tools from the system and reinstall open-vm-tools - was the correct solution.

jantonisito commented 1 year ago

Could be that I messed up thing by installing GUI (LXDE and XFCE) on top of Ubuntu Server.

jasonperrone commented 1 year ago

My VM totally corrupted itself and lost internet connectivity. I can't install vmware-tools for all the reasons mentioned in this issue and I can't install open-vm-tools because it tries to download it from the repository. What can I do at this point? My VM is cut off from the outside world... no internet, no cut and paste from the host.

adesa9 commented 10 months ago

Hi,I have the same problem as you,Here is my solution,maybe can help you First you should cd vmware-tools-distrib/binand then run sudo ./vmware-uninstall-tools.pl for uninstall vmware-tools,and then try run

sudo apt-get remove open-vm-tools --purge
sudo apt-get remove open-vm-tools-desktop --purge
cd ..
sudo vmware-install.pl

may continue to segfault and ignore it,then try run

sudo apt-get install open-vm-tools open-vm-tools-desktop

Done

it works but not completely... I can't drag and drop or copy/paste from guest to host. Why? how can I make it rigth ?