Specifications

www.vmware.com
94
VMware GSX Server Virtual Machine Guide
Note: Write the above command on one line.
Note: On a Linux host, the machine ID passed on the command line takes
precedence and is passed to the guest operating system if the following
conditions are met:
A virtual machine ID is specified in a configuration file.
You use that file to launch a virtual machine.
You also specify a machine ID on the command line.
2. Retrieve the string in the virtual machine. In a Windows guest, the command to
retrieve the string is
VMwareService --cmd machine.id.get
Note: In your Linux guest operating systems startup script, add the following
command before the network startup section:
/etc/vmware/vmware-guestd --cmd 'machine.id.get'
You need to further customize this startup script so it uses the string the service
retrieved during startup to set the virtual machine's network name to W2K-VM and its
IP address to 148.30.16.24. This string should be located in the script before the
network services are started. If you're using a Windows 2000 guest operating system,
for example, you can call the NetShell utility (netsh) and pass it the contents of the
string, which then uses the string accordingly (that is, it can set a new IP address for
the virtual machine, if that is what was passed in the string originally).
From your host operating system, you can prevent a string from being passed to the
guest operating system via the service. To do this, set the following line in your virtual
machine's configuration file.
isolation.tools.getMachineID.disable = TRUE
Passing Information Between the Guest Operating System and
a VMware Scripting API Script
When the guest operating system is running inside a virtual machine, the VMware
Tools service allows you to pass information from a VMware Scripting API script you
created (that is running in another host machine) to the guest operating system and
from the guest operating system to a script.
For more information, go to the VMware Web site at
www.vmware.com/support/developer.