Specifications

Table Of Contents
VMware Server Virtual Machine Guide
72 VMware, Inc.
machine!name!and!IP!address.!In!this!example,!W2KVM!is!the!machine!name!and!
148.30.16.24!is!the!IP!address.!
1Define!a!string.!Do!this!by!either:!
! Adding!the!following!line!to!your!virtual!machineʹs!configuration!file:!
machine.id = "W2K-VM 148.30.16.24"
then!launching!a!virtual!machine!using!this!configuration!file.!
! Launching!a!virtual!machine!from!the!command!line.!At!the!command!line,!
type:!
“C:\Program Files\VMware\VMware Server\vmware -s 'machine.id=W2K-VM
148.30.16.24' C:\Virtual Machines\win2000\win2000.vmx”
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!system’s!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!W2KVM!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).!