Professional Documents
Culture Documents
VmWare Server Manual
VmWare Server Manual
2006 VMware, Inc. All rights reserved. Protected by one or more of U.S. Patent Nos. 6,397,242,
6,496,847, 6,704,925, 6,711,672, 6,725,289, 6,735,601, 6,785,886, 6,789,156, 6,795,966, 6,880,022,
6,961,941, 6,961,806 and 6,944,699; patents pending.
VMware, the VMware boxes logo and design, Virtual SMP and VMotion are registered trademarks or
trademarks of VMware, Inc. in the United States and/or other jurisdictions.
All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc.
3145 Porter Drive
Palo Alto, CA 94304
www.vmware.com
ii
VMware, Inc.
Contents
Chapter1IntroductionandSystemRequirements ...............1
VMwareServerOverview ...............................................1
FeaturesofVMwareServer ..............................................2
Supportfor32bitand64bitGuestOperatingSystems ...................2
TwoWayVirtualSMP(ExperimentalSupport) ..........................2
ConnecttoVMwareGSXVirtualMachinesandHosts....................2
UpgradeandUseGSXVirtualMachines ................................3
MoveExistingVirtualMachines.......................................3
CompatiblewithVMwareWorkstation5.xVirtualMachines..............3
ConfigureVirtualHardwareDevicestobeAutomaticallyDetected ........3
TakeandReverttoSnapshotsintheBackground ........................3
SupportforVMwareVirtualMachineImporter ..........................3
SupportforVirtualCenter.............................................4
APIsIncludedwithVMwareServer ......................................4
HostSystemRequirements ..............................................4
ServerHostHardware................................................4
WindowsHostOperatingSystemRequirements .........................6
LinuxHostOperatingSystemRequirements ............................7
RemoteClientRequirements.........................................10
VirtualMachineSpecifications ..........................................12
SupportedGuestOperatingSystems.....................................15
HardwareRequirementsfor64bitGuestOperatingSystems.............15
HardwareRequirementsfor32bitGuestOperatingSystems.............16
TechnicalSupportResources ...........................................19
SelfServiceSupport.................................................20
OnlineandTelephoneSupport.......................................20
SupportOfferings...................................................20
ReportingProblems .................................................20
LogFiles...........................................................21
Chapter2CreatingaNewVirtualMachine......................25
SettingUpaNewVirtualMachine ......................................25
VMware, Inc.
iii
WhatsinaVirtualMachine? .........................................25
CreatingaNewVirtualMachinewiththeVirtualMachineWizard ........27
InstallingaGuestOperatingSystem .....................................37
Example:InstallingWindowsServer2003asaGuestOS.................37
Chapter3UsingVMwareTools....................................39
AboutVMwareTools ..................................................39
InstallingVMwareTools...............................................41
InstallingVMwareToolsinaWindowsVirtualMachine .................41
InstallingVMwareToolsinaLinuxVirtualMachine ....................50
InstallingVMwareToolsinaNetWareVirtualMachine .................53
ExecutingScriptsWhentheVirtualMachinesPowerStateChanges.........55
ConfiguringVMwareTools ............................................56
ConfiguringVMwareToolsinaWindowsVirtualMachine ..............57
ConfiguringVMwareToolsinaLinux,FreeBSD,orSolarisVirtualMachine 60
ConfiguringVMwareToolsinaNetWareVirtualMachine ...............64
AbouttheVMwareToolsService........................................68
SynchronizingtheTimeintheGuestOSwiththeHostOS ...............69
ExecutingCommandsAfterYouPowerOfforResetaVirtualMachine....70
PassingaStringfromtheHostOStotheGuestOS......................70
PassingInformationBetweentheGuestOSandaVMwareAPIScript .....73
Chapter4RunningVirtualMachines .............................75
OverviewoftheVMwareServerConsoleWindow ........................75
UsingtheHomeTab ................................................77
UsingTabs.........................................................78
ConfiguringaVirtualMachine .......................................79
UsingtheVirtualMachineInventory ..................................79
DisplayingHints ...................................................80
CheckingtheStatusofVMwareTools.................................80
CreatingaScreenShotofaVirtualMachine ............................81
ConnectingtoVirtualMachinesandVMwareServerHosts .................82
ConnectingtoaVirtualMachinefromaWindowsHostorClient .........82
ConnectingtoaVirtualMachinefromaLinuxHostorClient.............84
ConnectingtoaVirtualMachinefromtheVMwareManagementInterface .85
ConnectingtoaDifferentVMwareServerHost .........................85
ConnectingtoVMwareGSXServerandOlderVirtualMachines..........86
ChangingthePowerStateofaVirtualMachine ...........................88
iv
VMware, Inc.
Contents
UsingPowerOptionsforVirtualMachines.............................88
SuspendingandResumingVirtualMachines ...........................91
ShuttingDownaVirtualMachine.....................................92
PoweringVirtualMachinesOnandOff ................................92
ControllingtheVirtualMachineDisplay.................................95
UsingFullScreenMode .............................................95
UsingQuickSwitchMode ...........................................95
TakingAdvantageofMultipleMonitors...............................96
FittingtheVMwareServerConsoleWindowtotheVirtualMachine .......97
FittingaWindowsGuestOSDisplaytotheConsoleWindow.............97
SimplifyingtheScreenDisplay .......................................98
RunningVirtualMachinesfromDVDsorCDROMDiscs ..................98
UsingPXEwithVirtualMachines......................................100
InstallingSoftwareinaVirtualMachine.................................101
Cutting,Copying,andPastingText.....................................102
UsingDevicesinaVirtualMachine.....................................102
Adding,Configuring,andRemovingDevicesinaVirtualMachine .......103
ConnectingandDisconnectingRemovableDevices ....................104
CommandReference .................................................104
StartupOptionsonaLinuxHost.....................................105
StartupOptionsonaWindowsHost .................................106
UsingKeyboardShortcuts ..........................................106
Chapter5PreservingtheStateofaVirtualMachine ...........109
SuspendingandResumingVirtualMachines ............................109
SettingtheSuspendedStateFileDirectory ............................110
TakingSnapshots ....................................................112
WhatIsCapturedbyaSnapshot? ....................................113
WaysofUsingSnapshots...........................................114
SnapshotsandaVirtualMachinesHardDisks ........................114
SnapshotsandOtherActivityintheVirtualMachine ...................115
SettingsforSnapshots ..............................................115
SnapshotActionsasBackgroundActivity .............................116
RemovingtheSnapshot ............................................116
SnapshotsandLegacyDiskModes ...................................117
SnapshotsandLegacyVirtualMachines..............................117
VMware, Inc.
Chapter6UsingDisksinaVirtualMachine.....................119
ConfiguringHardDiskStorageinaVirtualMachine......................119
DiskTypes:VirtualandPhysical.....................................120
AdditionalInformationaboutDisk,RedoLog,Snapshot,andLockFiles ..122
DefragmentingandShrinkingVirtualDisks ...........................125
ConfiguringOpticalandFloppyDrives.................................128
ConfiguringVirtualDVD/CDROMDrives ...........................128
ConfiguringVirtualFloppyDrives ...................................130
AddingDrivestoaVirtualMachine....................................131
AddingVirtualDiskstoaVirtualMachine ............................132
AddingPhysicalDiskstoaVirtualMachine ...........................134
AddingDVD/CDROMDrivestoaVirtualMachine....................137
AddingFloppyDrivestoaVirtualMachine ...........................138
UsingVMwareVirtualDiskManager...................................139
RunningtheVMwareVirtualDiskManagerUtility ....................140
ShrinkingVirtualDiskswithVMwareVirtualDiskManager............143
ExamplesUsingtheVMwareVirtualDiskManager ....................144
InstallinganOperatingSystemontoaPhysicalPartition ..................146
ConfiguringaWindowsHost .......................................147
ConfiguringaLinuxHost ...........................................149
DiskPerformanceinWindowsNTGuestsonMultiprocessorHosts.........150
ImprovingPerformance ............................................151
Chapter7Networking .............................................153
ComponentsoftheVirtualNetwork ....................................153
CommonNetworkingConfigurations...................................155
BridgedNetworking...............................................156
NetworkAddressTranslation(NAT) .................................157
HostOnlyNetworking .............................................158
CustomNetworkingConfigurations ....................................159
ChangingtheNetworkingConfiguration................................162
AddingandModifyingVirtualNetworkAdapters .....................162
ConfiguringBridgedNetworkingOptionsonaWindowsHost..........164
Enabling,Disabling,Adding,andRemovingHostVirtualAdapters ......168
AdvancedNetworkingTopics.........................................171
SelectingIPAddressesonaHostOnlyNetworkorNATConfiguration...172
AvoidingIPPacketLeakageinaHostOnlyNetwork...................174
MaintainingandChangingtheMACAddressofaVirtualMachine ......176
vi
VMware, Inc.
Contents
ControllingRoutingforaHostOnlyNetworkonaLinuxHost..........177
IssueswithHostOnlyNetworkingonaLinuxHost ....................178
SettingUpaSecondBridgedNetworkInterfaceonaLinuxHost .........179
ConfiguringBridgedNetworkingWhenUsingTeamedNetworkInterface
Cards.........................................................180
SettingUpTwoSeparateHostOnlyNetworks ........................182
RoutingBetweenTwoHostOnlyNetworks ...........................185
UsingVirtualEthernetAdaptersinPromiscuousModeonaLinuxHost..189
UnderstandingNAT..................................................190
UsingNAT .......................................................191
TheHostComputerandtheNATNetwork ...........................191
DHCPontheNATNetwork ........................................191
DNSontheNATNetwork ..........................................191
ExternalAccessfromtheNATNetwork ..............................192
AdvancedNATConfiguration ......................................193
CustomNATandDHCPConfigurationonaWindowsHost ............196
ConsiderationsforUsingNAT ......................................198
UsingNATwithNetLogon .........................................198
SampleLinuxvmnetnat.confFile ....................................200
UsingSambaforFileSharingonaLinuxHost ...........................201
Chapter8ConfiguringDevices ...................................211
UsingParallelPorts ..................................................211
AboutParallelPorts................................................211
AddingaParallelPortinaVirtualMachine...........................212
ConfiguringaParallelPortonaLinuxHost...........................213
SpecialNotesfortheIomegaZipDrive...............................216
UsingSerialPorts....................................................216
UsingaSerialPortontheHostComputer .............................217
UsingaFileontheHostComputer...................................218
ConnectinganApplicationontheHosttoaVirtualMachine ............220
ConnectingTwoVirtualMachines...................................221
SpecialConfigurationOptionsforAdvancedUsers ....................223
Examples:DebuggingoveraVirtualSerialPort........................224
KeyboardMappingonaLinuxHost ....................................226
KeyboardMappingforaRemoteServer..............................226
KeyboardMappingSupportforthePC...............................227
VScanCodeTable .................................................229
UsingUSBDevicesinaVirtualMachine ................................232
VMware, Inc.
vii
NotesonUSBSupport..............................................233
AddingaUSBController ...........................................233
ConnectingUSBDevices............................................234
UsingUSBwithaWindowsHost....................................235
ReplacingUSB2.0DriversonaWindows2000Host....................235
UsingUSBwithaLinuxHost .......................................235
USBDeviceControl ................................................236
USBDevices ......................................................237
DisconnectingUSBDevicesfromaVirtualMachine ....................237
ConnectingtoaGenericSCSIDevice ...................................237
DeviceSupportinGuestOperatingSystems...........................238
AddingaGenericSCSIDevicetoaVirtualMachine ....................239
GenericSCSIonaWindowsHostOperatingSystem ...................240
GenericSCSIonaLinuxHostOperatingSystem .......................243
UsingTwoWayVirtualSymmetricMultiprocessing(Experimental) ........244
Chapter9VideoandSound.......................................247
SettingScreenColorDepthinaVirtualMachine .........................247
ChangingScreenColorDepthontheHost ............................248
ChangingScreenColorDepthintheVirtualMachine...................248
UsingFullScreenModeonaLinuxHost................................248
ConfiguringSound ...................................................249
InstallingSoundDriversinaWindowsServer2003GuestOS............249
InstallingSoundDriversinWindows9xandNTGuestOS ..............249
Chapter10PerformanceTuningforVirtualMachines .........251
AllocatingMemorytoaVirtualMachine ................................251
ConfiguringVirtualMachineMemoryfromaConsole..................252
ImprovingPerformanceforGuestOperatingSystems.....................253
Windows2000,WindowsXPandWindowsServer2003GuestOSPerformance
Tips ..........................................................253
Windows95andWindows98GuestOperatingSystemPerformanceTips .254
LinuxGuestOperatingSystemPerformanceTips......................256
Glossary..............................................................257
Index .................................................................265
viii
VMware, Inc.
ThischapterintroducesyoutoVMwareServerandcoversthefollowingtopics:
!
VMwareServerOverviewonpage 1
FeaturesofVMwareServeronpage 2
HostSystemRequirementsonpage 5
VirtualMachineSpecificationsonpage 12
SupportedGuestOperatingSystemsonpage 15
TechnicalSupportResourcesonpage 20
Anystandardx86hardware.
AwidevarietyofLinux,NetWare,Solaris,andWindowsoperatingsystems,
including64bitoperatingsystems.Forinformationaboutspecifichardware
requirements,seeVMwareKnowledgeBasearticle1901orHardware
Requirementsfor64bitGuestOperatingSystemsonpage 15.
TwowayVirtualSMP(experimentalsupport).
IntelVirtualizationTechnology(experimentalsupport).
WithVMwareServer,youcan:
!
VMware, Inc.
Provisionanewserverwithoutinvestinginmorehardwarebylocatingmultiple
virtualmachinesonthesamehost.
RunWindowsandLinuxoperatingsystemsandapplicationswithoutsoftware
conflictsbecausevirtualmachinesarecompletelyisolatedfromoneanotherand
fromthephysicalhost.
Movevirtualmachinesfromonephysicalhosttoanotherwithouthavingto
reconfigure.
Shortenthetimeforprovisioninganewserverbycreatinganddeployingcustom
virtualmachineswiththeVMwareServerVirtualMachineWizard.
Movevirtualmachinestodifferentphysicalhostsasconditionschange.
Formoreinformation,seeFeaturesofVMwareServeronpage 2.
VMware, Inc.
VMware, Inc.
ToaccesstheVMwareVirtualMachineImporterfromtheVMwareServerConsole,
chooseFile>ImportorFile>Open.TheWizardtoimportavirtualmachineorsystem
imageopens.YoucanaccesstheVMwareVirtualMachineImporteronlyfroma
Windowshostmachine.
FormoredetailedinformationabouthowtousetheVMwareVirtualMachine
Importer,seetheVMwareVirtualMachineImporterUsersManual.
(Standardx86basedserverwithupto16processorshostswith32bitIA32
processors,andIA32processorswith64bitextensionssupported
733MHzorfastercompatiblex86processorthatsupportsthePentiuminstruction
set
Compatibleprocessorsinclude:
!
Intel:PentiumII,PentiumIII,Pentium4,PentiumMXeon,andEM64T.
VMware, Inc.
AMD:Athlon,AthlonMP,AthlonXP,AMDOpteron,AMDAthlon64,
Turion64.
ExperimentalsupportforAMDSempron.
Multiprocessorsystemsaresupported.
Dualcoreprocessorsaresupportedandcountedasoneprocessorfor
licensing.
AMDAthlon64,revisionDorlater
AMDOpteron,revisionEorlater
AMDTurion64,revisionEorlater
AMDSempron,64bitcapablerevisionDorlater
IntelEM64TVTcapableprocessors
Memory
YouneedenoughmemorytoruntheMicrosoftWindowsorLinuxhostoperating
system,plusmemoryrequiredforeachguestoperatingsystemandapplicationsonthe
hostandeachguest.Seeyourguestoperatingsystemandapplicationdocumentation
fortheirmemoryrequirements.
Memoryrequirementsinclude:
!
Minimum:512MB
Maximum:
!
64GBforWindowshostsandLinuxhoststhatsupportlargememoryorare
PAEenabled
4GBfornonPAEenabledWindowshostsor2GBforLinuxhostswithkernels
inthe2.2.xseries
Display
!
VMware, Inc.
16bitdisplayadapterorhigher
250MBfreediskspaceonWindowshostsrequiredforVMwareServer,VMware
ManagementInterface,theVmPerlAPI,theVmCOMAPI,theProgrammingAPI,
andVMwareServerConsoleinstallation.
200MBfreediskspaceonLinuxhostsrequiredforVMwareServer,VMware
ManagementInterface,VmPerlAPI,ProgrammingAPI,andVMwareServer
Consoleinstallation.
!
Diskspacein/tmponLinuxhostsshouldbeequivalentto1.5timesthe
amountofmemoryonthehost.Forinformationonthe/tmpdirectory,read
VMwareknowledgebasearticle844at
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=844.
Sufficientfreediskspaceforeachguestoperatingsystemandtheapplication
softwareusedwithit.Usingadefaultsetup,theactualdiskspaceneedsare
approximatelythesameasthoseforinstallingandrunningtheguestoperating
systemandapplicationsonaphysicalcomputer.
IDEorSCSIharddrivesandDVD/CDROMdrivessupported.
Guestoperatingsystemscanresideinvirtualdiskfilesoronphysical(raw)disk
partitions.
AnyEthernetcontrollerthatthehostoperatingsystemsupports.
NonEthernetnetworksaresupportedusingbuiltinnetworkaddresstranslation
(NAT)orusingacombinationofhostonlynetworkingplusroutingsoftwareon
thehostoperatingsystem.
StaticIPaddressforyourhostmachine(recommended).
Operatingsystemsandservicepacksthatarenotlistedarenotsupportedfor
useasahostoperatingsystemforVMwareServer.
64bithostcomputerscanrunthefollowingoperatingsystemsfor64bitextended
systems:
!
MicrosoftWindowsServer2003Enterprise,Standard,andWebEditions,R2
VMware, Inc.
MicrosoftWindowsServer2003Enterprise,Standard,andWebEditions,Service
Pack1
32bithostcomputerscanrunthefollowingoperatingsystems:
!
MicrosoftWindowsServer2003Enterprise,Standard,Web,andSmallBusiness
Editions,includingServicePack1
MicrosoftWindows2000AdvancedServer,ServicePack3andServicePack4
MicrosoftWindows2000Server,ServicePack3andServicePack4
VmPerlAPIrequiresPerl5.005xorhigher.
VMwareManagementInterfacerequiresoneofthesebrowsers:
!
InternetExplorer5.5or6.0(6.0highlyrecommended)
Firefox1.x
Mozilla1.x
NetscapeNavigator7.0
NOTE
VMwareteststheVMwareManagementInterfaceforstabilityandreliability
withnewbrowserversions.VMwaremakeseveryefforttoaddsupportfor
newbrowserversionsinatimelymanner,butuntilabrowserisaddedtothe
abovelist,itsusewiththeproductisnotsupported.
RedHatEnterpriseLinux3.0AS,ES,andWS,stock2.4.21,update2.4.2115,and
updates6and7
RedHatEnterpriseLinux3.0AS,ES,andWS,update8(experimentalsupport)
RedHatEnterpriseLinux4.0AS,ES,andWS,includingupdate3
RedHatEnterpriseLinux4.0update4(experimentalsupport)
SUSELinuxEnterpriseServer10(experimentalsupport)
SUSELinuxEnterpriseServer9,includingSP1,SP2,andSP3
SUSELinux10
VMware, Inc.
SUSELinux10.1
SUSELinux9.3
SUSELinux9.2,includingSP1
SUSELinux9.1stock2.6.452
MandrivaLinux2006
UbuntuLinux5.04and5.10
UbuntuLinux6.06(experimentalsupport)
32bithostcomputerscanrunthefollowingoperatingsystems:
MandrivaLinux2006
MandrakeLinux10.1
MandrakeLinux9.0stock2.4.19
RedHatEnterpriseLinux4.0AS,ES,andWS,includingupdates1,2,and3
RedHatEnterpriseLinux4.0update4(experimentalsupport)
RedHatEnterpriseLinux3.0,updates1,2,3,4,5,6,and7
RedHatEnterpriseLinux3.0update8(experimentalsupport)
RedHatEnterpriseLinux2.1stock2.4.9e3
RedHatLinux9.0,stock2.4.208andupgrade2.4.2020.9
RedHatLinux8.0stock2.4.18
RedHatLinux7.3stock2.4.18
RedHatLinux7.2,stock2.4.710andupgrades2.4.97,2.4.913,2.4.921,and
2.4.931
SUSELinuxEnterpriseServer10(experimentalsupport)
SUSELINUXEnterpriseServer9,includingSP1,SP2,andSP3
SUSELinuxEnterpriseServer8stock2.4.19
SUSELINUX9.3
SUSELINUX9.2
SUSELinux10
SUSELinux10.1
VMware, Inc.
SUSELINUX9.1stock2.6.452
SUSELINUX9.0stock2.4.2199
SUSELinux8.2stock2.4.20
SUSELinux7.3
UbuntuLinux5.04and5.10
Ubuntu6.06
NOTE
AsnewLinuxkernelsanddistributionsarereleased,VMwaremodifiesand
testsitsproductsforstabilityandreliabilityonthosehostplatforms.VMware
makeseveryefforttoaddsupportfornewkernelsanddistributionsina
timelymanner,butuntilakernelordistributionisaddedtothelist,itsuseis
notsupported.LookfornewerprebuiltmodulesintheDownloadsectionof
VMwareWebsite.Gotohttp://www.vmware.com/download.
OtherLinuxhostoperatingsystemrequirementsinclude:
!
Linuxkernel2.2.145.0isnotsupported.
StandardLinuxserverinstallationisrequiredwithglibcversion2.1orhigherand
libXpm.so.
TheinetdprocessmustbeconfiguredandactiveforVMwareServerConsoleand
VMwareManagementInterfaceconnections.
Version2.1.36oftheSCSIGeneric(sg.o)driverisrequiredtousegenericSCSI
devicesinvirtualmachines.
Perl5.005xorhigherisrequiredtouseVmPerlAPI.
XserverisrequiredtoruntheVMwareServerConsole.
TheVMwareManagementInterfacerequiresoneofthesebrowsers:
!
Firefox1.x
Mozilla1.x
NetscapeNavigator7.0
NOTE
VMware, Inc.
Asnewbrowserversionsarereleased,VMwareteststheVMware
ManagementInterfaceforstabilityandreliabilitywiththeseversions.
VMwaremakeseveryefforttoaddsupportfornewbrowserversionsina
timelymanner,butuntilabrowserisaddedtotheabovelist,itsusewiththe
productisnotsupported.
SLES8InstallgcconyourSLES8hostbeforeinstallingVMwareServer.
SLES7Toupgradethekernel,deselectanySambacomponentswhenyouapply
theupdatepatchbecausethepatchincorrectlyupdatesSambaonyourhost.
RunningtheupdatewiththeSambapackagesselectedcanresultinseriousissues
onyourhostsuchassystemhangsorsegmentationfaults.
Programming API
VMwareServerincludessupportfortheProgrammingAPI(previouslycalledCAPI).
Formoreinformation,gototheVMwareWebSiteat
http://www.vmware.com/support/pubs/server_pubs
Hardware Requirements
10
Standardx86basedcomputer.
266MHzorfasterprocessor.
64MBRAMminimum.
30MB(forWindowshosts)or60MB(forLinuxhosts)offreediskspaceisrequired
forinstallationoftheVMwareServerConsole.
17MBfreediskspaceisrequiredforVMwareScriptingAPIs(VmCOMandVmPerl
APIs)installationonWindowsremoteclients.14MBisrequiredforVmPerlAPIon
Linuxremoteclients.
VMware, Inc.
WindowsServer2003x64Edition,WindowsServer2003StandardEdition,
WindowsServer2003EnterpriseEdition,andWindowsServer2003WebEdition
WindowsXPProfessionalandWindowsXPHomeEdition
ServicePack1andServicePack2
Windows2000Professional,ServerandAdvancedServer,ServicePack1,Service
Pack2,ServicePack3andServicePack4
WindowsNT4.0WorkstationandServer,ServicePack6a,withInternetExplorer
6.0installed
TheVMwareManagementInterfacerequiresoneofthesebrowsers:
!
InternetExplorer5.5or6.0(6.0highlyrecommended)
Firefox1.x
Mozilla1.x
NetscapeNavigator7.0
NOTE
Asnewbrowserversionsarereleased,VMwareteststheVMware
ManagementInterfaceforstabilityandreliabilitywiththeseversions.
VMwaremakeseveryefforttoaddsupportfornewbrowserversionsin
atimelymanner,butuntilabrowserisaddedtotheabovelist,itsuse
withtheproductisnotsupported.
StandardLinuxinstallationisrequiredwithglibcversion2.1orhigherandoneof
thefollowingkernels:
!
Forsingleprocessorsystems:kernel2.0.32orhigherinthe2.0.xseries,or
kernelinthe2.2.x,2.4.xor2.6.xseries.
ForSMPsystems:kernelinthe2.2.x,2.4.xor2.6.xseries
NOTE
Linuxkernel2.2.145.0isnotsupported.
Perl5.005xorhigherisrequiredtouseVmPerlAPI.
XserverisrequiredtoruntheVMwareServerConsoleontheclient.
TheVMwareManagementInterfacerequiresoneofthesebrowsers:
VMware, Inc.
Firefox1.x
Mozilla1.x
11
NetscapeNavigator7.0
NOTE
Asnewbrowserversionsarereleased,VMwareteststheVMware
ManagementInterfaceforstabilityandreliabilitywiththeseversions.
VMwaremakeseveryefforttoaddsupportfornewbrowserversionsin
atimelymanner,butuntilabrowserisaddedtotheabovelist,itsuse
withtheproductisnotsupported.
Programming API
VMwareServerincludessupportfortheProgrammingAPI.Formoreinformation,go
totheVMwareWebsiteathttp://www.vmware.com/support/pubs/server_pubs.
Virtual Processor
!
IntelPentiumIIorlater,orAMDAthlonorlater,dependingonhostprocessor;
IntelEMT64VT(experimentalsupport).
Singleandmultiprocessorpervirtualmachineonsymmetricmultiprocessor
(SMP)systems.
Virtual Chipset
!
Intel440BXbasedmotherboardwithNS338SIOchipand82093AAIOAPIC
Virtual BIOS
12
PhoenixBIOS4.0Release6withVESABIOS
DMI/SMBIOScompliantforsystemmanagementagentsupport
VMware, Inc.
Virtual Memory
!
Upto3600MBofmemorypervirtualmachine,dependinguponthehostsystems
configuration,thetypesofapplicationsrunningonthehost,andtheamountof
memoryonthehost.
Virtual Graphics
!
VGAandSVGAsupport
Uptofourdevices:disks,CDROMorDVD(DVDdrivescanbeusedtoreaddata
DVDdiscs).DVDvideoisnotsupported.
Harddiskscanbevirtualdisksorphysicaldisks.
IDEvirtualdisksupto950GB.
CDROMcanbeaphysicaldeviceoranISOimagefile.
Upto60devicesonuptofourvirtualSCSIcontrollers.
SCSIvirtualdisksupto950GB.
Harddiskscanbevirtualdisksorphysicaldisks.
GenericSCSIsupportallowsscanners,CDROM,DVDROM,tapedrives,and
otherSCSIdevicestobeusedwithoutrequiringdriversinthehostoperating
system.
Mylex(BusLogic)BT958compatiblehostbusadapter.
LSILogicUltra160LSI53C10xxSCSIcontroller.
SixvirtualPCIslots,tobedividedamongthevirtualSCSIcontrollers,virtual
Ethernetcards,virtualdisplayadapter,andvirtualsoundadapter.
Uptotwo1.44MBfloppydevices.
Physicaldrivesorfloppyimagefiles.
VMware, Inc.
Uptofourserial(COM)ports.
13
Outputtoserialports,Windowsfiles,Linuxfiles,ornamedpipes.
Uptothreebidirectionalparallel(LPT)ports.
Outputtoparallelportsorhostoperatingsystemfiles.
TwoportUSB1.1UHCIcontroller.
SupporteddevicesincludeUSBprinters,scanners,PDAs,harddiskdrives,
memorycardreaders,andstilldigitalcameras.
Virtual Keyboard
!
104keyWindows95/98enhanced
PS/2mouse
Serialtabletsupport
UptofourvirtualEthernetcards
AMDPCnetPCIIIcompatible
WirelessnetworkingsupportwithbridgedandNATnetworking
PXEROMversion2.0
Virtual Networking
!
NinevirtualEthernetswitches(threeconfiguredbydefaultforbridged,hostonly
andNATnetworking).
VirtualnetworkingsupportsmostEthernetbasedprotocols,includingTCP/IP,
NetBEUI,MicrosoftNetworking,Samba,NovellNetWare,andNetworkFile
System.
BuiltinNATsupportsclientsoftwareusingTCP/IP,FTP,DNS,HTTP,andTelnet.
14
Soundoutputandinput.
VMware, Inc.
CreativeLabsSoundBlasterAudioPCIemulation.MIDIinput,gamecontrollers,
andjoysticksarenotsupported.
AMDAthlon64,revisionDorlater
AMDOpteron,revisionEorlater
AMDTurion64,revisionEorlater
AMDSempron,64bitcapablerevisionDorlater(experimentalsupport)
IntelEM64TVTcapableprocessors(experimentalsupport)
VMwareServerperformsaninternalcheck.IfthehostCPUisnotasupported64bit
processor,VMwareServerdisplaysanerrormessagethatindicatesthehardwareon
yourhostmachineisincompatiblewith64bitguestoperatingsystems.Youcan,
however,continuetopoweronthevirtualmachine.
VMwareServerprovidesastandaloneutilitythatperformsthesamecheckand
determineswhetheryourCPUissupportedforVMwareServervirtualmachineswith
64bitguestoperatingsystems.Youcandownloadthe64bitprocessorcheckutility
fromtheVMwareWebsiteathttp://www.vmware.com/download.
MicrosoftWindowsVista(experimentalsupport)
MicrosoftWindowsServer2003Enterprise,Standard,andWebEditions,R2
MicrosoftWindowsServerEnterprise2003Enterprise,Standard,andWeb
Editions,SP1
MicrosoftWindowsXPProfessional
VMware, Inc.
15
MandrivaLinux2006
RedHatEnterpriseLinux3.0,includingstock2.4.21,update2.4.2115,and
updates6,and7
RedHatEnterpriseLinux3.0,update8(experimentalsupport)
RedHatEnterpriseLinux4.0,includingupdate3
RedHatEnterpriseLinux4.0,update4(experimenetalsupport)
SUSELinux9.1stock2.6.452
SUSELinux9.2,includingSP1
SUSELinux9.3
SUSELinux10
SUSELinux10.1
SUSELinuxEnterpriseServer9,includingSP1,SP2,andSP3
SUSELinuxEnterpriseServer10(experimentalsupport)
FreeBSD
!
FreeBSD5.3and5.4
FreeBSD6.0
Sun Solaris
!
Solaris10,includingupdate1andupdate2(experimentalsupport)
Ubuntu
!
UbuntuLinux5.04and5.10
UbuntuLinux6.06(experimentalsupport)
16
MicrosoftWindowsServer2003,includingSmallBusiness,Standard,andWeb
Editions
VMware, Inc.
MicrosoftWindowsServer2003EnterpriseEdition,includingR2
MicrosoftWindowsXPProfessionalandHomeEditions,includingSP1andSP2
MicrosoftWindowsVista(experimentalsupport)
MicrosoftWindows2000Professional,includingSP1,SP2,SP3,andSP4
MicrosoftWindows2000Server,includingSP1,SP2,SP3,andSP4
MicrosoftWindows2000AdvancedServer,SP3andSP4only
MicrosoftWindowsNT4.0ServerServicePack6a,WindowsNTWorkstation4.0,
includingServicePack6a,andWindowsNT4.0TerminalServerEditionService
Pack6a
MicrosoftWindowsMe
MicrosoftWindows98,includingallservicepacks
MicrosoftWindows98SE
MicrosoftWindows95,includingSP1andallOSRreleases
MicrosoftWindowsforWorkgroups3.11
MicrosoftWindows3.1
Microsoft MS-DOS
!
MSDOS6.x
MandrivaLinux2006
MandrakeLinux10.1
MandrakeLinux9.2
MandrakeLinux9stock2.4.19
MandrakeLinux3.2stock2.4.186mdk
RedHatEnterpriseLinux3.0AS,ES,andWS,includingupdates1,2,3,4,5,6,
and7)
RedHatEnterpriseLinux3.0update8(experimentalsupport)
RedHatEnterpriseLinux4.0AS,ES,andWS,includingupdates1,2,and3
RedHatEnterpriseLinux4.0update4(experimentalsupport)
RedHatEnterpriseLinux2.1AS,ES,andWS,includingstock2.4.9e3
VMware, Inc.
17
18
RedHatLinux9.0,stock2.4.208andupgrade2.4.2020.9
RedHatLinux8.0stock2.4.18
RedHatLinux7.3stock2.4.18
RedHatLinux7.2,stock2.4.710andupgrades2.4.97,2.4.913,2.4.921,
and2.4.931
RedHatLinux7.1stock2.4.22andupgrade2.2.312
RedHatLinux7.0stock2.2.1622andupgrade2.2.1714
SUSELinuxEnterpriseServer10(experimentalsupport)
SUSELinuxEnterpriseServer9,includingSP1,SP2,andSP3
SUSELinuxEnterpriseServer8stock2.4.19
SUSELinuxEnterpriseServer7stock2.4.7andpatch2
SUSELinux10
SUSELinux10.1
SUSELinux9.0stock2.4.2199
SUSELinux9.1stock2.6.452
SUSELinux9.2,includingSP1
SUSELinux9.3
SUSELinux8.2stock2.4.20
SUSELinux8.1stock2.4.19
SUSELinux8.0stock2.4.18
SUSELinux7.3stock2.4.10
NovellLinuxDesktop9,includingSP2
NovellOpenEnterpriseServer,includingSP1
TurbolinuxEnterpriseServer8.0
TurbolinuxServer7.0
TurbolinuxWorkstation8.0
TurbolinuxDesktop10
VMware, Inc.
Novell NetWare
!
NetWare4.2
NetWare5.1,SP8only
NetWare6,SP5only
Netware6.5,SP3only
FreeBSD
!
FreeBSD4.04.6.2
FreeBSD4.8
FreeBSD5
FreeBSD5.15.3
FreeBSD5.4
FreeBSD6.0
Sun Solaris
!
Solaris9(experimentalsupport)
Solaris10,includingupdate1andupdate2
Ubuntu
!
UbuntuLinux5.04and5.10
UbuntuLinux6.06
SelfServiceSupport
OnlineandTelephoneSupport
SupportOfferings
ReportingProblems
LogFiles
VMware, Inc.
19
Self-Service Support
UsetheVMwareTechnologyNetworkforselfhelptoolsandtechnicalinformation:
!
ProductInformationhttp://www.vmware.com/products/product_index.html
TechnologyInformationhttp://www.vmware.com/vcommunity/technology
Documentationhttp://www.vmware.com/support/pubs
KnowledgeBasehttp://www.vmware.com/support/kb
DiscussionForumshttp://www.vmware.com/community
UserGroupshttp://www.vmware.com/vcommunity/usergroups.html
FormoreinformationabouttheVMwareTechnologyNetwork,goto
http://www.vmtn.net.
Support Offerings
FindouthowVMwaressupportofferingscanhelpyoumeetyourbusinessneeds.Go
tohttp://www.vmware.com/support/services.
Reporting Problems
IfyouhaveproblemswhilerunningVMwareServer,reportthemtotheVMware
supportteam.Youmustregisteryourserialnumberandthenyoucanreportyour
problemsbysubmittingasupportrequestat
http://www.vmware.com/requestsupport.
Thissectiondescribestheinformationneededtodiagnoseandreportproblems.This
informationlargelycomesfromlogfiles.Therequiredlogfilesdependuponthe
problemyouencounter.
Youcansimplifytheprocessofcollectingtheneededinformationbyrunningthe
supportscripttocollecttheappropriatelogfilesandsysteminformation.Followthe
stepsthatapplytoyourhostcomputer.
20
VMware, Inc.
NOTE
ThesupportscriptrunsonlyontheVMwareServerhost.Ifyouencounter
problemsonaremoteclient,youmustsupplythelogfilesmanually.The
requiredlogfilesdependontheproblemencounteredontheclient.You
shouldincludetheVMwareServerConsolelogfileandtheinstallationlog
files.
Openacommandprompt.
ChangetotheVMwareServerprogramdirectory.
C:
cd \Program Files\VMware\VMware Server
Ifyoudidnotinstalltheprograminthedefaultdirectory,usetheappropriate
driveletterandsubstitutetheappropriatepathinthecdcommandabove.
Runthesupportscript.
cscript vm-support.vbs
Afterthescriptruns,itdisplaysthenameofthedirectorywhereithasstoredits
output.
UseafilecompressionutilitysuchasWinZiporPKZIPtozipthatdirectory,and
includethezipfilewithyoursupportrequest.
Openaterminal.
Runthesupportscriptastheuserwhoisrunningthevirtualmachineorasroot.
vm-support
Ifyoudonotrunthescriptasroot,thescriptdisplaysmessagesindicatingthatit
cannotcollectsomeinformation.Thisisnormal.IftheVMwaresupportteam
needsthatinformation,asupportrepresentativemayaskyoutorunthescript
againasroot.
Thescriptcreatesacompressed.tgzfileinthecurrentdirectory.
Includetheoutputfilewithyoursupportrequest.
Log Files
ThefollowinglogfilesaregeneratedbyVMwareServerandarecollectedbythe
supportscriptasneeded.BecausetheVMwareServerConsoledoesnotincludea
supportscript,youneedtosubmitasupportrequestat
VMware, Inc.
21
http://www.vmware.com/requestsupportforanyissuesyouencounteronaclientand
includetheVMwareServerConsoleslogfileoritsinstallationlogfiles.
22
VMware, Inc.
Inatexteditor,openthefollowingfile:
!
OnaLinuxhostedit/etc/vmware/config
Addthefollowinglinestothefile:
vmauthd.logEnabled = TRUE
log.vmauthdFileName = "vmauthd.log"
Afileiscreatedcalledvmauthd.log.OnaWindowshost,thisfileappearsby
defaultinC:\Windows\system32orC:\WINNT\system32;onaLinuxhost,thisfile
appearsbydefaultin/var/log/vmware.
Saveandclosetheconfigurationfile.
ThelogisenabledonaLinuxhost.
OnaWindowshost,chooseStart>AdministrativeTools>Services.
RightclickVMwareAuthorizationServiceandchooseRestart.
ThelogisenabledonaWindowshost.
VMware, Inc.
23
24
VMware, Inc.
C HAPTER 2
Thischapterdescribeshowtocreateanewvirtualmachineandcoversthefollowing
topics:
!
SettingUpaNewVirtualMachineonpage 25
InstallingaGuestOperatingSystemonpage 37
Tocreateanewvirtualmachinefromaconsole,seeCreatingaNewVirtual
MachinewiththeVirtualMachineWizardonpage 27.
NOTE
YoumustusetheVMwareServerConsoletocreateavirtualmachine.
<vmname>.vmxTheconfigurationfile,whichstoressettingschosenintheNew
VirtualMachineWizardorvirtualmachinesettingseditor.
nvramThefilethatstoresthestateofthevirtualmachinesBIOS.
<vmname>.vmdkThevirtualdiskfile,whichstoresthecontentsofthevirtual
machinesharddiskdrive.
<vmname>.logorvmware.logThefilethatkeepsalogofkeyvirtualmachine
activity.Thisfilecanbeusefulintroubleshootingifyouencounterproblems.This
fileisstoredinthedirectorythatholdstheconfigurationfile(.vmx)ofthevirtual
machine.
VMware, Inc.
25
<vmname>.vmdk.REDO_xxxxxxAredologfilecreatedautomaticallywhena
virtualmachineisinindependentnonpersistentmode.Thisfilestoreschanges
madetoavirtualdiskwhilethevirtualmachineisrunning.Morethanonesuch
filemightexist.Thexxxxxxindicatesauniquesuffixaddedautomaticallyby
VMwareServertoavoidduplicatefilenames.
<vmname>.vmssThesuspendedstatefile,whichstoresthestateofasuspended
virtualmachine.
NOTE
SomeearlierVMwareproductsusedtheextension.stdforsuspended
statefiles.
<vmname>.vmsnThesnapshotstatefile,whichstorestherunningstateofavirtual
machineatthetimeyoutakeasnapshotofit.
Theremightalsobeotherfiles,someofwhicharepresentonlywhileavirtualmachine
isrunning.
Virtual Disks
Avirtualdiskismadeupofoneormore.vmdkfiles.Ifyouspecifytosplitthevirtual
diskinto2GBfiles,thenumberof.vmdkfilesdependsonthesizeofthevirtualdisk.
Bydefault,allvirtualdiskspaceispreallocatedwhenyoucreatethevirtualdisk.Make
sureyouhaveenoughdiskspaceonthehostbeforeyoucreateapreallocateddisk.
Ifyoudonotallocatealldiskspacewhenyoucreatethevirtualdisk,the.vmdkfiles
growinsizeasdataisaddedtothevirtualdisk.Almostallofa.vmdkfilescontentis
thevirtualmachinesdata,withasmallportionallottedtovirtualmachineoverhead.
Ifthevirtualmachineisconnecteddirectlytoaphysicaldisk,ratherthantoavirtual
disk,the.vmdkfilestoresinformationaboutthepartitionsthevirtualmachineis
allowedtoaccess.
NOTE
EarlierVMwareproductsusedtheextension.dskforvirtualdiskfiles.
26
VMware, Inc.
forotherusersconnectedtothehost.ThevirtualmachineappearsintheVMware
ManagementInterfaceonlywhenyouareloggedonastheuserwhocreatedthevirtual
machine.
Whenthevirtualmachineisrunning,theactionsyoucantakedependonyour
permissions.Formoreinformationaboutpermissions,seeUnderstanding
PermissionsandVirtualMachines.
Beforeyoucreatethevirtualmachine,checktheinstallationnotesfortheguest
operatingsystemyouintendtoinstall.Youcanfindthisinformationinthe
VMwareGuestOperatingSystemInstallationGuideavailablefromtheVMware
Websiteatwww.vmware.com/support/guestnotes/doc/index.html.
LaunchtheVMwareServerConsole.
Windowshosts:SeeConnectingtoaVirtualMachinefromaWindowsHostor
Clientonpage 82.
Linuxhosts:SeeConnectingtoaVirtualMachinefromaLinuxHostorClient
onpage 84.
StarttheNewVirtualMachineWizard.ChooseFile>New>VirtualMachineor
clicktheNewVirtualMachineiconontheconsoleHometab.
VMware, Inc.
27
Selectthemethodtouseforconfiguringyourvirtualmachine.
IfyouselectTypical,youcanspecifyoracceptdefaultsonlyfor:
!
Theguestoperatingsystem.
Thevirtualmachinenameandthelocationofthevirtualmachinesfiles.
Thenetworkconnectiontype.
Thesizeofthevirtualdisk.
Allocatingallthediskspaceforthevirtualdiskatthetimeyoucreateit.
Splittingthevirtualdiskinto2GBfiles.
SelectCustomto:
28
Setthenumberofprocessors,whichisrequiredtoenabletwowayVirtual
SMP(experimentalsupport).
Allocateanamountofmemorydifferentfromthedefault.
ChoosebetweentheLSILogicandBusLogictypesofSCSIadapters.(An
ATAPIIDEadapterisalwaysinstalled.)
Letotherusersaccessthisvirtualmachine.
HavethevirtualmachineautomaticallypoweronoroffwhentheVMware
ServerWindowshoststartsuporshutsdown.
Specifytheuseraccountthevirtualmachineuseswhenrunning.
Useanexistingvirtualdiskoruseaphysicaldiskratherthanavirtualdisk(for
advancedusers).
UseanIDEvirtualdiskforaguestoperatingsystemthatwouldotherwise
haveaSCSIvirtualdiskcreatedbydefaultandviceversa.
VMware, Inc.
Createavirtualdiskasasinglediskfile.Ifthevirtualdiskislargerthan8GB,
thehostfilesystemmustsupportfileslargerthan8GB.
Storeyourvirtualdiskfilesinaparticularlocation.
Specifyaparticularvirtualdevicenodeforthevirtualdisk.
Useindependentdiskmode(ifyoudontplantousesnapshotswiththis
virtualmachine;seeIndependentDisksonpage 121).
NOTE
Ifyoufollowthecustompath,youstillspecifytheoptionsunderthe
typicalpath.
UnderGuestoperatingsystem,selecttheoperatingsystemfamily.Selectthe
specificoperatingsystemfromtheVersionlist.
NOTE
VMwareServersupports64bitguests.TheWizardincludesoptionsfor
installing64bitversionsofcertainoperatingsystems.
VMwareServerperformsaninternalcheck.IfthehostCPUisnotasupported
64bitprocessor,VMwareServerdisplaysanerrormessagethatindicatesthe
hardwareonyourhostmachineisincompatiblewith64bitguestoperating
systems.Youcan,however,continuetopoweronthevirtualmachine.
VMwareServerprovidesastandaloneutilitytousewithoutVMwareServerthat
performsthesamecheckanddetermineswhetheryourCPUissupportedfor
VMwareServervirtualmachineswith64bitguestoperatingsystems.Youcan
downloadthe64bitprocessorcheckutilityfromtheVMwareWebsiteat
www.vmware.com/download.
Inthisexample,theremainingstepsassumeyouplantoinstallaWindowsServer
2003Enterpriseguestoperatingsystem.Youcanfinddetailedinstallationnotesfor
thisandotherguestoperatingsystemsintheVMwareGuestOperatingSystem
InstallationGuide,availablefromtheVMwareWebsiteat
www.vmware.com/support/guestnotes/doc/index.html.
VMware, Inc.
29
Iftheoperatingsystemyouareusingisnotlisted,selectOtherasboththeguest
operatingsystemandversion.
TheNewVirtualMachineWizardusesthisinformationtoselectappropriate
defaultvalues,suchastheamountofmemoryneeded.TheWizardalsousesthis
informationwhennamingassociatedvirtualmachinefiles.
NOTE
VMwareServersupports64bitguests.TheWizardincludesoptionsfor
installing64bitversionsofcertainoperatingsystems.
Selectanameanddirectoryforthevirtualmachine.
Windowshosts:Thevirtualmachinedirectoryanditsfilesarestoredinthedefault
location<installdrive>:\Virtual Machines.
Linuxhosts:Thevirtualmachinedirectoryanditsfilesarestoredinthedefault
location/var/lib/vmware/Virtual Machines.
IfyouselectedTypicalasyourconfigurationpath,gotostep10.
IfyouselectedCustomasyourconfigurationpath,continuewiththestepsfor
customizingyourvirtualmachineconfiguration.
30
VMware, Inc.
Specifywhetherthisvirtualmachineshouldbeprivate.
Bydefault,avirtualmachineisprivate,soonlyyouhaveaccesstoit.
7
Choosetheuseraccountforrunningthevirtualmachine(forvirtualmachineson
Windowshostsonly)andthehoststartupandshutdownoptions.
Windowshosts:UnderVirtualmachineaccount,choosewhichuseraccountthe
virtualmachineuseswhenitruns.Thisaccountisusedforactionslikenetwork
accessfromwithinthevirtualmachineandaccesstovirtualmachineresources
thatareonthenetwork.
!
UserthatpowersonthevirtualmachineThevirtualmachinerunsasthe
accountoftheuserwhopoweredonthevirtualmachineuntilthevirtual
machineispoweredoff.Otheruserscanconnecttothevirtualmachinebutit
stillrunsastheuserwhopoweredonthevirtualmachine.
LocalsystemaccountThevirtualmachinerunsasthelocalsystemaccount
(administrator).Youcanenablethisoptiononlyifyouareloggedontothe
hostoperatingsystemasanadministrator.
NOTE
VMware, Inc.
Thisusercanrunvirtualmachinesthatareinlocalstorageonly.
ThisuserThevirtualmachinerunsastheuseraccountspecifiedhere.The
passwordisnotvalidateduntilyoupoweronthevirtualmachine.Youcan
31
specifyalocaluseraccount,alocalsystemadministratoraccountora
fullyqualifieddomainuseraccountforthisuser.
Allhosts:UnderStartup/ShutdownOptions,choosewhetherthisvirtual
machinepowersonautomaticallywhentheVMwareServerhoststartsupand
powersoffwhenthehostshutsdown.
Toenablethestartupandshutdownoptions,youmustconfigurethevirtual
machinetorunasanadministratoruser.Youcanchangetheseoptionswhetherthe
virtualmachineispoweredonoroff.
8
Specifythenumberofprocessorsforthevirtualmachine.
Thefollowingareconsideredtohavetwologicalprocessors:
32
Asingleprocessorhostwithhyperthreadingenabled.
AsingleprocessorhostwithadualcoreCPU
AmultiprocessorhostwithtwoCPUs,neitherofwhicharedualcoreorhave
hyperthreadingenabled.
Usethedefaultorchangetheamountofmemoryallocatedtothevirtualmachine.
Tochangetheamountofmemory,movetheslidertotheappropriatelocation,use
thespincontrollernexttothefield,ortypeanewvalueinthefield.
VMware, Inc.
TheNewVirtualMachineWizardprovidesadefaultvaluebasedonyourguest
operatingsystemselection,aswellastherecommendedrangeandthetotal
amountofmemoryallrunningvirtualmachinescanuse.
TheWizardalsoindicatestheminimumamountofmemoryrecommendedbythe
manufacturerandtheVMwareServerrecommendedmaximumvalueforbest
performanceofyourvirtualmachineonthisserverhost.
CAUTION
10
Youcannotallocatemorethan2000MBofmemorytoavirtual
machineifitisstoredonafilesystemthatcannotsupportfileslarger
than2GB,suchasFAT16.Youwillnotbeabletopoweronsucha
virtualmachine.Further,youcannotallocatemorethan2000MBof
memorytoavirtualmachineifitisstoredonaFAT32filesystem,
eventhoughitdoessupportfilesupto4GBinsize.
Configurethenetworkingcapabilitiesofthevirtualmachine.
IfyourhostcomputerisonanetworkandyouhaveaseparateIPaddressforyour
virtualmachine(orcangetoneautomaticallyfromaDHCPserver),selectUse
bridgednetworking.
IfyoudonothaveaseparateIPaddressforyourvirtualmachinebutyouwantto
beabletoconnecttotheInternet,selectUsenetworkaddresstranslation(NAT).
NATisusefulifyouhaveawirelessnetworkadapteronaLinuxhost(asbridged
networkingonwirelessnetworkadaptersissupportedonlyonWindowshosts).It
alsoallowsforthesharingoffilesbetweenthevirtualmachineandthehost
operatingsystem.
Toenableyourvirtualmachinetouseavirtualnetworklimitedtothehostandthe
virtualmachinesonthehostusingonlythehostonlynetworkadapter,selectUse
hostonlynetworking.
IfyouselectedTypicalasyourconfigurationpath,gotostep14.
VMware, Inc.
33
IfyouselectedCustomasyourconfigurationpath,continuewiththestepsfor
customizingyourvirtualmachineconfiguration.
11
ChoosethetypeofSCSIadaptertousewiththevirtualmachine.
YoucannotchangetheSCSIadaptertypeafteryoucreatethevirtualmachine.
12
Selectthedisktousewiththevirtualmachine.
Touseanew,unformattedvirtualdisk,selectCreateanewvirtualdisk.
Touseanexistingvirtualdiskwiththisvirtualmachine,selectUseanexisting
virtualdisk.Browsetoselectthedisk.
Toinstalltheguestoperatingsystemonaphysical(alsocalledraw)IDEdisk,select
Useaphysicaldisk.TouseaphysicalSCSIdisk,addittothevirtualmachinelater
withthevirtualmachinesettingseditor(VM>Settings).Bootingfromaphysical
SCSIdiskisnotsupported.
ToinstallyourguestoperatingsystemdirectlyonanexistingIDEdiskpartition,
readthereferencenoteInstallinganOperatingSystemontoaPhysicalPartition
onpage 146.
34
VMware, Inc.
CAUTION
13
VMwarerecommendsthatonlyadvancedusersusephysicaldisks
withvirtualmachines.
SelectwhetheryouwantthevirtualdisktobeanIDEdiskoraSCSIdisk.
TheWizardrecommendsthebestchoicebasedontheguestoperatingsystemyou
selected.
14
Enterthesizeofthevirtualdiskthatyouwanttocreate.
Ifthissettingislargerthanthespaceavailableonthehostmachinesharddisk,a
warningmessageappears,andspecifieshowmuchspaceyouhaveonthehost.If
thediskwillexceedtheavailablespaceonthehost,youmustmakethevirtualdisk
smallerorcleartheAllocatealldiskspacenowcheckbox.
Yourvirtualdiskcanbeassmallas0.1GB(100MB).
VMware, Inc.
35
15
Specifythenameandlocationofthevirtualdisksfiles.
Tospecifywhichvirtualdevicenodeshouldbeusedbyyourvirtualdiskortouse
independentdiskmode,clickAdvanced.
CAUTION
Theindependentdiskoptionshouldbeusedonlybyadvancedusers
whoneeditforspecialpurposeconfigurations.
Youhavethefollowingoptionsforanindependentdisk:
16
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.
Nonpersistentchangestothediskarediscardedwhenyoupoweroffor
resetthevirtualmachine.
ClickFinish.VMwareServercreatesthevirtualmachine.
Yournewvirtualmachineislikeaphysicalcomputerwithablankharddisk.Before
youcanuseit,youneedtopartitionandformatthevirtualdiskandinstallanoperating
system.Theoperatingsystemsinstallationprogrammighthandlethepartitioningand
formattingstepsforyou.
36
VMware, Inc.
LaunchtheVMwareServerConsole.
InserttheinstallationCDROMorfloppydiskforyourguestoperatingsystem.
NOTE
IfyouplantouseaPXEservertoinstalltheguestoperatingsystemover
anetworkconnection,youdontneedtheoperatingsysteminstallation
media.Whenyoupoweronthevirtualmachineinthenextstep,the
virtualmachinedetectsthePXEserver,ifoneisavailableonthenetwork.
Formoreinformation,seeUsingPXEwithVirtualMachineson
page 100.
Insomehostconfigurations,thevirtualmachineisnotabletobootfromthe
installationCDROM.YoucanworkaroundthatproblembycreatinganISO
imagefilefromtheinstallationCDROM.Usethevirtualmachinesettingseditor
(VM>Settings)toconnectthevirtualmachinesCDROMdrivetotheISOimage
file,thenpoweronthevirtualmachine.
3
PoweronyourvirtualmachinebyclickingthePowerOnbutton.
Followtheinstructionsprovidedbytheoperatingsystemvendor.
ForabriefillustrationofinstallingaWindowsServer2003guestoperatingsystem,see
Example:InstallingWindowsServer2003asaGuestOSonpage 37.Theexample
describestheprocessonaWindowshost.ThestepsarethesameonaLinuxhost.
Forinformationoninstallingotherguestoperatingsystems,seetheVMwareGuest
OperatingSystemInstallationGuide,availablefromtheVMwareWebsiteat
www.vmware.com/support/guestnotes/doc/index.html.
VMware, Inc.
37
InserttheWindowsServer2003CDintheCDROMdrive.
PoweronthevirtualmachinetostartinstallingWindowsServer2003.
IfyouenabledthevirtualmachinesEthernetadapter,anAMDPCNETFamily
EthernetAdapterisdetectedandsetupautomatically.
Followtheinstallationstepsasyouwouldforaphysicalcomputer.
Afterinstallingyourguestoperatingsystem,youarereadytoinstallVMwareToolsas
describedinInstallingVMwareToolsonpage 41.
FormoreinformationaboutusingWindowsServer2003guestoperatingsystems,such
asenablingnetworkinginthevirtualmachine,seetheVMwareGuestOperatingSystem
InstallationGuide,availablefromtheVMwareWebsite.
38
VMware, Inc.
C HAPTER 3
ThischapterdescribeshowtoinstallandrunVMwareToolsandcoversthefollowing
topics:
!
AboutVMwareToolsonpage 39
InstallingVMwareToolsonpage 41
ExecutingScriptsWhentheVirtualMachinesPowerStateChangesonpage 55
ConfiguringVMwareToolsonpage 56
AbouttheVMwareToolsServiceonpage 68
TheVMwareToolsservice(orvmware-guestdonLinuxguests).
AsetofVMwaredevicedrivers,includinganSVGAdisplaydriver,thevmxnet
networkingdriverforsomeguestoperatingsystems,theBusLogicSCSIdriverfor
someguestoperatingsystems,andtheVMwaremousedriver.
TheVMwareToolscontrolpanelthatletsyoumodifysettings,shrinkvirtualdisks,
andconnectanddisconnectvirtualdevices.
Asetofscriptsthathelpautomateguestoperatingsystemoperations.Thescripts
runwhenthevirtualmachinespowerstatechanges.
Acomponentthatsupportscopyingandpastingtextbetweentheguestandhost
operatingsystems.
VMwareToolsperformsvariousdutieswithintheguestoperatingsystem,suchas
passingmessagesfromthehostoperatingsystemtotheguestoperatingsystem,
sendingaheartbeattoVMwareServer,grabbingandreleasingthemousecursor,and
VMware, Inc.
39
synchronizingthetimeintheguestoperatingsystemwiththetimeinthehost
operatingsystem.Theservicestartsautomaticallywhentheguestoperatingsystem
boots.Formoreinformation,seeAbouttheVMwareToolsServiceonpage 68.
WiththeVMwareSVGAdriverinstalled,VMwareServersupportsupto32bit
displaysandhighdisplayresolution,withsignificantlyfasteroverallgraphics
performance.IfyourunaguestoperatingsystemwithoutVMwareTools,thegraphics
environmentwithinthevirtualmachineislimitedtoVGAmodegraphics(640x480,16
color)anddisplayperformancemightbeunsatisfactory.
TheVMwarevirtualSCSIdriverisaBusLogicdriver.Somerecentguestoperating
systemscontainLSILogicdriversandcantakeadvantageofthevirtualLSILogic
adapterforbetterdeviceperformance.
Thevmxnetnetworkingdriverimprovesnetworkperformance.Thisdriveris
automaticallyinstalledwhenyouinstallVMwareTools.
TheVMwaremousedriverimprovesmouseperformanceinsomeguestoperating
systems.YoumustusetheVMwaremousedriverwiththirdpartytoolslike
MicrosoftsTerminalServices.
InaWindowsguest,youcanaccesstheVMwareToolscontrolpanelthroughthe
WindowsControlPanel(chooseStart>Settings>ControlPanel>VMwareTools)or
throughtheVMwareToolsicon,whichappearsbydefaultinthesystemtray.
InaLinuxorFreeBSDguestoperatingsystem,theVMwareToolscontrolpaneliscalled
vmware-toolbox.Youcanlaunchitmanuallyasabackgroundprocessfromabytyping:
vmware-toolbox &
NOTE
Alwaysrunvmware-toolboxintheguestoperatingsystemtoensureyouhave
accesstoallVMwareToolsfeatures,suchascopyandpasteandmouse
ungrabforoperatingsystemsforwhichXdisplaydriverisnotavailable.
InaNetWare5.1orhigherguestoperatingsystem,accesstheVMwareToolscontrol
panelbychoosingNovell>Settings>VMwareToolsforNetWare.
InaNetWare4.2guestoperatingsystem,useVMwareToolscommandsinthesystem
console.TheVMwareToolsprogramiscalledvmwtool.Forinformationaboutusing
thiscommand,seeConfiguringVMwareToolsforNetWareGuestsintheSystem
Consoleonpage 66.
Withsomewindowmanagers,youcanplacethecommandtostartVMwareToolsina
startupconfigurationsoVMwareToolsstartsautomaticallywhenyoustartyour
graphicalenvironment.Consultyourwindowmanagersdocumentationfordetails.
40
VMware, Inc.
InstallationfilesforVMwareToolsforallsupportedWindows,Linux,NetWare,and
FreeBSDguestoperatingsystemsarebuiltintoVMwareServer.
NOTE
VMwareServerprovidesexperimentalVMwareToolssupportforboththe
32bitand64bitversionsofSunSolaris10asguestoperatingsystems.The
32bitversionofVMwareToolsrunsincompatibilitymodeonvirtual
machinesrunning64bitSolaris10.Inaddition,theversionofVMwareTools
includedinthisreleasedoesnotincludeXdriversfor64bitversionsofSolaris
10.
InstallingVMwareToolsinaWindowsVirtualMachineonpage 41
AutomatingtheInstallationofVMwareToolsinaWindowsGuestonpage 48
AdditionalStepsWhenMigratingfromOldVersionsofWindowsonpage 45
InstallingVMwareToolsinaLinuxVirtualMachineonpage 50
InstallingVMwareToolsinaNetWareVirtualMachineonpage 53
TheinstallersforVMwareToolsforWindows,Linux,FreeBSD,Solaris,andNetWare
guestoperatingsystemsarebuiltintoVMwareServerasISOimagefiles.(AnISO
imagefilelookslikeaCDROMtoyourguestoperatingsystemandevenappearsasa
CDROMinWindowsExplorer.YoudonotuseanactualCDROMtoinstallVMware
Tools,andyoudonotneedtodownloadtheCDROMimageorburnaphysical
CDROMofthisimagefile.)
WhenyouinstallVMwareTools,VMwareServertemporarilyconnectsthevirtual
machinesfirstvirtualCDROMdrivetotheISOimagefilethatcontainstheVMware
Toolsinstallerforyourguestoperatingsystem,andbeginstheinstallationprocess.(To
canceltheinstaller,chooseVM>CancelVMwareToolsInstalltoreturnyourvirtual
machinesCDROMdrivetoitsoriginalconfiguration.)
41
NOTE
IfyouarerunningVMwareServeronaWindowshostandyourvirtual
machinehasonlyoneCDROMdrive,theCDROMdrivemustbeconfigured
asanIDEorSCSICDROMdrive.ItcannotbeconfiguredasagenericSCSI
device.
ToaddanIDEorSCSICDROMdrive,seeAdding,Configuring,andRemoving
DevicesinaVirtualMachineonpage 103.ForinformationaboutgenericSCSI,see
ConnectingtoaGenericSCSIDeviceonpage 237.
YoucanautomatetheinstallationofVMwareToolsinaWindowsguestoperating
system.Forinformation,seeAutomatingtheInstallationofVMwareToolsina
WindowsGuestonpage 48.
Poweronthevirtualmachine.
Logontothevirtualmachineasanadministrator.
NOTE
YoumustbeanadministratortoinstallVMwareToolsinaWindows
guestoperatingsystem,unlesstheguestoperatingsystemisWindows
Me,Windows98,orotherearlyversionsofWindows.
Whentheguestoperatingsystemstarts,chooseVM>InstallVMwareTools.
Theremainingstepstakeplaceinsidethevirtualmachine.Ifyouhaveautorun
enabledinyourguestoperatingsystem(thedefaultsettingforWindowsoperating
systems),asplashscreenthatsaysVMwareToolsappears,followedbyadialog
boxthataskswhetheryouwanttoinstallVMwareTools.
ClickYestolaunchtheInstallShieldwizard.
Ifautorunisnotenabled,thedialogboxdoesnotappear.Ifitdoesntappear,run
theVMwareToolsinstaller.ClickStart>RunandenterD:\setup.exe
NOTE
42
YoudonotuseanactualCDROMtoinstallVMwareTools.TheVMware
ServersoftwarecontainsanISOimagethatlookslikeaCDROMtoyour
guestoperatingsystemandevenappearsasaCDROMinWindows
Explorer.ThisimagecontainsallthefilesneededtoinstallVMwareTools
inyourguestoperatingsystem.WhenyoufinishinstallingVMware
Tools,thisimagefilenolongerappearsinyourCDROMdrive.
VMware, Inc.
TheVMwareToolsinstallationwizardstarts.
ClickNexttocontinuewiththeVMwareToolsinstallationwizard.TheSetupType
dialogboxappears.
Chooseatypical,complete,orcustominstallation.Theinstallerusesthisselection
eachtimeyouupgradeVMwareTools.
TypicalInstallation
Atypicalinstallationinstallstheutilitiestoenhancetheperformanceoftheguest
operatingsystem,andasetofdriversspecifictoVMwareServervirtualmachines
theVMwareSVGAdriver,theVMwareMousedriver,theVMwareSCSIdriver,
andtheVMwarevmxnetnetworkingdriver(thevlancedriverisinstalledwhen
youcreatethevirtualmachine).Youdonotneedtoconfigureyourvirtualmachine
tousethe vmxnet networkingdriver.Thevmxnetdriverisactivatedwhenreboot
yourvirtualmachineafteryouinstallVMwareTools.
IfyoudonotplantousethisvirtualmachinewithotherVMwareproducts,such
asVMwareWorkstation,usethetypicalinstallation.Tochoosethetypical
installation,selectTypical,clickNext,andgotostep7.
CompleteInstallation
Acompleteinstallationinstallstheutilitiestoenhancetheperformanceofthe
guestoperatingsystem,andallthedriverstheVMwareSVGAdriver,the
VMware, Inc.
43
VMwareMousedriver,theVMwareSCSIdriver,theVMwarevmxnetnetworking
driver(thevlancedriverisinstalledautomaticallywhenyoucreatedthevirtual
machine)andthesharedfoldersdriver(forusebyvirtualmachineswithVMware
Workstation).
IfyouplanonusingthisvirtualmachinewithotherVMwareproducts,usethe
completeinstallation.Tochoosethecompleteinstallation,selectComplete,click
Next,thengotostep7.
CustomInstallation
Acustominstallationletsyoupickandchoosewhichcomponentstoinstall.You
canalwaysruntheinstalleragainatalaterdatetoinstallcomponentsyoudidnot
installthefirsttime,orremovecomponentsyounolongerwant.SelectCustom
andclickNext.TheCustomSetupscreenappears.
IntheCustomSetupscreen,pickandchoosethecomponentstoinstall.Clickthe
arrowtotheleftofthecomponentyoudonotwanttoinstallandselectthe
appropriateoptionfromthemenu.
Ifyouneedtodeterminehowmuchfreespaceisontheguest,clickSpace.Thisis
usefulifyouarechoosingacustominstallationduetolimiteddiskspaceonyour
guest.
IfyouwanttoinstallalltheVMwareToolscomponentsinadirectoryotherthan
thedefault,clickBrowseandselectthedirectory.Ifthedirectorydoesnotexist,the
installercreatesitforyou.
Whenyouarereadytocontinue,clickNext.
7
44
Tochangeanysettingsorinformationyouprovided,clickBackuntilyoureachthe
dialogboxcontainingtheinformationyouwanttochange.
VMware, Inc.
ClickInstallonceyouarereadytobegintheinstallation.Theinstallerbegins
copyingfilestoyourhost.
YoumightseeoneormoreDigitalSignatureNotFounddialogboxeswhenthe
installerbeginstoinstallthevirtualdrivers.Youcansafelyignorethesewarnings
andclickYesorContinuetoapproveinstallationofthedrivers.
Aftertheinstallerfinishesinstallingthefiles,clickFinish.
IfyouinstalledtheVMwareSVGAdriver,mostWindowsguestoperatingsystemscan
useitonlyafteryoureboottheguest.WithWindowsXPguests,youdonothaveto
reboottousethenewdriver.
WithsomeolderWindowsguestoperatingsystems,extrastepsareneeded.
VMware, Inc.
45
AfterinstallingVMwareTools,clickFinish.TheDisplayPropertiesdialogbox
appears.
ClicktheDisplayTypebutton.TheDisplayTypedialogboxappears.
ClicktheChangebutton.TheChangeDisplaydialogboxappears.
SelectVMware,Inc.fromtheManufacturerlist.
SelectVMwareSVGAasthedisplayadapterandclickOK.
ClickYesinresponsetotheonscreenquestionaboutthirdpartydriverstoinstall
thedriver.ClickOKtoconfirmthedriverswereinstalled.
ClickClosefromtheDisplayTypedialogbox,andclickClosefromtheDisplay
Propertiesdialogbox.
ClickYestorestartWindowsNTandstartusingthenewvideodriver.
TheVMwareToolsbackgroundapplicationislaunchedwhenyourebootyour
virtualmachine.
AfterinstallingVMwareTools,clickFinish.TheDisplaySettingsdialogbox
appears.
ClicktheAdvancedbutton.
ClicktheAdaptertab.
ClicktheChangebutton.TheUpdateDeviceDriverwizardstarts.ClickNext.
Thewizarddisplaystwooptions.
ChoosethesecondoptiontoSpecifythelocationofthedriver.ClickNext.
ChecktheSpecifyalocationcheckbox.Enterthefollowingpath:
D:\video\win9x
D:isthedriveletterforthefirstvirtualCDROMdriveinyourvirtualmachine.
ClickOK.
WindowsMeautomaticallylocatesyourdriver.
46
SelecttheVMwareSVGAIIdisplayadapterandclickNext.
ClickNexttoinstallthedriver.
VMware, Inc.
IfyouareupgradingavirtualmachinecreatedunderVMwareGSXServer2,you
mightseeadialogboxthatwarns,Thedriveryouareinstallingisnotspecifically
designedforthehardwareyouhave.Doyouwishtocontinue?ClickYes.
9
Afterthedriverisinstalled,clickFinish.
10
ClickYestorestartWindowsMeandstartusingthenewvideodriver.
11
TheVMwareToolsbackgroundapplicationstartsautomaticallywhenyoureboot
yourvirtualmachine.
AfterinstallingVMwareTools,clickFinish.TheDisplaySettingsdialogbox
appears.
ClicktheAdvancedbutton.TheStandardDisplayAdapter(VGA)Properties
dialogboxappears.IfyouareupgradingfromapreviousversionoftheVMware
drivers,thisdialogboxistitledVMwareSVGAProperties.
ClicktheAdaptertab.
ClicktheChangebutton.TheUpdateDeviceDriverwizardstarts.ClickNext.
Thewizarddisplaystwooptions.
ChoosetheoptiontoDisplayalistofalldriversinaspecificlocation.ClickNext.
SelectHaveDisk.TheInstallFromDiskdialogboxappears.
Enterthefollowingpath:
D:\video\win9x
D:isthedriveletterforthefirstvirtualCDROMdriveinyourvirtualmachine.
ClickOK.
SelectVMwareSVGAdisplayadapterandclickOK.
AnswerYestotheonscreenquestion,andclickNexttoinstallthedriver.
10
Afterthedriverisinstalled,clickFinish.
11
ClickCloseintheSVGAPropertiesdialogbox,andclickCloseintheDisplay
Settingsdialogbox.
12
ClickYestorestartWindows98andstartusingthenewvideodriver.
TheVMwareToolsbackgroundapplicationstartsautomaticallywhenyoureboot
yourvirtualmachine.
VMware, Inc.
47
AfterinstallingVMwareTools,clickFinish.TheDisplaySettingsdialogbox
appears.
ClicktheAdvancedPropertiesbutton.TheAdvancedDisplayPropertiesdialog
boxappears.
ClicktheChangebutton.TheSelectDevicedialogboxappears.
SelectHaveDisk.
Enterthefollowingpath:
D:\video\win9x
D:isthedriveletterforthefirstvirtualCDROMdriveinyourvirtualmachine.
ClickOK.
ClickOKagaintoinstallthedriver.
ClickClosefromtheAdvancedDisplayPropertiesdialogbox,andclickClose
fromtheDisplaySettingdialogbox.
ClickYestorestartWindows95andstartusingthenewvideodriver.
TheVMwareToolsbackgroundapplicationstartsautomaticallywhenyoureboot
yourvirtualmachine.
VMware, Inc.
ToinstallVMwareToolssilentlyinaWindowsguest,makesurethevirtualmachines
CDROMdriveisconnectedtotheVMwareToolsISOimage(windows.iso,locatedin
thedirectorywhereyouinstalledVMwareServer)andconfiguredtoconnectwhenyou
poweronthevirtualmachine.Runthesilentinstallationontheextractedinstallation
packages.Atthecommandprompt,ononeline,type:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL /qn
TheinstallationcommandcanbecustomizedusingstandardMicrosoftWindows
Installerinstallationoptions.
TheADDLOCALoptiondefaultstoinstallallVMwareToolscomponents.Youcan
customizetheinstallationusingacombinationoftheADDLOCALandREMOVEoptions.For
informationaboutthefeaturesofVMwareTools,seeAboutVMwareToolson
page 39.Youcanincludeorexcludethefollowingfeatures:
!
ToolboxtheVMwareToolscontrolpanelanditsutilities.Excludingthisfeature
preventsyoufromusingVMwareToolsintheguestoperatingsystem,andisnot
recommended.
DriversthisincludestheSVGA,Mouse,BusLogic,andvmxnetdrivers.
!
SVGAtheVMwareSVGAdriver.Excludingthisfeaturelimitsthedisplay
capabilitiesofyourvirtualmachine.
MousetheVMwaremousedriver.Excludingthisfeaturedecreasesmouse
performanceinyourvirtualmachine.
BuslogictheVMwareBusLogicdriver.Excludingthisfeaturepreventsyou
fromusingthisdriverinyourvirtualmachine.Ifyourvirtualmachineis
configuredtousetheLSILogicdriver,thenyoumaywanttoremovethis
feature.
VMXNettheVMwarevmxnetnetworkingdriver.Excludingthisfeature
preventsyoufromusingthisdriverinyourvirtualmachine.
MemCtltheVMwarememorycontroldriver.Thisfeatureisrecommended
ifyouplanonusingthisvirtualmachinewithVMwareESXServer.Excluding
thisfeaturehindersthememorymanagementcapabilitiesofthevirtual
machinerunningonanVMwareESXServersystem.
Toincludeafeature,useitwiththeADDLOCALoption.
Toexcludeafeature,useitwiththeREMOVEoption.
Forexample,toinstalleverythingbutthesharedfoldersdriver,typethefollowingon
thecommandline:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL REMOVE=Hgfs /qn
VMware, Inc.
49
TheSVGA,Mouse,BusLogic,vmxnetandMemCtlfeaturesarechildrenoftheDrivers
feature.Thus,onthecommandline,ifyoutype:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL REMOVE=Drivers /qn
youalsoskipinstallationoftheSVGA,Mouse,BusLogic,vmxnetandMemCtldrivers.
ThedriversinstalledbyVMwareToolsarenotsignedbyMicrosoft.Whenyouinstall
VMwareTools,youareaskedtoconfirmtheinstallationofthesedrivers.Youcan
preventthesemessagesfromappearingintheguestoperatingsystemduring
installationbycompletingthefollowingsteps.
Topreventdriverinstallationmessages:
1
Onthevirtualmachinesdesktop,rightclickMyComputer,andchoose
Properties.
ClicktheHardwaretab,andclickDriverSigning.TheDriverSigningdialogbox
appears.
ClickIgnore,andclickOKtwice.
Poweronthevirtualmachine.
Aftertheguestoperatingsystemhasstarted,prepareyourvirtualmachineto
installVMwareTools.
ChooseVM>InstallVMwareTools.
Theremainingstepstakeplaceinsidethevirtualmachine.
NOTE
50
YoucaninstallVMwareToolseitherfromaterminalinanXwindow
sessionorintextmode.
Asroot(su -),mounttheVMwareToolsvirtualCDROMimage,changetoa
workingdirectory(forexample,/tmp),uncompresstheinstaller,andunmountthe
CDROMimage.
VMware, Inc.
NOTE
YoudonotuseanactualCDROMtoinstallVMwareTools,andyoudo
notneedtodownloadtheCDROMimageorburnaphysicalCDROM
ofthisimagefile.TheVMwareServersoftwarecontainsanISOimage
thatlookslikeaCDROMtoyourguestoperatingsystem.Thisimage
containsallthefilesneededtoinstallVMwareToolsinyourguest
operatingsystem.
UsingtheTarInstalleronLinuxGuests:SomeLinuxdistributionsusedifferent
devicenamesororganizethe/devdirectorydifferently.IfyourCDROMdriveis
not/dev/cdromorifthemountpointforaCDROMisnot/mnt/cdrom,modifythe
followingcommandstoreflecttheconventionsusedbyyourdistribution.
Also,someLinuxdistributionsautomaticallymountCDROMs.Ifyour
distributionusesautomounting,donotusethemountandumountcommands
below.YoustillmustuntartheVMwareToolsinstallerto/tmp.
mount /dev/cdrom /mnt/cdrom
cd /tmp
tar zxf /mnt/cdrom/vmware-linux-tools.tar.gz
umount /mnt/cdrom
Gotostep4.
UsingtheRPMInstalleronLinuxGuests:SomeLinuxdistributionsusedifferent
devicenamesororganizethe/devdirectorydifferently.IfyourCDROMdriveis
not/dev/cdromorifthemountpointforaCDROMisnot/mnt/cdrom,modifythe
followingcommandstoreflecttheconventionsusedbyyourdistribution.
Also,someLinuxdistributionsautomaticallymountCDROMs.Ifyour
distributionusesautomounting,donotusethemountandumountcommands
below.
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/vmware-linux-tools-<xxxxx>.i386.rpm
/tmp rpm -Uhv /tmp/vmware-linux-tools-<xxxxx>.i386.rpm
umount /mnt/cdrom
where<xxxxx>isthebuildnumberoftheVMwareServerrelease.
Gotostep6.
SolarisGuests:TheSolarisvolumemanagervoldmountstheCDROMunder
/cdrom/vmwaretools.IftheCDROMisnotmounted,restartthevolumemanager
usingthefollowingcommands:
/etc/init.d/volmgt stop
/etc/init.d/volmgt start
VMware, Inc.
51
AftertheCDROMismounted,usethefollowingcommandstoextractVMware
Tools.
cd /tmp
gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf Gotostep4.
FreeBSDGuests:SomeFreeBSDdistributionsautomaticallymountCDROMs.If
yourdistributionusesautomounting,donotusethemountandumountcommands
below.YoustillmustuntartheVMwareToolsinstallerto/tmp.
mount /cdrom
cd /tmp
tar zxf /cdrom/vmware-freebsd-tools.tar.gz
umount /cdrom
4
RuntheVMwareToolsinstaller.
cd vmware-tools-distrib
./vmware-install.pl
Answerthequestionsaboutdefaultdirectories.
Runtheconfigurationprogram.
vmware-config-tools.pl
Tochangeyourvirtualmachinesdisplayresolution,answeryes,andenterthe
numberthatcorrespondstothedesiredresolution.
Logoffoftherootaccount.
exit
StartXandyourgraphicalenvironment.IfyouinstalledVMwareToolsinanX
windowssession,restartXwindows.
10
InanXterminal,launchtheVMwareToolsbackgroundapplication.
vmware-toolbox &
YoucanrunVMwareToolsasrootorasanormaluser.Toshrinkvirtualdisksorto
changeanyVMwareToolsscripts,youmustrunVMwareToolsasroot(su -).
NOTE
52
Alwaysrunvmware-toolboxintheguestoperatingsystemtoensureyouhave
accesstoallVMwareToolsfeatures,suchascopyandpasteandmouse
ungrabforoperatingsystemsforwhichXdisplaydriverisnotavailable.
VMware, Inc.
OpentheStartupProgramsscreenintheGNOMEControlCenter.
MainMenu(clickthefooticoninthelowerleftcornerofthescreen)>Programs>
Settings>Session>StartupPrograms
ClickAdd.
IntheStartupCommandfield,entervmware-toolbox.
ClickOK,clickOKagain,andclosetheGNOMEControlCenter.
ThenexttimeyoustartX,VMwareToolsalsostarts.
InsertandmounttheFreeBSD4.5installationCDoraccesstheISOimagefile.
Changedirectoriesandruntheinstallationscript.
cd /cdrom/compat3x
./install.sh
53
WhenyouinstallVMwareToolsinaNetWareguestoperatingsystem,theCPUidler
programisinstalledandloaded.Theidlercanbedisabledfromthesystemconsole.For
informationonconfiguringVMwareToolsfromthesystemconsole,seeConfiguring
VMwareToolsforNetWareGuestsintheSystemConsoleonpage 66.
FollowtheappropriatestepsforyourNetWareguestoperatingsystem.
Poweronthevirtualmachine.
PrepareyourvirtualmachinetoinstallVMwareTools.
ChooseVM>InstallVMwareTools.
Theremainingstepstakeplaceinsidethevirtualmachine.
LoadtheCDROMdriversotheCDROMdevicemountstheISOimageasa
volume.Dooneofthefollowing.
!
InthesystemconsoleforaNetWare6.5virtualmachine,type
LOAD CDDVD
InthesystemconsoleforaNetWare6.0orNetWare5.1virtualmachine,type
LOAD CD9660.NSS
Whenthedriverfinishesloading,youcanbegininstallingVMwareTools.Inthe
systemconsole,type
vmwtools:\setup.ncf
Whentheinstallationfinishes,themessageVMware Tools for NetWare are now
runningappearsintheLoggerScreen(NetWare6.5andNetWare6.0guests)orthe
ConsoleScreen(NetWare5.1guests).
Restarttheguestoperatingsystem.Inthesystemconsole,type
restart server
AfteryouinstallVMwareTools,makesuretheVMwareToolsvirtualCDROMimage
(netware.iso)isnotattachedtothevirtualmachine.Ifitis,disconnectit.Rightclickthe
CDROMiconinthestatusbaroftheconsolewindowandselectDisconnect.
54
Poweronthevirtualmachine.
PrepareyourvirtualmachinetoinstallVMwareTools.ChooseVM>Install
VMwareTools.Theremainingstepstakeplaceinsidethevirtualmachine.
Loadthecdrom.nlmmodule.Inthesystemconsole,type
load cdrom
VMware, Inc.
MounttheVMwareToolsCDROMimage.Inthesystemconsole,type
cd mount vmwtools
StartinstallingVMwareTools.Inthesystemconsole,type
vmwtools:\setup
Whentheinstallationfinishes,themessageVMware Tools for NetWare are now
runningappearsintheConsoleScreen.
Bringtheguestoperatingsystemdown.Inthesystemconsole,type
down
Restarttheguestoperatingsystem.Inthesystemconsole,type
restart server
AfteryouinstallVMwareTools,makesuretheVMwareToolsvirtualCDROMimage
(netware.iso)isnotattachedtothevirtualmachine.Ifitis,disconnectit.Rightclickthe
CDROMiconinthestatusbaroftheconsolewindowandselectDisconnect.
ThecommandsonthePowermenutakeprecedenceoverhowthetoolbar
powerbuttonsareconfigured.
ScriptscanbeexecutedonlywhentheVMwareToolsserviceisrunning.Theserviceis
apartofVMwareTools,soVMwareToolsmustberunningintheguestforscriptsto
run.Theservicestartsbydefaultwhenyoustarttheguestoperatingsystem.Formore
informationabouttheVMwareToolsservice,seeAbouttheVMwareToolsService
onpage 68.
DefaultscriptsareincludedinVMwareTools.OnaMicrosoftWindowshost,the
defaultscriptexecutedwhenyoususpendavirtualmachinereleasestheIPaddressof
VMware, Inc.
55
thevirtualmachine,whilethedefaultscriptexecutedwhenyouresumeavirtual
machinerenewstheIPaddressofthevirtualmachine(thisaffectsonlyvirtual
machinesconfiguredtouseDHCP).OnaLinuxhost,thedefaultscriptexecutedwhen
yoususpendavirtualmachinestopsnetworkingforthevirtualmachine,whilethe
defaultscriptexecutedwhenyouresumeavirtualmachinestartsnetworkingforthe
virtualmachine.
Inaddition,youcancreateyourownscripts.Thescriptsyoucanrunmustbebatchfiles
forWindowshosts,butcanbeanyexecutableformat(suchasshellorPerlscripts)for
Linuxhosts.Youshouldhaveathoroughfamiliaritywiththesetypesofscriptsbefore
youmodifythedefaultscriptsorcreateyourown.
Ifyoucreateyourownscripts,youmustassociateeachscriptwithitsparticularpower
operation.Formoreinformation,seeChoosingScriptsforVMwareToolstoRun
DuringPowerStateChangesonpage 58forWindowsguestsandChoosingScripts
forVMwareToolstoRunDuringPowerStateChangesonpage 61forLinuxguests.
Forscriptsandtheirassociatedpoweroperationstowork,thefollowingconditions
mustbemet:
!
TheVMwareToolsservicemustberunninginthevirtualmachine.
TheversionofVMwareToolsmustbeupdatedtothecurrentversion.Ifyouare
usingavirtualmachinecreatedwithanotherVMwareproduct,suchasVMware
GSXServer3,updateVMwareToolstotheversionincludedinthisrelease.
Dependingontheoperationthescriptperforms,thevirtualmachinemusthavea
virtualnetworkadapterconnected,orthepoweroperationfails.
CAUTION
WhenyoureinstallVMwareToolsafteryouupgradetheVMwareServer
software,anychangesyoumadetothedefaultscriptsareoverwritten.
Anyscriptsyoucreatedonyourownremainuntouched,butdonot
benefitfromanyunderlyingchangesthatenhancethedefaultscripts.
56
ConfiguringVMwareToolsinaWindowsVirtualMachineonpage 57
ConfiguringVMwareToolsinaLinux,FreeBSD,orSolarisVirtualMachineon
page 60
ConfiguringVMwareToolsinaNetWareVirtualMachineonpage 64
VMware, Inc.
IftheVMwareToolsicondoesnotappearinthesystemtray,gotoStart>Control
Panel>VMwareTools.
Timesynchronizationbetweenthevirtualmachineandthehostoperating
systemthisoptionletsyousynchronizethetimeintheguestoperatingsystem
withthetimeinthehostoperatingsystem.
NOTE
Youcansynchronizethetimeintheguestoperatingsystemwiththetime
onthehostoperatingsystemonlywhenyousettheclockintheguest
operatingsystemtoatimeearlierthanthetimesetinthehost.
Tocompletelydisabletimesynchronization,seeDisablingTime
Synchronizationonpage 70.
!
ShowVMwareToolsinthetaskbarthisoptiondisplaystheVMwareToolsicon
intheWindowstaskbar.
VMware, Inc.
57
Toconnectadeviceselectthecheckboxnexttothedevice.Todisconnectthedevice,
deselectthecheckboxnexttothedevice.
NOTE
YoucanalsosettheseoptionsfromtheVM>RemovableDevicesmenuinthe
virtualmachinewindow.
Choosing Scripts for VMware Tools to Run During Power State Changes
ThroughVMwareTools,youcanrunscriptsthatexecutewhenyoupoweron,power
off,suspend,orresumethevirtualmachine.Formoreinformation,seeExecuting
ScriptsWhentheVirtualMachinesPowerStateChangesonpage 55.
NOTE
ScriptscannotberuninWindows95guestoperatingsystems.Scriptsin
WindowsNTandWindowsMeguestoperatingsystemsdonotreleaseand
renewtheIPaddress.
TheScriptstabletsyouenable,disable,andrunscriptsthatareassociatedwiththe
Suspend,Resume,PowerOn,andPowerOffbuttons.
AdefaultscriptforeachpowerstateisincludedinVMwareTools.Thesescriptsare
locatedintheguestoperatingsysteminC:\Program Files\VMware.
58
VMware, Inc.
Table 3-1.
When You
Suspendtheguestoperating
system
suspend-vm-default.bat
Resumetheguestoperating
system
resume-vm-default.bat
Powerofftheguestoperating
system
poweroff-vm-default.bat
Powerontheguestoperating
system
poweron-vm-default.bat
Windowshosts:IfthevirtualmachineisconfiguredtouseDHCP,thescriptexecuted
whenyoususpendavirtualmachinereleasestheIPaddressofthevirtualmachine.The
scriptexecutedwhenyouresumeavirtualmachinerenewstheIPaddressofthevirtual
machine.
Linux,FreeBSD,andSolarishosts:Thescriptexecutedwhenyoususpendavirtual
machinestopsnetworkingforthevirtualmachine.Thescriptexecutedwhenyou
resumeavirtualmachinestartsnetworkingforthevirtualmachine.
Foreachpowerstate,youcanusethedefaultscriptoryoucansubstituteascriptyou
created.Inaddition,youcantestascriptordisabletherunningofascript.Complete
thefollowingsteps.
1
IntheScriptEventlist,selectthepoweroperationwithwhichtoassociatethe
script.
Dooneofthefollowing:
VMware, Inc.
Toselectadifferentscript,clickCustomScript,clickBrowse,andselectthe
newscript.
Toeditascript,clickEdit.Thescriptopensinyourdefaulteditor.Makeyour
changesthere.
Totestthescript,clickRunNow.
Todisabletherunningofascript,clicktodeselecttheUseScriptcheckbox.
ClickApplytosaveyoursettings.
59
Insomeconfigurations,itisnotpossibletoshrinkvirtualdisks.Ifyourvirtualmachine
usessuchaconfiguration,theShrinktabdisplaysinformationexplainingwhyyou
cannotshrinkyourvirtualdisks.
Formoreinformationaboutshrinkingvirtualdisks,seeDefragmentingandShrinking
VirtualDisksonpage 125.
Inadditiontocopyrightinformation,thistabcontainsthefollowinginformation:
!
TheVMwareToolsbuildnumber,whichletsyouverifythatyourVMwareTools
versionmatchestheVMwareServerversionyouarerunning.Thebuildnumberis
alsousefulwhenyourequestsupport.
AnindicationastowhethertheVMwareToolsserviceisrunning.
60
VMware, Inc.
ToopentheVMwareToolscontrolpanel,atacommandprompt,type:
vmware-toolbox &
YoucanrunVMwareToolsasrootorasanormaluser.Toshrinkvirtualdisks,you
shouldrunVMwareToolsasroot(su -).
NOTE
Alwaysrunvmware-toolboxintheguestoperatingsystemtoensureyouhave
accesstoallVMwareToolsfeatures,suchascopyandpasteandmouse
ungrabforoperatingsystemsforwhichXdisplaydriverisnotavailable.
YoucanalsosettheseoptionsfromtheVM>RemovableDevicesmenuinthe
virtualmachinewindow.
Choosing Scripts for VMware Tools to Run During Power State Changes
ThroughVMwareTools,youcanrunscriptsthatexecutewhenyoupoweron,power
off,suspend,orresumethevirtualmachine.Formoreinformation,seeExecuting
ScriptsWhentheVirtualMachinesPowerStateChangesonpage 55.
AdefaultscriptforeachpoweroperationisincludedinVMwareTools.Thesescripts
arelocatedintheguestoperatingsystemin/etc/vmware-tools.
Table 3-2.
VMware, Inc.
When You
Suspendtheguestoperating
system
suspend-vm-default
Resumetheguestoperating
system
resume-vm-default
Powerofftheguestoperating
system
poweroff-vm-default
Powerontheguestoperating
system
poweron-vm-default
61
Foreachpowerstate,youcanusethedefaultscriptoryoucansubstituteascriptyou
created.Inaddition,ifyouareloggedonasroot,youcaneditascript,testascript,or
disabletherunningofascript.Completethefollowingsteps.
1
Toedittheappropriatepoweroperation,select:
!
Usedefaultscripttosuspendguestoperatingsystem
Usedefaultscripttoresumeguestoperatingsystem
Usedefaultscripttoshutdownguestoperatingsystem
Usedefaultscripttopoweronguestoperatingsystem
Dooneofthefollowing:
!
Toselectadifferentscript,clickBrowseandselectthenewscript.
Toeditascript,clickEdit.Thescriptopensinvi.Makeyourchangesthere.
NOTE
Totestascript,clickTest.
NOTE
62
ToeditscriptsfromtheScriptstab,xtermandvimustbeinstalledin
theguestoperatingsystem.Youmustbearootusertoeditthescript
andhaveviandxterminyourPATHwhenusingtheScriptstab.You
canalsoeditscriptsmanuallyusinganytexteditor.
IfyouplantotestscriptsinaTurbolinux7.0guestoperatingsystem,
youneedtoupdatetheTurbolinuxguestoperatingsystem.Thisisa
knownissuewithTurbolinux.
Todisableascript,selectthepathtothescriptanddeleteit.
ClickApplytosaveyoursettings.
VMware, Inc.
NOTE
Youcansynchronizethetimeintheguestoperatingsystemwiththetimein
thehostoperatingsystemonlywhenthetimeintheguestisearlierthanthe
timeinthehost.
Tocompletelydisabletimesynchronization,seeDisablingTimeSynchronizationon
page 70.
Toshrinkvirtualdisks,youshouldrunVMwareToolsastherootuser(su -).Ifyou
shrinkthevirtualdiskasanonrootuser,youcannotpreparetoshrinkthepartsofthe
virtualdiskthatrequirerootlevelpermissions.
VMware, Inc.
63
NOTE
Theshrinkprocessaffectsalldisksnotonlythedisksthatyouprepareto
shrink.
Formoreinformationaboutshrinkingvirtualdisks,seeDefragmentingandShrinking
VirtualDisksonpage 125.
Thistabcontains:
64
Copyrightinformation.
AbuttonyouclicktovisittheVMwareWebsite.
VMware, Inc.
Toconnectadevice,selectthecheckboxnexttothedevice.Todisconnectthedevice,
deselectthecheckboxnexttothedevice.
NOTE
YoucanalsosettheseoptionsfromtheVM>RemovableDevicesmenuinthe
virtualmachinewindow.
Formoreinformationaboutshrinkingvirtualdisks,seeDefragmentingandShrinking
VirtualDisksonpage 125.
VMware, Inc.
65
NOTE
Youcansynchronizethetimeintheguestoperatingsystemwiththetimein
thehostoperatingsystemonlywhenthetimeintheguestisearlierthanthe
timeinthehost.
Tocompletelydisabletimesynchronization,seeDisablingTimeSynchronizationon
page 70.
66
VMware, Inc.
Definition
help
DisplaysasummaryofVMwareToolscommandsand
optionsinaNetWareguest.
partitonlist
Displaysalistofalldiskpartitionsinthevirtualdisk
andwhetherornotapartitioncanbeshrunk.
shrink <partition>
Shrinksthelistedpartitions.Ifnopartitionsare
specified,allpartitionsinthevirtualdiskareshrunk.
Thestatusoftheshrinkprocessappearsatthebottomof
thesystemconsole.
Formoreinformation,seeDefragmentingand
ShrinkingVirtualDisksonpage 125.
devicelist
Listseachremovabledeviceinthevirtualmachine,its
deviceIDandwhetherthedeviceisenabledordisabled.
Removabledevicesincludethevirtualnetworkadapter,
CDROMandfloppydrives.
Disablesthespecifieddeviceordevicesinthevirtual
machine.Ifnodeviceisspecified,allremovabledevices
inthevirtualmachinearedisabled.
Note:YoucanalsodisabledevicesfromtheVM>
RemovableDevicesmenuintheVMwareServer
consolewindow.
Enablesthespecifieddeviceordevicesinthevirtual
machine.Ifnodeviceisspecified,allremovabledevices
inthevirtualmachineareenabled.
Note:YoucanalsoenabledevicesfromtheVM>
RemovableDevicesmenuintheVMwareServer
consolewindow.
VMware, Inc.
67
Table 3-3.
vmwtool Command
Definition
synctime [on|off]
Letsyouenableordisabletimesynchronization
betweentheguestoperatingsystemandthehost
operatingsystem.Bydefault,timesynchronizationis
disabled.
Usethiscommandwithoutanyoptionstoviewthe
currenttimesynchronizationstatus.
Youcansynchronizethetimeintheguestoperating
systemwithtimeonthehostoperatingsystemonly
whenthetimeintheguestoperatingsystemisearlier
thanthetimesetinthehost.
idle [on|off]
LetsyouenableordisabletheCPUidler.Bydefault,the
idleristurnedon.TheCPUidlerprogramisincludedin
VMwareToolsforNetWareguests.
TheidlerprogramisneededbecauseNetWareservers
donotidletheprocessorwhentheoperatingsystemis
idle.Asaresult,avirtualmachinetakesprocessortime
fromthehostregardlessofwhethertheNetWareserver
softwareisidleorbusy.
Synchronizesthetimeoftheguestoperatingsystemwiththetimeinthehost
operatingsystem.
Runsscriptsinavirtualmachinewhenthepowerstatechanges.SeeExecuting
ScriptsWhentheVirtualMachinesPowerStateChangesonpage 55.
ExecutescommandsinthevirtualmachinewhenyoushutdownorrestartaLinux
orSolarisguestoperatingsystem.
SendsaheartbeattoVMwareServersothatitknowstheguestoperatingsystemis
running.AgaugeforthisheartbeatappearsintheVMwareManagementInterface.
Formoreinformation,seeUsingtheStatusMonitor.
Passesmessagesfromthehostoperatingsystemtotheguestoperatingsystem.
PassesinformationbetweentheguestoperatingsystemandaVMwareScripting
APIscript.
Theservicestartswhenyouboottheguestoperatingsystem.
68
VMware, Inc.
InaWindowsguest,theVMwareToolsserviceprogramfileiscalled
VMwareService.exe.HelpisavailablebyrightclickingtheVMwareToolsiconinthe
systemtrayandchoosingHelp.
InaLinuxorSolarisguest,theVMwareToolsserviceiscalledvmware-guestd.To
displayhelpabouttheservice,includingalistofalloptions,usethefollowing
command:
/usr/sbin/vmware-guestd --help
Thissectioncoversthefollowingtopics:
!
SynchronizingtheTimeintheGuestOSwiththeHostOSonpage 69
ExecutingCommandsAfterYouPowerOfforResetaVirtualMachineon
page 70
PassingaStringfromtheHostOStotheGuestOSonpage 70
PassingInformationBetweentheGuestOSandaVMwareAPIScriptonpage 73
Takingasnapshot.Inthevirtualmachinesconfigurationfile(.vmx),thissettingis
representedbythetime.synchronize.continueoption.
Revertingtoasnapshot.Inthevirtualmachinesconfigurationfile(.vmx),this
settingisrepresentedbythetime.synchronize.restoreoption.
Resumingasuspendedvirtualmachine.Inthevirtualmachinesconfigurationfile
(.vmx),thissettingisrepresentedbythetime.synchronize.resume.diskoption.
Shrinkingthevirtualdisk.Inthevirtualmachinesconfigurationfile(.vmx),this
settingisrepresentedbythetime.synchronize.shrinkoption.
VMware, Inc.
69
70
VMware, Inc.
Therearetwowaysofpassingstringstoavirtualmachinesguestoperatingsystem:
1
Youcanplaceastringinthevirtualmachinesconfigurationfilebysettingthe
stringtothemachine.idparameter.
Forexample,youcansetthisstring:
machine.id = "Hello World."
Youpassthestringtotheguestoperatingsystemfromthecommandlinewhen
youlaunchthevirtualmachine.Seeexample1below.
YoucanpassitemsliketheWindowssystemID(SID),amachinenameoranIP
address.Insidetheguestoperatingsystemstartupscript,youhavetheserviceretrieve
thisstring,whichcanthenbeusedinanotherscriptyouwriteandincludeinthestartup
scripttosetyourvirtualmachinessystemID,machinename,orIPaddress.
Thisway,youcanmakecopiesofthesameconfigurationfile,addadifferentstringto
each(eitherintheconfigurationfileitselforatthecommandline),thenusethese
variationsofthesameconfigurationfiletolaunchthesamevirtualdiskin
nonpersistentmodemultipletimesinatrainingortestingenvironment,forexample.
Thisiswhatportionsoftwoconfigurationfilesthatpointtothesamevirtualdiskmight
looklike.Eachconfigurationfilecontainsitsownuniquestringsetforthemachine.id
parameter.
<config_file_1>.vmxcontains:
ide0:0.present = TRUE
ide0:0.fileName = "my_common_virtual_hard_drive.vmdk"
machine.id = "the_string_for_my_first_vm"
<config_file_2>.vmxcontains:
ide0:0.present = TRUE
ide0:0.fileName = "my_common_virtual_hard_drive.vmdk"
machine.id = "the_string_for_my_second_vm"
Passingastringisalsousefulinsituationswhereyouwanttodeployvirtualmachines
onanetworkusingacommonconfigurationfile,whileprovidingeachmachinewith
itsownuniqueidentity.Inthiscase,youspecifythestringatthecommandline(you
needtolauncheachvirtualmachinewiththevmware -scommand)whenyoulaunch
eachvirtualmachineusingthisconfigurationfile.Seeexample1below.
Eachvirtualmachinediskfilemustbecopiedintoitsowndirectoryifitsharesits
filenamewithanothervirtualmachinediskfile.
ThefollowingexampleusesaWindowshostandguesttoillustratehowyoucanuse
theservicetoretrieveastringcontainingwhatwillbecomethevirtualmachines
VMware, Inc.
71
machinenameandIPaddress.Inthisexample,W2KVMisthemachinenameand
148.30.16.24istheIPaddress.
1
Defineastring.Dothisbyeither:
!
Addingthefollowinglinetoyourvirtualmachinesconfigurationfile:
machine.id = "W2K-VM 148.30.16.24"
thenlaunchingavirtualmachineusingthisconfigurationfile.
Launchingavirtualmachinefromthecommandline.Atthecommandline,
type:
C:\Program Files\VMware\VMware Server\vmware -s 'machine.id=W2K-VM
148.30.16.24' C:\Virtual Machines\win2000\win2000.vmx
NOTE
Writetheabovecommandononeline.
NOTE
OnaLinuxhost,themachineIDpassedonthecommandlinetakes
precedenceandispassedtotheguestoperatingsystemifthefollowing
conditionsaremet:
AvirtualmachineIDisspecifiedinaconfigurationfile.
Youusethatfiletolaunchavirtualmachine.
YoualsospecifyamachineIDonthecommandline.
Retrievethestringinthevirtualmachine.InaWindowsguest,thecommandto
retrievethestringis
VMwareService --cmd machine.id.get
NOTE
InyourLinuxguestoperatingsystemsstartupscript,addthefollowing
commandbeforethenetworkstartupsection:
/etc/vmware/vmware-guestd --cmd 'machine.id.get'
Youneedtofurthercustomizethisstartupscriptsoitusesthestringtheservice
retrievedduringstartuptosetthevirtualmachinesnetworknametoW2KVMandits
IPaddressto148.30.16.24.Thisstringshouldbelocatedinthescriptbeforethenetwork
servicesarestarted.IfyoureusingaWindows2000guestoperatingsystem,for
example,youcancalltheNetShellutility(netsh)andpassitthecontentsofthestring,
whichthenusesthestringaccordingly(thatis,itcansetanewIPaddressforthevirtual
machine,ifthatiswhatwaspassedinthestringoriginally).
72
VMware, Inc.
Fromyourhostoperatingsystem,youcanpreventastringfrombeingpassedtothe
guestoperatingsystemviatheservice.Todothis,setthefollowinglineinyourvirtual
machinesconfigurationfile:
isolation.tools.getMachineID.disable = TRUE
VMware, Inc.
73
74
VMware, Inc.
C HAPTER 4
AfteryouhaveinstalledVMwareServer,aguestoperatingsystem,andVMwareTools,
youarereadytorunyourvirtualmachine.Thischapterdescribesthemostcommon
taskstorunvirtualmachinesandcoversthefollowingtopics:
!
OverviewoftheVMwareServerConsoleWindowonpage 75
ConnectingtoVirtualMachinesandVMwareServerHostsonpage 82
ChangingthePowerStateofaVirtualMachineonpage 88
ControllingtheVirtualMachineDisplayonpage 95
RunningVirtualMachinesfromDVDsorCDROMDiscsonpage 98
RunningVirtualMachinesfromDVDsorCDROMDiscsonpage 98
UsingPXEwithVirtualMachinesonpage 100
InstallingSoftwareinaVirtualMachineonpage 101
Cutting,Copying,andPastingTextonpage 102
UsingDevicesinaVirtualMachineonpage 102
CommandReferenceonpage 104
Forpurposesofillustration,theexamplesinthesesectionsuseaWindowsServer2003
guestoperatingsystem.Somecommandsusedintheillustrationsaredifferentfrom
thoseusedinotherguestoperatingsystems.
UsingtheHomeTabonpage 77
UsingTabsonpage 78
ConfiguringaVirtualMachineonpage 79
UsingtheVirtualMachineInventoryonpage 79
DisplayingHintsonpage 80
VMware, Inc.
75
CheckingtheStatusofVMwareToolsonpage 80
CreatingaScreenShotofaVirtualMachineonpage 81
ThinkofaVMwareServervirtualmachineasaseparatecomputerthatrunsina
windowonyourphysicalcomputersdesktop.TheVMwareServerConsoleletsyou
connecttomultiplevirtualmachinesandswitcheasilyfromonetoanother.
WhenyoufirstconnecttheVMwareServerConsoletoaVMwareServerhost,the
Hometabappearsinthevirtualmachinedisplay.TheHometabindicateswhetheryou
areconnectingtoGSX3ServerorVMwareServerandtheversionoftheserver
software.ThestatusbaroftheVMwareServerConsolewindowalsodisplaysthis
information.
NOTE
VMwaresupportsconnectingtoVMwareGSXServer3hostsandusing
virtualmachinescreatedwithVMwareGSXServer3aslegacymachines.You
canalsoupgradethevirtualhardwareofthosevirtualmachines.Youmust
upgradethehardwareofvirtualmachinescreatedunderVMwareGSXServer
2.YoucannotconnecttoVMwareESXServerfromVMwareServer.Formore
informationsee,MigratingfromGSXServertoVMwareServerinthe
VMwareServerAdministrationGuide.
IfyouareconnectingtoaGSX3Serversomeofthecontrolsandfunctionalityofthe
interfacechangetoaccommodatethedifferencesbetweenthefeaturesavailabletothat
product.Toseealistofwhatisdifferent,seeConnectingtoVMwareGSXServerand
OlderVirtualMachinesonpage 86.
76
VMware, Inc.
Menu Layouts
Thefollowingtableliststhelocationsforthemostcommonlyusedmenuitems.:
Table 4-1.
Menu Items
File>New>VirtualMachine
File>New>Window
File>Exit
VM>RemovableDevices
Host>Settings(forglobalhostsettings)and
Edit>Preferences(forusersettings)
VM>Settings
Host>VirtualNetworkSettings
VM>InstallVMwareTools
VM>UpgradeVirtualHardware
VM>SendCtrl+Alt+Del
VM>GrabInput
Forinformationoncreatingvirtualmachines,seeCreatingaNewVirtual
MachinewiththeVirtualMachineWizardonpage 27.
Forinformationonopeninganexistingvirtualmachine,seeConnectingto
VirtualMachinesandVMwareServerHostsonpage 82.
Forinformationonchanginghosts,seeConnectingtoaDifferentVMwareServer
Hostonpage 85.
ForinformationonconfiguringtheVMwareServerhost,seeSettingGlobal
PreferencesforVMwareServer.
VMware, Inc.
77
SelectingvirtualmachinesintheInventorylistopenstheminnewtabs.Ifthevirtual
machineisalreadyrunning,itsdesktopappearsinthevirtualmachinedisplay.
Ifthevirtualmachineissuspendedorpoweredoff,thevirtualmachinedisplaylists
informationaboutthevirtualmachine,includingitspowerstate,theguestoperating
system,thelocationoftheconfigurationfile,andwhetherthevirtualmachineis
configuredforVMwareServerorVMwareGSXServer3.
.
Figure 4-1. With the virtual machine powered off or suspended, you can enter notes
about it, edit its settings or start it. Double-click on a device to configure it.
Forinformationabouttheinventory,seeUsingtheVirtualMachineInventoryon
page 79.
Insteadofusingphysicalbuttonstoturnthiscomputeronandoff,youusebuttonson
thetoolbaratthetopoftheVMwareServerConsolewindow.
Figure 4-2. Toolbar when a virtual machine is powered off (as seen on a Windows host)
ThereareseparatePowerOffandPowerOnbuttons.Whenyoususpendavirtual
machine,thePowerOnbuttonbecomesaResumebutton.
Using Tabs
Whenavirtualmachineisactive,itsvirtualmachinenameappearsonatabatthetop
ofthevirtualmachinedisplay.Toswitchfromonevirtualmachinedisplaytoanother,
78
VMware, Inc.
clickthetabofthevirtualmachineyouwanttosee.ItslikeasoftKVMswitch.Youcan
usethisfeatureinthewindowedviewandalsointhequickswitchview.
Figure 4-3. Tabs make it easy to switch among active virtual machines (as seen on a
Windows host)
Youcancloseavirtualmachinestabwithoutinterruptingtheoperationofthevirtual
machine.Ifthevirtualmachineisrunningwhenyouclosethetab,thevirtualmachine
keepsrunninginthebackgroundandwillberunningwhenyouopenitinatabagain.
Toviewthevirtualmachineinthevirtualmachinedisplayagain,clickthevirtual
machineintheinventory.IfyouclosetheHometab,youcanopenitagainbychoosing
View>GotoHomeTab.
Ifyouwanttoviewmorethanonevirtualmachineatthesametime,youcanopen
multipleconsolewindowsandlaunchoneormorevirtualmachinesineach.Toview
virtualmachinesondifferentservers,connectanewconsoletoeachserver.
Figure 4-4. Use the virtual machine settings editor to add, remove and modify virtual
machine components
Formoreinformation,seeUsingDevicesinaVirtualMachineonpage 102.
79
Theinventorygivesyouaconvenientwaytoopenvirtualmachines.Toaddavirtual
machinetotheinventory(forexample,ifyoucopiedthevirtualmachinefromanother
host,youneedtoaddittotheinventorymanually),chooseFile>Open,clickBrowse,
andbrowsetothevirtualmachinesconfiguration(.vmx)file.
Indicatorsontheiconsforvirtualmachinesinthelistshowwhetheravirtualmachine
ispoweredoff,poweredonorsuspended.
Totogglethedisplayoftheinventoryonoroff,pressF9 onbothWindowsandLinux
hosts.OnWindowshostsonly,youcanalso clicktheinventorybutton(
)onthe
toolbar.
Selectavirtualmachinenameinthelist.
ChooseFile>RemovefromInventory.
Displaying Hints
VMwareServercandisplayhintsthatappearinresponsetovariousactionsyoutake
whenyourunavirtualmachine.Thehintsprovidemoreinformationaboutthese
actions.Bydefault,hintsareturnedoff.VMwarerecommendsthatusersnewto
VMwareServerdisplayhints.Todisplayhints,chooseHelp>Hints>ShowEnabled
HintsintheVMwareServerConsole.Toenablehintsthatweredisabled,chooseHelp
>Hints>EnableAllHints.
Youcanhideeachhintonacasebycasebasis.Tohideahint,checkNevershowthis
hintagainbeforedismissingthehintdialogbox.Toenablehintsthatweredisabled,
chooseHelp>Hints>EnableAllHints.
80
VMware, Inc.
Figure 4-5. When VMware Tools is running in a Windows virtual machine, the VMware
Tools icon appears in the system tray unless you disable the icon.
IftheVMwareToolsiconisnotdisplayedinthesystemtray,usetheVMwareTools
controlpanelintheguestoperatingsystem(Start>Settings>ControlPanel>VMware
Tools)tochangesettingsforVMwareTools.Youcanalsoreactivatethesystemtray
icon.OntheOptionstab,checkShowVMwareToolsinthetaskbar.
InaLinuxorFreeBSDvirtualmachine,boottheguestoperatingsystem,startX,and
launchyourgraphicalenvironment.LaunchtheVMwareToolsbackground
applicationwiththiscommand:
vmware-toolbox &
YoucanrunVMwareToolsasrootorasanormaluser.Toshrinkvirtualdisks,you
mustrunVMwareToolsasroot(su -).Totestandeditscripts,youmustrunVMware
Toolsastherootuser.
InaNetWare5.1orhigherguestoperatingsystem,youaccesstheVMwareTools
controlpanelbychoosingNovell>Settings>VMwareToolsforNetWare.
Withsomewindowmanagers,youcanplacethecommandtostartVMwareTools
automaticallywhenyoustartyourgraphicalenvironment.Consultyourwindow
managersdocumentationfordetails.Formoreinformation,seeStartingVMware
ToolsAutomaticallyonpage 53.
TolaunchtheVMwareToolsinstaller,chooseVM>InstallVMwareTools.
NOTE
Yourguestoperatingsystemmustbecompletelyinstalledandrunningwhen
youinstallVMwareTools.
Fordetails,seeInstallingVMwareToolsonpage 41.
VMware, Inc.
81
ConnectingtoaVirtualMachinefromaWindowsHostorClientonpage 82
ConnectingtoaVirtualMachinefromaLinuxHostorClientonpage 84
ConnectingtoaVirtualMachinefromtheVMwareManagementInterfaceon
page 85
ConnectingtoaDifferentVMwareServerHostonpage 85
ConnectingtoVMwareGSXServerandOlderVirtualMachinesonpage 86
StarttheVMwareServerConsole,eitherbyclickingontheVMwareServer
ConsoleiconorbygoingtoStart>Programs>VMware>VMwareServer>
VMwareServerConsole.
TheVMwareVirtualMachineConsoleConnecttoHostdialogboxappears.
Ifyouareconnectingfromthelocalhost,selectlocalhost.
Toconnecttoaremotehost,specifythehostname,username,andpasswordto
connecttothathost,andclickOK.
82
VMware, Inc.
NOTE
IfthisisthefirsttimeyouhavelaunchedVMwareServerandyoudidnot
entertheserialnumberwhenyouinstalledtheproduct(anoption
availableonaWindowshost),youarepromptedtoenterit.Theserial
numberisintheemailmessagethatcamewithyourelectronic
distribution.EnteryourserialnumberandclickOK.
TheserialnumberyouenterissavedandVMwareServerdoesnotaskyouforit
again.Foryourconvenience,VMwareServerautomaticallysendstheserial
numbertotheVMwareWebsitewhenyouusecertainWeblinksbuiltintothe
product(forexample,Help>VMwareontheWeb>RegisterNow!andHelp>
VMwareontheWeb>RequestSupport).Thisallowsustodirectyoutothe
correctWebpagetoregisterandgetsupportforyourproduct.
TheVMwareServerConsolewindowopens.
SelectthenameofthevirtualmachineintheInventorylistattheleftofthe
VMwareServerConsolewindow.
Ifthevirtualmachinedoesnotappearintheinventory,chooseFile>Open,click
Browseandbrowsetotheconfiguration(.vmx)fileforthevirtualmachinetouse.
NOTE
VMware, Inc.
Bydefault,VMwareServerstoresvirtualmachinesin
<installdrive>:\Virtual Machines\<guestOS>.
Tostartavirtualmachine,clickthePowerOnbutton.
83
IfVMwareToolsisnotrunninginthevirtualmachine,clickanywhereinsidethe
virtualmachinewindowtogivethevirtualmachinecontrolofyourmouseand
keyboard.
Tologon,useCtrlAltInsnotCtrlAltDelandtypeyournameandpassword
justasyoudoonaphysicalcomputer.IfyouuseCtrlAltDel,theWindowshost
detectsthecommand.
StarttheVMwareServerConsole.Openaterminalwindow.
ToconnecttheVMwareServerConsoletoavirtualmachine,type:
vmware & for either a local or remote hostPressEnter.
TheConnecttoHostdialogboxappears.
Ifyouareconnectingfromalocalhost,selectLocalhost,andclickConnect.
Toconnecttoaremotehost,selectRemotehost,andspecifythehostname,user
name,andpassword.ClickConnect.
TheVMwareServerConsolewindowopens.
84
VMware, Inc.
SelectthenameofthevirtualmachineyouwanttouseintheInventorylistatthe
leftoftheVMwareServerConsolewindow.
IfthevirtualmachinedoesnotappearintheInventory,chooseFile>Openand
clickBrowsetolocatetheconfigurationfile(.vmxor.cfgfile)forthevirtual
machineyouwanttouse.
NOTE
Bydefault,VMwareServerstoresvirtualmachinesin
/var/lib/vmware/Virtual Machines/<guestOS>.
Tostartthevirtualmachine,clickthePowerOnbutton.
IfVMwareToolsisnotrunninginthevirtualmachine,clickanywhereinsidethe
virtualmachinedisplaytogivethevirtualmachinecontrolofyourmouseand
keyboard.
Tologon,typeinyournameandpasswordjustasyoudoonaphysicalcomputer.
FromaVMwareServerConsole,chooseHost>SwitchHost.TheSwitchHost
dialogboxappears.
ChoosewhethertoconnecttothelocalhostoranotherVMwareServerhost.
!
ToconnecttoavirtualmachineonanotherVMwareServerhost,specifythe
hostname,username,andpasswordtoconnecttothathost,thenclickOK.
IfyouwerealreadyconnectedtoadifferentVMwareServerhost,youlosethat
connection.
VMware, Inc.
85
TodeterminewhichversionofanotherVMwareproductisolderthan
VMwareServer,seetheVMwareVirtualMachineMobilityPlanningGuideonthe
VMwareWebsite.Thisguidealsodiscussesmovingvirtualmachines
betweenVMwareproducts.
IfyouarerunninganoldervirtualmachineonaVMwareServerhost,thevirtual
machineisconsideredalegacyvirtualmachineuntilyouupgradethevirtual
hardware.Somelegacyvirtualmachinesettingsaredisabled.Forexample,youcannot
addphysicaldiskstoalegacyvirtualmachineonacurrentVMwareServerhost.
TheabilitiesandlimitationsofconnectingtheVMwareServerConsoletoolderservers
andoldervirtualmachinesareoutlinedbelow.
86
VMware, Inc.
Using Snapshots
YoucantakesnapshotsofvirtualmachinesrunningonVMwareGSXServer3when
connectedtotheVMwareGSXServerhostfromaVMwareServerhost.Youcannot
takesnapshotsoflegacyvirtualmachinesrunningonaVMwareServerhost.Formore
information,seeSnapshotsandLegacyDiskModesonpage 117.
87
Product Messages
MessagesthattheVMwareServerConsoledisplaysarebasedontheversionofthe
servertowhichyouareconnecting.Referencestomenuitems,interfaceelementsand
productterminologyarerelevanttothatservertypeandversion,notnecessarilytothe
currentversionofVMwareServer.
UsingPowerOptionsforVirtualMachinesonpage 88
SuspendingandResumingVirtualMachinesonpage 91
ShuttingDownaVirtualMachineonpage 92
PoweringVirtualMachinesOnandOffonpage 92
VMware, Inc.
Forthepurposeofrunningscriptsintheguestoperatingsystem,thecommandsonthe
Powermenutakeprecedenceoverhowthetoolbarpowerbuttonsareconfigured.
Forexample,iftheSuspendtoolbarbuttonisconfiguredtorunascriptwhenyou
suspendthevirtualmachine,andyoudonotwanttorunthescript,choosePower>
Suspend.Similarly,iftheSuspendtoolbarbuttonisnotconfiguredtorunascript,and
youwanttorunthescriptatthetimeyoususpendthevirtualmachine,choosePower
>Suspendafterrunningscript.
PowerOnpowersonthevirtualmachine.ThisisthesameasclickingthePower
Onbuttononthetoolbar.Whenthevirtualmachineissuspended,thismenuitem
appearsasResume.
PowerOnandRunScriptpowersonthevirtualmachine,thenexecutesthe
associatedscript.
PowerOffpowersoffthevirtualmachine.Thisissimilartoturningoffa
physicalcomputerbypressingitspowerbutton,soanyprogramsrunninginthe
virtualmachinecouldbeadverselyaffected.
ShutDownGuestrunstheassociatedscript,thengracefullyshutstheguest
operatingsystemdownand,iftheguestoperatingsystemsupportsAdvanced
PowerManagement,powersoffthevirtualmachine.Thisisthesameaschoosing
Start>ShutDown>ShutDowninaWindowsoperatingsystemorissuinga
shutdowncommandinaLinuxoperatingsystem.
Youcanconfigurethestopbutton( )onthetoolbartopoweroffthevirtualmachine
orshutdowntheguestoperatingsystem.ChooseVM>Settings,thenclickOptions>
Power,andchoosethedesiredactioninthelistunderPowerControls.
Suspendsuspendsthevirtualmachine.
SuspendafterRunningScriptexecutestheassociatedscript,thensuspendsthe
virtualmachine.
VMware, Inc.
89
Resumeresumesthesuspendedvirtualmachine.Whenthevirtualmachineis
poweredoff,thismenuitemappearsasPowerOn.
ResumeandRunScriptresumesthesuspendedvirtualmachine,thenexecutes
theassociatedscript.
Resetresetsthevirtualmachine.Thisissimilartoresettingaphysicalcomputer
bypressingitsresetbutton,soanyprogramsrunninginthevirtualmachinecould
beadverselyaffected.
RestartGuestgracefullyrestartsthevirtualmachine.Thisisthesameas
choosingStart>ShutDown>RestartinaWindowsoperatingsystemorissuing
arebootcommandinaLinuxoperatingsystem.
Youcanconfiguretheresetbutton(
)onthetoolbartoresetthevirtualmachineor
restarttheguestoperatingsystem.ChooseVM>Settings,thenclickOptions>Power,
andchoosethedesiredactioninthelistunderPowerControls.
90
VMware, Inc.
Table 4-2.
Button
Description
Shutsdowntheguestoperatingsystemandpowersoffthevirtual
machine.Anyopenapplicationsclose,theguestoperatingsystemshuts
down,thenVMwareServerpowersoffthevirtualmachine.VMware
Toolsexecutesanyscriptassociatedwiththispowerstatechange.When
thisiconisred,thevirtualmachineispoweredoff.
Suspendsarunningvirtualmachine.VMwareToolsexecutesanyscript
associatedwiththispowerstatechange.Whenthisiconisamber,the
virtualmachineissuspended.
Powersonastoppedvirtualmachineorresumesasuspendedvirtual
machine.VMwareToolsexecutesanyscriptassociatedwiththispower
statechange.Whenthisiconisgreen,thevirtualmachineisrunning.
Restartsaguestoperatingsystem.Anyopenapplicationsclose,theguest
operatingsystemshutsdown,thenVMwareServerrestartstheguest.
VMwareToolsexecutesanyscriptassociatedwiththispowerstate
change.
Changingthepowerstateexecutesanyscriptassociatedwiththepowerstatechange.
Formoreinformationaboutrunningscripts,seeExecutingScriptsWhentheVirtual
MachinesPowerStateChangesonpage 55.
Ifyourvirtualmachineisrunninginfullscreenmode,returntowindowmodeby
pressingtheCtrlAltkeycombination.
ClickSuspendontheVMwareServerConsoletoolbar.
Toresumeasuspendedvirtualmachine:
1
StarttheVMwareServerConsoleandchooseasuspendedvirtualmachine.The
processisthesameasthatdescribedinConnectingtoVirtualMachinesand
VMwareServerHostsonpage 82.
ClickResumeontheVMwareServerConsoletoolbar.
VMware, Inc.
91
Notethatanyapplicationsyouwererunningatthetimeyoususpendedthevirtual
machinearerunningandthecontentisthesameasitwaswhenyoususpended
thevirtualmachine.
Formoreinformation,seeSuspendingandResumingVirtualMachinesonpage 109.
TosuspendandresumeavirtualmachinefromtheVMwareManagementInterface,
seeChangingaVirtualMachinesPowerStatefromtheManagementInterfaceon
page 90.
SelectShutDownfromtheStartmenuoftheguestoperatingsystem(insidethe
virtualmachine).
SelectShutDown,thenclickOK.
Aftertheguestoperatingsystemshutsdown,youcanturnoffthevirtualmachine.
ClickPowerOff.
92
VMware, Inc.
Setting Startup and Shutdown Options from the VMware Server Console
ToconfigureavirtualmachinesstartupandshutdownoptionsfromtheVMware
ServerConsole,completethefollowingsteps.
1
IntheVMwareServerConsole,selectthevirtualmachine,andchooseVM>
Settings.Thevirtualmachinesettingseditoropens.
ClicktheOptionstab,andclickStartup/Shutdown.
UnderStartup/ShutdownOptions,choosewhetheryouwantthisvirtualmachine
topoweronautomaticallywhentheVMwareServerhoststartsup,andwhether
youwanttopoweroffthevirtualmachineorshutdowntheguestoperating
systemwhenthehostshutsdown.
Topoweronthevirtualmachinewhenthehoststarts,selectPoweronthevirtual
machineintheOnhoststartuplist.
Topoweroffthevirtualmachineorshutdowntheguestwhenthehostshuts
down,selecttheappropriateoptionintheOnhostshutdownlist.
ClickOKtosaveyourchangesandclosethevirtualmachinesettingseditor.
Youcannotconfigureavirtualmachinetostartuporshutdownautomaticallywhen
thehoststartsorshutsdownuntilthehostisconfiguredaccordingly.Toconfigurethe
host,seeConfiguringStartupandShutdownOptionsforVirtualMachines.You
mustlogontotheVMwareManagementInterfaceasanadministratortoconfigurethe
VMwareServerhost.
VMware, Inc.
93
OntheStatusMonitorpageoftheVMwareManagementInterface,clickthevirtual
machinemenuicon( ),thenchooseConfigureOptions.TheOptionstabforthe
virtualmachineappears.
ClickEditunderSystemStartupOptionsorSystemShutdownOptions.The
Optionspageappears.
Toallowthevirtualmachinetostartupwhenthesystemstartsup,checktheStart
VirtualMachinecheckbox.
SpecifytheperiodoftimebeforethenextvirtualmachinestartsintheContinue
StartingVirtualMachinesAfterlist.Choosethenumberofminutesorwhether
VMwareServershouldnotwaitbeforestartingthenextvirtualmachine.Ifyou
selectOther,apromptappears;specifyinthepromptthenumberofminutesto
wait.TheSystemDefaultisspecifiedinConfiguringStartupandShutdown
OptionsforVirtualMachines.
TospecifythatVMwareToolsshouldstartinavirtualmachinebeforethenext
virtualmachinestarts,checkthewhenVMwareToolsstartscheckbox.IfVMware
Toolsdoesnotstartinthevirtualmachinebeforethespecifiedtimeelapses,
VMwareServerstartsthenextvirtualmachine.
Specifywhathappenstothevirtualmachinewhenthesystemshutsdown.Inthe
AtSystemShutdown,Attempttolist,selectwhetheryouwanttopoweroffthe
virtualmachine,shutdowntheguestoperatingsystem,orsuspendthevirtual
machine.
ConfigurewhenVMwareServershouldstopthenextvirtualmachineafterthis
virtualmachinestopsintheContinueStoppingOtherVirtualMachinesAfter
list.Choosethenumberofminutes,ifany,thatVMwareServershouldwaitbefore
stoppingthenextvirtualmachine.IfyouselectOther,apromptappears;specify
94
VMware, Inc.
inthepromptthenumberofminutestowait.TheSystemDefaultisspecifiedin
ConfiguringStartupandShutdownOptionsforVirtualMachines.
5
ClickOKtosaveyoursettings.
ClickCloseWindowtoreturntothevirtualmachinesOptionspage.
UsingFullScreenModeonpage 95
UsingQuickSwitchModeonpage 95
TakingAdvantageofMultipleMonitorsonpage 96
FittingtheVMwareServerConsoleWindowtotheVirtualMachineonpage 97
FittingaWindowsGuestOSDisplaytotheConsoleWindowonpage 97
SimplifyingtheScreenDisplayonpage 98
VMwareServerdoesnotsupportrunningvirtualmachinesinfullscreen
modeondualmonitorsystems.
VMware, Inc.
95
ToviewtheVMwareServermenusandtoolbarwhileyouareusingquickswitchmode,
movethemousepointertothetopofthescreen.
ToresizeaWindowsguestoperatingsystemsdisplaysoitfillsasmuchofthescreen
aspossibleinquickswitchmode,chooseView>FitGuestNow.TheFitGuestNow
optionworksonlyifyouhavethecurrentversionofVMwareToolsinstalledinthe
guestoperatingsystemandyoudisabledAutofit.
NOTE
WhenyouchooseFitGuestNow,VMwareServeradjuststhedisplaysettings
ofyourWindowsguestoperatingsystemasneeded.Ifyousubsequentlyrun
thevirtualmachineinwindowmode,youmightwanttochangethedisplay
settingsbacktotheirpreviousvalues.
Togetoutofquickswitchmode,movethemousepointertothetopofthescreento
activatethemenu,thenchooseView>QuickSwitch.
MultiplemonitorsupportisexperimentalinthisreleaseofVMwareServer.It
doesnotworkproperlywithsomethirdpartydesktopmanagementsoftware
ordisplaydrivers.
Ifyouswitchtofullscreenmode,VMwareServeralwaysusestheprimarydisplay.To
usemultiplemonitors,youmustuseeitherthenormal(windowed)modeorquick
switchmode.
96
VMware, Inc.
WhenyouusetheFitGuestNowoptionandthewindowissmall,yourguest
operatingsystemsscreenresolutionmightbesettosomethingsmallerthan
VGA(640x480).Someinstallersandotherprogramsdonotrunatresolutions
smallerthan640x480.Ifeitherthewidthorheightissmallerthanthe
correspondingdimensionrequiredforVGA,theprogramsrefusetorun.
ErrormessagescanincludesuchphrasesasVGARequiredToInstallor
YoumusthaveVGAtoinstall.
Therearetwowaystoworkaroundthisproblem.
!
Ifyourhostcomputersscreenresolutionishighenough,youcanenlargethe
window,andchooseFitGuestNow.
Ifyourhostcomputersscreenresolutiondoesnotallowyoutoenlargethe
windowenough,donotuseFitGuestNow.Instead,settheguestoperating
systemsscreenresolutionto640x480orlarger.
VMware, Inc.
97
Inventory
Toolbar
Statusbar
Virtualmachinetabs
OnaWindowshost,youcanalsohidethemenubar.Clickthetitlebaricon,thenchoose
HideControls.
ChoosingHideControlshidesthemenubar,thetoolbar,thestatusbar,andthe
inventory.
ForthesimplestpossibleVMwareServerConsolewindowonaWindowshost,first
chooseView>Tabstoturnoffthetabs.Then,fromthetitlebariconshortcutmenu,
chooseHideControls.
98
VMware, Inc.
Thevirtualdiskmustbeanindependentdiskinnonpersistentmode,sinceanychanges
youmakeinthevirtualmachinecannotbewrittentotheDVDorCDROM.Theredo
logforthevirtualmachinemustbeontheVMwareServerhost.Formoreinformation
aboutindependentdisks,seeIndependentDisksonpage 121.
NOTE
Ifyoutakeasnapshotofthevirtualmachineandyouwanttosavethechanges
madetothevirtualdiskafterthesnapshotwastaken,youmustcopythe
virtualdisktotheVMwareServerhostsharddrive,thenupdatethesnapshot.
Inaddition,ifyoucopythediskfiletoaWindowshost,youneedtomakethe
diskfilewritable.
BeforeyourunavirtualmachinewithavirtualdiskstoredonDVDorCDROM,you
shouldconsiderwhetheryoumayneedtomodifythevirtualmachinesBIOSatsome
point.Inthiscase,thevirtualmachinesBIOS,whichisstoredinafilecallednvram,
mustbelocatedontheVMwareServerhost.Or,youcanaddasettingtothevirtual
machinesconfigurationfilethatallowsforthenvramfiletobeontheDVD/CDROM,
whereitcannotbemodified.
NOTE
Theperformanceofthevirtualmachineaccessingavirtualdiskstoredona
DVDorCDROMdependsonthespeedoftheDVD/CDROMdrive.Keepin
mindthatavirtualmachineonaDVD/CDROMdriverunsslowerthanit
wouldifitwererunningonyourhostsharddisk.
TorunavirtualmachinewithavirtualdiskstoredonDVDorCDROM,completethe
followingsteps.
1
Createavirtualmachineandinstalltheguestoperatingsystemandany
applicationsyouneedwithinit.
Makesurethevirtualmachineispoweredoff.Burnthevirtualdisk(.vmdk)files
ontoaDVDorCDROM.PlacetheDVDorCDROMintotheVMwareServer
hostsDVD/CDROMdrive.
ChooseVM>Settingstoopenthevirtualmachinesettingseditorforthisvirtual
machine.OntheHardwaretab,selectVirtualDiskandbrowsetothevirtualdisk
fileontheDVD/CDROM.
ClickAdvanced.UnderMode,checkIndependentandsetthediskmodeto
Nonpersistent.ClickOKtosavethesesettings.
OntheOptionstab,selectGeneral.UnderWorkingdirectory,browsetoandselect
alocationfortheredologontheVMwareServerhost.
ClickOKtosaveyourchanges.Thevirtualmachinesettingseditorcloses.
VMware, Inc.
99
Inatexteditor,openthevirtualmachinesconfigurationfile(.vmx)andaddtwoof
thefollowinglinestothefile:
disk.locking = FALSE
nvram = <path on VMware Server host>\nvram(ifyouthinkyouneedtomodify
thevirtualmachinesBIOS)
or
nvram.mode = "nonpersistent"(ifyoudonotneedtomodifythevirtualmachines
BIOS)
Saveyourchangesandclosetheconfigurationfile.
ThevirtualmachineisnowreadytoberunwiththevirtualdiskontheVMwareServer
hostsDVD/CDROMdrive.
NOTE
Anothermethodyoucanuseistoburnallvirtualmachinefiles(the
configurationfile,nvram,andvirtualdiskfiles)ontoDVDorCDROM.First
makesuretheredologdirectorypointstoadriveonyourVMwareServer
hostandthattheconfigurationfilehasallthedesiredsettingsbeforeyouburn
thefilesontotheDVD/CDROM.
Remotelyinstallaguestoperatingsystemoveranetworkwithoutneedingthe
operatingsysteminstallationmedia.
Deployanimageofavirtualdisktothevirtualmachine.
BootaLinuxvirtualmachineoverthenetworkandrunitdiskless.
YouusePXEwithyourvirtualmachineinconjunctionwithremoteinstallationtools
suchasWindows2000RemoteInstallationServicesortheRedHatLinux9.0installers
PXEpackage.YoucanuseGhostorAltiristostreamanimageofanalreadyconfigured
virtualdisktoanewvirtualmachine.
Makesurethevirtualmachinehasavirtualnetworkadapter;oneisinstalledby
default.VMwaresupportsPXEwhenthevirtualmachineisconfiguredtouseeitherthe
vmxnetorvlancevirtualnetworkadapter.
Thevirtualmachinemusthaveavirtualdiskwithoutaguestoperatingsystem
installed.
100
VMware, Inc.
Whenavirtualmachinebootsandthereisnoguestoperatingsysteminstalled,it
proceedstobootfromdevices(harddisk,CDROMdrive,floppydrive,andnetwork
adapter)intheorderinwhichtheyoccurinthebootsequencespecifiedinthevirtual
machinesBIOS.IfyouplantousePXEwithavirtualmachine,itisagoodideatoput
thenetworkadapteratthetopofthebootorder.Whenthevirtualmachinefirstboots,
pressF2toenterthevirtualmachinesBIOSandchangethebootorderthere.
Asthevirtualmachinebootsfromthenetworkadapter,ittriestoconnecttoaDHCP
server.TheDHCPserverprovidesthevirtualmachinewithanIPaddressandalistof
anyPXEserversavailableonthenetwork.AfterthevirtualmachineconnectstoaPXE
server,itcanconnecttoabootablediskimage(suchasanoperatingsystemimageora
GhostorAltirisdiskimage)andstartinstallingaguestoperatingsystem.
VMwarehastestedandsupportsthefollowingPXEconfigurationswithVMware
Server:
!
RemoteinstallationofaWindowsServer2003guestoperatingsystemfroma
serverrunningWindowsServer2003AutomatedDeploymentServices
RemoteinstallationofaWindows2000guestoperatingsystemfromaserver
runningWindows2000Server/AdvancedServerRemoteInstallationServices
RemoteinstallationofaLinuxguestoperatingsystemfromaRedHatEnterprise
Linux3.0ASPXEbootserver
RemoteinstallationofasupportedguestoperatingsystemfromaGhostimage
usingWindows2000andGhostRISBootpackage
RemoteinstallationofasupportedguestoperatingsystemfromanAltirisimage
usingaWindows2000Altirisserver
NetworkbootingaLinuxvirtualmachinebyconnectingwiththeLinuxDiskless
optiontoaRedHatEnterpriseLinux3.0ASserver
Besureyouhavestartedthevirtualmachineand,ifnecessary,loggedon.Inthe
VMwareServerConsolewindow,checkVM>RemovableDevicestobesurethe
virtualmachinehasaccesstotheCDROMdriveand,ifneeded,thefloppydrive.
InserttheinstallationCDROMorfloppydiskintotheproperdriveonthe
VMwareServerhost.IfyouareinstallingfromaCDROM,theinstallation
programmightstartautomatically.
VMware, Inc.
101
Iftheinstallationprogramdoesnotstartautomatically,clicktheWindowsStart
button,gotoSettings>ControlPanel,thendoubleclickAdd/RemovePrograms
andclicktheInstallbutton.Followtheinstructionsonscreenandintheuser
manualforyournewsoftware.
NOTE
Someapplicationsuseaproductactivationfeaturethatcreatesakey,basedon
thevirtualhardwareinthevirtualmachinewhereitisinstalled.Changesin
theconfigurationofthevirtualmachinemightrequireyoutoreactivatethe
software.Tominimizethenumberofsignificantchanges,setthefinal
memorysizeforyourvirtualmachineandinstallVMwareToolsbeforeyou
activatethesoftware.
Whenyoutrytorunafewprograms,includingtheinstallerfortheJapaneselanguage
versionofTrendMicroVirusBuster,theVMwareServermightappeartohang.To
workaroundthisproblem,trydisablingaccelerationintheguest.Formore
information,seeIssuesInstallingorRunningApplicationsinaGuestOperating
System.
IfyouarecopyingtextfromaWindowshostintoaLinuxguestoperating
system,youcanpasteonlybyusingthemiddlemousebutton.Ifyouareusing
atwobuttonmouse,clickbothmousebuttonsatthesametimetopaste.
Toturnoffthisfeaturetopreventaccidentalcopyingandpastingfromone
environmenttoanotherchangeyourpreferences.
ChooseEdit>Preferences.OntheInputtab,cleartheEnablecopyandpastetoand
fromvirtualmachinecheckbox.
102
Adding,Configuring,andRemovingDevicesinaVirtualMachineonpage 103
ConnectingandDisconnectingRemovableDevicesonpage 104
VMware, Inc.
Youcanconfigureparallelports,serialports,DVD/CDROMdrives,floppy
drives,andsounddrivers(Linuxonly)asautodetectdevices.Thebenefitof
autodetectdevicesisthattheycanbemovedbetweenvirtualmachines
runningdifferentoperatingsystems,suchasLinuxandWindows,without
havingtobereconfigured.
Forinformationonaddingandconfiguringvirtualnetworkadapters,seeAddingand
ModifyingVirtualNetworkAdaptersonpage 162.
Forinformationonconfiguringvirtualmachinememory,seeAllocatingMemorytoa
VirtualMachineonpage 251.
Toremoveadeviceorotherhardwarefromavirtualmachine,makesureitispowered
off.YoucanremovehardwareusingtheVMwareServerConsoleortheVMware
ManagementInterface.
NOTE
VMware, Inc.
Youcannotaddorremovesomeitemsfromavirtualmachine,suchasthe
processor,SCSIcontrollers,orthevirtualdisplayadapter.VMwareServer
createsSCSIcontrollersasneededwhenyouaddSCSIdevices.However,the
numberofvirtualSCSIcontrollersisincludedinthesixvirtualPCIslotlimit
foravirtualmachine.ForinformationonwhichdevicesusePCIslots,see
VirtualMachineSpecificationsonpage 12.
103
IntheVMwareServerConsole,selectthevirtualmachine,thenclickEditvirtual
machinesettings.Thevirtualmachinesettingseditorappears.
Selecttheitemyouwanttoremove,thenclickRemove.
ClickOKtosavethechangeandclosethevirtualmachinesettingseditor.
Command Reference
Thefollowingsectionsdescribecommandlineoptionsthatareavailablewhenyou
launchtheVMwareServerConsoleandkeyboardshortcutsthatyoucanusewhilea
virtualmachineisrunning.
104
StartupOptionsonaLinuxHostonpage 105
StartupOptionsonaWindowsHostonpage 106
UsingKeyboardShortcutsonpage 106
VMware, Inc.
ThisoptiondoesnotworkwhenyouconnectwiththeVMwareServer
ConsolefromaremoteclienttotheVMwareServerhost.
-qclosesthevirtualmachinestabwhenthevirtualmachinepowersoff.Ifnoother
virtualmachineisopen,italsoclosestheVMwareServerConsole.Thisisparticularly
usefulwhentheguestoperatingsystemiscapableofpoweringoffthevirtualmachine.
-l launchestheVMwareServerConsole,connectingitdirectlytothelocalhost.
-vdisplaystheproductname,versionandbuildnumber.
-s NAME=VALUEsetsaconfigurationvariablecallednametovalue.Thisconfiguration
settingappliesuntilthevirtualmachineispoweredoff.Thesesettingsarefoundinthe
virtualmachinesconfiguration(.vmx)file.Youshouldusethisoptiononlyifyouknow
theexactvariableandvaluetouse;typicallyyouusethiswhenyouaretroubleshooting
issues,andVMwaresupportsuggestsyouuseaparticularconfigurationsetting.
-mautomaticallystartsthevirtualmachineinquickswitchmode.Thisoptionworksfor
virtualmachinesrunningonLinuxhostsonly.Forinformationonquickswitchmode,
seeUsingQuickSwitchModeonpage 95.
/<path_to_config>/<config>.vmx(or.cfg)launchesavirtualmachineusingthe
specifiedconfigurationfile.
Xtoolkitoptionscanbepassedasarguments,althoughsomeofthem(mostnotablythe
sizeandtitleoftheVMwareServerConsolewindow)cannotbeoverridden.
VMware, Inc.
105
Theconfigurationfilehasa.vmxextensionbydefault.Pathnameson
Windowsusethebackslashcharacter(\).Xtoolkitoptionsarenotrelevanton
aWindowshost.
106
VMware, Inc.
Table 4-3.
Shortcut
VMware, Inc.
Action
CtrlB
Poweron.
CtrlE
Poweroff.
CtrlR
Resetthepower.
CtrlZ
Suspend.
CtrlN
Createanewvirtualmachine.
CtrlO
Openavirtualmachine.
CtrlF4
Closethecurrentvirtualmachine.
CtrlD
Editthevirtualmachinesconfiguration.
CtrlG
Grabinputfromthekeyboardandmouse.
CtrlP
Editpreferences.SeeSettingUserPreferencesfortheVMware
ServerHost.
CtrlAltEnter
Gotofullscreenmode.
CtrlAlt
Returntonormal(windowed)mode.
CtrlAltTab
Switchamongopenvirtualmachineswhilethemouseandkeyboard
inputaregrabbed.
CtrlTab
Switchamongopenvirtualmachineswhilethemouseandkeyboard
inputarenotgrabbed.VMwareServermustbetheactiveapplication.
CtrlShiftTab
Switchamongopenvirtualmachineswhilethemouseandkeyboard
inputarenotgrabbed.VMwareServermustbetheactiveapplication.
CtrlAltFx
Switchamongopenvirtualmachineswhileusingfullscreenmode.Fx
isafunctionkeycorrespondingtothevirtualmachineyouwantto
use.Thekeycombinationtouseforavirtualmachineisshowninthe
VMwareServertitlebarwhenthatvirtualmachineisactiveandin
normal(windowed)mode.
107
108
VMware, Inc.
C HAPTER 5
Machine
VMwareServerprovidestwowaystopreservethestateofavirtualmachine.Youcan
eithersuspendandresumevirtualmachinesortakesnapshotsofvirtualmachines.This
chapterdescribesthesefeaturesandcoversthefollowingtopics:
!
SuspendingandResumingVirtualMachinesonpage 109
TakingSnapshotsonpage 112
Topreservethestateofthevirtualmachinesoyoucanreturntothesamestate
repeatedly,takeasnapshot.Fordetails,seeTakingSnapshotsonpage 112.
Thespeedofthesuspendandresumeoperationsdependsonhowmuchdatahas
changedwhilethevirtualmachinehasbeenrunning.Ingeneral,thefirstsuspend
operationtakeslongerthansubsequentsuspendoperationsdo.
Whenyoususpendavirtualmachine,afilewitha.vmssextensioniscreated.Thisfile
containstheentirestateofthevirtualmachine.Whenyouresumethevirtualmachine,
itsstateisrestoredfromthe.vmssfile.The.vmssfilecannotbeusedtoresumeavirtual
machineagainfromtheoriginalsuspendedstate.
VMware, Inc.
109
NOTE
Youshouldnotchangeaconfigurationfileafteryoususpendavirtual
machineThevirtualmachinedoesnotresumeproperlyiftheconfiguration
fileisinconsistentwiththesuspendedvirtualmachine.Also,youshouldnot
moveanyphysical(raw)disksthatthevirtualmachineuses.Ifyoudo,the
virtualmachinecannotaccessitsvirtualdiskswhenitresumes.
Ifyourvirtualmachineisrunninginfullscreenmode,returntowindowmodeby
pressingtheCtrlAltkeycombination.
ClickSuspendontheVMwareServerConsoletoolbar.
WhenVMwareServerhascompletedsuspendingthevirtualmachine,choose
File>Exit
LaunchtheVMwareServerConsoleandchooseasuspendedvirtualmachine.
ClickResumeontheconsoletoolbar.
Anyapplicationsyouwererunningatthetimeyoususpendedthevirtualmachine
arerunning,andthecontentisthesameaswhenyoususpendedthevirtual
machine.
YouusealsousetheVMwareManagementInterfacetosuspendandresumeavirtual
machine.SeeChangingaVirtualMachinesPowerStatefromtheManagement
Interfaceonpage 90.
Youcanalsosettheconfigurationofeachvirtualmachinesothefilethatstores
informationonthesuspendedstateissavedinalocationofyourchoice.
110
Changingtheworkingdirectoryalsochangeswhereyoustorethevirtual
machinessnapshotandredologfiles.
VMware, Inc.
Connecttothevirtualmachinewithaconsole.Makesurethevirtualmachineis
poweredoff.
ChooseEditvirtualmachinesettings.
OntheOptionstab,clickGeneral.
UnderWorkingDirectory,enterthenameofadirectorytouse,orclickBrowseto
selectadirectory.
ClickOK.
LogontotheVMwareManagementInterface.Clickthevirtualmachinemenuicon
(
)forthevirtualmachineyouwanttochangeandchooseConfigureOptions.
TheOptionspageforthisvirtualmachineappearsinanewbrowserwindow.
VMware, Inc.
ClickEdit.TheOptionspageappears.
111
Forfastestsuspendandrestoreoperations,typethepathtotheappropriate
directoryintheSuspendFileLocationfield.VMwareServeraddsasuffixtothe
nameofthesuspendedstatefiletoensurethatonevirtualmachinedoesnot
overwritethesuspendedstatefileofanother.
3
ClickOKtosaveyourchanges.
Taking Snapshots
Thesnapshotfeatureismostusefulwhenyouwanttopreservethestateofthevirtual
machinesoyoucanreturntothesamestaterepeatedly.
Tosavethecurrentstateofyourvirtualmachineandpickupworklaterwiththevirtual
machineinthesamestate,suspendthevirtualmachine.Fordetails,seeSuspending
andResumingVirtualMachinesonpage 109.
Youcantakeasnapshotofavirtualmachineatanytimeandreverttothatsnapshotat
anytime.IfthevirtualmachineislocatedonaLinuxhost,youshouldnottakea
snapshotwhileyouaresuspendingthevirtualmachine.Waituntilthesnapshotis
completelysavedbeforetakingthesnapshot.
Youcantakeasnapshotwhileavirtualmachineispoweredon,poweredoff,or
suspended.Asnapshotpreservesthevirtualmachinejustasitwaswhenyoutookthe
snapshotthestateofthedataonallthevirtualmachinesdisksandwhetherthe
virtualmachinewaspoweredon,poweredoff,orsuspended.
Whenyoureverttoasnapshot,youdiscardallchangesmadetothevirtualmachine
sinceyoutookthesnapshot.Thisincludesanydatawrittentothevirtualdiskandany
changestothevirtualmachinesconfiguration.
Similarly,ifyoutakeasnapshotofavirtualmachineandlatermodifythevirtual
machinesconfiguration,anychangesyoumaketotheconfigurationarenotreflected
inthesnapshot.Youneedtotakeanewsnapshot.
UsetheSnapshotandRevertbuttonsontheconsoletoolbartotakeasnapshotand
reverttoitlater.
Youcantakeanewsnapshotatanytime.Whenyoudoso,youreplacetheprevious
snapshot.Youcanhaveonlyoneactivesnapshotatatime.
112
VMware, Inc.
NOTE
Takinganewsnapshotwhenasnapshotalreadyexistscantakealongtime,
astheoriginalsnapshotneedstoberemoved.Whileyouaretakinganew
snapshot,otherconsolesmightnotbeabletoconnecttotheserverhostand
theuserstryingtoconnectmightseeanerrorthattheVMwareRegistration
Service(vmware-serverd)isnotrunning.Youcannottakesnapshotsifusing
anIndependentdiskwhilethevirtualmachineispoweredonorsuspended.
Thefollowingsectionsdescribesnapshotsingreaterdetail.
!
WhatIsCapturedbyaSnapshot?onpage 113
WaysofUsingSnapshotsonpage 114
SnapshotsandaVirtualMachinesHardDisksonpage 114
SnapshotsandOtherActivityintheVirtualMachineonpage 115
SettingsforSnapshotsonpage 115
SnapshotActionsasBackgroundActivityonpage 116
SnapshotsandLegacyDiskModesonpage 117
SnapshotsandLegacyVirtualMachinesonpage 117
SnapshotsandLegacyVirtualMachinesonpage 117
Thestateofallthevirtualmachinesdisks.
Thecontentsofthevirtualmachinesmemory.
Thevirtualmachinesettings.
Whenyoureverttothesnapshot,youreturnalltheseitemstothestateatthetimeyou
tookthesnapshot.
NOTE
VMware, Inc.
Incertainspecialpurposeconfigurations,youmightwanttoexcludeoneor
moreofthevirtualmachinesdisksfromthesnapshot.Toexcludeadiskfrom
thesnapshot,chooseVM>Settings,selectthedriveyouwanttoexclude,and
clickAdvanced.Ontheadvancedsettingsscreen,selectIndependent.You
havethefollowingoptionsforanindependentdisk:
113
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.All
changestoanindependentdiskinpersistentmoderemain,evenwhenyourevert
tothesnapshot.
Nonpersistentchangestothediskarediscardedwhenyoupowerofforrevert
tothesnapshot.
114
VMware, Inc.
newlysaveddatacontinuestoaccumulateinthemuntilyoutakeanactionthataffects
thesnapshot.Beawareofhowmuchdiskspacethesefilesconsume.
!
RemovethesnapshotWhenyouremovethesnapshot,thechangesaccumulated
inthenewvirtualdiskfileiswrittenpermanentlytothebasedisks(eitherthe
virtualdiskfilesorthephysicaldisks,dependingonyourvirtualmachineshard
diskconfiguration).
ReverttothesnapshotWhenyoureverttothesnapshot,thecontentsofthe
newlycreatedvirtualdiskfileisdiscarded.Anyadditionalchangesare,once
again,accumulatedinanewvirtualdiskfile.
TakeasnapshotIfyoutakeasnapshotwhenthevirtualmachinealreadyhasa
snapshot,changesstoredinthenewvirtualdiskfilearewrittenpermanentlytothe
basedisk.Anysubsequentchangesagainaccumulateinanewvirtualdiskfile.
Dependingonhowlargethevirtualdiskfileis,takinganewsnapshotcantake
sometime
VMware, Inc.
115
GotoVM>Settings>Options>Snapshots.
Ifthevirtualmachinehasnosnapshot,youcandisablethesnapshotfeatureby
selectingDisablesnapshots.Ifyouhaveasnapshotandwanttodisablethesnapshot
feature,firstgototheconsolewindowandchooseSnapshot>RemoveSnapshot.
ReturntothevirtualmachinesettingseditorandselectDisablesnapshots.
Tolockthesnapshotsononewsnapshotcanbetaken,selectLockthissnapshot.
116
VMware, Inc.
Toremovethesnapshot,shutdownandpoweroffthevirtualmachine.Choose
Snapshot>RemoveSnapshot.
NOTE
Removingasnapshotwhenthevirtualmachineispoweredoffcantakealong
time,dependingonthesizeofthesnapshotfile.Whileyouareremovingthe
snapshot,otherconsolesmightnotbeabletoconnecttotheserverhost,and
theuserstryingtoconnectmightseeanerrorthattheVMwareRegistration
Service(vmware-serverd)isnotrunning.
PersistentmodeDonottakeasnapshot.
NonpersistentmodeBesurethevirtualmachineisinthestateyouwantit.
Poweroffthevirtualmachine.Takeasnapshot.Ontheconsoletoolbar,goto
SnapshotandchooseReverttosnapshot.
NOTE
VMwareServerdoesnotsupportundoabledisks.
VMware, Inc.
117
118
VMware, Inc.
C HAPTER 6
Machine
Thischapterdescribeshowtoconfigureyourvirtualmachinesharddiskstorageand
coversthefollowingtopics:
!
ConfiguringHardDiskStorageinaVirtualMachineonpage 119
ConfiguringOpticalandFloppyDrivesonpage 128
AddingDrivestoaVirtualMachineonpage 131
UsingVMwareVirtualDiskManageronpage 139
InstallinganOperatingSystemontoaPhysicalPartitiononpage 146
DiskPerformanceinWindowsNTGuestsonMultiprocessorHostsonpage 150
DiskTypes:VirtualandPhysicalonpage 120
AdditionalInformationaboutDisk,RedoLog,Snapshot,andLockFileson
page 122
DefragmentingandShrinkingVirtualDisksonpage 125
VMware, Inc.
119
Virtual Disk
Avirtualdiskisafileorsetoffilesthatappearsasaphysicaldiskdrivetoaguest
operatingsystem.Thefilescanbeonthehostmachineoronaremotecomputer.When
youconfigureavirtualmachinewithavirtualdisk,youcaninstallanewoperating
systemontothevirtualdiskwithoutrepartitioningaphysicaldiskorrebootingthe
host.
IDEvirtualdiskscanbeaslargeas950GB.SCSIvirtualdiskscanbeaslargeas950GB.
Dependingonthesizeofthevirtualdiskandthehostoperatingsystem,VMware
Servercreatesoneormorefilestoholdeachvirtualdisk.
Bydefault,thevirtualdiskisconfiguredsoallthediskspaceisallocatedatthetimethe
virtualdiskiscreated.Thistypeofvirtualdiskisknownasapreallocateddisk.A
preallocateddiskprovidesenhancedperformanceandisusefulifyouarerunning
performancesensitiveapplicationsinthevirtualmachine.Avirtualdiskthatisnot
preallocatedisknownasagrowabledisk.Agrowablevirtualdisksfilesstartoutsmall
andgrowtotheirmaximumsizeasneeded.Themainadvantageofthisapproachisthe
smallerfilesize.Smallerfilesrequirelessstoragespaceandareeasiertomoveifyou
wanttomovethevirtualmachinetoanewlocation.Youcanshrinkthistypeofvirtual
disk.However,ittakeslongertowritedatatoadiskconfiguredinthisway.
VirtualdiskscanbesetupasIDEdisksforanyguestoperatingsystem.Theycanbeset
upasSCSIdisksforanyguestoperatingsystemthathasadriverfortheBusLogicSCSI
adapterusedinaVMwareServervirtualmachine.
NOTE
TouseSCSIdisksinaWindowsXPorWindowsServer2003virtualmachine,
youneedaspecialSCSIdriveravailablefromthedownloadsectionofthe
VMwareWebsiteatwww.vmware.com/download.Followtheinstructions
ontheWebsitetousethedriverwithafreshinstallationofWindowsXPor
WindowsServer2003.
Avirtualdiskofeithertypecanbestoredoneithertypeofphysicalharddisk.Thatis,
thefilesthatmakeupanIDEvirtualdiskcanbestoredoneitheranIDEharddiskora
SCSIharddisk.SocanthefilesthatmakeupaSCSIvirtualdisk.Theycanalsobestored
onothertypesoffastaccessstoragemedia,suchasDVDsorCDROMdiscs.For
120
VMware, Inc.
informationaboutrunningvirtualmachinesfromDVDROMorCDROM,see
RunningVirtualMachinesfromDVDsorCDROMDiscsonpage 98.
Akeyadvantageofvirtualdisksistheirportability.Becausethevirtualdisksarestored
asfilesonthehostmachineoraremotecomputer,youcanmovethemeasilytoanew
locationonthesamecomputerortoadifferentcomputer.YoucanalsouseVMware
ServeronaWindowshosttocreatevirtualdisksandmovethemtoaLinuxcomputer
andusethemunderVMwareServerforLinuxorviceversa.Forinformationabout
movingvirtualdisks,seeMovingandSharingVirtualMachinesinVMwareServer
AdministrationGuide.
YoucansetupphysicaldisksonbothIDEandSCSIdevices.Youcannot
useaphysicaldiskthatisstoredonaSAN.Youmustuseadiskora
partitionontheVMwareServerhost.
Ifyourunanoperatingsystemnativelyonthehostcomputer,andswitchtorunningit
insideavirtualmachine,thechangeislikepullingtheharddriveoutofonecomputer
andinstallingitinasecondcomputerwithadifferentmotherboardandother
hardware.Youneedtopreparecarefullyforsuchaswitch.Thespecificstepsyouneed
totakedependontheoperatingsystemyouwanttouseinsidethevirtualmachine.
Youcancreateanewvirtualmachinethatusesaphysicaldiskinsteadofavirtualdisk.
Fordetails,seeInstallinganOperatingSystemontoaPhysicalPartitiononpage 146.
Inmostcases,however,itisbettertouseavirtualdisk.
Onlyadvancedusersshouldattemptphysicaldiskconfigurations.
Independent Disks
Independentdisksaddalayerofcontrolandcomplexitytoyourvirtualdisks.You
configurevirtualdisksinindependentmodeforcertainspecialpurposeconfigurations.
VMware, Inc.
121
Forexample,youmightwanttorunavirtualmachinethatusesavirtualdiskstoredon
DVDorCDROM.Formoreinformation,seeRunningVirtualMachinesfromDVDs
orCDROMDiscsonpage 98.
Or,youmightwanttoexcludeoneormorevirtualdisksfromavirtualmachines
snapshot.Formoreinformationaboutsnapshots,seeTakingSnapshotsonpage 112.
Toconfigureadiskasanindependentdisk,chooseVM>Settings,selectthevirtual
disk,andclickAdvanced.Ontheadvancedsettingsscreen,selectIndependent,then
themodeforthedisk.Youhavethefollowingoptionsforanindependentdisk:
!
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.All
changestoanindependentdiskinpersistentmoderemain,evenwhenyourevert
tothesnapshot.
Nonpersistentchangestothediskarediscardedwhenyoupowerofforrevert
tothesnapshot.Choosethisoptiontorunavirtualmachinewherethevirtualdisk
isstoredonaDVDorCDROM,ortoloseanychangesmadetothevirtualdisk
sincethesnapshotwastakenwhenyoureverttothesnapshot.
Disk Files
Thevirtualmachinesettingseditor(VM>Settings)letsyouchoosethediskfilesfora
virtualmachine.
ChooseafileotherthantheonecreatedbytheNewVirtualMachineWizardifyouare
usingavirtualdiskthatyoucreatedinadifferentlocationorifyouaremovingthe
createddiskfilestoanewlocation.
Thediskfilesforavirtualdiskstoretheinformationthatyouwritetoavirtual
machinesharddisktheoperatingsystem,theprogramfiles,andthedatafiles.The
virtualdiskfileshavea.vmdkextension.
Avirtualdiskismadeupofoneormore.vmdkfiles.
OnMicrosoftWindowshosts,eachvirtualdiskiscontainedinonefilebydefault.You
canoptionallyconfigurethevirtualdisktouseasetoffileslimitedto2GBperfile.Use
thisoptionifyouplantomovethevirtualdisktoafilesystemthatdoesnotsupport
fileslargerthan2GB.
Youmustsetthisoptionatthetimeyoucreatethevirtualdisk.
122
VMware, Inc.
Ifyouaresettingupanewvirtualmachine,followthecustompathintheNewVirtual
MachineWizard.Inthescreenthatletsyouspecifythevirtualdiskscapacity,select
Splitdiskinto2GBfiles.
Ifyouareaddingavirtualdisktoanexistingvirtualmachine,followthestepsinthe
AddHardwareWizard.Inthescreenthatletsyouspecifythevirtualdiskscapacity,
selectSplitdiskinto2GBfiles.
Whenadiskissplitintomultiplefiles,largervirtualdiskshavemore.vmdkfiles.
Thefirst.vmdkfileforeachdiskissmallandcontainspointerstotheotherfilesthat
makeupthevirtualdisk.Theother.vmdkfilescontaindatastoredbyyourvirtual
machineanduseasmallamountofspaceforvirtualmachineoverhead.
Bydefault,alldiskspaceisallocatedwhenyoucreatethevirtualdisk.Apreallocated
virtualdiskhasfixedfilesizes,andmostofthefilesare2GB.Asmentionedabove,the
firstfileissmall.Thelastfileintheseriesmightalsobesmallerthan2GB.
Ifyouchosenottoallocatethespaceinadvance,the.vmdkfilesgrowasdataisadded,
toamaximumof2GBeachexceptforthefirstfileintheset,whichremainssmall.
Thevirtualmachinesettingseditorshowsthenameofthefirstfileinthesettheone
thatcontainspointerstotheotherfilesintheset.Theotherfilesusedforthatdiskare
assignednamesbasedonthenameofthefirstfile.
Forexample,aWindows2000Servervirtualmachineusingthedefaultconfiguration,
withfilesthatgrowasneeded,storesthediskinfilesnamedWindows 2000
Server.vmdk,Windows 2000 Server-s001.vmdk,Windows 2000 Server-s002.vmdkandso
on.
Ifthediskspaceisallocatedinadvanceandthevirtualdiskissplitinto2GBfiles,the
namesaresimilar,exceptthattheyincludeanfinsteadofansforexample,Windows
2000 Server-f001.vmdk.Ifthediskisnotsplitinto2GBfiles,thevirtualmachinestores
thediskintwofiles,namedWindows 2000 Server.vmdkandWindows 2000
Server-flat.vmdk.
Ifyouareusingaphysicaldisk,the.vmdkfilestoresinformationaboutthephysicaldisk
orpartitionusedbythevirtualmachine.
Redo-Log Files
Redologfilesarestoredinthevirtualmachinesworkingdirectory,andareforsaving
changestoindependentnonpersistentdisks.Redologfilessaveblocksthatthevirtual
machinemodifieswhileitisrunning.Theredologfileforadiskin
independentnonpersistentmodeisnotsavedwhenthevirtualmachineispoweredoff
orreset.
VMware, Inc.
123
Theredologfileforavirtualdiskvmisnamedvm.vmdk.REDO.Ifthevirtualdiskissplit
into2GBfiles,thediskfilesarenamedvm.vmdk,vm-02.vmdk,vm-03.vmdkandsoon;its
redologfilesarenamedvm.vmdk.REDO,vm-02.vmdk.REDO,vm-03.vmdk.REDOandsoon.
Youcanchoosethelocationwheretheredologfilesarestored.Bydefault,thefilesare
storedinthesamedirectoryasthevirtualdisk(.vmdk)file.Bydefault,redologfilesfor
physicaldisksarelocatedinthesamedirectoryasthevirtualmachineconfigurationfile
(.vmx).Youcanchangethelocationoftheredologfilesinthevirtualmachinesettings
editor.Withthevirtualmachinepoweredoff,chooseVM>Settings.ClicktheOptions
tab,selectGeneral.UnderWorkingdirectory,enterthenameorbrowsetothefolder
inwhichtheredologfileshouldbestored.
Youcanstorethesefilesinadifferentdirectorytoincreaseavailablespaceorimprove
performance.Forbestperformance,thelogfilesforavirtualmachineshouldbeona
localharddriveonthehostcomputer.
Snapshot Files
Whenyoutakeasnapshotofavirtualmachinenamedvm,VMwareServerstoresthe
snapshotinafilenamedvm.vmsn.VMwareServerstoressnapshotinformationinfiles
namedvmSnapshotX.vmsnandinvmxxxxxx.vmdk.Formoreinformationabout
snapshots,seeTakingSnapshotsonpage 112.
Youcanchoosethelocationwherethesnapshotfilesarestored.Bydefault,thefilesare
storedinthesamedirectoryasthevirtualdisk(.vmdk)file.Youcanchangethelocation
ofthesnapshotfilesinthevirtualmachinesettingseditor.Withthevirtualmachine
poweredoff,chooseVM>Settings.ClicktheOptionstab,selectGeneral.Under
Workingdirectory,enterthenameorbrowsetothefolderinwhichthesnapshotfile
shouldbestored.
Youcanstorethesefilesinadifferentdirectorytoincreaseavailablespaceorimprove
performance.Forbestperformance,thelogfilesforavirtualmachineshouldbeona
localharddriveonthehostcomputer.
Lock Files
Arunningvirtualmachinecreateslockfilestopreventconsistencyproblemsonvirtual
disks.Ifthevirtualmachinedidnotuselocks,multiplevirtualmachinesmightread
andwritetothedisk,causingdatacorruption.
Lockfilesarealwayscreatedinthesamedirectoryasthe.vmdkfile.
ThelockingmethodsusedbyVMwareServeronMicrosoftWindowsandLinuxhosts
aredifferent,sofilessharedbetweenthemarenotfullyprotected.Ifyouuseacommon
filerepositorythatprovidesfilestousersonbothWindowsandLinuxhosts,besure
thateachvirtualmachineisrunbyonlyoneuseratatime.
124
VMware, Inc.
YoucanuseSCSIreservationtoworkaroundthelockfilesothatmultiplevirtual
machinescanaccessit.Thisistypicallydoneinconjunctionwithahighavailability
configuration,suchasclustering.Formoreinformationaboutthis,seeUsing
HighAvailabilityConfigurationsintheVMwareServerAdministrationGuide.
Whenavirtualmachineispoweredoff,itremovesthelockfilesitcreated.Ifitcannot
removethelock,astalelockfileisleftprotectingthe.vmdkfile.Forexample,ifthehost
machinecrashesbeforethevirtualmachinehasachancetoremoveitslockfile,astale
lockremains.
Ifastalelockfileremainswhenthevirtualmachineisstartedagain,thevirtualmachine
triestoremovethestalelock.Tomakesurethatnovirtualmachinecouldbeusingthe
lockfile,thevirtualmachinechecksthelockfiletoseewhether
1
Thelockwascreatedonthesamehostwherethevirtualmachineisrunning.
Theprocessthatcreatedthelockisnotrunning.
Ifthosetwoconditionsaretrue,thevirtualmachinecansafelyremovethestalelock.If
eitherofthoseconditionsisnottrue,adialogboxappears,warningyouthatthevirtual
machinecannotbepoweredon.Ifyouaresureitissafetodoso,youcandeletethelock
filesmanually.OnWindowshosts,thefilenamesofthelockfilesendin.lck.OnLinux
hosts,thefilenamesofthelockfilesendin.WRITELOCK.
Physicaldiskpartitionsarealsoprotectedbylocks.However,thehostoperating
systemisnotawareofthislockingconventionanddoesnotrespectit.Forthisreason,
VMwarestronglyrecommendsthatthephysicaldiskforavirtualmachinenotbe
installedonthesamephysicaldiskasthehostoperatingsystem.
VMware, Inc.
125
Forbestdiskperformance,youcantakethefollowingthreeactions,intheorderlisted:
1
Runadiskdefragmentationutilityinsidethevirtualmachine.
Poweroffthevirtualmachineanddefragmentitsvirtualdisksfromthevirtual
machinesettingseditor(VM>Settings).Selectthevirtualdiskyouwantto
defragment,andclickDefragment.
Runadiskdefragmentationutilityonthehostcomputer.
Defragmentingdiskscantakeconsiderabletime.
NOTE
Thedefragmentationprocessrequiresfreeworkingspaceonthehost
computersdisk.Ifyourvirtualdiskiscontainedinasinglefile,forexample,
youneedfreespaceequaltothesizeofthevirtualdiskfile.Othervirtualdisk
configurationsrequirelessfreespace.
Theshrinkprocessappliestoallvirtualdisksevenifyoudonotprepareall
thevirtualdisksinavirtualmachineforshrinking.
Shrinkingvirtualdisksisaconvenientwaytoconvertavirtualdisktotheformat
supportedbyVMwareServer.Virtualdiskscreatedinthenewformatcannotbe
recognizedbyVMwareGSXServer3oranyotherVMwareproduct,except
Workstation5.x.
Thevirtualdiskstobeshrunkmustnotbebootedasindependentdisks.Youcan
changethemodeofavirtualdiskbeforethevirtualmachineispoweredon.See
IndependentDisksonpage 121.
Shrinkingadiskisatwostepprocess.Inthefirststep,calledwiping,VMwareTools
reclaimsallunusedportionsofdiskpartitions(suchasdeletedfiles)andpreparesthem
126
VMware, Inc.
forshrinking.Thisallowsforthemaximumshrinkpossible.Wipingtakesplaceinthe
guestoperatingsystem.
Theshrinkprocessitselfisthesecondstep,andittakesplaceoutsidethevirtual
machine.VMwareServerreducesthesizeofthediskbasedonthediskspacereclaimed
bythewipeprocess.Thisstepoccursafterthewipefinishespreparingthediskfor
shrinking.
Whenavirtualmachineispoweredon,youshrinkitsvirtualdisksfromtheVMware
Toolscontrolpanel.Youcannotshrinkvirtualdisksifasnapshotexists.Toremovean
existingsnapshot,chooseSnapshot>RemoveSnapshot.
InaLinuxorFreeBSDguestoperatingsystem,topreparevirtualdisksforshrinking,
youshouldrunVMwareToolsastherootuser.Thisway,youensurethewholevirtual
diskisshrunk.Ifyoushrinkdisksasanonrootuser,youcannotwipethepartsofthe
virtualdiskthatrequirerootlevelpermissions.
1
TolaunchthecontrolpanelinaWindowsguest,doubleclicktheVMwareTools
iconinthesystemtrayorchooseStart>Settings>ControlPanel,anddoubleclick
VMwareTools.
TolaunchthecontrolpanelinaLinuxorFreeBSDguest,becomeroot(su -),and
runvmware-toolbox.
ClicktheShrinktab.
Selectthevirtualdisksyouwanttoshrink,thenclickPreparetoShrink.
NOTE
Ifyoudeselectsomeofthepartitionstopreparetoshrink,theentiredisk
isstillshrunk.However,thosepartitionsarenotpreparedforshrinking,
andtheshrinkprocessdoesnotreducethesizeofthevirtualdiskasmuch
asitcouldotherwise.
WhenVMwareToolsfinishespreparingtheselecteddiskpartitions,youare
promptedtobeginshrinkingthedisks.
Shrinkingdiskscantakeconsiderabletime.
Insomeconfigurations,itisnotpossibletoshrinkvirtualdisks.TheShrinktab
displaysinformationexplainingwhyyoucannotshrinkyourvirtualdisks.For
example,youcannotshrinkavirtualdiskif:
!
Youpreallocateddiskspacewhenyoucreatedthedisk,whichisthedefaultoption
forbothtypicalandcustomvirtualmachinecreationpaths.
Thevirtualmachinehasasnapshot.
Thevirtualmachinecontainsphysical(raw)disks.
VMware, Inc.
127
Thevirtualdiskisnotanindependentdiskinpersistentmode.Formore
information,seeIndependentDisksonpage 121.
ThevirtualdiskisstoredonaCDROM.
ConfiguringVirtualDVD/CDROMDrivesonpage 128
ConfiguringVirtualFloppyDrivesonpage 130
128
ConnecttothevirtualmachinewiththeVMwareServerConsole.
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
OntheHardwaretab,selecttheCDROMdrive.Youcanmakeanyofthe
followingchanges.
!
ChoosingaDeviceNodefortheDVD/CDROMDriveonpage 129
UsingLegacyEmulationforDVD/CDROMDrivesonpage 129
ExclusivelyUsingtheDVD/CDROMDriveonpage 130
VMware, Inc.
UsingtheDVD/CDROMDriveonaClientonpage 130
ClickOKtosaveyourchangesandclosethevirtualmachinesettingseditor.
VMware, Inc.
129
drivesandtheirdriversdonotworkcorrectlyinrawmode.SelectLegacyemulation
toworkaroundtheseproblems.
Whenyoufirstbeginbootingtheguestoperatingsystem,presstheEsckey.Aboot
menuappears.
Intheconsole,openthevirtualmachinesettingseditor(VM>Settings)andselect
theCDROMdrive.SelectUsephysicaldriveandnexttoLocation,selectClient.
SelecttheCDROMdrive,PressEntertobootthevirtualmachinefromthe
CDROMdriveoftheclientonwhichyouarerunningtheVMwareServer
Console.
130
VMware, Inc.
ConnecttothevirtualmachinewiththeVMwareServerConsole.
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
OntheHardwaretab,selectthefloppydrive.
Toconnectthisvirtualmachinetothefloppydrivewhenthevirtualmachineis
poweredon,checkConnectatPowerOn.
Specifywhethertoconnecttothehostsfloppydriveortoafloppyimage.
IfyouselectUsephysicaldrive,choosethedrivefromthelistorselectAutodetect
toletVMwareServerchoosethedrive.
fyouselectUsefloppyImage,createaneworbrowsetoanexistingfloppyimage.
NOTE
Thebenefitofautodetectdevicesisthatyoucanmovethembetweenvirtual
machinesrunningdifferentguestoperatingsystems,suchasWindowsand
Linux,withouthavingtoreconfigurethem.
ClickOKtosaveyourchangesandclosethevirtualmachinesettingseditor.
AddingVirtualDiskstoaVirtualMachineonpage 132
AddingPhysicalDiskstoaVirtualMachineonpage 134
AddingDVD/CDROMDrivestoaVirtualMachineonpage 137
AddingFloppyDrivestoaVirtualMachineonpage 138
VMware, Inc.
131
IfyouhaveaWindowsNT4.0guestwithaSCSIvirtualdisk,youcannotadd
bothanadditionalSCSIdiskandanIDEdisktotheconfiguration.
Openthevirtualmachinesettingseditor(VM>Settings)andclickAdd.TheAdd
HardwareWizardguidesyouthroughthestepstocreateyourvirtualdisk.Click
Nexttostartconfiguringthevirtualdisk.
ClickHardDisk,andclickNext.
SelectCreateanewvirtualdisk,andclickNext.
Choosethetypeofvirtualdisk.TheWizardrecommendswhethertouseSCSIor
IDE,basedontheguestoperatingsysteminstalledinthevirtualmachine.
Setthecapacityforthenewvirtualdisk.
Youcansetasizebetween0.1GB(100MB)and950GBforaSCSIvirtualdiskor
950GBforanIDEvirtualdisk.Thedefaultis8GB.
Bydefault,Allocatealldiskspacenowischecked.
Allocatingallthespaceatthetimeyoucreatethevirtualdiskgivessomewhat
betterperformance,butitrequiresasmuchdiskspaceasthesizeyouspecifyfor
thevirtualdisk.
Apreallocatedvirtualdiskisusefulforclusteringvirtualmachines.Formore
informationaboutclustering,seeUsingHighAvailabilityConfigurationsinthe
VMwareServerAdministrationGuide.
Ifyoudeselectthisoption,thevirtualdisksfilesstartsmallandgrowasneeded,
buttheycannevergrowlargerthanthesizeyousethere.
Youcanalsospecifywhetherthevirtualdiskiscreatedasonelargefileorsplitinto
asetof2GBfiles.Tosplitthedisk,selectSplitdiskinto2GBfiles.Youshouldsplit
132
VMware, Inc.
thevirtualdiskifitisstoredonaFAT32filesystemoronafilesystemthatcannot
supportfileslargerthan2GB,suchasFAT16.
6
Acceptthedefaultfilenameandlocationforthevirtualdiskfile,orchangeitifyou
wanttouseadifferentnameorlocation.Tofindadifferentfolder,clickBrowse.
Ifyouwanttospecifyadevicenodeforyourvirtualdisk,clickAdvanced.
Ontheadvancedsettingsscreen,youcanalsospecifyadiskmode.Thisisuseful
incertainspecialpurposeconfigurationsinwhichyouwanttoexcludedisksfrom
thesnapshot.Formoreinformationonsnapshots,seeTakingSnapshotson
page 112.Youcanchoosebetweenanormaldiskandanindependentdisk.
Normaldisksareincludedinsnapshots.Thisisthedefaultsettingforanewdisk.
Independentdisksarenotincludedinsnapshots.IfyouselectIndependent,you
mustfurtherselectoneofthefollowingmodes:
!
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.
Nonpersistentchangestothediskarediscardedwhenyoupoweroffor
reverttothesnapshot.
Whenyouhavesetthefilenameandlocationandhavemadeanyselectionsonthe
advancedsettingsscreen,clickFinish.
7
TheWizardcreatesthenewvirtualdisk.Itappearstoyourguestoperatingsystem
asanew,blankharddisk.Usetheguestoperatingsystemstoolstopartitionand
formatthenewdrive.
Openthevirtualmachinesettingseditor(VM>Settings)andclickAdd.TheAdd
HardwareWizardguidesyouthroughthestepstocreateyourvirtualdisk.Click
Nexttostartconfiguringthevirtualdisk.
ClickHardDisk,andthenclickNext.
SelectUseanexistingvirtualdisk,andthenclickNext.
ClickBrowse,andthenbrowsetothevirtualdisk(.vmdk)youwanttouse.
Toassociatethevirtualdiskwithaspecificdevicenode,clickAdvancedandselect
thedevicenodeintheVirtualdevicenodelist.
Ontheadvancedsettingsscreen,youcanalsospecifyadiskmode.Thisisuseful
incertainspecialpurposeconfigurationsinwhichyouwanttoexcludedisksfrom
thesnapshot.Formoreinformationonthesnapshotfeature,seeTaking
VMware, Inc.
133
Snapshotsonpage 112.Youcanchoosebetweenanormaldiskandan
independentdisk.
Normaldisksareincludedinsnapshots.Thisisthedefaultsettingforanewdisk.
Independentdisksarenotincludedinsnapshots.IfyouselectIndependent,you
mustfurtherselectoneofthefollowingmodes:
!
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.
Nonpersistentchangestothediskarediscardedwhenyoupoweroffor
reverttothesnapshot.
Whenyouhavesetthefilenameandlocationtouseandhavemadeanyselections
ontheadvancedsettingsscreen,clickFinish.TheWizardaddsthevirtualdiskto
thevirtualmachine.
134
Physicaldisksareanadvancedfeatureandshouldbeconfiguredonlyby
advancedusers.
Openthevirtualmachinesettingseditor(VM>Settings)andclickAdd.TheAdd
HardwareWizardguidesyouthroughthestepstocreateyourvirtualdisk.
ClickHardDisk,andclickNext.TheSelectaDiskscreenappears.
VMware, Inc.
SelectUseaphysicaldisk,andclickNext.TheSelectaPhysicalDiskscreen
appears.
Choosethephysicalharddisktousefromthedropdownlist.Thenselectwhether
usetheentirediskoruseonlyindividualpartitionsonthedisk.
!
Tousetheentiredisk,selectUseentiredisk,thenclickNext.
Tousespecificpartitionsonthedisk,selectUseindividualpartitions,and
thenclickNext.TheSelectPartitionscreenappears.
Selectwhichpartitionstouseinthevirtualmachine.Onlythepartitionsyou
selectinthissteparevisibletothevirtualmachine.Allotherpartitionsare
hiddenfromit.
ClickNext.
VMware, Inc.
135
TheSpecifyDiskFilescreenappears.
Tochangethedefaultfilenameandlocationforthefilethatstoresaccess
informationforthisphysicaldisk,clickBrowse.
ClickAdvancedtospecifythevirtualmachineSCSIorIDEdevicenodetowhich
thisdiskisconnected.
Ontheadvancedsettingsscreen,youcanalsospecifyadiskmode.Thisisuseful
incertainspecialpurposeconfigurationsinwhichyouwanttoexcludedisksfrom
thesnapshot.Formoreinformationonthesnapshotfeature,seeTaking
Snapshotsonpage 112.Youcanchoosebetweenanormaldiskandan
independentdisk.
Normaldisksareincludedinsnapshots.Thisisthedefaultsettingforanewdisk.
Independentdisksarenotincludedinsnapshots.IfyouselectIndependent,you
mustalsoselectamode:
!
Persistentchangesareimmediatelyandpermanentlywrittentothedisk.
Nonpersistentchangestothediskarediscardedwhenyoupoweroffor
reverttothesnapshot.
Whenyouhavesetthefilenameandlocationtouseandhavemadeanyselections
ontheadvancedsettingsscreen,clickFinish.
136
VMware, Inc.
TheWizardconfiguresthenewphysicaldisk.Ifthepartitionsusedonthephysical
diskarenotformattedforyourguestoperatingsystem,usetheguestoperating
systemstoolstoformatthem.
NOTE
Afteryoucreateaphysicaldiskusingoneormorepartitionsonaphysical
disk,youshouldnevermodifythepartitiontablesbyrunningfdiskora
similarutilityintheguestoperatingsystem.Ifyouusefdiskorasimilar
utilityonthehostoperatingsystemtomodifythepartitiontableofthe
physicaldisk,youmustrecreatethevirtualmachinesphysicaldisk.
Openthevirtualmachinesettingseditor(VM>Settings)andclickAddtostartthe
AddHardwareWizard.
ClickDVD/CDROMDrive,andthenclickNext.
SelectUsephysicaldrivetoconnectthevirtualmachinesdrivetoaphysicaldrive
onthehostcomputer.SelectUseISOImagetoconnectthevirtualmachinesdrive
toanISOimagefile.
Dooneofthefollowing:
!
VMware, Inc.
IfyouselectedUsephysicaldrive,choosethedrivetousefromthe
dropdownlistorchooseAutodetect,whichletsVMwareServerselectthe
drive.
ThedefaultisAutodetect.
137
NOTE
ThebenefitofusingAutodetectdevicesisthattheycanbemoved
betweenvirtualmachinesrunningdifferentoperatingsystems,suchas
WindowsandLinux,withouthavingtobereconfigured.
IfyoudonotwanttheCDROMdriveconnectedwhenthevirtualmachine
starts,uncheckConnectatpoweron.
ClickAdvancedtospecifythedevicenodethedriveshoulduseinthevirtual
machine.
OntheadvancedsettingsscreenyoucanalsoselectLegacyemulation.Thisis
necessaryonlyifyouhavehadproblemsusingnormalmode.Thelegacy
emulationmodedoesnotsupportallthecapabilitiesofnormalmode.For
example,ifyouareusinglegacyemulationmode,youcannotrecordCDs,you
cannotreadmultisessionCDs,youcannotextractdigitalaudiofromaCD,
andyoucannotreadorwriteDVDs.Fordetails,seeUsingLegacyEmulation
forDVD/CDROMDrivesonpage 129.
Afteryouhavemadeanydesiredchangesinthesesettings,clickFinish.
!
IfyouselectedUseISOImage,enterthepathandfilenamefortheimagefile
orclickBrowsetonavigatetothefile.
IfyoudonotwanttheCDROMdriveconnectedwhenthevirtualmachine
starts,uncheckConnectatpoweron.
ClickAdvancedtospecifythedevicenodethedriveshoulduseinthevirtual
machine.
Afteryouhavemadeanydesiredchangesinthesesettings,clickFinish.
ThedriveissetupinitiallysoitappearstotheguestoperatingsystemasanIDE
drive.IfyouwantittoappeartotheguestoperatingsystemasaSCSIdrive,click
thedrivesentryinthevirtualmachinesettingseditorandmakethechange.
138
Openthevirtualmachinesettingseditor(VM>Settings)andclickAddtostartthe
AddHardwareWizard.
ClickFloppyDrive,andclickNext.
VMware, Inc.
Selectwhatyouwanttoconnecttoaphysicalfloppydriveonthehost
computer,anexistingfloppyimagefile,oranewfloppyimagefile.ClickNext.
IfyouselectedUseaphysicalfloppydrive,choosethedrivesletter(ona
Windowshost)ordevicename(onaLinuxhost)fromthedropdownlistorchoose
AutodetecttoletVMwareServerselectthedrivetouse.ClickFinish.
Thebenefitofautodetectdevicesisthatyoucanmovethembetweenvirtual
machinesthatusedifferentoperatingsystems,suchasWindowsandLinux,
withouthavingtoreconfigurethem.
IfyouselectedUseafloppyimage,typethepathandfilenameforthefloppy
imagefileyouwanttouse,orclickBrowsetonavigatetothefile.ClickFinish.
IfyouselectedCreateablankfloppyimage,usethedefaultpathandfilenameor
typeinanewone.Tonavigatetoalocation,clickBrowse.Whenthefieldcontains
thepathandfilenameyouwanttouseforthenewfloppyimagefile,clickFinish.
NOTE
Bydefault,onlyonefloppydriveisenabledinthevirtualmachinesBIOS.If
youareaddingasecondfloppydrivetothevirtualmachine,clickinsidethe
virtualmachinewindowandpressF2asthevirtualmachinebootstoenterthe
BIOSsetuputility.Onthemainscreen,chooseLegacyDisketteB:andusethe
plus(+)andminus()keysonthenumericalkeypadtoselectthetypeof
floppydriveyouwanttouse.PressF10tosaveyourchangesandclosethe
BIOSsetuputility.
VMware, Inc.
139
Youcanusethevirtualdiskmanagerto:
!
Automatethemanagementofvirtualdiskswithscripts.
Createvirtualdisksthatarenotassociatedwithaparticularvirtualmachine,tobe
usedfortemplates,forexample.
Switchthevirtualdisktypefrompreallocatedtogrowable,orviceversa.When
changingthedisktypetogrowable,somespaceonthevirtualdiskisreclaimed.
Youcanshrinkthevirtualdisktoreclaimevenmorediskspace.
Expandthesizeofavirtualdisksoitislargerthanthesizespecifiedwhenyou
createdit.
Defragmentvirtualdisks.
Prepareandshrinkvirtualdiskswithoutpoweringonthevirtualmachine
(Windowshostsonly).
Renameandmovevirtualdisks.
Youcannotusethevirtualdiskmanagertocreatephysical(raw)disks.Youcannot
shrinkphysicaldisksatall.
Thefollowingsectionsprovidemoreinformationaboutthevirtualdiskmanager:
!
RunningtheVMwareVirtualDiskManagerUtilityonpage 140
ShrinkingVirtualDiskswithVMwareVirtualDiskManageronpage 143
ExamplesUsingtheVMwareVirtualDiskManageronpage 144
140
VMware, Inc.
Table 6-1.
Options/Parameters
Description
<diskname>
Isthenameofthevirtualdiskfile.Thevirtualdiskfilemust
havea.vmdkextension.
Youcanspecifyapathtowhereyouwanttolocatethedisk.If
youmappednetworksharesonyourhost,youcancreatethe
virtualdisktherebyprovidingthecorrectpathinformation
withthediskfilename.
-c
Createsthevirtualdisk.Youmustusethe-a,-sand-t
options,andyoumustspecifythenameofthevirtualdisk
(<diskname>).
-r <sourcediskname>
<targetdiskname>
Convertsthevirtualdiskspecifiedby<sourcediskname>,
creatinganewvirtualdiskasaresult.Youmustusethe-t
optiontospecifythedisktypetowhichthevirtualdiskis
convertedandyoumustspecifythenameofthetargetvirtual
disk(<targetdiskname>).
Aftertheconversioniscompletedandyouhavetestedthe
convertedvirtualdisktomakesureitworksasexpected,you
candeletetheoriginalvirtualdiskfile.
Tohavethevirtualmachinerecognizetheconvertedvirtual
disk,usethevirtualmachinesettingseditortoremovethe
existingvirtualdiskfromthevirtualmachine.Addthe
converteddisktothevirtualmachine.Forinformationon
addingvirtualdiskstoavirtualmachine,seeAddingVirtual
DiskstoaVirtualMachineonpage 132.
-x <n>[GB|MB]
<diskname>
Expandsthevirtualdisktothespecifiedcapacity.Youmust
specifythenew,largersizeofthevirtualdiskinGigabytesor
Megabytes.Youcannotchangethesizeofaphysical(raw)
disk.
Caution:Beforerunningthevirtualdiskmanagerutility,you
shouldbackupyourvirtualdiskfiles.
Note:Ifthevirtualdiskispartitioned,youmustusea
thirdpartyutilityinthevirtualmachinetoexpandthesizeof
thepartitions.Formoreinformation,seeVMwareknowledge
basearticle1647at
www.vmware.com/support/kb/enduser/std_adp.php?p_fa
qid=1647.
Ifyouhaveavirtualmachinewithasnapshotoraredolog
filestoredinadifferentdirectory,donotusethevirtualdisk
managertoexpandthevirtualdiskuntilyouremovethe
snapshotorcommittheredologfile.Otherwise,youmight
notbeabletopoweronthevirtualmachine.
VMware, Inc.
141
Table 6-1.
Options/Parameters
Description
-n <sourcediskname>
<targetdiskname>
Renamesthevirtualdiskspecifiedby<sourcediskname>.You
mustspecifythenameofthetargetvirtualdisk
(<targetdiskname>).Byprovidingdirectorypaths,youcan
renamethediskandplaceitinadifferentdirectoryorplace
thediskwiththesamenameinadifferentdirectory.
Beforeyourenamethevirtualdiskorchangethedirectoryin
whichitislocated,youshouldremovethevirtualdiskfrom
anyvirtualmachinethatcontainsthedisk.ChooseVM>
Settings><virtualdisk>,thenclickRemove.Ifthisvirtual
machinehasasnapshotoraredologstoredinadifferent
directory,removethesnapshotorcommittheredolog.
Otherwise,youmaynotbeabletopoweronthevirtual
machine.
Afteryourenameorrelocatethevirtualdisk,additbackto
anyvirtualmachinesthatuseit.ChooseVM>Settings,click
Add,thenfollowtheWizardtoaddthisexistingvirtualdisk.
-d <diskname>
Defragmentsthespecifiedvirtualdisk.Youcandefragment
onlygrowablevirtualdisks.Youcannotdefragment
preallocatedvirtualdisks.
-p <mountpoint>
Preparesavirtualdiskforshrinking.Ifthevirtualdiskis
partitionedintovolumes,eachvolumemustbeprepared
separately.ThevolumemustbemountedbyVMware
DiskMountat<mountpoint>.Afteryoupreparethevolume,
unmountitwithVMwareDiskMount.Continuemounting
eachvolumeofthevirtualdiskandpreparingitforshrinking
untilyoucompletethisprocessforallthevolumesofthe
virtualdisk.
Youcanmountonlyonevolumeofavirtualdiskatatime
withVMwareDiskMount.Youcanpreparevolumesof
virtualdisksforshrinkingononlyonWindowshosts.
-k <diskname>
Shrinksthespecifiedvirtualdisk.Youcanshrinkonly
growablevirtualdisks.Youcanshrinkvirtualdisksonlyon
Windowshosts.
Youcannotshrinkavirtualdiskifthevirtualmachinehasa
snapshot.Tokeepthevirtualdiskinitscurrentstate,remove
thesnapshot.Todiscardchangesmadesinceyoutookthe
snapshot,reverttothesnapshot.
-a
[ide|buslogic|lsilogi
c]
142
Specifiesthediskadaptertype.Youmustspecifyanadapter
typewhencreatinganewvirtualdisk.Chooseoneofthe
followingtypes:
!
ideforanIDEadapter.
buslogicforaBusLogicSCSIadapter.
lsilogicforanLSILogicSCSIadapter.
VMware, Inc.
Table 6-1.
Options/Parameters
Description
-s <n>[GB|MB]
Specifiesthesizeofthevirtualdisk.Specifywhetherthesize
<n>isingigabytesormegabytes.Youmustspecifythesizeof
avirtualdiskwhenyoucreateit.
Eventhoughyoumustspecifythesizeofavirtualdiskwhen
youexpandit,youdonotusethe-soptionatthattime.
-t [0|1|2|3]
Youmustspecifythetypeofvirtualdiskwhenyoucreatea
newoneorreconfigureanexistingone.Specifyoneofthe
followingdisktypes:
0tocreateasingle,growablevirtualdisk.
1tocreateagrowablevirtualdisksplitinto2GBfiles.
2tocreateapreallocatedvirtualdiskcontainedinasingle
virtualdiskfile.
3tocreateapreallocatedvirtualdisksplitinto2GBfiles.
-q
Disablesvirtualdiskmanagerlogging.
Ifyoukeeploggingenabled,messagesgeneratedbythe
virtualdiskmanagerarestoredinalogfile.Thenameand
locationofthelogfileappearintheterminalafterthevirtual
diskmanagercommandisrun.
Youcannotshrinkavirtualdiskifthevirtualmachinehasasnapshot.To
keepthevirtualdiskinitscurrentstate,removethesnapshot.Todiscard
changesmadeafteryoutookthesnapshot,reverttothesnapshot.
Youmustprepareeachvolumeofthevirtualdiskforshrinkingbeforeyoucanshrink
thedisk.Toprepareavolumeforshrinking,youmustfirstmountit.Tomountthe
volume,usetheVMwareDiskMountUtility,availablewithVMwareServer.Formore
information,seeAppendix:MountingVirtualDisksintheVMwareServer
AdministrationGuide.
VMware, Inc.
143
VMwareDiskMountmountsindividualvolumesofavirtualdisk.Foroptimal
shrinkingofavirtualdisk,youshouldmountallthevolumesandpreparethemfor
shrinking.
Afteryoumountavirtualdiskvolume,usethevirtualdiskmanagertopreparethe
volumeforshrinking.Afteryouprepareavolume,unmountit,andrepeattheprocess
foreachvolumeofthevirtualdisk.Afteryouprepareallthevolumesofthevirtual
disk,youcanshrinkthevirtualdisk.Forexamples,seePreparingaVirtualDiskfor
Shrinkingonpage 145andShrinkingaVirtualDiskonpage 146.
144
VMware, Inc.
ThepathsusedintheseexamplesassumeaMicrosoftWindowshost.
Tolocatethediskinadifferentdirectorybutkeepthesamename,use:
vmware-vdiskmanager -n myDisk.vmdk ..\<new>\<path>\myDisk.vmdk
Afteryourenameorrelocatethevirtualdisk,additbacktoanyvirtualmachinesthat
useit.ChooseVM>Settings,clickAdd.FollowtheWizardtoaddthisexistingvirtual
disk.
VMware, Inc.
145
YoucannotuseaphysicaldiskthatisstoredonaSAN.Youmustusea
diskorapartitionontheVMwareServerhost.Physicaldisksarean
advancedfeatureandshouldbeconfiguredonlybyadvancedusers.
VMwareServerusesdescriptionfilestocontrolaccesstoeachphysicaldiskonthe
system.Thesedescriptionfilescontainaccessprivilegeinformationthatcontrolsa
virtualmachinesaccesstocertainpartitionsonthedisks.Thismechanismprevents
usersfromaccidentallyrunningthehostoperatingsystemagainasaguestorrunning
aguestoperatingsystemthatthevirtualmachineisnotconfiguredtouse.The
descriptionfilealsopreventsaccidentalwritestophysicaldiskpartitionsfrombadly
behavedoperatingsystemsorapplications.
UsetheNewVirtualMachineWizardtoconfigureavirtualmachinetouseexisting
physicaldiskpartitions.TheWizardguidesyouthoughcreatinganewvirtual
machine,includingconfiguringthephysicaldiskdescriptionfiles.ReruntheWizardto
createaseparateconfigurationforeachguestoperatingsysteminstalledonaraw
partition.
146
VMware, Inc.
NOTE
Whileinstallingtheguestoperatingsystemonaphysicaldisk,ifyourvirtual
machinedoesnotbootfromtheCDROM,trychangingthebootorderinthe
virtualmachinesBIOS.Restartthevirtualmachine,andpressF2whilethe
virtualmachineisbootingtoentertheBIOS.Changethebootorderthere.
ReadthesectionappropriatetoyourVMwareServerhostoperatingsystem.
!
ConfiguringaWindowsHostonpage 147
ConfiguringaLinuxHostonpage 149
IfyouuseaWindowshostsIDEdiskinaphysicaldiskconfiguration,it
cannotbeconfiguredastheslaveonthesecondaryIDEchannelifthemaster
onthatchannelisaCDROMdrive.
Identifytherawpartitiononwhichyouplantoinstalltheguestoperatingsystem.
Checktheguestoperatingsystemdocumentationregardingthetypeofpartition
onwhichtheoperatingsystemcanbeinstalled.Forexample,operatingsystems
likeDOS,Windows95,andWindows98mustbeinstalledonthefirstprimary
partitionwhileothers,likeLinux,canbeinstalledonaprimaryorextended
partitiononanypartofthedrive.
Identifyanappropriaterawpartitionordiskfortheguestoperatingsystemtouse.
BesurethattherawpartitionisnotmountedbytheWindowshostandnotinuse
byothers.Also,besuretherawpartitionordiskdoesnothavedatayouwillneed
inthefuture;ifitdoes,backupthatdatanow.
StarttheNewVirtualMachineWizard(File>New>VirtualMachine)andselect
Custom.
VMware, Inc.
147
WhenyoureachtheSelectaDiskstep,selectUseaphysicaldisk.
Choosethephysicalharddisktousefromthedropdownlist.Selectwhetherto
usetheentirediskoruseonlyindividualpartitionsonthedisk.ClickNext.
IfyouselectedUseindividualpartitionsinthepreviousstep,selectwhich
partitionsyouwanttouseinthevirtualmachine.IfyouselectedUseentiredisk,
thisstepdoesnotappear.
ClickNext.
6
148
Thepartitiononwhichyouareinstallingtheguestoperatingsystemshouldbe
unmappedinthehost.
VMware, Inc.
CAUTION
Corruptionispossibleifyouallowthevirtualmachinetomodifya
partitionthatissimultaneouslymountedunderWindows.Sincethe
virtualmachineandguestoperatingsystemaccessaphysicaldisk
partitionwhilethehostcontinuestorunWindows,itiscriticalthat
younotallowthevirtualmachinetomodifyanypartitionmounted
bythehostorinusebyanothervirtualmachine.Tosafeguard
againstthisproblem,besurethephysicaldiskpartitionyouusefor
thevirtualmachineisnotinusebythehost.
UseDiskManagement(Start>Settings>ControlPanel>AdministrativeTools>
ComputerManagement>Storage>DiskManagement).Selectthepartitionyou
wanttounmap.ChooseAction>AllTasks>ChangeDriveLetterandPath.Click
Remove.
7
Usethevirtualmachinesettingseditor(VM>Settings)tochangeany
configurationoptionsfromtheWizarddefaultsforexample,tochangethe
amountofmemoryallocatedtothevirtualmachine.
Atthispointyouarereadytobegininstallingtheguestoperatingsystemontothe
physicaldiskyouconfiguredforthevirtualmachine.Formoredetails,readthe
installationnotesforvariousguestoperatingsystemsintheVMwareGuest
OperatingSystemInstallationGuide,availablefromtheVMwareWebsite.
Identifytherawpartitiononwhichtoinstalltheguestoperatingsystem.
Checktheguestoperatingsystemdocumentationregardingthetypeofpartition
onwhichtheoperatingsystemcanbeinstalled.Forexample,operatingsystems
likeDOS,Windows95,andWindows98mustbeinstalledonthefirstprimary
partitionwhileothers,likeLinux,canbeinstalledonaprimaryorextended
partitiononanypartofthedrive.
Identifyanappropriaterawpartitionordiskfortheguestoperatingsystemtouse.
CheckthattherawpartitionisnotmountedbytheLinuxhostandnotinuseby
others.Also,besuretherawpartitionordiskdoesnothavedatayouwillneedin
thefuture;ifitdoes,backupthatdatanow.
Checktheoperatingsystempartitionmounts.Besuretheexistingdiskpartitions
thatyouplantouseinthevirtualmachinearenotmountedbyLinux.
Setthedevicegroupmembershipordeviceownership.
Themasterphysicaldiskdeviceordevicesneedtobereadableandwritablebythe
userwhorunsVMwareServer.Onmostdistributions,therawdevices,suchas
VMware, Inc.
149
/dev/hda(IDEphysicaldisk)and/dev/sdb(SCSIphysicaldisk)belongtogroupID
disk.Ifthisisthecase,youcanaddVMwareServeruserstothediskgroup.
Anotheroptionistochangetheownerofthedevice.Thinkcarefullyaboutsecurity
issueswhenyouexploredifferentoptionshere.
VMwarerecommendsgrantingVMwareServerusersaccesstoall/dev/hd[abcd]
rawdevicesthatcontainoperatingsystemsorbootmanagersratherthantorelyon
VMwareServersphysicaldiskconfigurationfilestoguardaccess.Thisprovides
bootmanagersaccesstoconfigurationandotherfilestheymightneedtobootthe
operatingsystems.Forexample,LILOneedstoread/bootonaLinuxpartitionto
bootanonLinuxoperatingsystemthatmightbeonanotherdrive.
4
StarttheNewVirtualMachineWizard(File>New>VirtualMachine)andselect
Custom.
WhenyoureachtheSelectaDiskstep,selectUseaphysicaldisk.
Ifthephysicaldiskyouplantousealreadyhasmultiplepartitions,certain
operatingsystems(DOS,Windows95,Windows98)mustbeinstalledonthefirst
primarypartition.
CAUTION
Corruptionispossibleifyouallowthevirtualmachinetomodifya
partitionthatissimultaneouslymountedundertheLinuxhost
operatingsystem.
Becausethevirtualmachineandguestoperatingsystemaccessan
existingpartitionwhilethehostcontinuestorunLinux,itiscritical
thatthevirtualmachinenotbeallowedtomodifyanypartition
mountedbythehostorinusebyanothervirtualmachine.
Tosafeguardagainstthisproblem,besurethepartitionyouuseforthevirtual
machineisnotmountedundertheLinuxhost.
7
Atthispointyouarereadytobegininstallingtheguestoperatingsystemonthe
physicaldiskyouconfiguredforthevirtualmachine.Formoredetails,readthe
installationnotesforvariousguestoperatingsystemsintheVMwareGuest
OperatingSystemInstallationGuide,availablefromtheVMwareWebsite.
150
VMware, Inc.
hostcomputers.TheI/Oissueisespeciallynoticeablewhenthevirtualmachineis
booting.
NOTE
PerformanceinWindowsNTguestoperatingsystemsmightalsobeaffected
bydiskfragmentationonthehostcomputer.Fordetails,seeConfiguringand
MaintainingtheHostComputer.
Improving Performance
YoucanincreaseperformancebyenablingDMA(directmemoryaccess)onthevirtual
harddisksIDEchannelinthevirtualmachine.
IfyouhaveavirtualdiskandaDVD/CDROMattachedasmasterandslavetothe
primaryIDEcontroller(channel0)andyouwanttoenableDMA,poweroffthevirtual
machineandusethevirtualmachinesettingseditor(VM>Settings)tomovethe
DVD/CDROMdrivetothesecondaryIDEcontroller(channel1)atIDE1:0.
YoucanenabletheDMAfeatureafteryoufinishinstallingWindowsNT.Youmust
installServicePack3orhigherinthevirtualmachinetoenablethisoption.
AfterthevirtualmachineisrunningWindowsNT,insertanSP3orSP4CDinthedrive
andrunDMACHECK.EXEfromthe\SUPPORT\UTILS\I386folderontheCD.Ordownload
DMACHECK.EXEfromtheMicrosoftWebsite
(support.microsoft.com/support/kb/articles/Q191/7/74.ASP).
ClicktheEnabledoptionfortheIDEcontrollerandchannelconfiguredforthevirtual
disk.Typically,thisischannel0only,unlessyouhavethevirtualmachineconfigured
withmultiplevirtualdisksandnovirtualDVD/CDROMdrive.
Asnotedabove,youshouldnotenableDMAonanIDEchannelwithavirtual
DVD/CDROMdriveattached.
VMware, Inc.
151
152
VMware, Inc.
C HAPTER 7
Networking
Thischapterdescribeshowtousevirtualnetworkingcomponentstocreateawide
rangeofconfigurationsandcoversthefollowingtopics:
!
ComponentsoftheVirtualNetworkonpage 153
CommonNetworkingConfigurationsonpage 155
CustomNetworkingConfigurationsonpage 159
ChangingtheNetworkingConfigurationonpage 162
AdvancedNetworkingTopicsonpage 171
UnderstandingNATonpage 190
UsingSambaforFileSharingonaLinuxHostonpage 201
WhenyoucreateavirtualmachinewiththeNewVirtualMachineWizard,youcan
chooseanyofthecommonconfigurationsbridgednetworking,networkaddress
translation(NAT),andhostonlynetworking.TheWizardconnectsthevirtualmachine
totheappropriatevirtualnetwork.
Youcansetupmorespecializedconfigurationsbychoosingtheappropriatesettingsin
thevirtualmachinesettingseditor,intheVirtualNetworkEditor(onMicrosoft
Windowshosts)andonyourhostcomputer.
OnaWindowshost,thesoftwareneededforallnetworkingconfigurationsisinstalled
whenyouinstallVMwareServer.OnaLinuxhost,allcomponentsareavailableifyou
choosetohavebothbridgedandhostonlynetworkingavailabletoyourvirtual
machinesatthetimeyouinstallVMwareServer.
VMware, Inc.
153
Severaloftheswitchesandthenetworksassociatedwiththemare,bydefault,usedfor
specialnamedconfigurations.ThebridgednetworknormallyusesVMnet0.The
hostonlynetworkusesVMnet1bydefault.TheNATnetworkusesVMnet8bydefault.
TheotheravailablenetworksarenamedVMnet2,VMnet3,VMnet4,andsoon.
Youconnectavirtualmachinetoaswitchbyselectingthevirtualnetworkadapterto
connectinthevirtualmachinesettingseditor,andconfiguringittousethevirtual
network.
Bridge ThebridgeletsyouconnectyourvirtualmachinetotheLANusedbyyour
hostcomputer.Itconnectsthevirtualnetworkadapterinyourvirtualmachinetothe
physicalEthernetadapterinyourhostcomputer.
ThebridgeisinstalledduringVMwareServerinstallation(onaLinuxhost,youmust
choosetomakebridgednetworkingavailabletoyourvirtualmachines).Itissetup
whenyoucreateanewvirtualmachineusingbridgednetworking.
Youcansetupadditionalvirtualbridgestouseincustomconfigurationsthatrequire
connectionstomorethanonephysicalEthernetadapteronthehostcomputer.
Host virtual adapter ThehostvirtualadapterisavirtualEthernetadapterthat
appearstoyourhostoperatingsystemasaVMwarevirtualEthernetadapterona
WindowshostandasahostonlyinterfaceonaLinuxhost.Itallowsyouto
communicatebetweenyourhostcomputerandthevirtualmachinesonthathost
computer.ThehostvirtualadapterisusedinhostonlyandNATconfigurations.
Thehostvirtualadapterisnotconnectedtoanyexternalnetworkunlessyousetup
specialsoftwareonthehostcomputeraproxyserver,forexampletoconnectthe
hostonlyadaptertothephysicalnetworkadapter.
ThesoftwarethatcreatesthehostvirtualadapterisinstalledwhenyouinstallVMware
Server(onaLinuxhost,youmustchoosetomakehostonlynetworkingavailableto
yourvirtualmachines).Ahostvirtualadapteriscreatedwhenyoubootthehost
computer.
Youcansetupadditionalhostvirtualadaptersasneeded.
NAT device TheNAT(networkaddresstranslation)deviceallowsyoutoconnect
yourvirtualmachinestoanexternalnetworkwhenyouhaveonlyoneIPnetwork
addressonthephysicalnetwork,andthataddressisusedbythehostcomputer.You
can,forexample,useNATtoconnectyourvirtualmachinestotheInternetthrougha
dialupconnectiononthehostcomputerorthroughthehostcomputersEthernet
adapterorwirelessEthernetadapter.NATisalsousefulwhenyouneedtoconnectto
anonEthernetnetwork,suchasTokenRingorATM.
TheNATdeviceissetupautomaticallywhenyouinstallVMwareServer.(OnaLinux
host,youmustchoosetomakeNATavailabletoyourvirtualmachines.)
154
VMware, Inc.
Chapter 7 Networking
BridgedNetworkingonpage 156
NetworkAddressTranslation(NAT)onpage 157
HostOnlyNetworkingonpage 158
Onlyonevirtualmachineisshownineachexample,butmultiplevirtualmachinescan
beconnectedtothesamevirtualEthernetswitch.OnaWindowshost,youcanconnect
anunlimitednumberofvirtualnetworkdevicestoavirtualswitch.OnaLinuxhost,
youcanconnectupto32devices.
VMware, Inc.
155
Bridged Networking
Figure 7-1. Bridged networking connects a virtual machine to a network using the host
computers Ethernet adapter.
BridgednetworkingissetupautomaticallyifyouselectUsebridgednetworkinginthe
NewVirtualMachineWizardorifyouselecttheTypicalsetuppath.Thisselectionis
availableonaLinuxhostonlyifyouenablethebridgednetworkingoptionwhenyou
installVMwareServer.
Bridgednetworkingisoftentheeasiestwaytogiveyourvirtualmachineaccesstothe
networkwhenyourhostcomputerisonanEthernetnetwork.OnaWindowshost,you
canusebridgednetworkingtoconnecttoeitherawiredorawirelessnetwork.Ona
Linuxhost,youcanusebridgednetworkingtoconnecttoawirednetwork.
Ifyouusebridgednetworking,yourvirtualmachineneedstohaveitsownidentityon
thenetwork.Forexample,onaTCP/IPnetwork,thevirtualmachineneedsitsownIP
address.YournetworkadministratorcantellyouwhetherIPaddressesareavailable
foryourvirtualmachineandwhatnetworkingsettingsyoushoulduseintheguest
operatingsystem.Generally,yourguestoperatingsystemcanacquireanIPaddress
andothernetworkdetailsautomaticallyfromaDHCPserver.Youmightneedtosetthe
IPaddressandotherdetailsmanuallyintheguestoperatingsystem.
Usingbridgednetworkingenablesthevirtualmachinetobeafullparticipantinthe
network.Ithasaccesstoothermachinesonthenetworkandcanbecontactedbyother
machinesonthenetworkasifitwereaphysicalcomputeronthenetwork.
Ifthehostcomputerissetuptobootmultipleoperatingsystemsandyourunoneor
moreoftheminvirtualmachines,youneedtoconfigureeachoperatingsystemwitha
uniquenetworkaddress.Peoplewhobootmultipleoperatingsystemsoftenassignall
systemsthesameaddress,sincetheyassumeonlyoneoperatingsystemwillrunata
time.Ifyouuseoneormoreoftheoperatingsystemsinavirtualmachine,this
assumptionisnolongertrue.
156
VMware, Inc.
Chapter 7 Networking
Youcansetorchangetheoptiontousebridgednetworkinginthevirtualmachine
settingseditor(VM>Settings).Fordetails,seeChangingtheNetworking
Configurationonpage 162.
Figure 7-2. NAT gives a virtual machine access to network resources using the host
computers IP address.
Anetworkaddresstranslationconnectionissetupautomaticallyifyoufollowthe
CustompathintheNewVirtualMachineWizardandselectUsenetworkaddress
translation.
IfyouwanttoconnecttotheInternetorotherTCP/IPnetworkusingthehost
computersdialupnetworkingorbroadbandconnectionandyouarenotabletogive
yourvirtualmachineanIPaddressontheexternalnetwork,NATisoftentheeasiest
waytogiveyourvirtualmachineaccesstothatnetwork.
NATalsoallowsyoutoconnecttoaTCP/IPnetworkusingaTokenRingadapteron
thehostcomputer.HoweverryourvirtualmachinedoesnothaveitsownIPaddress
ontheexternalnetworkifyouuseNAT.Instead,aseparateprivatenetworkissetup
onthehostcomputer.Yourvirtualmachinegetsanaddressonthatnetworkfromthe
VMwarevirtualDHCPserver.TheVMwareNATdevicepassesnetworkdatabetween
oneormorevirtualmachinesandtheexternalnetwork.Itidentifiesincomingdata
packetsintendedforeachvirtualmachineandsendsthemtothecorrectdestination.
IfyouselectNAT,thevirtualmachinecanusemanystandardTCP/IPprotocolsto
connecttoothermachinesontheexternalnetwork.Forexample,youcanuseHTTPto
browseWebsites,FTPtotransferfiles,andTelnettologontoothercomputers.Inthe
defaultconfiguration,computersontheexternalnetworkcannotinitiateconnectionsto
thevirtualmachine.Thatmeans,forexample,thatthedefaultconfigurationdoesnot
VMware, Inc.
157
letyouusethevirtualmachineasaWebservertosendWebpagestocomputersonthe
externalnetwork.
IfyoumakesomeotherselectionintheNewVirtualMachineWizardandlaterdecide
touseNAT,youcanmakethatchangeinthevirtualmachinesettingseditor(VM>
Settings).Fordetails,seeChangingtheNetworkingConfigurationonpage 162.
ForamorethoroughdiscussionofNAT,seeUnderstandingNATonpage 190.
Host-Only Networking
Figure 7-3.
Host-only networking creates a network that is completely contained within the host
computer.
AhostonlynetworkissetupautomaticallyifyouselectUseHostOnlyNetworking
intheNewVirtualMachineWizard.OnLinuxhosts,thisselectionisavailableonlyif
youenabledthehostonlynetworkingoptionwhenyouinstalledVMwareServer.
Hostonlynetworkingprovidesanetworkconnectionbetweenthevirtualmachineand
thehostcomputer,usingavirtualEthernetadapterthatisvisibletothehostoperating
system.Thisapproachcanbeusefulifyouneedtosetupanisolatedvirtualnetwork.
Ifyouusehostonlynetworking,yourvirtualmachineandthehostvirtualadapterare
connectedtoaprivateTCP/IPnetwork.Addressesonthisnetworkareprovidedbythe
VMwareDHCPserver.
IfyoumakesomeotherselectionintheNewVirtualMachineWizardandlaterdecide
youwanttousehostonlynetworking,youcanmakethatchangeinthevirtualmachine
settingseditor(VM>Settings).Fordetails,seeChangingtheNetworking
Configurationonpage 162.
158
VMware, Inc.
Chapter 7 Networking
VMware, Inc.
159
Figure 7-4. In this custom configuration, a Web server connects through a firewall to
an external network. An administrators computer can connect to the Web server
through a second firewall.
Tosetupthisconfiguration,youmustcreatefourvirtualmachinesandusethevirtual
machinesettingseditortoadjustthesettingsfortheirvirtualEthernetadapters.You
alsoneedtoinstalltheappropriateguestoperatingsystemsandapplicationsoftware
ineachvirtualmachineandmaketheappropriatenetworkingsettingsineachvirtual
machine.
1
SetupfourvirtualmachinesusingtheNewVirtualMachineWizard.
Createthefirstvirtualmachinewithbridgednetworkingsoitcanconnecttoan
externalnetworkusingthehostcomputersEthernetadapter.
Createtheotherthreevirtualmachineswithoutnetworking.Youwillsetuptheir
virtualEthernetadaptersinlatersteps.
160
LaunchaVMwareServerConsoleandopenvirtualmachine1.Donotpoweron
thevirtualmachine.
VMware, Inc.
Chapter 7 Networking
Usethevirtualmachinesettingseditor(VM>Settings)toaddasecondvirtual
networkadapter,asdescribedinChangingtheNetworkingConfigurationon
page 162.ConnectthesecondadaptertoCustom(VMnet2).
ClickOKtosavetheconfigurationandclosethevirtualmachinesettingseditor.
3
Ifaconsoleisnotrunning,launchone.Openvirtualmachine2.Donotpoweron
thevirtualmachine.
Usethevirtualmachinesettingseditor(VM>Settings)toaddavirtualnetwork
adapter.ConnecttheadaptertoCustom(VMnet2).
ClickOKtosavetheconfigurationandclosethevirtualmachinesettingseditor.
Ifaconsoleisnotrunning,launchone.Openvirtualmachine3.Donotpoweron
thevirtualmachine.
Usethevirtualmachinesettingseditortoaddavirtualnetworkadapter.Connect
theadaptertoCustom(VMnet2).
Usethevirtualmachinesettingseditortoaddasecondvirtualnetworkadapter.
ConnecttheadaptertoCustom(VMnet3).
ClickOKtosavetheconfigurationandclosethevirtualmachinesettingseditor.
Ifaconsoleisnotrunning,launchone.Openvirtualmachine4.Donotpoweron
thevirtualmachine.
Usethevirtualmachinesettingseditortoaddavirtualnetworkadapter.Connect
theadaptertoCustom(VMnet3).
ClickOKtosavetheconfigurationandclosethevirtualmachinesettingseditor.
DeterminethenetworkaddressesusedforVMnet2andVMnet3.
NOTE
OnaWindowshost,youcanskipthestepsforconfiguringnetwork
addressesmanuallyand,instead,useVMwareServersDHCPserver.
ChooseHost>VirtualNetworkSettings>DHCPandaddVMnet2and
VMnet3tothelistofvirtualnetworksservedbythevirtualDHCPserver.
Thenskiptostep9.
OnaWindowshost,openacommandpromptonthehostcomputerandrun
ipconfig /all.Notethenetworkaddressesusedbyeachvirtualadapter.
OnaLinuxhost,runifconfigattheconsoleorinaterminalwindowonthehost
computer.Notethenetworkaddressesusedbyeachvirtualswitch.
7
VMware, Inc.
Launchaconsole,openeachvirtualmachineinturnandinstalltheappropriate
guestoperatingsystem.
161
Configurethenetworkingineachguestoperatingsystem.
ForthebridgedEthernetadapterinvirtualmachine1,usethenetworkingsettings
neededforaconnectiontotheexternalnetwork.IfthevirtualmachinegetsitsIP
addressfromaDHCPserverontheexternalnetwork,thedefaultsettingsshould
work.
ForthesecondEthernetadapterinvirtualmachine1,manuallyassignanIP
addressintherangeyouareusingwithVMnet2.
Invirtualmachine2,assignanIPaddressintherangeyouareusingwithVMnet2.
Invirtualmachine3,networkadaptersareconnectedtoVMnet2andVMnet3.
AssigneachadapteranIPaddressintherangeyouareusingwiththevirtual
networktowhichitisconnected.
Invirtualmachine4,assignanIPaddressintherangeyouareusingwithVMnet3.
Installthenecessaryapplicationsoftwareineachvirtualmachine.
AddingandModifyingVirtualNetworkAdaptersonpage 162
ConfiguringBridgedNetworkingOptionsonaWindowsHostonpage 164
Enabling,Disabling,Adding,andRemovingHostVirtualAdaptersonpage 168
162
VMware, Inc.
Chapter 7 Networking
Poweroffthevirtualmachine.
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
ClickAdd.
TheAddHardwareWizardstarts.SelectEthernetAdapter.ClickNext.The
NetworkTypescreenappears.
SpecifythetypeofnetworkingthisvirtualNICuses.SelectBridged,NAT,
Hostonly,CustomorNamed.
IfyouselectCustom,choosetheVMnetvirtualnetworkyouwanttouseforthe
networkfromthedropdownlist.
NOTE
AlthoughVMnet0,VMnet1,andVMnet8areavailableinthislist,theyare
normallyusedforbridged,hostonly,andNATconfigurations,
respectively.Specialstepsarerequiredtomakethemavailableforusein
customconfigurations.Youshouldchooseoneoftheotherswitches.
ClickFinish.Thenewadapterisadded.
ClickOKtosaveyourconfigurationandclosethevirtualmachinesettingseditor.
VMware, Inc.
163
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
Selecttheadapteryouwanttomodify.
SpecifythetypeofnetworkingthisvirtualNICuses.SelectBridged,NAT,
Hostonly,CustomorNamed.
IfyouselectCustom,choosetheVMnetvirtualnetworkyouwanttouseforthe
networkfromthedropdownlist.
ClickOKtosaveyourchangesandclosethevirtualmachinesettingseditor.
BesuretheguestoperatingsystemisconfiguredtouseanappropriateIPaddress
onthenewnetwork.IftheguestisusingDHCP,releaseandrenewthelease.Ifthe
IPaddressissetstatically,besuretheguesthasanaddressonthecorrectvirtual
network.
Ifyouselectedacustomnetwork,selectthespecificvirtualnetworkfromthelist.
164
LaunchaVMwareServerConsole.
ChooseHost>VirtualNetworkSettings.
VMware, Inc.
Chapter 7 Networking
TheVirtualNetworkEditorappears,withtheSummarytabactive.
Bydefault,theVMnet0virtualnetworkissetupinbridgedmodeandbridgesto
oneoftheactiveEthernetadaptersonthehostcomputer.
Thechoiceofwhichadapteritusesisarbitrary.VMwarerecommendsthatyoulet
VMwareServerchooseanavailablephysicalnetworkadapterforbridging,asit
providesfaulttolerance.Ifanetworkadapterbecomesunavailable(forexample,
ifitisunpluggedorremovedfromthehost),thenetworkbridgeautomatically
switchestoanothernetworkadapteronthehost.
YoucanrestricttherangeofchoicesbyusingoptionsontheAutomaticBridging
tab.
(AlsoshownareVMnet1,thedefaultvirtualnetworkforhostonlynetworking,
andVMnet8,thedefaultvirtualnetworkforNAT,iftheyareenabledinVMware
Server.)
ToexcludeoneormorephysicalEthernetadaptersfromthelisttowhichVMnet0
canbebridged,clicktheAutomaticBridgingtab.
VMware, Inc.
165
ToexcludeanEthernetadapter,clickAddtoaddittothelistofexcludeddevices.
IntheChooseNetworkAdaptersdialogbox,selectthelistingfortheadapteryou
wanttoexclude,thenclickOK.
Toremoveanadapterfromthelistofexcludedadapters,selectitsnameinthelist,
andclickRemove.
Ifyouareusingteamednetworkadaptersonyourhost,youcanexcludethe
physicalnetworkadaptersfrombridgednetworking.Forinformationabout
teamednetworkadapters,seeConfiguringBridgedNetworkingWhenUsing
TeamedNetworkInterfaceCardsonpage 180.
5
166
TodesignateaphysicalEthernetadaptertobeusedforbridgednetworkingon
virtualswitchesnamedVMnet2VMnet7,clicktheHostVirtualNetwork
Mappingtab.
VMware, Inc.
Chapter 7 Networking
Chooseanadapterfromthedropdownlistbesidethenameofthevirtualswitch
youwanttouse.
Ifyouareusingteamednetworkadaptersonyourhost,youcanchoosetheteamed
NICforVMnet0.
CAUTION
Becarefulwhenyouchangethebridgedadaptermappings.Ifyou
reassignaphysicalEthernetadaptertoadifferentvirtualnetwork,
anyvirtualmachineusingtheoriginalnetworklosesitsnetwork
connectivitythroughthatnetwork.Youmustthenchangethesetting
foreachaffectedvirtualmachinesnetworkadapterindividually.
Thiscanbeespeciallytroublesomeifyourhosthasonlyonephysical
EthernetadapterandyoureassignittoaVMnetotherthanVMnet0.
EventhoughtheVMnetstillappearstobebridgedtoan
automaticallychosenadapter,theonlyadapteritcanusehasbeen
assignedtoanotherVMnet.
TomakechangestothesubnetortheDHCPsettingsforavirtualnetwork,click
thebuttonontherightthatcorrespondstothevirtualnetworkyouwantto
configure,thenchooseSubnetorDHCP.
ChangingtheSubnet
IntheSubnetdialogbox,youcanchangethesubnetsIPaddressandthesubnet
mask.
VMware, Inc.
167
Theaddressshouldspecifyavalidnetworkaddressthatissuitableforusewiththe
subnetmask.
Thedefaultsubnetmaskis255.255.255.0(aclassCnetwork).Typically,thismeans
youshouldmodifyonlythethirdnumberintheIPaddressforexample,xin
192.168.x.0or172.16.x.0.Ingeneral,youshouldnotchangethesubnetmask.
Certainvirtualnetworkservicesmaynotworkaswellwithacustomizedsubnet
mask.
Whenyoumodifythenetworkaddressorsubnetmask,VMwareServer
automaticallyupdatestheIPaddresssettingsforothercomponentssuchas
DHCP,NATandhostvirtualadapteronthatvirtualnetworktoreflectthenew
settings.ThespecificsettingsthatareautomaticallyupdatedincludeDHCPlease
range,DHCPserveraddress,NATgatewayaddressandhostvirtualadapterIP
address.However,ifyouhavechangedanyofthesesettingsfromitsdefaultvalue
evenifyouhavelaterchangedthesettingbacktothedefaultVMwareServer
doesnotupdatethatsettingautomatically.Itpresumesthatcustomsettingsare
nottobemodified.
ChangingDHCPSettings
IntheDHCPsettingsdialogbox,youcanchangetherangeofIPaddresses
providedbytheDHCPserveronaparticularvirtualnetwork.Youcanalsosetthe
durationofleasesprovidedtoclientsonthevirtualnetwork.
WhenyouhavemadeallthechangesyouwanttomakeonalltabsoftheVMware
NetworkEditor,clickOK.
168
VMware, Inc.
Chapter 7 Networking
Ifyouarenotusingtheseadapters,youcanremovethem(usersonWindowshostscan
disabletheadaptersinsteadofremovingthem).Thepresenceoftheseadaptershasa
slightperformancecost,becausebroadcastpacketsmustgototheextraadapters.On
Windowsnetworks,browsingyournetworkcanbeslowerthanusual.Andinsome
cases,theseadaptersinteractwiththehostcomputersnetworkingconfigurationin
undesirableways.
UsetheVirtualNetworkEditortodisableanyunwantedadapters.
ChooseHost>VirtualNetworkSettings>HostVirtualAdapters.
Selecttheadapteryouwanttodisable.
ClickDisableadapter.
ClickOK.
ChooseHost>VirtualNetworkSettings>HostVirtualAdapters.
Selectthedisabledadapteryouwanttoenable.
ClickEnableadapter.
ClickOK.
ChooseHost>VirtualNetworkSettings>HostVirtualAdapters.
ClickAddnewadapter.
ChoosethevirtualnetworkonwhichyouwanttousetheadapterandclickOK.
ClickApply.
VMware, Inc.
169
ClickOKtoclosetheVirtualNetworkEditor.
ChooseHost>VirtualNetworkSettings>HostVirtualAdapters.
Selecttheadapteryouwanttoremove,thenclickRemoveadapter.
ClickOK.
BecomerootandruntheVMwareServerconfigurationprogram.
su vmware-config.pl
CAUTION
InordertoconfigureVMwareServercorrectly,the
vmware-config.plconfigurationprogramrequiresallvirtual
machinestobeshutdown.Theprogramshutsdownanyrunning
virtualmachinesautomatically.
Watchforthefollowingquestion:
Do you want networking for your Virtual Machines? (yes/no/help) [yes]
Answeryesifyoustillwanttouseanynetworkinginyourvirtualmachines,then
continuetothenextquestion.
Otherwise,answernotoremoveallnetworking.
170
Ifyouansweryes,thescriptpromptsyoutoselecttheWizardoreditortoedityour
networkconfiguration.Selecteditor.Thisistheonlywaytodeletevirtual
networkadapterswithoutremovingallofthem.
VMware, Inc.
Chapter 7 Networking
Youseealistofvirtualnetworksthathavebeenconfigured.Selectthenetwork
correspondingtotheadapteryouwishtodisable.
The following virtual networks have been defined:
. vmnet0 is bridged to eth0
. vmnet1 is a host-only network on subnet 172.16.155.0.
. vmnet8 is NAT network on a private subnet 172.16.107.0.
Which virtual network do you wish to configure? (0-99) 1
Youmightbepromptedtokeepthisvirtualnetwork.Ifyouaresureyouwantto
removeit,answeryestothequestion.
The network vmnet1 has been reserved for a host-only network. You may
change it, but it is highly recommended that you use it
as a host-only network. Are you sure you want to modify
it? (yes/no) [no] yes
Whenpromptedaboutthetypeofvirtualnetwork,selectnonetoremovethe
virtualnetwork.
What type of virtual network do you wish to set vmnet1?
(bridged,hostonly,nat,none) [hostonly] none
SelectingIPAddressesonaHostOnlyNetworkorNATConfigurationon
page 172
AvoidingIPPacketLeakageinaHostOnlyNetworkonpage 174
MaintainingandChangingtheMACAddressofaVirtualMachineonpage 176
ControllingRoutingforaHostOnlyNetworkonaLinuxHostonpage 177
IssueswithHostOnlyNetworkingonaLinuxHostonpage 178
SettingUpaSecondBridgedNetworkInterfaceonaLinuxHostonpage 179
ConfiguringBridgedNetworkingWhenUsingTeamedNetworkInterface
Cardsonpage 180
SettingUpTwoSeparateHostOnlyNetworksonpage 182
VMware, Inc.
171
RoutingBetweenTwoHostOnlyNetworksonpage 185
UsingVirtualEthernetAdaptersinPromiscuousModeonaLinuxHost
172
VMware, Inc.
Chapter 7 Networking
configuretheVMwareDHCPservertoalwaysassignthesameIPaddresstoeachof
thesevirtualmachines.
OnaLinuxhost,configurethehostonlyDHCPserverbyeditingtheDHCP
configurationfileforVMnet1(/etc/vmware/vmnet1/dhcp/dhcp.conf).
ToconfiguretheDHCPserverfortheNATnetwork,edittheconfigurationfilefor
VMnet8(/etc/vmware/vmnet8/dhcp/dhcp.conf).
EditingtheDHCPserverconfigurationfilerequiresinformationthatisbest
obtaineddirectlyfromtheDHCPserverdocumentation.
Consultthemanualpagesdhcpd(8)anddhcpd.conf(8).
OnaWindowshost,youconfiguretheDHCPserverusingtheVirtualNetwork
Editor(Host>VirtualNetworkSettings>DHCP).
Selectthevirtualnetworkforwhichyouwanttochangesettingsandclick
Properties.
VMware, Inc.
173
Makethedesiredchanges,thenclickOK.
Address use
Example
<net>.1
Hostmachine
192.168.0.1
<net>.2<net>.127
Staticaddresses
192.168.0.2192.168.0.127
<net>.128<net>.253
DHCPassigned
192.168.0.128192.168.0.253
<net>.254
DHCPserver
192.168.0.254
<net>.255
Broadcasting
192.168.0.255
Address use
Example
<net>.1
Hostmachine
192.168.0.1
<net>.2
NATdevice
192.168.0.2
<net>.3<net>.127
Staticaddresses
192.168.0.3192.168.0.127
<net>.128<net>.253
DHCPassigned
192.168.0.128192.168.0.253
<net>.254
DHCPserver
192.168.0.254
<net>.255
Broadcasting
192.168.0.255
174
VMware, Inc.
Chapter 7 Networking
Windows Hosts
SystemsusingserverversionsofWindows2000arecapableofforwardingIPpackets
thatarenotaddressedtothem.Bydefault,however,thesesystemscomewithIPpacket
forwardingdisabled.
IfyoufindpacketsleakingoutofahostonlynetworkonaWindows2000host
computer,checktoseewhetherforwardinghasbeenenabledonthehostmachine.Ifit
isenabled,disableit.
ChooseStart>Programs>AdministrativeTools>RoutingandRemoteAccess.An
iconontheleftislabeledwiththehostname.Ifagreendotappearsovertheicon,IP
forwardingisturnedon.Toturnitoff,rightclicktheiconanddisableRoutingand
RemoteAccess.Areddotappears,indicatingthatIPforwardingisdisabled.
Linux Hosts
IfyoufindpacketsleakingoutofahostonlynetworkonaLinuxhostcomputer,check
toseewhetherforwardinghasmistakenlybeenenabledonthehostmachine.Ifitis
enabled,disableit.
FormanyLinuxsystems,disableforwardingbywritinga0(zero)tothespecialfile
/proc/sys/net/ipv4/ip_forward.Asroot,enterthiscommand:
echo 0 > /proc/sys/net/ipv4/ip_forward
OtherLinuxsystemshaveasystemconfigurationoptionthatyoucanset.Themethod
dependsonyourLinuxdistribution.Youcanuseacontrolpanel,specifyasettingatthe
timeyoucompileyourkernel,orpossiblyenteraspecificationwhenyoubootyour
system.Consultyouroperatingsystemdocumentationfordetailsonthemethodtouse
withyourparticulardistribution.
Using Filtering
Ifthehostcomputerhasmultiplenetworkadapters,itmightbeintentionally
configuredtodoIPforwarding.Inthiscase,youdonotwanttodisableforwarding.To
avoidpacketleakage,youmustenableapacketfilteringfacilityandspecifythat
packetsfromthehostonlynetworkshouldnotbesentoutsidethehostcomputer.
Consultyouroperatingsystemdocumentationfordetailsonhowtoconfigurepacket
filtering.
VMware, Inc.
175
Topreventtheleakage,besurepacketforwardingisdisabledinyourguestoperating
system.
176
TopreserveavirtualEthernetadaptersMACaddress,youalsomustbe
carefulnottoremoveit.Ifyouremovetheadapter,thenrecreateit,itmight
beassignedadifferentMACaddress.
VMware, Inc.
Chapter 7 Networking
VMware, Inc.
177
Ifeitheroftheseprocessesisbeingrunonlytoreceiveroutinginformation,theeasiest
solutionistoruntheprocesswitha-qoptionsothatitdoesnotsupplyrouting
information,onlyreceivesit.
If,however,theprocessesarerunningbecausetheysupplyroutinginformation,you
needtoconfigurethemsotheydonotadvertiseroutestothehostonlynetwork.
TheversionofroutedthatcomeswithmanydistributionsofLinuxhasnosupportfor
specifyingthataninterfaceshouldnotbeadvertised.Consulttherouted(8)manual
pageforyoursystemincaseyouhaveamorecontemporaryversionofthesoftware.
Thegatedprocessrequiressomeconfiguration.Youneedtoexplicitlyexcludethe
VMnet1interfacefromanyprotocolactivity.Ifyouneedtorunvirtualmachinesona
hostonlynetworkonamultihomedsystemwheregatedisusedandhaveproblems
doingso,pleasecontactVMwaretechnicalsupportbysubmittingasupportrequestat
www.vmware.com/requestsupport.
DHCPD on the Linux Host Does Not Work After VMware Server
Installation
IfyouwererunningtheDHCPserverprogramdhcpdonyourmachinebeforeinstalling
VMwareServer,itprobablywasconfiguredtorespondtoDHCPrequestsfromclients
onanynetworkinterfacepresentonthemachine.Whenhostonlynetworkingis
configured,anadditionalnetworkinterface,VMnet1,ismarkedupandavailablefor
use,anddhcpdmightnoticethis.
Insuchcases,somedhcpdimplementationsabortiftheirconfigurationfilesdonot
includeasubnetspecificationfortheinterfaceevenifdhcpdisnotsupposedto
respondtomessagesthatarrivethroughtheinterface.
Thebestsolutiontothisproblemistoaddalineinthefollowingformattothedhcpd
configurationfile:
subnet <net>.0 netmask 255.255.255.0 {}
<net>isthenetworknumberassignedtoyourhostonlynetworkforexample,
192.168.0.Thisconfigurationfileentryinformsdhcpdaboutthehostonlynetworkand
tellsitexplicitlynottorespondtoanyDHCPrequestsitseescomingfromit.
178
VMware, Inc.
Chapter 7 Networking
Analternativesolutionistoexplicitlystatethesetofnetworkinterfacesthatyouwant
dhcpdtolistentoeachtimeyoustarttheprogram.Forexample,ifyourmachinehasone
Ethernetinterface,eth0,theneachtimeyoustartdhcpd,listitonthecommandline:
dhcpd eth0
Thiskeepsdhcpdfromprobingforallavailablenetworkinterfaces.
IftheabovesolutionsdonotworkforyourDHCPserverprogram,thenitlikelyisold.
YoucantryupgradingtoamorecurrentversionsuchastheDHCPsoftwareavailable
fromtheISCWebsiteatwww.isc.org.
Onthehostcomputer,becomeroot(su -)andruntheVMwareServer
configurationprogram.
vmware-config.pl
CAUTION
VMware, Inc.
ToconfigureVMwareServercorrectly,thevmware-config.pl
configurationprogramrequiresallvirtualmachinestobeshut
down.Theprogramshutsdownanyrunningvirtualmachines
automatically.
179
IfyouhavemorethanonephysicalEthernetadapter,oneofthepromptsyousee
issimilartothis:
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
Answeryes.
IfyouhaveadditionalphysicalEthernetadaptersnotyetconnectedtoabridged
network,thepromptisrepeated,showinginformationaboutallcurrently
configuredbridgednetworks.
Whenyouhavesetupallthebridgednetworksyouwant,typeno.
VMware, Inc.
Chapter 7 Networking
networkingmode(suchas802.3adDynamicor802.3adDraftStaticmode)youwantto
use,youshoulduseadaptersthatsupportthatmode.
VMwarehasnottestedanddoesnotsupportnetworkadapterteamswithVMware
ServeronLinuxhosts.
VMwareServersupportsteamedBroadcombasednetworkadapterswhenusedwith
Broadcomteamingsoftwareinthefollowingmodes:
!
GenericTrunking(FEC/GEC/802.3adDraftStatic)
LinkAggregation(802.3ad)
SmartLoadBalanceandFailOver
VMwareServersupportsteamedIntelbasednetworkadapterswhenusedwithIntel
PROSetversion6.4orhigher(32bithosts)orPROSetversion10.0orhigher(64bit
hosts)inthefollowingmodes:
!
AdapterFaultTolerance
AdaptiveLoadBalancing
StaticLinkAggregation(64bithosts)
FEC/802.3adStaticLinkAggregation(32bithosts)
GEC/802.3adStaticLinkAggregation(32bithosts)
IEEE802.3adDynamicLinkAggregation
NOTE
ExpressTeamingmodeisnotsupportedwhenyouareteamingIntelbased
networkadapters.
OpentheWindowsControlPanel,andopenNetworkConnections(onaWindows
Server2003host)oropenNetworkandDialupConnections(onaWindows2000
host).
RightclicktheteamedNICdevice,andchoosePropertiestobindtheVMware
BridgeProtocoltotheteamedNIC.
CheckVMwareBridgeProtocol.
VMware, Inc.
181
ClickOKtoclosethepropertysheet.
RightclicktheNICdevice,andchoosePropertiestounbindtheVMwareBridge
ProtocolfromeachphysicalNICthatisbeingusedforbridgednetworking.
CleartheVMwareBridgeProtocolcheckbox.
ClickOKtoclosethepropertysheet.
Alternately,youcanusetheVirtualNetworkEditortoeithermaptheteamedNICto
VMnet0orexcludethephysicaladaptersfromanyautomaticbridgingbyVMware
Server.Forinformation,seeConfiguringBridgedNetworkingOptionsonaWindows
Hostonpage 164.
Beforeyoudeletetheoriginalteam,powerofforsuspendallvirtual
machinesonthehosttopreventtheteamingsoftwarefromlockingup.
182
VMware, Inc.
Chapter 7 Networking
ChooseHost>VirtualNetworkSettings>HostVirtualAdapters.
ClickAddnewadapter.
ChoosethevirtualnetworkonwhichtousetheadapterandclickOK.
ClickApply.
ClickOKtoclosetheVirtualNetworkEditor.
Asroot(su -),runtheVMwareServerconfigurationprogram.
vmware-config.pl
CAUTION
ToconfigureVMwareServercorrectly,thevmware-config.pl
configurationprogramrequiresallvirtualmachinestobeshut
down.Theprogramshutsdownanyrunningvirtualmachines
automatically.
AfteraskingaboutaNATnetwork,theprogramasks:
Do you want to be able to use host-only networking in your virtual
machines?
2
Selectyes.
TheWizardreportsonhostonlynetworksthatyouhavealreadysetuponthehost
or,ifnohostonlynetworkispresent,configuresthefirstone.
TheWizardasks:
Do you wish to configure another host-only network?
Selectyes.
Repeatthisstepuntilyouhaveasmanyhostonlynetworksasyouwant.Then
answerno.
CompletetheremainingstepsintheWizard.
WhentheWizardisfinished,itrestartsallservicesusedbyVMwareServer.
Runifconfig.
Youshouldseeatleastfournetworkinterfaceseth0,lo,vmnet1,andvmnet2.If
theVMnetinterfacesdonotdisplayimmediately,waitforaminute,andrunthe
VMware, Inc.
183
commandagain.ThesefourinterfacesshouldhavedifferentIPaddresson
separatesubnets.
ThevirtualmachineisconfiguredwithonevirtualEthernetadapter,andthat
virtualadapterisconnectedtothedefaulthostonlyinterface(VMnet1).
ThevirtualmachineisconfiguredwithonevirtualEthernetadapter,andthat
virtualadapterisconnectedtothenewlycreatedhostonlyinterface(VMnet2).
ThevirtualmachineisconfiguredwithtwovirtualEthernetadapters.Onevirtual
adapterisconnectedtothedefaulthostonlyinterface(VMnet1)andtheother
virtualadapterisconnectedtothenewlycreatedhostonlyinterface(VMnet2).
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchaVMwareServerConsoleandopenthevirtualmachine.
SelectVM>Settingstoedittheconfigurationusingthevirtualmachinesettings
editor.
SelectNIC,selectCustom,andchooseVMnet1(Hostonly)(onaWindowshost)
or/dev/vmnet1(onaLinuxhost)fromthedropdownlistontheright.
Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchaVMwareServerConsoleandopenthevirtualmachine.
Edittheconfigurationusingthevirtualmachinesettingseditor(VM>Settings).
SelectNIC,selectCustom,andchooseVMnet2(Hostonly)(onaWindowshost)
or/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright.
Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
184
VMware, Inc.
Chapter 7 Networking
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchVMwareServerandopenthevirtualmachine.
Edittheconfigurationusingthevirtualmachinesettingseditor(VM>Settings).
Selectthefirstnetworkadapterinthelistofdevices,selectCustom,andchoose
VMnet1(Hostonly)(onaWindowshost)or/dev/vmnet1(onaLinuxhost)from
thedropdownlistontheright.Selectthesecondnetworkadapterinthelistof
devices,selectCustom,thenchooseVMnet2(Hostonly)(onaWindowshost)or
/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright.
Ifyouneedtoaddoneormorenetworkadapters,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
Atthispointyoucanpoweronthevirtualmachineandinstallyourguestoperating
system.Inconfigurations1and2youseeoneAMDPCNetFamilyAdapter.In
configuration3youseetwoAMDPCNetFamilyAdapterswithintheguest.Configure
theEthernetadaptersasyouwouldphysicaladaptersonaphysicalcomputer,giving
eachadapteranIPaddressontheappropriateVMnetsubnet.
OnWindowshosts,youcanopenacommandpromptandrunipconfig /alltosee
whatIPaddresseseachhostonlynetworkisusing.
OnLinuxhosts,youcanopenaterminalandrunifconfigtoseewhatIPaddresses
eachhostonlynetworkisusing.
VMware, Inc.
185
OnLinuxhosts,thefirsthostonlynetworkissetupwhenyourunthe
vmware-config.plprogramafteryouinstallVMwareServer,providedyouagreeto
installhostonlynetworking.Ifyoudidnotagreetousehostonlynetworking,you
needtorunthescriptagaintosetuphostonlynetworking.
GotoHost>VirtualNetworkSettings>HostVirtualAdapters.
ClickAddnewadapter.
ChoosethevirtualnetworkonwhichyouwanttousetheadapterandclickOK.
ClickApply.
ClickOKtoclosetheVirtualNetworkEditor.
Asroot(su -),runtheVMwareServerconfigurationprogram.
vmware-config.pl
CAUTION
InordertoconfigureVMwareServercorrectly,the
vmware-config.plconfigurationprogramrequiresallvirtual
machinestobeshutdown.Theprogramshutsdownanyrunning
virtualmachinesautomatically.
UsetheWizardtomodifyyourconfiguration.AfteraskingaboutaNATnetwork,
theprogramasks:
Do you want to be able to use host-only networking in your virtual
machines?
Answeryes.
TheWizardreportsonhostonlynetworksthatyouhavealreadysetuponthehost
or,ifnoneispresent,configuresthefirsthostonlynetwork.
TheWizardasks:
Do you wish to configure another host-only network?
Answeryes.
Repeatthisstepuntilyouhaveasmanyhostonlynetworksasyouwant.Then
answerno.
186
VMware, Inc.
Chapter 7 Networking
CompletetheWizard.Whenitisfinished,itrestartsallservicesusedbyVMware
Server.
Runifconfig.Youshouldseeatleastfournetworkinterfaceseth0,lo,vmnet1,
andvmnet2.IftheVMnetinterfacesdonotshowupimmediately,waitfora
minute,thenrunthecommandagain.Thesefourinterfacesshouldhavedifferent
IPaddressonseparatesubnets.
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchaVMwareServerConsoleandopenthevirtualmachine.
Edittheconfigurationusingthevirtualmachinesettingseditor(VM>Settings).
SelectNIC,selectCustom,andchooseVMnet1(Hostonly)(onaWindowshost)
or/dev/vmnet1(onaLinuxhost)fromthedropdownlistontheright.
Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchaVMwareServerConsoleandopenthevirtualmachine.
Edittheconfigurationusingthevirtualmachinesettingseditor(VM>Settings).
SelectNIC,selectCustom,andchooseVMnet2(Hostonly)(onaWindowshost)
or/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright.
Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
Ifyouplantoruntheroutersoftwareonyourhostcomputer,youcanskipthenext
section.
VMware, Inc.
187
Createthevirtualmachineoruseanexistingvirtualmachine.
LaunchaVMwareServerConsoleandopenthevirtualmachine.
Edittheconfigurationusingthevirtualmachinesettingseditor(VM>Settings).
Selectthefirstnetworkadapterinthelistofdevices,selectCustom,andchoose
VMnet1(Hostonly)(onaWindowshost)or/dev/vmnet1(onaLinuxhost)from
thedropdownlistontheright.Selectthesecondnetworkadapterinthelistof
devices,thenselectCustom,chooseVMnet2(Hostonly)(onaWindowshost)or
/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright.
Ifyouneedtoaddoneormorenetworkadapters,clickAdd,andusetheAdd
HardwareWizardtoaddanadapter.
Nowyouneedtoconfigurethenetworkingcomponentsonthehostandinthevirtual
machines.TherecommendedapproachusesstaticIPaddressesforallthevirtual
machines.
1
StoptheVMnetDHCPserverservice.
Windowshost:ChooseHost>VirtualNetworkSettings>DHCPandclickStop
service.
Linuxhost:Stopthevmnet-dhcpdservice.
killall -TERM vmnet-dhcpd
Installguestoperatingsystemsineachofthevirtualmachines.
Installtheroutersoftwareonthehostcomputerorinthethirdvirtualmachine,
dependingontheapproachyouareusing.
Configurenetworkinginthefirsttwovirtualmachinestouseaddressesonthe
appropriatehostonlynetwork.
OnWindowshosts,youcanopenacommandpromptandrunipconfig /allto
seewhatIPaddresseseachhostonlynetworkisusing.
OnLinuxhosts,youcanopenaterminalandrunifconfigtoseewhatIP
addresseseachhostonlynetworkisusing.
188
Ifyouarerunningtherouteronthehostcomputer,assigndefaultrouteraddresses
basedontheaddressesofthehostonlyadaptersonthehostcomputer.Inthefirst
virtualmachinesnetworkingconfiguration,thedefaultrouteraddressshouldbe
VMware, Inc.
Chapter 7 Networking
theIPaddressforthehostonlyadapterconnectedtoVMnet1.Inthesecondvirtual
machinesnetworkingconfiguration,thedefaultrouteraddressshouldbetheIP
addressforthehostonlyadapterconnectedtoVMnet2.
Ifyouarerunningtheroutersoftwareonthethirdvirtualmachine,setthedefault
routeraddressesinthefirsttwovirtualmachinesbasedonthoseusedbythethird
virtualmachine.Inthefirstvirtualmachinesnetworkingconfiguration,the
defaultrouteraddressshouldbetheIPaddressforthethirdvirtualmachines
EthernetadapterconnectedtoVMnet1.Inthesecondvirtualmachines
networkingconfiguration,thedefaultrouteraddressshouldbetheIPaddressfor
thethirdvirtualmachinesEthernetadapterconnectedtoVMnet2.
Atthispointyoushouldbeabletopingtheroutermachinefromvirtualmachinesone
andtwo.Andiftheroutersoftwareissetupcorrectly,youshouldbeableto
communicatebetweenthefirstandsecondvirtualmachines.
VMware, Inc.
189
IfyouwantalluserstobeabletosetthevirtualEthernetAdapter(/dev/vmnet0inour
example)topromiscuousmode,youcansimplyrunthefollowingcommandonthe
hostoperatingsystemasroot:
chmod a+rw /dev/vmnet0
Understanding NAT
Networkaddresstranslation,orNAT,providesasimplewayforvirtualmachinesto
usemostclientapplicationsoveralmostanytypeofnetworkconnectionavailableto
thehost.TheonlyrequirementforNATisthatthenetworkconnectionmustsupport
TCP/IP.
NATisusefulwhenyouhavealimitedsupplyofIPaddressesorareconnectedtothe
networkthroughanonEthernetnetworkadapter.NATworksbytranslating
addressesofvirtualmachinesinaprivateVMnetnetworktothatofthehostmachine.
Whenavirtualmachinesendsarequesttoaccessanetworkresource,itappearstothe
networkresourceasiftherequestcamefromthehostmachine.
NATusesthehostsownnetworkresourcestoconnecttotheexternalnetwork.Thus,
anyTCP/IPnetworkresourcetowhichthehosthasaccessshouldbeavailablethrough
theNATconnection.
ThechiefadvantageofNATisthatitprovidesatransparent,easytoconfigurewayfor
virtualmachinestogainaccesstonetworkresources.
ThefollowingsectionsprovidemoreinformationaboutNAT:
190
UsingNATonpage 191
TheHostComputerandtheNATNetworkonpage 191
DHCPontheNATNetworkonpage 191
DNSontheNATNetworkonpage 191
ExternalAccessfromtheNATNetworkonpage 192
AdvancedNATConfigurationonpage 193
CustomNATandDHCPConfigurationonaWindowsHostonpage 196
ConsiderationsforUsingNATonpage 198
UsingNATwithNetLogononpage 198
SampleLinuxvmnetnat.confFileonpage 200
VMware, Inc.
Chapter 7 Networking
Using NAT
TheNATdeviceisconnectedtotheVMnet8virtualswitch.Virtualmachinesconnected
totheNATnetworkalsousetheVMnet8virtualswitch.
TheNATdevicewaitsforpacketscomingfromvirtualmachinesontheVMnet8virtual
network.Whenapacketarrives,theNATdevicetranslatestheaddressofthevirtual
machinetothatofthehostbeforeforwardingthepackettotheexternalnetwork.When
dataarrivesfromtheexternalnetworkforthevirtualmachineontheprivatenetwork,
theNATdevicereceivesthedata,replacesthenetworkaddresswiththatofthevirtual
machineandforwardsthedatatothevirtualmachineonthevirtualnetwork.This
translationoccursautomaticallyandrequiresminimalconfigurationontheguestand
thehost.
VMware, Inc.
191
virtualmachinestoaDNSserverthatisknownbythehost.Responsescomebacktothe
NATdevice,whichthenforwardsthemtothevirtualmachines.
IftheygettheirconfigurationinformationfromDHCP,thevirtualmachinesonthe
NATnetworkautomaticallyusetheNATdeviceastheDNSserver.However,the
virtualmachinescanbestaticallyconfiguredtouseanotherDNSserver.
ThevirtualmachinesintheprivateNATnetworkarenot,themselves,accessiblevia
DNS.IfyouwantthevirtualmachinesrunningontheNATnetworktoaccesseach
otherbyDNSnames,youmustsetupaprivateDNSserverconnectedtotheNAT
network.
192
VMware, Inc.
Chapter 7 Networking
virtualmachineontheNATnetwork.Fordetails,seeAdvancedNATConfiguration
onpage 193.
FilesharingofthetypeusedbyWindowsoperatingsystemsandSambaispossible
amongcomputersontheNATnetworkincludingvirtualmachinesandthehost
computer.IfyouareusingWINSserversonyournetwork,avirtualmachineusing
NATnetworkingcanaccesssharedfilesandfoldersonthehostthatareknownbythe
WINSserversolongasthosesharedfilesandfoldersareinthesameworkgroupor
domain.
Windows Hosts
ConfiguretheNATdeviceusingtheVirtualNetworkEditor(Host>VirtualNetwork
Settings>NAT).
Youcanstop,restart,andstartthevirtualNATdevicebyclickingtheappropriate
button.TheVMnethostsettingletsyouchoosewhichvirtualnetworkusestheNAT
device.YoucanselectDisableifyoudonotwanttouseNATonanyvirtualnetwork.
VMware, Inc.
193
ToeditNATsettingsforavirtualnetwork,chooseitfromthedropdownmenu,then
clickEdit.TheNATSettingsdialogboxappears.
YoucanchangeanyofthefollowingNATsettings:
!
PortforwardingletsyousendincomingTCPorUDPrequeststoaspecificvirtual
machineonthevirtualnetworkservedbytheNATdevice.Tosetupandconfigure
forwardedports,clickPortforwarding.Adialogboxappears.
ToaddanewportforeitherTCPorUDP,clickAdd.Ifaportisalreadylisted,you
canchangeitssettings.Selectitsnameinthelist,andclickProperties.Orclick
Removetoremovetheselectedport.
WhenyouclickAdd,anotherdialogboxappears.IntheHostportfield,typethe
numberoftheincomingTCPorUDPport.Forexample,incomingHTTPrequests
areusuallyonport80.InthefirstForwardingIPaddressfield,typetheIPaddress
ofthevirtualmachinetowhichyouwanttoforwardtheincomingrequests.Inthe
secondfieldonthatline,typetheportnumberyouwanttouseforthoserequests
onthatvirtualmachine.Youcanenterthestandardport,suchas80forHTTP,or
anonstandardportifsoftwarerunninginthevirtualmachineisconfiguredto
acceptrequestsonanonstandardport.TheDescriptionfieldisoptional.You
mightuseittoidentifytheservicebeingforwarded(forexample,HTTP).When
youhavemadethesesettings,clickOK.
194
YoucanspecifyDNSserverstobeusedbythevirtualNATdevice.Todoso,click
DNS.Adialogboxappears.YoucanchangethePolicyforusingmultipleDNS
serversifyouprefertouseRotateorBurstinsteadofthedefaultsettingofOrder.
ToaddaDNSservertothelist,clickAdd.Anotherdialogboxappears.Enterthe
DNSserversIPaddressintheIPaddressfield.TheDescriptionfieldisoptional.
Whenyouhavemadethedesiredsettings,clickOK.Tochangethesettingsfora
serveralreadyinthelist,selectitsentryintheDNSdialogbox,andclick
Properties.Todeleteanentry,selecttheentry,andclickRemove.Whenyouhave
madethedesiredchanges,clickOK.
YoucanchangetheIPaddressfortheNATdeviceintheGatewayIPaddressfield.
TochangetheNetmask,clickthebuttonontheHostVirtualNetworkMapping
taboftheVirtualNetworkEditorandchooseSubnet.
VMware, Inc.
Chapter 7 Networking
ToallowonlypassivemodeFTPovertheNATdevice,deselecttheActiveFTP
checkbox.
YoucanchangethenumberofminutestokeeptheUDPmappingfortheNATin
theUDPtimeoutfield.
IfyouchangetheOUI(OrganizationallyUniqueIdentifier)portionoftheMAC
addressforthevirtualmachineandsubsequentlycannotuseNATwiththevirtual
machine,youshouldchecktheAllowAnyOUIcheckbox.
IntheConfigportfield,youcanspecifyaportthatcanbeusedtoaccessstatus
informationabouttheNAT.Thisoptionisusedfortroubleshootingpurposeswith
VMwaretechnicalsupportonly.
YoucanchangeNetBIOStimeoutandretrysettings.
Whenyouhavemadeallthenetworkingchangesyouwant,clickOK.
Linux Hosts
UsetheNATconfigurationfileonthehosttoconfiguretheNATdevice.Thisfileis
/etc/vmware/vmnet8/nat/nat.conf.
Theconfigurationfileisdividedintosections.Eachsectionconfiguresapartofthe
NATdevice.Textsurroundedbysquarebracketssuchas[host]marksthe
beginningofasection.Ineachsectionisaconfigurationparameterthatcanbeset.The
configurationparameterstaketheformip = 192.168.27.1/24.
ForanexampleofaNATconfigurationfile,seeSampleLinuxvmnetnat.confFileon
page 200.Theconfigurationfilevariablesaredescribedbelow.
VMware, Inc.
195
activeFTP
AflagthatindicatesifactiveFTPistobeallowed.ActiveFTPallowsincoming
connectionstobeopenedbytheremoteFTPserver.Turningthisoffmeansthatonly
passivemodeFTPworks.Settheflagto0toturnactiveFTPoff.
196
Chapter 7 Networking
NOTE
YoucanchangemanykeyNATandDCHPsettingsusingtheVirtualNetwork
Editor(Host>VirtualNetworkSettings).However,ifyouhavemade
manualchangestotheconfigurationfiles,someorallofthosechangesmight
belostwhenyouusetheVirtualNetworkEditor.Ifyouhavemademanual
changes,youshouldmakebackupcopiesofthefilesbeforechangingany
settingsintheVirtualNetworkEditor.AftermakingchangesintheVirtual
NetworkEditor,youcancopyyourmanualchangesbackintotheappropriate
configurationfiles.
VMware, Inc.
197
198
VMware, Inc.
Chapter 7 Networking
WindowsServer2003asaguide.TheprocessissimilarforWindowsNT,WindowsMe,
andWindows9xguests.
1
Inthevirtualmachine,rightclickonMyNetworkPlacesandselectProperties.
IntheNetworkConnectionswindow,rightclickthevirtualnetworkadapterand
selectProperties.
InthePropertiesdialogbox,selectInternetProtocol(TCP/IP),andclick
Properties.
IntheTCP/IPPropertiesdialogbox,clickAdvanced.
ClicktheWINStab,thenunderNetBIOSsetting,selectUseNetBIOSsetting
fromDHCPServer.
ClickOKtwice,andclickClose.
Inthevirtualmachine,rightclickonMyNetworkPlacesandselectProperties.
IntheNetworkConnectionswindow,rightclickthevirtualnetworkadapterand
selectProperties.
InthePropertiesdialogbox,selectInternetProtocol(TCP/IP),andclick
Properties.
IntheTCP/IPPropertiesdialogbox,clickAdvanced.
ClicktheWINStab,andclickAdd.
IntheTCP/IPWINSServerdialogbox,entertheIPaddressfortheWINSserverin
theWINSserverfield,andclickOK.TheIPaddressoftheWINSserverappears
intheWINSaddresseslistontheWINStab.
Repeatsteps5and6foreachWINSservertowhichyouwanttoconnectfromthis
virtualmachine.
ClickOKtwice,andclickClose.
NowthatthevirtualmachinehasanIPaddressforaWINSserver,youuseNetLogon
inthevirtualmachinetologontoadomainandaccesssharesinthatdomain.
Forexample,iftheWINSservercoversadomainwithadomaincontroller,itispossible
toaccessthatdomaincontrollerfromthevirtualmachineandaddthevirtualmachine
VMware, Inc.
199
tothedomain.YouneedtoknowtheuserIDandpasswordoftheAdministratoronthe
domaincontroller.
NOTE
YouraccessislimitedtosharesofvirtualmachinesthatareonthesameNAT
networkorarebridgedonthesamedomain.
200
VMware, Inc.
Chapter 7 Networking
# WEB (make sure that if you are using named webhosting, names point to
# your host, not to guest... And if you are forwarding port other
# than 80 make sure that your server copes with mismatched port
# number in Host: header)
# lynx http://localhost:8888
#8888 = 192.168.27.128:80
# SSH
# ssh -p 8889 root@localhost
#8889 = 192.168.27.128:22
[incomingudp]
# UDP port forwarding example
#6000 = 192.168.27.128:6001
VMware, Inc.
201
Ifyoudonotneedanysharestoappearonyourbridgednetwork,youcanuseyour
existingSambaserverandsetuptheconfigurationfilesoitworksonlyonthehostonly
network.
Sambaconfigurationscanbequitecomplex.Thissectionprovidesseveralsample
configurationfiles.Ifyouneedtogobeyondtheissuescoveredhere,seethemanpage
forthesmb.conffile.Toviewthismanpage,typeoneofthefollowingcommandsina
terminalwindow:
man smb.conf
or
man 5 smb.conf
Payparticularattentiontothesectiononencryptedpasswords.Ifyouhaveenabled
cleartextpasswordsintheguestoperatingsystem,besurethatsmb.confissetupto
usecleartextpasswords.Similarly,ifyouareusingencryptedpasswords,youmust
havethesamesettingintheguestoperatingsystemandinsmb.conf.
NOTE
UsingSambaprintersharingwithvirtualmachinesisnotsupported.Consult
themanpagesforguidanceonconfiguringSambaforprinting.
202
This is the VMware(TM) Samba configuration file. You should read the
smb.conf(5) manual page in order to understand the options listed
here. Samba has a huge number of configurable options
most of which are not shown in this example
Any line that starts with a ; (semicolon) or a # (hash)
is a comment and is ignored. In this example we will use a #
for commentary and a ; for parts of the config file that you
may wish to enable
VMware, Inc.
Chapter 7 Networking
#
# If you modify it, it will be backed up the next time you run the
# configuration program.
# Global settings
[global]
# This should be polled at install time from the private subnet created by
# vmware-config.pl
socket address = 192.168.183.1
interfaces = vmnet1
bind interfaces only = yes
workgroup = WORKGROUP
netbios name = HOSTNAME
server string = VMware host-only
security = user
encrypt passwords = yes
# Note: Printers not loaded in this example. Resource definitions commented
# below.
; load printers = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# VMware extension to use a different shared memory access key on each
# Samba server running on this host
sysv shm key = /dev/vmnet1
;
;
;
;
log
log
max
max
file = /etc/vmware/vmnet1/smb/var/log.smb
level = 1
log size in KB
log size = 50
203
# Shared resources
# Home directories
[homes]
comment = Home directories
browseable = no
writable = yes
# Printers
;[printers]
; comment = All printers
; path = /var/lpd
; browseable = no
; guest ok = no
; writable = no
; printable = yes
;[HostFS]
; comment = VMware host filesystem
; path = /
; public = no
; writeable = yes
; printable = no
204
This is the main Samba configuration file. You should read the
smb.conf(5) manual page in order to understand the options listed
here. Samba has a huge number of configurable options
most of which are not shown in this example
Any line that starts with a ; (semicolon) or a # (hash)
is a comment and is ignored. In this example we will use a #
for commentary and a ; for parts of the config file that you
may wish to enable
NOTE: Whenever you modify this file you should run the command
VMware, Inc.
Chapter 7 Networking
# "testparm" to check that you have not many any basic syntactic
# errors.
# Global Settings
[global]
interfaces = eth0
workgroup = WORKGROUP
netbios name = HOSTNAME
server string = Samba Host Box
#
#
;
;
;
VMware, Inc.
205
;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = yes
; guest ok = yes
; writable = no
; printable = yes
; create mode = 0700
; print command = lpr-cups -P %p -o raw %s -r # using client side
; printer drivers.
; print command = lpr-cups -P %p %s # using cups own drivers (use
; generic PostScript on clients).
; lpq command = lpstat -o %p
; lprm command = cancel %p-%j
;[system]
; comment = System share
; path = /
; valid users = username
; public = no
; browsable = yes
; writable = yes
; printable = no
206
Logontotherootaccount.
su -
RuntheVMwareServerSambapasswordcommand.
vmware-smbpasswd vmnet1 -a <username>
<username>istheusernameyouwanttoadd.Followtheinstructionsonthe
screen.
VMware, Inc.
Chapter 7 Networking
NOTE
vmware-smbpasswdisbasedonthestandardSambapasswordprogram.If
youarefamiliarwiththeoptionsusedinsmbpasswd,youcanuseanyof
theminvmware-smbpasswd.
Logoffoftherootaccount.
exit
Youmightreceiveanerrormessagethatsays
Unknown virtual interface "vmnet1"
ThisindicatesyourmachineisnotusingtheVMwareServerSambaserver.
IfyourinstallationofVMwareServerdoesnotincludetheVMwareServerSamba
serverandyouwanttosetitup,logontotherootaccountonyourhostcomputer(su
),thenrunvmware-config.plfromaterminalonthehost.Theconfigurationprogram
asks
Do you want this script to automatically configure your system to allow your
virtual machines to access the host file system?
Answeryes.
CAUTION
InordertoconfigureVMwareServercorrectly,thevmware-config.pl
configurationprogramrequiresallvirtualmachinestobeshutdown.The
programshutsdownanyrunningvirtualmachinesautomatically.
VMware, Inc.
207
YoucanaddusernamesandpasswordstotheSambapasswordfileatanytimefroma
terminalwindowonyourLinuxhostcomputer.
1
Logontotherootaccount.
su -
RuntheSambapasswordcommand.
smbpasswd -a <username>
<username>istheusernameyouwanttoadd.Followtheinstructionsonthe
screen.
Logoffoftherootaccount.
exit
Sample smb.conf for Running Two Samba Servers at the Same Time
;
;
;
;
;
208
Chapter 7 Networking
;
; Note that you will need to insert specific information
; for your system at several points indicated in the file
; by <text in angle brackets>.
;
; -------------;
; Larmor samba server configuration
;
; Global settings
[global]
;
; Identity
;
; Allow several Samba servers on the same machine
interfaces = <your real subnet>/<your real netmask>
bind interfaces only = yes
; Workgroup the host belongs to
workgroup = VMware
; SMB name of the host (the hostname by default)
netbios name = <your Windows name>
; Description of the host
server string = Linux running Samba 2.0.6
;
; Access
;
; Allow connections from
; hosts allow = <your real subnet>/<your real netmask>
; Authentication scheme
security = user
encrypt passwords = yes
;
; Options
;
; Automatically load the printer list (from /etc/printcap
; by default)
load printers = yes
; Gives better performance
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;
; Files and directories
;
VMware, Inc.
209
210
VMware, Inc.
C HAPTER 8
Configuring Devices
Thischapterdescribeshowtousevariousdeviceswithavirtualmachineandcovers
thefollowingtopics:
!
UsingParallelPortsonpage 211
UsingSerialPortsonpage 216
KeyboardMappingonaLinuxHostonpage 226
UsingUSBDevicesinaVirtualMachineonpage 232
ConnectingtoaGenericSCSIDeviceonpage 237
UsingTwoWayVirtualSymmetricMultiprocessing(Experimental)onpage 244
AboutParallelPortsonpage 211
AddingaParallelPortinaVirtualMachineonpage 212
ConfiguringaParallelPortonaLinuxHostonpage 213
SpecialNotesfortheIomegaZipDriveonpage 216
211
passedtothevirtualmachine.Also,theguestoperatingsystemcannotuseDMA(direct
memoryaccess)tomovedatatoorfromtheport.Forthisreason,notalldevicesthat
attachtotheparallelportareguaranteedtoworkcorrectly.
Youcanattachuptothreeparallelportstoavirtualmachine.Thevirtualparallelport
canconnecttoaparallelportorafileonthehostoperatingsystem.
InaWindows95orWindows98guest,runtheguestoperatingsystemsAdd
NewHardwareWizard(Start>Settings>ControlPanel>AddNew
Hardware)afteryouaddtheportandletWindowsdetectthenewdevice.
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
ClickAddtostarttheNewHardwareWizard.
SelectParallelPort,andclickNext.
Maketheappropriateselectiontouseaphysicalparallelportorconnectthevirtual
parallelporttoafile,andclickNext.
IfyouselectedUsephysicalparallelportonthehost,eitherchoosetheportfrom
thePhysicalparallelportlistorchooseAutodetecttoletVMwareServerselect
theporttouse.
NOTE
Thebenefitofautodetectdevicesisthatyoucanmovethembetween
virtualmachinesrunningdifferentoperatingsystems,suchasLinuxand
MicrosoftWindows,withouthavingtoreconfigurethedevices.
IfyouselectedOutputfile,enterthepathandfilenameintheOutputfilefield,or
browsetothelocationofthefile.
212
VMware, Inc.
UnderDevicestatus,thedefaultsettingisConnectatpoweron.Deselectthe
checkboxifyoudonotwanttheparallelportdevicetobeconnectedwhenthe
virtualmachinepowerson.
6
ClickFinishtoinstallthevirtualparallelport,andclickOKtosavethe
configurationandclosethevirtualmachinesettingseditor.
VMware, Inc.
213
Linuxkernelsinthe2.6.xseriesalsouseaspecialarbitratorthatallowsaccesstothe
parallelporthardware.Iftheparallelportisinusebythehost,theguestcannotuseit.
Ifavirtualmachineisusingtheparallelport,thehostandanyusersaccessingthehost
arenotgivenaccesstothedevice.VMwareServerputsalockonthedevice,andthis
lockrestrictsaccesssoonlythevirtualmachinecanusetheport.
ChooseVM>RemovableDevicestodisconnecttheparallelportfromthevirtual
machineandreconnectit.
214
VMware, Inc.
Ifavirtualmachineisusingtheparallelport,thehostandanyusersaccessingthehost
arenotgivenaccesstothedevice.VMwareServerputsalockonthedevice,andthis
lockrestrictsaccesssoonlythevirtualmachinecanusetheport.
YoucanchooseVM>RemovableDevicestodisconnecttheparallelportfromthe
virtualmachineandreconnectit.
VMware, Inc.
215
Device Permissions
SomeLinuxdistributionsbydefaultdonotgrantthevirtualmachineaccesstothelp
andparportdevices.Inmostofthesecases,theownerofthedeviceisrootandthe
associatedgroupislp.ToallowtheVMwareServerusertoaccessthedevice,addthe
usertotheassociatedgroup.Toviewtheownerandgroupofthedevice,runthis
command:
ls la /dev/parport0
Thethirdandfourthcolumnsoftheoutputshowtheownerandgroup,respectively.
Toaddtheusertothedevicegroup,editthe/etc/groupfile.Onthelinestartingwith
lp,whichdefinesthelpgroup,addtheVMwareServerusersusername.Youmust
makethischangeastherootuser.Thefollowinglineprovidesanexampleforauser
whoseusernameisuserj.
lp::7:daemon,lp,userj
Thenexttimetheuserlogsontothehost,thechangestakeeffect.
UsingaSerialPortontheHostComputeronpage 217
UsingaFileontheHostComputeronpage 218
ConnectinganApplicationontheHosttoaVirtualMachineonpage 220
ConnectingTwoVirtualMachinesonpage 221
SpecialConfigurationOptionsforAdvancedUsersonpage 223
Examples:DebuggingoveraVirtualSerialPortonpage 224
AVMwareServervirtualmachinecanuseuptofourvirtualserialports.Thevirtual
serialportscanbeconfiguredinseveralways.
216
Youcanconnectavirtualserialporttoaphysicalserialportonthehostcomputer.
Youcanconnectavirtualserialporttoafileonthehostcomputer.
VMware, Inc.
Youcanmakeadirectconnectionbetweentwovirtualmachinesorbetweena
virtualmachineandanapplicationrunningonthehostcomputer.
Youcanalsoselectwhethertoconnectthevirtualserialportwhenyoupoweronthe
virtualmachine.
Openthevirtualmachinesettingseditor(chooseVM>Settings).
ClickAddtostarttheAddHardwareWizard.
SelectSerialPort,thenclickNext.TheSerialPortTypescreenappears.
SelectUsephysicalserialportonthehost,thenclickNext.TheSelectaPhysical
SerialPortscreenappears.
VMware, Inc.
217
Youcanchoosetheportonthehostcomputertouseforthisserialconnectionor
chooseAutodetecttoletVMwareServerselecttheport.
NOTE
Thebenefitofautodetectdevicesisthattheycanbemovedbetween
virtualmachinesrunningdifferentoperatingsystems,suchasLinuxand
Windows,withouthavingtobereconfigured.
Bydefault,thedevicestatussettingisConnectatpoweron.Unchecktheboxfor
theportnottobeautomaticallyconnectedwhenyoupoweronthevirtual
machine.
NOTE
IfyouareconnectingwithaWindowsconsoletoaddaphysicalserial
porttoavirtualmachineonaremoteLinuxhost,besuretospecifya
Linuxdevicenamehere,suchas/dev/ttyS0.Ifyouareconnectingwith
aLinuxconsoletoaddaphysicalserialporttoavirtualmachineona
remoteWindowshost,besuretospecifyaWindowsdevicenamehere,
suchasCOM1.
ClickAdvancedtoconfigurethisserialporttousepolledmode.Thisoptionisof
interestprimarilytodeveloperswhoareusingdebuggingtoolsthatcommunicate
overaserialconnection.Formoreinformation,seeSpecialConfigurationOptions
forAdvancedUsersonpage 223.
7
ClickFinish,andclickOKtoclosethevirtualmachinesettingseditor.
CheckYieldCPUonPolltoconfigurethisserialporttousepolledmode.This
optionisofinterestprimarilytodeveloperswhoareusingdebuggingtoolsthat
communicateoveraserialconnection.Formoreinformation,seeSpecial
ConfigurationOptionsforAdvancedUsersonpage 223.
ClickOKtoaddtheserialport.
218
VMware, Inc.
Openthevirtualmachinesettingseditor(VM>Settings).
ClickAddtostarttheAddHardwareWizard.
SelectSerialPort,thenclickNext.TheSerialPortTypescreenappears.
SelectOutputtofile,thenclickNext.TheChooseSerialPortOutputFilescreen
appears.
Browsetothefileonthehostcomputerthatyouwanttousetostoretheoutputof
thevirtualserialport.Bydefault,thedevicestatussettingisConnectatpoweron.
Youmaydeselectthissettingifyouwish.
ClickAdvancedifyouwanttoconfigurethisserialporttousepolledmode.This
optionisofinterestprimarilytodeveloperswhoareusingdebuggingtoolsthat
communicateoveraserialconnection.Formoreinformation,seeSpecial
ConfigurationOptionsforAdvancedUsersonpage 223.
VMware, Inc.
ClickFinish,andclickOKtoclosethevirtualmachinesettingseditor.
219
Openthevirtualmachinesettingseditor(VM>Settings).
ClickAddtostarttheAddHardwareWizard.
SelectSerialPort,thenclickNext.TheSerialPortTypescreenappears.
SelectOutputtonamedpipe,thenclickNext.TheSpecifyNamedPipescreen
appears.
Usethedefaultpipename,orenteranotherpipenameofyourchoice.
ForaserialpipeonaWindowshost,thepipenamemustfollowtheform
\\.\pipe\<namedpipe>thatis,itmustbeginwith\\.\pipe\.
220
VMware, Inc.
ForaserialpipeonaLinuxhost,enter/tmp/<socket>oranotherUnixsocketname
ofyourchoice.
NOTE
IfyouareusingaWindowsconsoletoconnecttoavirtualmachineona
remoteLinuxhost,besuretospecifyaLinuxpipenamehere,suchas
/tmp/<pipe>.IfyouareusingaLinuxconsoletoconnecttoavirtual
machineonaremoteWindowshost,besuretospecifyaWindowspipe
namehere,suchas\\.\pipe\<namedpipe>.
SelectThisendistheserverorThisendistheclient.Ingeneral,selectThisend
istheserverifyouplantostartthisendoftheconnectionfirst.
SelectTheotherendisanapplication.
ThedefaultdevicestatussettingisConnectatpoweron.Deselectthecheckbox
forthedevicenottobeconnectedwhenyoupoweronthevirtualmachine.
ClickAdvancedtoconfigurethisserialporttousepolledmode.Thisoptionisof
interestprimarilytodeveloperswhoareusingdebuggingtoolsthatcommunicate
overaserialconnection.Formoreinformation,seeSpecialConfigurationOptions
forAdvancedUsersonpage 223.
ClickFinish,andclickOKtosaveyourconfigurationandclosethevirtual
machinesettingseditor.
10
Onyourhostcomputer,configuretheapplicationthatcommunicateswiththe
virtualmachinetousethesamepipeorUnixsocketname.
VMware, Inc.
Makesureyouperformsthesestepstwice:oncefortheservervirtualmachine
andoncefortheclientvirtualmachine.
221
Connecttotheservervirtualmachinewithaconsole.
Openthevirtualmachinesettingseditor(VM>Settings).
ClickAddtostarttheAddHardwareWizard.
SelectSerialPort,andclickNext.
SelectOutputtonamedpipe,andclickNext.TheSpecifyNamedPipescreen
appears.
Usethedefaultpipename,orenteranotherpipenameofyourchoice.
ForaserialpipeonaVMwareServerforWindowshost,thepipenamemust
followtheform\\.\pipe\<namedpipe>thatis,itmustbeginwith\\.\pipe\.
ForaserialpipeonaVMwareServerforLinuxhost,enter/tmp/<socket>or
anotherUnixsocketnameofyourchoice.
NOTE
IfyouareusingaWindowsconsoletoconnecttoavirtualmachineona
remoteLinuxhost,besuretospecifyaLinuxpipenamehere,suchas
/tmp/<pipe>.IfyouareusingaLinuxconsoletoconnecttoavirtual
machineonaremoteWindowshost,besuretospecifyaWindowspipe
namehere,suchas\\.\pipe\<namedpipe>.
Fortheservervirtualmachine,selectThisendistheserver.
Fortheclientvirtualmachine,selectThisendistheclient.
SelectTheotherendisavirtualmachine.
Bydefault,thedevicestatussettingisConnectatpoweron.Deselectthecheckbox
forthedevicenottoconnectwhenthevirtualmachineispoweredon.
ClickAdvancedifyouwanttoconfigurethisserialporttousepolledmode.This
optionisofinterestprimarilytodeveloperswhoareusingdebuggingtoolsthat
222
VMware, Inc.
communicateoveraserialconnection.Formoreinformation,seeSpecial
ConfigurationOptionsforAdvancedUsersonpage 223.
10
ClickFinish,andclickOKtosaveyourconfigurationandclosethevirtual
machinesettingseditor.
11
Repeatthesestepsfortheclientvirtualmachine.
Torestoreperformanceforapplicationsonthehost,checktheYieldCPUonpollcheck
box.Thisconfigurationoptionforcestheaffectedvirtualmachinetoyieldprocessor
timeiftheonlytaskitistryingtodoispollthevirtualserialport.
223
Thisoptionisusefulifyouwanttosqueezeeverypossiblebitofspeedfromyourserial
connectionoverapipetothevirtualmachine.Inprinciple,thereisnolimitonthe
outputspeedthespeedatwhichthevirtualmachinesendsdatathroughthevirtual
serialport.Inpractice,theoutputspeeddependsonhowfasttheapplicationatthe
otherendofthepipereadsdatainboundtoit.
<n>isthenumberoftheserialport,startingfrom0.Sothefirstserialportisserial0.
<x>isanypositiveinteger.Itspecifiesthetimetakentotransmitacharacter,expressed
asapercentageofthedefaultspeedsetfortheserialportintheguestoperatingsystem.
Forexample,asettingof200forcestheporttotaketwiceaslongpercharacter,orsend
dataathalfthedefaultspeed.Asettingof50forcestheporttotakeonlyhalfaslongper
character,orsenddataattwicethedefaultspeed.
Youshouldfirstusetheguestoperatingsystemtoconfiguretheserialportforthe
highestsettingsupportedbytheapplicationyouarerunninginthevirtualmachine.
Aftertheserialportspeedissetappropriatelyintheguestoperatingsystem,
experimentwiththissetting.Startwithavalueof100andgraduallydecreaseituntil
youfindthehighestspeedatwhichyourconnectionworksreliably.
WiththedebuggingapplicationontheVMwareServerhost(Windowshostsonly)
WiththedebuggingapplicationinanothervirtualmachineonthesameVMware
Serverhost(usefulonaLinuxhostandcanalsobedoneonaWindowshost)
Eitherofthesemethodsletsyoudebugkernelcodeononesystem,withoutrequiring
twophysicalcomputers,amodemorserialcable.
224
VMware, Inc.
Topreparethetargetvirtualmachine,followthestepsinConnectinganApplication
ontheHosttoaVirtualMachineonpage 220.Makesureyouconfigurethevirtual
machinesvirtualserialportasfollows:
!
SelectThisendistheserver
ClickAdvanced,thenunderI/OMode,selecttheYieldCPUonpollcheckbox,as
thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode,
notinterruptmode
Topreparethehost,makesureyouhavearecentversionofDebuggingToolsfor
Windowsonethatsupportsdebuggingoverapipe.Youneedversion4.0.18.0or
higher.
Whenyouarereadytobegin,completethefollowingsteps:
1
Poweronthevirtualmachine.
Checktomakesuretheserialportisconnected.ChooseVM>Removable
Devices.Onthatmenu,serial<n>shouldbereportedas\\.\pipe\<namedpipe>(on
Windowshosts)or/tmp/<socket>(onLinuxhosts).Iftheserialportisnot
connected,choosethevirtualserialport,thenConnect.
Onthehost,openaCommandPromptwindowanddooneofthefollowing:
!
IfyouareusingWinDbg,typethefollowing:
windbg -k com:port=\\.\pipe\<namedpipe>,pipe
IfyouareusingKD,typethefollowing:
kd -k com:port=\\.\pipe\<namedpipe>,pipe
ThenpressEntertostartdebugging.
225
box.Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode,
notinterruptmode.
Topreparethedebuggervirtualmachine,makesureyouhavedownloadedDebugging
ToolsforWindows.FollowthestepsfortheclientvirtualmachineinConnectingTwo
VirtualMachinesonpage 221.
Whenyouarereadytocontinue,completethefollowingsteps:
1
Poweronbothvirtualmachines.
Checktomakesuretheserialportisconnected.ChooseVM>Removable
Devices.Iftheserialportisnotconnected,choosethevirtualserialport,and
Connect.
Inthedebuggervirtualmachine,startdebuggingwithWinDbgorKDnormally.
My(languagespecific)keyboardisnotsupportedbyVMwareServer.
Someofthekeysonmykeyboarddontworkrightinthevirtualmachine.
MykeyboardworksfinewhenIrunavirtualmachinelocally,butnotwhenIrun
thesamevirtualmachinewitharemoteXserver.
ThefollowingsectionsdescribekeyboardmappingonaLinuxhost:
!
KeyboardMappingforaRemoteServeronpage 226
KeyboardMappingSupportforthePConpage 227
VScanCodeTableonpage 229
226
VMware, Inc.
IfyouareusinganXFree86basedserverthatVMwareServerdoesnotrecognizeasan
XFree86server,enterthefollowinglineinstead:
xkeymap.usekeycodeMap = true
IfyouareusinganXFree86serverrunninglocally,andthekeyboarddoesnotwork
correctly,reporttheproblembysubmittingasupportrequestat
www.vmware.com/requestsupport.
Poweringoffthevirtualmachineandclosetheconsolebeforeyouedita
configurationfile.
xkeymap.usekeycodeMapIfXFree86 = true
UsekeycodemappingifyouareusinganXFree86server,evenifitisremote.
xkeymap.usekeycodeMap = true
Alwaysusekeycodemappingregardlessofservertype.
xkeymap.nokeycodeMap = true
Neverusekeycodemapping.
TheeasiestwaytofindtheXkeycodeforakeyistorunxevorxmodmap -pk.Mostof
thevscancodesarecoveredintheVScanCodeTableonpage 229.Thekeysym
mappingtablesdescribedinthissectionarealsohelpful.
Usethisfeaturetomakesmallmodificationstothemapping.Forexample,toswapleft
CtrlandCapsLock,usethefollowinglines:
xkeymap.keycode.64 = 0x01d # X Caps_Lock -> VM left ctrl
xkeymap.keycode.37 = 0x03a # X Control_L -> VM caps lock
VMware, Inc.
227
Theseconfigurationlinescanbeaddedtotheindividualvirtualmachineconfiguration,
toyourpersonalVMwareServerconfiguration(~/.vmware/config),oreventothe
hostwide(/etc/vmware/config)orinstallationwide(usually
/usr/local/lib/vmware/config)configuration.
Whenkeycodemappingcannotbeused(orisdisabled),VMwareServermaps
keysymstovscancodes.Itdoesthisusingoneofthetablesinthexkeymapdirectoryin
theVMwareServerinstallation(usually/usr/local/lib/vmware).
Whichtableyoushouldusedependsonthekeyboardlayout.Thenormaldistribution
includestablesforPCkeyboardsfortheUnitedStatesandanumberofEuropean
countriesandlanguages.Andformostofthese,thereareboththe101key(or102key)
andthe104key(or105key)variants.
VMwareServerautomaticallydetermineswhichtabletousebyexaminingthecurrent
Xkeymap.However,itsdecisionmakingprocesscansometimesfail.Inaddition,each
mappingisfixedandmightnotbecompletelyrightforanygivenkeyboardandXkey
codetokeysymmapping.Forexample,ausermighthaveswappedCtrlandCaps
Lockusingxmodmap.Thismeansthekeysareswappedinthevirtualmachinewhen
usingaremoteserver(keysymmapping)butunswappedwhenusingalocalserver
(keycodemapping).
Therefore,keysymmappingisnecessarilyimperfect.Tomakeupforthisdefect,you
canchangemostofthebehaviorusingconfigurationsettings:
!
xkeymap.language = <keyboard-type>
UsethisifVMwareServerhasatableinxkeymapforyourkeyboardbutcantdetect
it.<keyboard-type>mustbeoneofthetablesinthexkeymapdirectory.(Seeabove
forlocation.)However,thefailuretodetectthekeyboardprobablymeansthetable
isntcompletelycorrectforyou.
228
xkeymap.fileName = <file-path>
Usethekeysymmappingtablein<file-path>.Atableisasequenceof
VMware, Inc.
configurationlinesoftheform
<sym> = <v-scan code>
where<sym>isanXkeysymname,and<v-scan code>isaCsyntaxhexadecimal
number(forexample,0x001).(Seetheexplanationofxkeymap.keysymabovefor
tipsonfindingthekeysymsandvscancodesforyourkeyboard.)
Compilingacompletekeysymmappingisdifficult.Itisbesttostartwithan
existingtableandmakesmallchanges.
Shifted symbol
Esc
VMware, Inc.
Location
V-scan code
0x001
0x002
0x003
0x004
0x005
0x006
0x007
&
0x008
0x009
0x00a
0x00b
0x00c
0x00d
Backspace
0x00e
Tab
0x00f
0x010
0x011
0x012
0x013
0x014
0x015
0x016
0x017
229
Table 8-1.
Symbol
Shifted symbol
Location
0x018
0x019
0x01a
0x01b
Enter
0x01c
Ctrl
left
0x01d
0x01e
0x01f
0x020
0x021
0x022
0x023
0x024
0x025
0x026
0x027
0x028
0x029
Shift
\
left
|
0x02a
0x02b
0x02c
0x02d
0x02e
0x02f
0x030
0x031
M
,
230
V-scan code
0x032
<
0x033
>
0x034
0x035
Shift
right
0x036
numericpad
0x037
Alt
left
0x038
VMware, Inc.
Table 8-1.
Symbol
Shifted symbol
Location
Spacebar
0x039
CapsLock
0x03a
F1
0x03b
F2
0x03c
F3
0x03d
F4
0x03e
F5
0x03f
F6
0x040
F7
0x041
F8
0x042
F9
0x043
F10
0x044
NumLock
numericpad
ScrollLock
0x045
0x046
Home
numericpad
0x047
Uparrow
numericpad
0x048
PgUp
Leftarrow
5
Rightarrow
numericpad
0x049
numericpad
0x04a
numericpad
0x04b
numericpad
0x04c
numericpad
0x04d
numericpad
0x04e
End
numericpad
0x04f
Downarrow
numericpad
0x050
PgDn
numericpad
0x051
Ins
numericpad
0x052
numericpad
0x053
Del
F11
0x057
F12
Break
VMware, Inc.
V-scan code
0x058
Pause
0x100
Enter
numericpad
0x11c
Ctrl
right
0x11d
numericpad
0x135
231
Table 8-1.
Symbol
Shifted symbol
Location
V-scan code
SysRq
PrintScrn
right
0x138
Home
functionpad
0x147
Uparrow
functionpad
0x148
PageUp
functionpad
0x149
Leftarrow
functionpad
0x14b
Rightarrow
functionpad
0x14d
End
functionpad
0x14f
Downarrow
functionpad
0x150
PageDown
functionpad
0x151
Insert
functionpad
0x152
Delete
functionpad
0x153
Windows
left
0x15b
Windows
right
0x15c
Alt
0x137
Menu
0x15d
The84keykeyboardhasaSysReqkeyonthenumericpad:
Symbol
Shifted symbol
SysReq
Location
V-scan code
numericpad
0x054
KeyboardsoutsidetheU.S.usuallyhaveanextrakey(often<>or<>|)nexttotheleft
shiftkey:
Symbol
Shifted symbol
<
>
Location
V-scan code
0x056
232
NotesonUSBSupportonpage 233
AddingaUSBControlleronpage 233
ConnectingUSBDevicesonpage 234
VMware, Inc.
UsingUSBwithaWindowsHostonpage 235
ReplacingUSB2.0DriversonaWindows2000Hostonpage 235
UsingUSBwithaLinuxHostonpage 235
USBDeviceControlonpage 236
DisconnectingUSBDevicesfromaVirtualMachineonpage 237
Thisisparticularlyimportantwithdatastoragedevices(aZipdrive,for
example).Ifyoumoveadatastoragedevicetoosoonaftersavingafileandthe
operatingsystemhasnotactuallywrittenthedatatothedisk,youcanlosedata.
onpage 237
VMwareServerprovidesatwoportUSB1.1controller.YoucanuseuptotwoUSB
devicesinyourvirtualmachineifbothyourhostoperatingsystemandyourguest
operatingsystemsupportUSB.IfyourhostcomputersupportsUSB2.0devices,you
canusethosedevicesinthevirtualmachine.
NOTE
Linuxkernelsolderthan2.2.17donotsupportUSB.
AlthoughyourhostoperatingsystemmustsupportUSB,youdonotneedtoinstall
devicespecificdriversforyourUSBdevicesinthehostoperatingsystemtousethose
devicesonlyinthevirtualmachine.
OnaWindows2000hostcomputerwithUSB2.0support,besureyouareusingthe
MicrosoftUSB2.0driverfortheUSBcontroller.ThirdpartyUSB2.0drivers,suchas
thoseprovidedbysomemotherboardmanufacturers,arenotsupported.Fornoteson
replacingthethirdpartydrivers,seeReplacingUSB2.0DriversonaWindows2000
Hostonpage 235.
VMware, Inc.
233
followingstepswiththevirtualmachinepoweredoff.UsetheVMwareServerConsole
toaddthedevice.
Openthevirtualmachinesettingseditor.ChooseVM>Settings.
ClickAddtostarttheNewHardwareWizard.ClickNext.TheHardwareType
screenappears.
SelectUSBController,andclickNext.TheUSBscreenappears.
ClickFinishtoinstallthevirtualUSBcontroller,andclickOKtosavethe
configurationandclosethevirtualmachinesettingseditor.
234
VMware, Inc.
GototheDeviceManager.RightclickMyComputer,chooseProperties,clickthe
Hardwaretab,thenclickDeviceManager.
ExpandthelistingforUniversalSerialBuscontrollers.
RightclickthelistingforthecontrollerandchooseProperties.
ClicktheDrivertab.IfthedriverprovidershownonthatpageisMicrosoft,you
havethecorrectdriveralready.
IfthedriverproviderisnotMicrosoft,downloadthelatestUSBdriverforyourhost
operatingsystemfromtheMicrosoftWebsiteandfollowtheMicrosoftinstructionsto
installit.DetailsareavailableinMicrosoftknowledgebasearticle319973.
VMware, Inc.
235
filesystem,youcanchangeitinthevirtualmachinesettingseditor(VM>Settings>
USB).EnterthecorrectpathinthePathtousbdevfsfield.
YouneedtotakeaspecialsteptodisconnectUSBnetworkandstorage
devicesfromthehost.ThereisasystemtrayiconcalledEjectHardware
onWindows2000andSafelyRemoveHardwareonWindowsServer
2003.Usethisicontodisconnectthedevicefromthehostbefore
connectingittoavirtualmachine.
WhenyouconnectaUSBnetworkorstoragedeviceinavirtualmachine,youmightsee
amessageonyourhostthatsaysthedevicecanberemovedsafely.Thisisnormal
behavior,andyoucansimplydismissthedialogbox.However,donotremovethe
devicefromyourphysicalcomputer.VMwareServerautomaticallytransferscontrolof
thedevicetothevirtualmachine.
Undersomecircumstances,ifaUSBstoragedeviceisinuseonthehost(forexample,
oneormorefilesstoredonthedeviceareopenonthehost),anerrorappearsinthe
virtualmachinewhenyoutrytoconnecttothedevice.Youmustletthehostcomplete
itsoperationorcloseanyapplicationconnectedtothedeviceonthehost.Reconnectthe
deviceinthevirtualmachine.
236
VMware, Inc.
Arelatedissuesometimesaffectsdevicesthatrelyonautomaticconnection(asPDAs
oftendo).
Ifyouhavesuccessfullyusedautoconnectiontoconnectthedevicetoyourvirtual
machine,andlaterexperienceproblemswiththeconnectiontothedevice,completethe
followingsteps:
1
Disconnectandreconnectthedevice.Youcaneitherunplugitphysically,andplug
itbackin,orusetheVM>RemovableDevicesmenutodisconnectitand
reconnectit.
Ifyouseeadialogboxwarningthatthedeviceisinuse,disableitinthehotplug
configurationfilesinthe/etc/hotplugdirectory.
USB Devices
USBdevices,suchasthekeyboardandmouse,arenothandledthroughthevirtual
machinesUSBcontroller.Instead,theyappearinthevirtualmachineasastandard
PS/2keyboardandmouse,eventhoughtheyarepluggedintoUSBportsonthehost.
DeviceSupportinGuestOperatingSystemsonpage 238
AddingaGenericSCSIDevicetoaVirtualMachineonpage 239
GenericSCSIonaWindowsHostOperatingSystemonpage 240
GenericSCSIonaLinuxHostOperatingSystemonpage 243
GenericSCSIletsavirtualmachinerunanySCSIdevicethatissupportedbytheguest
operatingsysteminthevirtualmachine.GenericSCSIgivestheguestoperatingsystem
VMware, Inc.
237
directaccesstoSCSIdevicesconnectedtothehost,suchasscanners,tapedrives,and
tapechangers.
238
ClicktheDriverstab.
ClickAdd.
Inthelistofvendorsontheleft,selectBusLogic.
Inthelistofdriversontheright,selectBusLogicMultiMasterPCISCSIHost
Adapters.
ClickOK.
InserttheWindowsNTCDwhenyouareprompted.ClickOK.
Reboottheguestoperatingsystemwhenyouareprompted.
VMware, Inc.
LaunchaVMwareServerConsoleandselectthevirtualmachine.
ChooseVM>Settings.Thevirtualmachinesettingseditoropens.
ClickAddtostarttheAddHardwareWizard.SelectGenericSCSIDevice,then
clickNext.
Choosethenameofthephysicaldeviceyouwanttouse.
Choosethevirtualdevicenodewhereyouwantthisdevicetoappearinthevirtual
machine.
AcheckboxunderDevicestatusletsyouspecifywhetherornotthedeviceshould
beconnectedeachtimethevirtualmachineispoweredon.
VMware, Inc.
239
NOTE
OnaWindowshost,thedeviceshouldappearintheformCdRom0,
Scanner0,Tape0orChanger0.Ifyoudonotseealistingforthedevice,
youmightneedtoaddthedevicetothevirtualmachinemanually.See
GenericSCSIonaWindowsHostOperatingSystemonpage 240.
ClickFinishtoinstallthenewdevice.
ClickOKtosavetheconfigurationandclosethevirtualmachinesettingseditor.
Adriverforthatdeviceisnotinstalledonthehost.
Adriveronthehostpreventsthedevicefrombeingdetected.
Thevirtualmachineusesadeviceforwhichnodriversareavailabletothehost
operatingsystem.
Beforeyouattemptthestepsbelow,verifythatthedevicedriverisinstalledonthehost.
Ifthedriverisnotinstalled,installitandverifythatthedeviceappearscorrectlyto
VMwareServer.Ifitdoesnotappearcorrectly,orifyoucannotordonotwanttoinstall
thedriveronthehost,addthedevicemanuallytothevirtualmachine.
Whenaddingadevicemanuallytothevirtualmachine,usescsiX:Ynotationtorefer
tothedeviceonthehostinsteadofadevicenamesuchasCdRom0, that VMwareServer
uses.Forthistypeofnotation,XistheSCSIbusonwhichthedeviceislocatedonthe
hostandYisthetargetIDthedeviceusesonthehost.
CAUTION
240
Addingadeviceinthismannerisrecommendedforadvancedusersonly.
VMware, Inc.
CAUTION
Beforeyouaddthedevice,youmustdisabletheoriginalSCSIdevice
driveronthehost.SomeWindowsoperatingsystemsdonotprocessthe
sendcommandfromtheadapterifthedevicedriverisowningthedevice.
Thereareafewcircumstancesthatrequireyoutoaddthedevicemanually.Followthe
stepsthatmatchyourcircumstance.Ineachcase,poweroffthevirtualmachineand
openthevirtualmachinesconfigurationfile(.vmx)inatexteditorandmakethe
changesasdescribedbelow.
1
ThevirtualmachinedoesnotcontainanySCSIadaptersordevices,oryouwantto
addagenericSCSIdevicetoanewvirtualSCSIadapterinthevirtualmachine.
Toaddthedevicetothevirtualmachine,youneedtoaddthefollowinglinestothe
virtualmachinesconfigurationfile:
scsiZ:Y.present = "true"
scsiZ:Y.deviceType = "scsi-passthru"
scsiZ:Y.fileName = "scsiX:Y"
DefineX,YandZasfollows:
XistheSCSIbusthedeviceusesonthehostsystem.
YisthetargetIDthedeviceusesinthevirtualmachineandonthehost.Use
thesametargetIDinthevirtualmachinethatthehostalreadyusesforthe
devicetoallowthedevicetoworkcorrectly.
ZistheSCSIbusthedeviceusesinthevirtualmachine.
ThevirtualmachinehasaSCSIadapterandaSCSIdeviceandyouwanttousethe
samedeviceasagenericSCSIdevice.
ToconfigurethedeviceasagenericSCSIdevice,youneedtoaddthefollowing
linestothevirtualmachinesconfigurationfile:
scsiZ:Y.deviceType = "scsi-passthru"scsiZ:Y.fileName = "scsiX:Y"
DefineX,YandZasfollows:
VMware, Inc.
XistheSCSIbusthedeviceusesonthehostsystem.
YisthetargetIDthedeviceusesinthevirtualmachineandonthehost.Use
thesametargetIDinthevirtualmachinethatthehostalreadyusesforthe
devicetoallowthedevicetoworkcorrectly.
ZistheSCSIbusthedeviceusesinthevirtualmachine.
ThevirtualmachinehasaSCSIadapterandgenericSCSIdevice,butVMware
ServerdoesnotrecognizethedeviceintheAddHardwareWizard.
241
Youneedtolocatealineintheconfigurationfilethatlookslike:
scsiZ:Y.fileName = "<deviceName>"
Changethelineto:
scsiZ:Y.fileName = "scsiX:Y"
DefineX,YandZasfollows:
!
XistheSCSIbusthedeviceusesonthehostsystem.
YisthetargetIDthedeviceusesinthevirtualmachineandonthehost.Use
thesametargetIDinthevirtualmachinethatthehostalreadyusesforthe
devicetoallowthedevicetoworkcorrectly.
ZistheSCSIbusthedeviceusesinthevirtualmachine.
Forexample,iftheproblematicdeviceisaCDROMdrive,theentryinthe
configurationfilemightbe:
scsi0:4.fileName = "CdRom0"
Ifthedeviceonthehostislocatedonbus2withtargetID4,youshouldchangethis
lineto:
scsi0:4.fileName = "scsi2:4"
ThetargetIDthedeviceusesinthevirtualmachinemustbethesameasthetarget
IDthedeviceusesonthehostsystem.
4
YouaddedagenericSCSIdevicetothevirtualmachinesconfigurationfile(.vmx)
asinstructedinstep3,butVMwareServerdoesnotrecognizethedeviceinthe
AddHardwareWizard.Youmightexperiencethisissuewithtapedrivesandtape
changers.
Inthiscase,lookforthelineintheconfigurationfilethatlookslike:
scsiZ:Y.fileName = "scsiX:Y"
Changethelineto:
scsiZ:Y.fileName = "<deviceName>"
ExampledevicenamesincludeTape0andChanger0.
Anotheralternativeyoucantryistouninstallordisablethedevicedriveronthe
hostandusethe"scsiX:Y"notationintheconfigurationfile.
242
VMware, Inc.
NOTE
TheSCSIbusisassignedanumberbythehostoperatingsystemafterallIDE
buseshavebeenassignednumbers.Forexample,ifyouhave2IDEbuses,they
arenumbered0and1.ThefirstSCSIbusisassignedbusnumber2.Inthe
exampleabove,youuse2forX.
IfyoucannotdeterminetheSCSIbusnumberonyourown,youcantryusingathird
partytoollikewinobj(whichyoucandownloadforfreefromwww.sysinternals.com)
todeterminethisinformation.
ThedevicetargetIDisusuallysetbysomejumpersorswitchesonthedevice.Referto
theownersmanualforthedeviceforinformationonhowtodeterminethetargetID.
WhensettingupagenericSCSIdeviceinthevirtualmachinesettingseditor,
asdescribedlaterinthissection,youspecifythedeviceyouwishtoinstallin
thevirtualmachinebytypingits/dev/sgentryintheConnectionfield.
Requirements
GenericSCSIrequiresversion2.1.36oftheSCSIGeneric(sg.o)driver,whichcomes
withkernel2.2.14andhigher.
VMware, Inc.
243
usethesamedeviceinbothhostandguest.Thiscancauseunexpectedbehaviorand
maycauselossorcorruptionofdata.
Asingleprocessorhostwithhyperthreadingenabled
AsingleprocessorhostwithadualcoreCPU
AmultiprocessorhostwithtwoCPUs,neitherofwhicharedualcoreorhave
hyperthreadingenabled.
NOTE
Onhyperthreadeduniprocessorhosts,performanceofvirtualmachineswith
VirtualSMPmightbesubpar.
VMwareServerdoesnotsupportguestswithmorethantwovirtualprocessors.You
can,however,poweronandrunmultipledualprocessorvirtualmachines
concurrently.
YoucansetthenumberofprocessorsforthevirtualmachinefromtheVMwareServer
Consoleinthevirtualmachinesettingseditor.
244
GotoVM>Settings.
FromtheHardwaretab,clicktheentryforVirtualProcessors.
Clickoneortwotosetthenumberofvirtualprocessors,andclickOK.
VMware, Inc.
NOTE
Thesummaryviewalsodisplaysthenumberofvirtualprocessors
currentlyconfiguredforthevirtualmachine.
Youcanalsosetthenumberofvirtualprocessorswhenyoucreateavirtualmachine
usingtheNewVirtualMachineWizard.Youmustchooseacustomconfiguration.The
optiontosetthenumberofvirtualprocessorsisnotavailableinatypicalconfiguration.
Formoreinformation,seeSettingUpaNewVirtualMachineonpage 25.
VMwareServerdoesnotsupportorrecommendassigningtwoprocessorstoahost
withasingleprocessorthatdoesnothavehyperthreadingenabled.Awarningmessage
appearsifyoudoso.Youcandisregardthismessageandassigntwoprocessorstothe
virtualmachine,butafteryouhavecreatedthevirtualmachine,youwillnotbeableto
poweritonunlessyoumoveittoahostmachinewithatleasttwologicalprocessors.
VirtualMachineswithVirtualSMPenabledarecompatiblewithWorkstation5.x
virtualmachines.YoucanalsomovevirtualmachineswithVirtualSMPenabled
betweenVMwareServerandVMwareESXServer.
VirtualMachineswithVirtualSMPenabledarenotcompatiblewithVMwareGSX
Server3orwithversionsofWorkstationpriorto5.x.
VMware, Inc.
245
246
VMware, Inc.
C HAPTER 9
Thischapterprovidesinformationonconfiguringthevideodisplayandsoundfor
VMwareServerandcoversthefollowingtopics:
!
SettingScreenColorDepthinaVirtualMachineonpage 247
UsingFullScreenModeonaLinuxHostonpage 248
ConfiguringSoundonpage 249
16color(VGA)mode
8bitpseudocolor
16bitsperpixel(16significantbitsperpixel)
32bitsperpixel(24significantbitsperpixel)
Ifthehostisin15bitcolormode,theguestoperatingsystemscolorsettingcontrols
offer15bitmodeinplaceof16bitmode.
Ifthehostisin24bitcolormode,theguestoperatingsystemscolorsettingcontrols
offer24bitmodeinplaceof32bitmode.
Ifyourunaguestoperatingsystemsetforagreaternumberofcolorsthanyourhost
operatingsystemisusing,youcanencountervariousproblems.Insomecases,the
colorsintheguestarenotcorrect.Inothers,theguestoperatingsystemisnotableto
useagraphicalinterface.
Tofixtheseproblems,youcaneitherincreasethenumberofcolorsavailableonthehost
ordecreasethenumberofcolorsusedintheguest.
Forbestperformance,usethesamenumberofcolorsintheguestandonthehost.
Thefollowingsectionsdescribechangingthecolordepthonthehostandinavirtual
machine:
VMware, Inc.
247
ChangingScreenColorDepthontheHostonpage 248
ChangingScreenColorDepthintheVirtualMachineonpage 248
VMware, Inc.
Ifthishappens,immediatelyleavefullscreenmodebypressingCtrlAlt,thenfixyour
XserverconfigurationandrestarttheXserver.However,iftheonlyproblemisthatthe
imageisoffcenterorisnotquitetherightsizeonthemonitor,youcanusuallycorrect
itusingthecontrolsonyourmonitor.Notethatmostmodernmonitorsarecapableof
storingseparatesettingsforeachresolution,sochangingthesettingsforanewmode
shouldnotimpairthesettingsforthehostresolution.
Configuring Sound
VMwareServerprovidesasounddevicecompatiblewiththeCreativeTechnology
SoundBlasterAudioAPIadapterandsupportssoundinWindows95,Windows98,
WindowsMe,WindowsNT,Windows2000,WindowsXP,WindowsServer2003,and
Linuxguestoperatingsystems.TheVMwareServersounddeviceisdisabledbydefault
andmustbeinstalledusingthevirtualmachinesettingseditor(VM>Settings).
SoundsupportincludesPCM(pulsecodemodulation)output,andinput.Forexample,
youcanplay.wavfiles,MP3audio,andRealMediaaudio.MIDIoutputfromWindows
guestsissupportedthroughtheWindowssoftwaresynthesizer.MIDIinputisnot
supported,andnoMIDIsupportisavailableforLinuxguests.
Windows2000,WindowsXP,andmostrecentLinuxdistributionsautomaticallydetect
thesounddeviceandinstallappropriatedriversforit.
ThefollowingsectionsdescribeinstallingsounddriversinsomeWindowsguest
operatingsystems.
VMware, Inc.
249
CreativeLabshasanumberofWebsitesservingvariousregionsoftheworld.The
adapternamevaries,dependingontheregion,butusuallyincludesPCI128.
250
VMware, Inc.
ThischapterdescribesoptionsforgettingthebestperformancefromVMwareServer
andyourvirtualmachinesandcoversthefollowingtopics:
!
AllocatingMemorytoaVirtualMachineonpage 251
ImprovingPerformanceforGuestOperatingSystemsonpage 253
Whatkindsofapplicationswillruninthevirtualmachine.
Whatothervirtualmachineswillcontendwiththisvirtualmachineformemory
resources.
Whatapplicationswillrunonthehostatthesametimeasthevirtualmachine.
VMware, Inc.
251
Thetotalamountofhostmemorythatallrunningvirtualmachinescanuse;for
moreinformation,seeSpecifyingHowMuchRAMisUsedbyAllRunning
VirtualMachines.
Thefilesystemwherethevirtualmachineisstored.Youcannotallocatemorethan
2000MBofmemorytoavirtualmachineifitisstoredonafilesystemthatcannot
supportfileslargerthan2GB,suchasFAT16.Youwillnotbeabletopoweronsuch
avirtualmachine.Further,youcannotallocatemorethan2000MBofmemorytoa
virtualmachineifitisstoredonaFAT32filesystem,eventhoughitdoessupport
filesupto4GBinsize.
Formoreinformationonhostmemoryuse,seeUnderstandingMemoryUsage.
Connecttothevirtualmachinewithaconsole.
Openthevirtualmachinesettingseditor(VM>Settings).Thevirtualmachine
settingseditoropenswiththeMemorytabselected.
Allocatememorytothevirtualmachine.Usethesliderorspincontroller,ortype
theamountofmemorytoallocateintheMBfield.Thevaluemustbeamultipleof
four.
NOTE
252
Theminimumsizeofthememoryforthevirtualmachineshouldbeset
basedontherecommendationsoftheoperatingsystemprovider.
VMware, Inc.
Windows2000,WindowsXPandWindowsServer2003GuestOSPerformance
Tipsonpage 253
Windows95andWindows98GuestOperatingSystemPerformanceTipson
page 254
LinuxGuestOperatingSystemPerformanceTipsonpage 256
Thissectionpertainstotheguestoperatingsystemthatisrunninginsidea
VMwareServervirtualmachine.Itdoesnotdescribeactionsthatshouldbe
takenonWindows2000orWindowsServer2003runningonthehost
computer.
VMware Tools
MakecertainVMwareToolsisinstalled.VMwareToolsprovidesanoptimizedSVGA
driverandsetsuptheVMwareToolsservicetorunautomaticallywhenthesystem
starts.Amongotherthings,VMwareToolsallowsyoutosynchronizethevirtual
machinesclockwiththehostcomputersclock,whichcanimproveperformancefor
somefunctions.InstallVMwareToolsbychoosingVM>InstallVMwareTools.
VMware, Inc.
253
Visual Effects
ThefadeeffectsthatWindows2000,WindowsXP,andWindowsServer2003usewhen
displayingmenuscanbesomewhatslowandmakethevirtualmachineseemless
responsive.
Todisablethefadeeffects,rightclicktheguestoperatingsystemdesktop,thenchoose
Properties>Appearance>Effects(onWindowsXPorWindowsServer2003)or
Properties>Effects(onWindows2000)anddeselecttheUsetransitioneffectsfor
menusandtooltipscheckbox.
VMware Tools
MakecertainVMwareToolsisinstalled.VMwareToolsprovidesanoptimizedSVGA
driverandsetsuptheVMwareToolsservicetorunautomaticallywhenthesystem
starts.Amongotherthings,theVMwareToolsserviceallowsyoutosynchronizethe
virtualmachinesclockwiththehostcomputersclock,whichcanimprove
254
VMware, Inc.
performanceforsomefunctions.InstallVMwareToolsbychoosingVM>Install
VMwareTools.
RightclickMyComputerandchoosePropertiesfromthepopupmenu.
Clickthe+signbesideDiskDrivestoshowyourvirtualmachinesindividual
drives.
RightclicktheentryforeachIDEdrivetoopenitsPropertiesdialogbox.
UnderSettings,checktheboxlabeledDMAandacceptanywarningWindows
displays.
RestarttheWindowsguestforthenewsettingstotakeeffect.
Disconnect CD-ROM
UsingtheRemovableDevicessubmenu,disconnectyourCDROMdriveifyoudonot
needtouseit.DisconnectingtheCDROMdrivereducesprocessorusage.
Visual Effects
Windows98hasanumberofvisualeffects,designedtobeattractive,thatplace
unnecessarydemandsonthegraphicsemulationinVMwareServer.Someusershave
seenperformanceimprovementswhentheyturnoffthesespecialeffects.
Tomodifythesesettings,rightclickonthedesktopofyourvirtualmachine,thenselect
Propertiesfromthepopupmenu.ClicktheEffectstabanddeselecttheAnimate
windows,menus,andlistscheckbox.
VMware, Inc.
255
Also,ifShowwindowcontentswhiledraggingischecked,trydeselectingthatcheck
box.
Thisdocumentpertainstotheguestoperatingsystemthatisrunninginsidea
VMwareServervirtualmachine.Itdoesnotdescribeactionsthatshouldbe
takenonLinuxrunningonthehostcomputer.
VMware Tools
MakecertainVMwareToolsisinstalled.VMwareToolsprovidesanoptimizedSVGA
driverandsetsuptheVMwareToolsservicetorunautomaticallywhenthesystem
starts.Amongotherthings,theVMwareToolsserviceallowsyoutosynchronizethe
virtualmachinesclockwiththehostcomputersclock,whichcanimprove
performanceforsomefunctions.InstallVMwareToolsbychoosingVM>Install
VMwareTools.
Disconnect CD-ROM
UsingtheRemovableDevicessubmenu,disconnectyourCDROMdriveifyoudonot
needtouseit.DisconnectingtheCDROMdrivereducesprocessorusage.
256
VMware, Inc.
Glossary
AddHardwareWizard
Apointandclickinterfaceforaddingvirtualhardwaretoavirtualmachine.To
launchtheWizard,poweroffthevirtualmachine,openthevirtualmachine
settingseditor,thenclickAdd.Itpromptsyouforinformationforconfiguringthe
hardware,suggestingdefaultvaluesinmostcases.
SeealsoVirtualmachinesettingseditor.
Bridgednetworking
Atypeofnetworkconnectionbetweenavirtualmachineandtherestoftheworld.
Underbridgednetworking,avirtualmachineappearsasanadditionalcomputer
onthesamephysicalEthernetnetworkasthehost.
SeealsoHostonlynetworking.
Configuration
SeeVirtualmachineconfigurationfile.
Console
SeeVMwareServerConsole.
Currentvirtualmachine
AvirtualmachinecreatedunderthecurrentVMwareServerversionand
WorkstationServer5.x.
SeealsoLegacyvirtualmachine.
Customnetworking
Anytypeofnetworkconnectionbetweenvirtualmachinesandthehostthatdoes
notusethedefaultbridged,hostonlyornetworkaddresstranslation(NAT)
networkingconfigurations.Forinstance,differentvirtualmachinescanbe
connectedtothehostbyseparatenetworksorconnectedtoeachotherandnotto
thehost.Anynetworktopologyispossible.
VMware, Inc.
191
EULA
Theenduserlicenseagreement.
Existingpartition
Apartitiononaphysicaldiskinthehostmachine.
SeealsoPhysicaldisk.
Fullscreenmode
Adisplaymodeinwhichthevirtualmachinesdisplayfillstheentirescreen.
SeealsoQuickswitchmode.
Growabledisk
Atypeofvirtualdiskwherethediskspaceisnotpreallocatedtoitsfullsize.Its
filesstartoutsmallinsizeandgrowasdataiswrittentoit.
Guestoperatingsystem
Anoperatingsystemthatrunsinsideavirtualmachine.
SeealsoHostoperatingsystem.
Headless
Adescriptionforaprogramorapplicationthatrunsinthebackgroundwithout
anygraphicaluserinterfaceconnectedtoit.Avirtualmachinerunningwithno
consolesconnectedtoitisconsideredtoberunningheadless.
Hostonlynetworking
Atypeofnetworkconnectionbetweenavirtualmachineandthehost.Under
hostonlynetworking,avirtualmachineisconnectedtothehostonaprivate
network,whichnormallyisnotvisibleoutsidethehost.Multiplevirtualmachines
configuredwithhostonlynetworkingonthesamehostareonthesamenetwork.
SeealsoBridgednetworking,CustomnetworkingandNetworkaddress
translation.
Hostcomputer
ThephysicalcomputeronwhichtheVMwareServersoftwareisinstalled.Ithosts
theVMwareServervirtualmachines.
192
VMware, Inc.
Glossary
Hostoperatingsystem
Anoperatingsystemthatrunsonthehostmachine.
SeealsoGuestoperatingsystem.
Independentdisk
Anindependentdiskisatypeofvirtualdiskthatisnotaffectedbysnapshots.
Independentdiskscanbeconfiguredinpersistentandnonpersistentmodes.
SeealsoNonpersistentmode,Persistentmode.
Inventory
Alistintheleftpaneloftheconsolewindowthatshowsthenamesofvirtual
machinesthatauserhasaddedtothelist.Theinventorymakesiteasytolauncha
virtualmachineortoconnecttothevirtualmachinesconfigurationfileinorderto
makechangesinthevirtualmachinesettings.
Legacyvirtualmachine
AvirtualmachinecreatedunderVMwareGSXServerorVMwareWorkstation3
or4.SeealsoCurrentvirtualmachine.
Networkaddresstranslation(NAT)
Atypeofnetworkconnectionthatallowsyoutoconnectyourvirtualmachinesto
anexternalnetworkwhenyouhaveonlyoneIPnetworkaddress,andthataddress
isusedbythehostcomputer.IfyouuseNAT,yourvirtualmachinedoesnothave
itsownIPaddressontheexternalnetwork.Instead,aseparateprivatenetworkis
setuponthehostcomputer.Yourvirtualmachinegetsanaddressonthatnetwork
fromtheVMwarevirtualDHCPserver.TheVMwareNATdevicepassesnetwork
databetweenoneormorevirtualmachinesandtheexternalnetwork.Itidentifies
incomingdatapacketsintendedforeachvirtualmachineandsendsthemtothe
correctdestination.
SeealsoBridgednetworking,CustomnetworkingandHostonlynetworking.
NewVirtualMachineWizard
Apointandclickinterfaceforconvenient,easycreationofavirtualmachine
configuration.TolaunchtheWizard,chooseFile>NewVirtualMachine.It
promptsyouforinformation,suggestingdefaultvaluesinmostcases.Itcreates
filesthatdefinethevirtualmachine,includingavirtualmachineconfigurationfile
and(optionally)avirtualdiskorphysicaldiskfile.
SeealsoVirtualmachinesettingseditor.
VMware, Inc.
193
Nonpersistentmode
Amodeinwhichalldiskwritesissuedbysoftwarerunninginsideavirtual
machinewithadiskinnonpersistentmodeappeartobewrittentodiskbutarein
factdiscardedafterthevirtualmachineispoweredoff.Ifyouconfigureavirtual
diskorphysicaldiskasanindependentdiskinnonpersistentmode,thediskisnot
modifiedbyVMwareServer.
SeealsoIndependentdisk,Persistentmode
Persistentmode
Amodeinwhichalldiskwritesissuedbysoftwarerunninginsideavirtual
machineareimmediatelyandpermanentlywrittentothevirtualdisk.Ifyou
configureavirtualdiskorphysicaldiskasanindependentdiskinpersistentmode,
thediskbehaveslikeaconventionaldiskdriveonaphysicalcomputer.
SeealsoIndependentdisk,Nonpersistentmode
Physicaldisk
Aharddiskinavirtualmachinethatismappedtoaphysicaldiskdriveor
partitiononthehostmachine.Avirtualmachinesdiskcanbestoredasafileon
thehostfilesystemoronalocalharddisk.Whenavirtualmachineisconfigured
touseaphysicaldisk,VMwareServerdirectlyaccessesthelocaldiskorpartition
asarawdevice(notasafileonafilesystem).
SeealsoVirtualdisk.
Preallocateddisk
Atypeofvirtualdiskwherealldiskspaceforthevirtualmachineisallocatedat
thetimethediskiscreated.Thisisthedefaulttypeofvirtualdiskcreatedby
VMwareServer.
Quickswitchmode
Adisplaymodeinwhichthevirtualmachinesdisplayfillsmostofthescreen.In
thismode,tabsatthetopofthescreenallowyoutoswitchquicklyfromone
runningvirtualmachinetoanother.
SeealsoFullscreenmode.
Rawdisk
Seephysicaldisk.
194
VMware, Inc.
Glossary
Redolog
Thefilethatstoresthechangesmadetoadiskinindependentnonpersistentmode.
Theredologfileisdeletedwhenyoupowerofforresetthevirtualmachine
withoutwritinganychangestothedisk.
Resume
Returnavirtualmachinetooperationfromitssuspendedstate.Whenyouresume
asuspendedvirtualmachine,allapplicationsareinthesamestatetheywerewhen
thevirtualmachinewassuspended.
SeealsoSuspend.
Shrink
Reducetheamountoffilesystemspaceavirtualdiskoccupiesinordertoreclaim
unusedspaceinavirtualdisk.Ifthereisemptyspaceinthedisk,shrinking
reducestheamountofspacethevirtualdiskoccupiesonthehostdrive.You
cannotshrinkpreallocatedvirtualdisksorphysicaldisks.
Snapshot
Awaytopreservethestateofavirtualmachinethestateofthedataonallthe
virtualmachinesdisksandthevirtualmachinespowerstate(whetherthevirtual
machinewaspoweredon,poweredofforsuspended).Youcantakeasnapshotof
avirtualmachineatanytimeandreverttothatsnapshotatanytime.Thevirtual
machinecanbepoweredon,poweredofforsuspended.
Supportedpartition
AvirtualdiskpartitionthatVMwareToolscanprepareforshrinking,suchasone
ofthedrivesthatcomprisethevirtualharddisk.Youcanchoosetonotprepare
certainpartitionsforshrinking.
SeealsoShrink.
Suspend
Savethecurrentstateofarunningvirtualmachine.Toreturnasuspendedvirtual
machinetooperation,usetheresumefeature.
SeealsoResume.
Unsupportedpartition
AvirtualdiskpartitionthatVMwareToolscannotprepareforshrinking.
Unsupportedpartitionsincludereadonlydrivepartitions,partitionsonremote
devicesandpartitionsonremovabledevicessuchasfloppydrivesorCDROM
VMware, Inc.
195
drives.
SeealsoShrink.
Virtualdisk
Avirtualdiskisafileorsetoffilesthatappearsasaphysicaldiskdrivetoaguest
operatingsystem.Thesefilescanbeonthehostmachineoronaremotefilesystem.
Whenyouconfigureavirtualmachinewithavirtualdisk,youcaninstallanew
operatingsystemintothediskfilewithoutneedingtorepartitionaphysicaldisk
orrebootthehost.Virtualdiskscanbepreallocatedorgrowable.Apreallocated
virtualdiskhasallthediskspaceallocatedatthetimethevirtualdiskiscreated.A
growablediskisnotpreallocated;itsfilesstartoutsmallinsizeandgrowasdata
iswrittentoit.
SeealsoPhysicaldisk.
Virtualhardware
Thedevicesthatcompriseavirtualmachine.Thevirtualhardwareincludesthe
virtualdisk,theremovabledevicessuchastheDVDROM/CDROMandfloppy
drives,andthevirtualEthernetadapter.Youconfigurethesedeviceswiththe
virtualmachinesettingseditor.
Virtualmachine
Avirtualizedx86PCenvironmentinwhichaguestoperatingsystemand
associatedapplicationsoftwarecanrun.Multiplevirtualmachinescanoperateon
thesamehostmachineconcurrently.
Virtualmachineconfiguration
Thespecificationofwhatvirtualdevices(disks,memorysize,andsoforth)are
presentinavirtualmachineandhowtheyaremappedtohostfilesanddevices.
Virtualmachineconfigurationfile
Afilecontainingavirtualmachineconfiguration.Itiscreatedwhenyoucreatethe
virtualmachine.ItisusedbyVMwareServertoidentifyandrunaspecificvirtual
machine.
Virtualmachinesettingseditor
Apointandclickcontrolpanelusedtoviewandmodifyavirtualmachines
settings.YoulaunchitbychoosingVM>Settings.
SeealsoNewVirtualMachineWizard.
196
VMware, Inc.
Glossary
VirtualNetworkEditor
Apointandclickeditorusedtoviewandmodifythenetworkingsettingsforthe
virtualnetworkscreatedbyVMwareServer.YoulaunchbychoosingHost>
VirtualNetworkSettings.
VirtualSMP
Symmetricmultiprocessingenablesyoutoassigntwovirtualprocessorstoa
virtualmachineonanyhostmachinethathasatleasttwologicalprocessors.
VMwareAuthorizationService
TheserviceVMwareServeremploystoauthenticateusers.ForbothMicrosoft
WindowsandLinuxhosts,thisprocessiscalledvmware-authd.
VMwareManagementInterface
Abrowserbasedtoolthatallowsyoutocontrol(start,suspend,resume,resetand
stop),configureandmonitorvirtualmachinesandtheserveronwhichtheyrun.
VMwareRegistrationService
TheserviceVMwareServeremploysformanagingconnectionstovirtual
machinesandtheVMwareManagementInterface.Thisprocessisknownas
vmware-serverdonLinuxhostsandvmware-serverdwin32onMicrosoftWindows
hosts.
VMwareTools
Asuiteofutilitiesanddriversthatenhancestheperformanceandfunctionalityof
yourguestoperatingsystem.KeyfeaturesofVMwareToolsincludesomeorallof
thefollowing,dependingonyourguestoperatingsystem:anSVGAdriver,a
mousedriver,theVMwareToolsservice,theVMwareToolscontrolpanel,and
supportforsuchfeaturesastheabilitytoshrinkvirtualdisks,time
synchronizationwiththehost,VMwareToolsscriptsandtheabilitytoconnectand
disconnectdeviceswhilethevirtualmachineisrunning.
VMwareToolsservice
OneofthecomponentsinstalledwithVMwareToolsthatperformsvariousduties
intheguestoperatingsystem,likeexecutingcommandsinthevirtualmachine,
gracefullyshuttingdownandresettingavirtualmachine,sendingaheartbeatto
VMwareServer,synchronizingthetimeoftheguestoperatingsystemwiththe
hostoperatingsystemandpassingstringsfromthehostoperatingsystemtothe
guestoperatingsystem.
VMware, Inc.
197
VMwareServerConsole
Aninterfacetoavirtualmachinethatprovidesaccesstooneormorevirtual
machinesonthelocalhostoraremotehostrunningVMwareServer.Youcanview
thevirtualmachinesdisplaytorunprogramswithinitormodifyguestoperating
systemsettings.Inaddition,youcanchangethevirtualmachinesconfiguration,
installtheguestoperatingsystemorrunthevirtualmachineinfullscreenmode.
198
VMware, Inc.
Index
Symbols
.bmp 81
.dsk 26
.log 25
.png 81
.REDO 26
.vmdk 25, 122
.vmsn 26
.vmss 26
.vmx 25
Address
assigning IP 174
assigning MAC manually 177
IP in virtual machine 33
IP on virtual network 172
MAC 176
network address translation 190
using DHCP to assign on a virtual
network 172
Assign
IP address 172
A
Access to physical disks 146
Adapter
host virtual 154
in promiscuous mode on a Linux
host 189
B
BIOS
VMware, Inc.
C
Capture screen shot of virtual
machine 81
265
CD
adding drive to virtual machine 137
legacy emulation 87
Change
See Configure
Chip set in a virtual machine 12
Color screen colors in a virtual
machine 247
Commands
keyboard shortcuts 106
on the command line 105
Compress
See Shrink
Configuration, virtual machine 262
Configure
automatic bridging 165
devices in virtual machine 103
VMware Tools 56
X server 248
Connect
removable devices 104
USB devices 234
Controls, hiding 98
Copy 102
Core files 22
CPU
host requirement 4
CPU, provided in virtual machine 12
Create virtual machine 25
Current virtual machine 86
defined 257
Cut 102
DDNS 179
Defragment virtual disks 125
Delete virtual machine from inventory 80
Devices
adding, configuring and
removing 103
connecting and disconnecting 104
networking 164
keyboard 226
legacy emulation 87
scanners 238
266
Index
DHCP
full screen 95
multiple monitor 96
resolution on a Linux host 248
switching virtual machines 95
DMA and disk performance 151, 255
DNS 191
Drawing tablet in a virtual machine 14
Driver
SCSI 238
sound 249
Drives
See Disks
Dual-monitor display 96
DVD, adding drive to virtual
machine 137
Dynamic domain name service 179
E
Enable host virtual adapter 168
Ethernet
growable 120
physical 260
See Network
preallocated 120
See also Virtual disk
shrinking 81, 125
size 120
VMware, Inc.
267
log 25
redo log 26
Samba and file sharing on a Linux
host 201
snapshot 26
defined 258
used by snapshot 26
installing 37
supported 15
H
Halt virtual machine 92
Headless 258
Hide controls 98
Hints 80
Host computer
defined 258
system requirements 4
Host operating system, defined 259
Host virtual adapter
adding 168
defined 154
disabling 168
enabling 168
removing 168
Host virtual network mapping 166
Host-only networking
basic configuration 158
defined 258
gated 177
Generic SCSI
268
VMware, Inc.
Index
Keysym
ICMP 192
IDE
mapping 228
Knowledge base 20
L
Launch virtual machine 82, 84
Leak
IP packets in a virtual machine 175
IP packets in host-only network 174
Legacy emulation 87
Legacy virtual machine 86
defined 259
Linux
keyboard mapping 226
supported guest operating
systems 16
log 24
silent 48
software in a virtual machine 101
VMware Tools 41
Internet connection sharing 159
Inventory
defined 259
hide 98
assigning 174
in virtual machine 33
IP forwarding 175
ISO image file 13, 137
K
Key code mapping 228
Keyboard
M
MAC address 176177
Map
key code 228
in a virtual machine 14
keyboard 226
keysym 228
shortcuts 106
USB 237
VMware, Inc.
269
Memory
allocating to virtual machine 32
amount required on host 5
available in virtual machine 13
setting size 251
virtual machine memory size 251
Migrate, upgrading virtual disks 45
Mode
NetWare
See Novell NetWare
Network
adding and modifying virtual
Ethernet adapters 162
automatic bridging 165
bridge 154
bridged networking 257
nonpersistent compared to
snapshot 117
persistent compared to
snapshot 117
configuring 153
NAT
defined 259
270
IP forwarding 175
VMware, Inc.
Index
Novell NetWare
O
Operating system
guest 258
host 259
switch 153
installing guest 37
supported guest 15
Packet
filtering 175
leaks 174175
Parallel port
in a virtual machine 14
Parallel ports
and Iomega Zip drives 216
and the Linux kernel 211
configuring on a Linux host 213
in a virtual machine 211
installing in virtual machines 212
Partition
virtual disk 36
Partition, existing 258
Passwords, Samba password file 206
Paste 102
PCI slots
in virtual machine 13
limits 13
Performance
DMA and disks 255
Linux guest 256
memory usage 251
VMware, Inc.
271
S
Samba
Q
Quick switch mode 95, 260
Quiet mode, install VMware Tools 48
R
RAM
amount required on host 5
RAM available in virtual machine 13
Raw disk
See Physical disk
Redo log, defined 261
Registration 20
Remove
controls 98
272
VMware, Inc.
Index
full screen 95
quick switch 95
Screen shot, capturing 81
Scripts
running during power state
changes 55
VMware Tools and 58, 61
SCSI
VMware, Inc.
273
removing 116
reverting
virtual machine 112
ways of using 114
what is saved in 113
Solaris
VMware Tools for 50
Sound
configuring 249
drivers for Windows 9x and Windows NT guest operating
systems 249
drivers for Windows Server 2003
guest operating
systems 249
in a virtual machine 14
Specifications for virtual machine
platform 12
Start
suspended virtual machine 91, 109
virtual machine 82, 84
VMware Tools 80
Status bar, hide 98
Stop virtual machine 92
Subnet
changing settings 167
in NAT configuration 172
on host-only network 172
Support resources, technical 19
Supported guest operating system 15
274
T
Tabs, hide 98
Take screen shot of virtual machine 81
Teamed network interface cards 166
167, 180
Technical support resources 19
Telnet 192
Text, cutting, copying and pasting 102
Token Ring 157, 159
Toolbar
hide 98
power buttons on 78
Tools
installing VMware Tools 41
See VMware Tools
starting VMware Tools 80
Trend Micro Virus Buster
installation issues 102
Turn off virtual machine 92
U
Uninstall host virtual adapter 168
Unplug USB devices 237
Unsupported partition 261
Upgrade virtual disks 45
USB
connecting devices 234
control of devices by host and
VMware, Inc.
Index
guest 236
current 86
defined 262
legacy 86
platform specifications 12
power buttons 78
log 22
Video
resolution on a Linux host 248
See also Display
Virtual disk
shutting down 92
special power options 88
starting 82, 84
disk type 35
formatting 36
growable 120
location 29
migrating 45
partitioning 36
preallocated 120
See also Disks
shrinking 61, 63, 143, 146
size 28, 132
specifying IDE 35
specifying SCSI 35
Virtual hardware 262
Virtual machine
capturing screen shot of 81
constituent files 25
creating 25
VMware, Inc.
window size 97
Virtual machine settings editor
using 103
Virtual machine settings editor,
defined 262
Virtual Network Editor 263
Virtual SMP 244
Virtual switch 153
Virus Buster
See Trend Micro Virus Buster
vlance network driver 155, 162
vmnet1.conf 179
VMnet8 191
VMware Authorization Service
defined 263
log 23
VMware community forums 20
VMware guest operating system service
275
defined 263
VMware Management Interface
log 23
VMware Registration Service
defined 263
log 23
VMware Server Console 264
connecting from Linux host or
client 84
connecting from management
interface 85
connecting from Windows host or
client 82
log 22
VMware Server host
powering virtual machines on and
off 92
VMware Tools
automated install 48
time synchronization 69
VMware Tools 6873
VMware Virtual Disk Manager 139
VMware Virtual Machine Console
overview 75
vmware.log 25
vmware-authd
See VMware Authorization Service
vmware-config-tools.pl 52
vmware-serverd
See VMware Registration Service
vmxnet network driver
and older virtual machines 87
configuring 162
virtual network component 155
V-scan code
build number 60
defined 263
Window size 97
Windows
VMware, Inc.
Index
X
X server
and keyboard mapping 227
configuring 248
required on Linux client 11
required on Linux host 9
XFree86
and keyboard mapping 227
configuring 248
required on Linux client 11
required on Linux host 9
Z
Zip drives on a parallel port 216
VMware, Inc.
277
278
VMware, Inc.