open-vm-tools
open-vm-tools copied to clipboard
Segmentation fault (core dumped) when installing vmware tools
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:
- Manually start /usr/bin/vmware-user
- Log out and log back into your desktop session
- Restart your X session.
Found VMware Tools CDROM mounted at /media/lcj/VMware Tools. Ejecting device /dev/sr0 ... Enjoy,
--the VMware team
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.
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
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?
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.
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.
Could be that I messed up thing by installing GUI (LXDE and XFCE) on top of Ubuntu Server.
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.
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 runsudo ./vmware-uninstall-tools.plfor uninstall vmware-tools,and then try runsudo apt-get remove open-vm-tools --purge sudo apt-get remove open-vm-tools-desktop --purge cd .. sudo vmware-install.plmay continue to segfault and ignore it,then try run
sudo apt-get install open-vm-tools open-vm-tools-desktopDone
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 ?
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 thesudo apt remove --purge open-vm-toolsthen 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-toolssudo apt install open-vm-tools open-vm-tools-desktopFinally I SSHed into server from Win10 (which is voodoo) and ran:
sudo apt remove --purge open-vm-toolssudo apt install open-vm-tools open-vm-tools-desktopagain. 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.
That part about SSHing into the guest seems very important. When I tried the installation of open-vm-tools-guest on the GUEST TERMINAL, I saw an error messsage about sysctl or some service command could not be invoked from /usr/bin/journalsomething and the command seems to have aborted during the post-installation setup.
However, when I did SSHing in to the guest and invoked the install, it worked completely, and during open-vm-tools-desktop install I saw the mesages that some symlinks are created for proper mount, etc. (I am not sure what.) These messages were not shown during the native install inside the guest terminal window. So I think that failure to run sysctl/service or whatever was a crucial failure and did not cause the proper symlinks for open-vm-tools-desktop to operate correctly.
Now the copy&paste from the host to the guest works (!). This is a very important function and I was thinking of reverting to virtualbox if this does not work...
Thank you for the valuable tips.
...
That part about SSHing into the guest seems very important. When I tried the installation of open-vm-tools-guest on the GUEST TERMINAL, I saw an error messsage about sysctl or some service command could not be invoked from /usr/bin/_journal_something and the command seems to have aborted during the post-installation setup.
However, when I did SSHing in to the guest and invoked the install, it worked completely, and during open-vm-tools-desktop install I saw the mesages that some symlinks are created for proper mount, etc. (I am not sure what.) These messages were not shown during the native install inside the guest terminal window. So I think that failure to run sysctl/service or whatever was a crucial failure and did not cause the proper symlinks for open-vm-tools-desktop to operate correctly.
Now the copy&paste from the host to the guest works (!). This is a very important function and I was thinking of reverting to virtualbox if this does not work...
Thank you for the valuable tips.
This is the message I saw on the host win10 from which I ssh'ed into the guest inside workstation pro. Obviously, the symlinking operatons shown here were NOT performed due to an earlier error when I invoke the apt-get install command.
sshing to the guest linux.
Last login: Fri Jun 14 04:36:48 2024 from 192.168.0.77
ishikawa@ip030:~$
ishikawa@ip030:~$ sudo apt remove --purge open-vm-tools
[sudo] password for ishikawa:
The following packages were automatically installed and are no longer required:
ethtool libxmlsec1t64-openssl zerofree
Use 'sudo apt autoremove' to remove them.
REMOVING:
open-vm-tools* open-vm-tools-desktop*
Summary:
Upgrading: 0, Installing: 0, Removing: 2, Not Upgrading: 0
Freed space: 3,903 kB
Continue? [Y/n] y
(Reading database ... 460024 files and directories currently installed.)
Removing open-vm-tools-desktop (2:12.4.5-1) ...
Removing open-vm-tools (2:12.4.5-1) ...
Processing triggers for man-db (2.13.0-1) ...
Processing triggers for libc-bin (2.40-3) ...
(Reading database ... 459891 files and directories currently installed.)
Purging configuration files for open-vm-tools-desktop (2:12.4.5-1) ...
Purging configuration files for open-vm-tools (2:12.4.5-1) ...
dpkg: warning: while removing open-vm-tools, directory '/etc/vmware-tools/scripts/vmware' not empty so not removed
ishikawa@ip030:~$ ls /etc/vmware-tools/scripts/vmware
./ ../ network.old.0 network.old.1
ishikawa@ip030:~$ sudo bash
... I checked the contents of network.old.* files and figured it is OK to remove them.
root@ip030:/home/ishikawa# rm /etc/vmware-tools/scripts/vmware/network.old.*
root@ip030:/home/ishikawa# ls /etc/vmware-tools/scripts/vmware/
root@ip030:/home/ishikawa# apt install open-vm-tools open-vm-tools-desktop
Installing:
open-vm-tools open-vm-tools-desktop
Suggested packages:
cloud-init open-vm-tools-containerinfo open-vm-tools-salt-minion
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
Download size: 0 B / 850 kB
Space needed: 3,903 kB / 1,073 MB available
Selecting previously unselected package open-vm-tools.
(Reading database ... 459864 files and directories currently installed.)
Preparing to unpack .../open-vm-tools_2%3a12.4.5-1_amd64.deb ...
Unpacking open-vm-tools (2:12.4.5-1) ...
Selecting previously unselected package open-vm-tools-desktop.
Preparing to unpack .../open-vm-tools-desktop_2%3a12.4.5-1_amd64.deb ...
Unpacking open-vm-tools-desktop (2:12.4.5-1) ...
Setting up open-vm-tools (2:12.4.5-1) ...
Created symlink '/etc/systemd/system/vmtoolsd.service' → '/usr/lib/systemd/system/open-vm-tools.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/open-vm-tools.service' → '/usr/lib/systemd/system/open-vm-tools.service'.
Created symlink '/etc/systemd/system/open-vm-tools.service.requires/vgauth.service' → '/usr/lib/systemd/system/vgauth.service'.
Setting up open-vm-tools-desktop (2:12.4.5-1) ...
Created symlink '/etc/systemd/system/multi-user.target.wants/run-vmblock\x2dfuse.mount' → '/usr/lib/systemd/system/run-vmblock\x2dfuse.mount'.
Processing triggers for libc-bin (2.40-3) ...
Processing triggers for man-db (2.13.0-1) ...
root@ip030:/home/ishikawa# rebppted
bash: rebppted: command not found
root@ip030:/home/ishikawa# rebooted
bash: rebooted: command not found
root@ip030:/home/ishikawa# reboot
root@ip030:/home/ishikawa# client_loop: send disconnect: Connection reset