I'm trying to work with "Passing a String from the Host OS to the Guest OS" I edited the VMX file, added the information "machine.id = "the_string_for_my_first_vm"" but the command does not work under Linux "/etc/vmware/vmware-guestd --cmd 'machine.id.get' ", any one know if this still works or how do find the hosts "HOSTNAME" from a Linux VM , i'm using VMware workstation 15 and player 15.
You need to use "guestinfo." before whatever variable you want special in your guest.
e.g. in vmx file:
guestinfo.displayname = "EPO Neon SQL Server 2000"
Inside guest:
Windows
VmwareService.exe -cmd "info-get guestinfo.displayname"
Linux
/etc/vmware/vmware-guestd -cmd "info-get guestinfo.displayname "
/etc/vmware/vmware-guestd -cmd "info-get guestinfo.displayname "
this command doesn't work these are the files and folder available to me.
/etc/vmware-tools
├── config
├── GuestProxyData
│ ├── server
│ │ ├── cert.pem
│ │ └── key.pem
│ └── trusted
├── guestproxy-ssl.conf
├── icu -> /usr/lib/vmware-tools/icu
├── installer.sh
├── locations
├── manifest.txt
├── manifest.txt.shipped
├── messages
│ ├── de
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── en
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── es
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── fr
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── it
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── ja
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── ko
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ ├── zh_CN
│ │ ├── desktopEvents.vmsg
│ │ ├── hgfsUsability.vmsg
│ │ ├── toolboxcmd.vmsg
│ │ ├── VGAuthCli.vmsg
│ │ ├── VGAuthLib.vmsg
│ │ ├── VGAuthService.vmsg
│ │ └── vmtoolsd.vmsg
│ └── zh_TW
│ ├── desktopEvents.vmsg
│ ├── hgfsUsability.vmsg
│ ├── toolboxcmd.vmsg
│ ├── VGAuthCli.vmsg
│ ├── VGAuthLib.vmsg
│ ├── VGAuthService.vmsg
│ └── vmtoolsd.vmsg
├── plugins -> /usr/lib/vmware-tools/plugins
├── poweroff-vm-default
├── poweron-vm-default
├── resume-vm-default
├── scripts
│ └── vmware
│ └── network
├── state
│ └── config
├── statechange.subr
├── suspend-vm-default
├── vgauth.conf
├── vmware-tools
├── vmware-tools-libraries.conf
├── vmware-tools-prelink.conf
├── vmware-user.desktop
├── vmware-user.Xresources
├── xsession-gdm.sh
├── xsession-xdm.pl
└── xsession-xdm.sh
19 directories, 86 files