Résoudre l’erreur ‘VM communication interface socket family: [FAILED]’ sur une VM Linux
Sur les vms avec une distribution linux, il peut vous arriver de constater que ces VMware-Tools sont KO (que les VMware-Tools sont arrêté). vous vous connecter sur votre serveur pour relancer les WMware-Tools, mais un message FAILED apparaît au redémarrage.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
. [root@monsrv ~]# cd /etc/vmware-tools/ [root@monsrv vmware-tools]# ./services.sh start Checking acpi hot plug [ OK ] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [ OK ] VM communication interface: [FAILED] VM communication interface socket family: [FAILED] Guest operating system daemon: [ OK ] VGAuthService: [ OK ] . |
Cette anomalie peut apparaître après la mise à jour du kernel de l’os de votre vm Linux. Le Kb VMware 2050592 décrit cette anomalie « VMware Tools fail to start after a Linux guest operating system kernel upgrade »
La résolution passe par la reconfiguration des VMware-Tools. Il faut donc stopper les VMware-Tools et les reconfigurer.
Pour stopper les VMware-Tools, positionner vous dans le répertoire des VMware-Tools « /etc/vmware-tools/« , puis exécuter la commande :
./services.sh stop
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
. [root@monsrv ~]# cd /etc/vmware-tools/ [root@monsrv vmware-tools]# ./services.sh stop Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] Common Agent: [ OK ] VGAuthService: [ OK ] VMware User Agent (vmware-user): [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] . |
Puis, pour reconfigurer les VMware-Tools, lancer la commande :
/usr/bin/vmware-config-tools.pl
Des questions vous sont posés, vous pouvez accepter les réponses par défaut.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
. [root@monsrv vmware-tools]# /usr/bin/vmware-config-tools.pl Initializing... Making sure services for VMware Tools are stopped. 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? [no] 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? [no] 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] 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)? [no] Detected X server version 1.17.4 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. NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and /etc/vmware-tools/GuestProxyData/server/cert.pem already exist. They are not generated again. To regenerate them by force, use the "vmware-guestproxycerttool -g -f" command. vmware-tools start/running The configuration of VMware Tools 10.3.5 build-10430147 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. Enjoy, --the VMware team . |
Les VMware-Tools sont maintenant démarrer, un petit test d’arrêt et redémarrage des Tools montrera que l’anomalie est maintenant corrigée.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
. [root@monsrv vmware-tools]# ./services.sh stop Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] VGAuthService: [ OK ] VMware User Agent (vmware-user): [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] [root@monsrv vmware-tools]# ./services.sh start Checking acpi hot plug [ OK ] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [ OK ] VM communication interface: [ OK ] VM communication interface socket family: [ OK ] Guest operating system daemon: [ OK ] VGAuthService: [ OK ] [root@foret vmware-tools]# . |