Documentos de Académico
Documentos de Profesional
Documentos de Cultura
You can find the most up-to-date technical documentation on our Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
2008 VMware, Inc. All rights reserved. Protected by one or more 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,944,699, 6,961,806, 6,961,941, 7,069,413, 7,082,598, 7,089,377, 7,111,086, 7,111,145, 7,117,481, 7,149,843, 7,155,558, 7,222,221, 7,260,815, 7,260,820, 7,269,683, 7,275,136, 7,277,998, 7,277,999, 7,278,030, 7,281,102, 7,290,253, and 7,356,679; 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.
Contents
AboutThisBook
LogFiles 16
13
1 IntroductionandSystemRequirements 19
VMwareServerProductBenefits 19 NewFeaturesofVMwareServer2.0 20 WebBasedInterface 20 VMwareRemoteConsole 21 IncreasedMemorySupport 21 IncreaseinNumberofNetworkAdaptersSupported 21 QuiescedBackupsofVirtualMachinesonWindows 21 SupportforHighSpeedUSB2.0Devices 21 AdditionalHostOperatingSystemSupport 22 AdditionalGuestOperatingSystemSupport 22 Improved64BitGuestSupport 22 64BitSoundDriver 22 Native64BitHostSupportonLinux 22 UpdatedVIXAPI 23 VMCISocketsInterface 23 AbouttheHostandGuestComputers 23 HostSystemRequirements 23 PCHardware 23 Memory 24 DiskDrives 24 LocalAreaNetworking 25 WindowsHostOperatingSystems 25 LinuxHostOperatingSystemRequirements 26 VIWebAccessandVMwareRemoteConsoleClientSystemRequirements 27 VirtualMachineSpecifications 28 Processor 28 ChipSet 28 BIOS 28 Memory 29 Graphics 29
VMware, Inc. 3
IDEDrives 29 SCSIDevices 29 PCISlots 29 FloppyDrives 30 Serial(COM)Ports 30 Parallel(LPT)Ports 30 USBPorts 30 Keyboard 30 MouseandDrawingTablets 30 EthernetCard 30 VirtualNetworking 31 Sound 31 SupportedGuestOperatingSystems 31 ProcessorSupportfor64BitGuestOperatingSystems 34
2 InstallingVMwareServer 35
InstallationPrerequisites 35 PreparingtoInstallVMwareServer 35 SharingaVMwareServerHostwithOtherVMwareProducts 36 InstallingVMwareServeronaWindowsHost 37 InstallingVMwareServerSilently 39 UninstallingVMwareServeronaWindowsHost 41 InstallingVMwareServeronaLinuxHost 41 ConfiguringVMwareServeronLinuxHostsUsingvmwareconfig.pl 43 UninstallingVMwareServeronaLinuxHost 44 UninstallingatarInstallationofVMwareServer 44 UninstallinganRPMInstallationofVMwareServer 44 UpgradingfromVMwareServer1 44 WheretoGoNext 46
3 LearningVMwareServerBasics:UsingVIWebAccess 47
LoggingIntoVMwareServerUsingVIWebAccess 47 OverviewofVIWebAccess 48 UsingtheVMwareServerHostWorkspace 49 UsingtheVirtualMachineWorkspace 50 ViewingVirtualMachineSummaryInformation 50 InstallingtheVMwareRemoteConsoleAddOn 51 StartingVMwareRemoteConsolefromtheConsoleTab 53 UsingVIWebAccessMenuOptions 53 ApplicationMenu 53
4 VMware, Inc.
Contents
4 CreatingandUpgradingVirtualMachines 57
SettingUpaNewVirtualMachine 57 BeforeYouBegin 57 UsingtheNewVirtualMachineWizard 62 InstallingaGuestOperatingSystem 66 UpdatingtheGuestOperatingSystem 68 UpgradingtheVirtualMachineVersion 69
5 InstallingandUsingVMwareTools 71
ComponentsofVMwareTools 71 VMwareToolsService 72 VMwareDeviceDrivers 72 VMwareUserProcess 73 VMwareToolsControlPanel 73 InstallingVMwareTools 73 ManuallyInstallingVMwareToolsinaWindowsGuestSystem 74 ConfiguringtheVideoDriveronOlderVersionsofWindows 75 InstallingVMwareToolsinaLinuxGuestSystem 78 InstallingVMwareToolsinaSolarisGuestSystem 81 InstallingVMwareToolsinaFreeBSDGuestSystem 82 InstallingVMwareToolsinaNetWareGuestSystem 84 StartingtheVMwareUserProcessManuallyIfYouDoNotUseaSession ManageronUNIX 86 UpdatingVMwareTools 86 UninstallingVMwareTools 87 RepairingorChangingVMwareTools 88 UsingtheVMwareToolsControlPanel 88 UsingtheWindowsControlPaneltoDisplaytheTaskbarIcon 89 OptionsTab 89 DevicesTab 90 ScriptsTab 91 SharedFoldersTab 91 ShrinkTab 91 AboutTab 92
VMware, Inc.
6 ManagingVMwareServer 101
ManagingtheVirtualMachineInventory 101 AddingaVirtualMachinetotheInventory 102 RemovingaVirtualMachinefromtheInventory 102 PerformingPowerOperationsonVirtualMachines 103 ManagingDatastores 103 AddingDatastores 104 RenamingDatastores 105 RemovingDatastores 106 RefreshingDatastores 106 EditingHostWideMemoryandSnapshotSettings 106 ConfiguringHostMemory 106 EnablingandDisablingBackgroundSnapshots 108 ConfiguringVirtualMachineStartupandShutdownSettings 109 EnablingSystemWideStartupandShutdownSettings 109 SpecifyingtheStartupandShutdownOrderforVirtualMachines 110 CustomizingtheStartupandShutdownSettingsforIndividualVirtual Machines 110 EnablingQuiescedBackupsofVirtualMachinesonWindows 111
7 RunningVirtualMachines 115
RunningVMwareTools 116 ChangingthePowerStateofaVirtualMachine 116 ChangingVirtualMachineNameandGuestSystemSettings ChangingVirtualMachinePowerSettings 118 ChangingVirtualMachineSnapshotSettings 119 LockingtheSnapshot 120 SettingSnapshotPowerOffOptions 120 ChangingVirtualMachineAdvancedSettings 121 DeletingaVirtualMachine 123 UsingVMwareRemoteConsole 124 InteractingwiththeGuestOperatingSystem 124
6
117
VMware, Inc.
Contents
EnteringandLeavingFullScreenMode 124 ConnectingandDisconnectingClientDevices 125 ResettingandPoweringOff 126 ViewingtheMessageLog 126 QuittingVMwareRemoteConsole 126 GeneratingandSharingVirtualMachineShortcuts 127 GeneratingaWebShortcut 127 GeneratingaVMwareRemoteConsoleDesktopShortcut 128 EditingNotesintheVirtualMachineSummaryTab 128 EditingtheHardwareConfigurationofaVirtualMachine 129 AddingHardwaretoaVirtualMachine 130 InstallingNewSoftwareinaVirtualMachine 131 AdvancedOptionsforApplicationDevelopers 132
8 ConfiguringVirtualMachineHardware 135
ConfiguringHardDisks 135 HardDiskTypesandProperties 136 AddingaHardDisktoaVirtualMachine 138 EditingaVirtualHardDisk 139 RemovingaHardDiskfromaVirtualMachine 140 VirtualDiskMaintenanceTasks 140 ConfiguringCD/DVDDrives 143 CD/DVDDriveTypeandProperties 144 AddingaCD/DVDDrivetoaVirtualMachine 144 EditingaVirtualCD/DVDDrive 146 RemovingaCD/DVDDrivefromaVirtualMachine 147 ConfiguringFloppyDrives 147 AddingaFloppyDrivetoaVirtualMachine 147 EditingaVirtualFloppyDrive 149 RemovingaFloppyDrivefromaVirtualMachine 150 ConfiguringPassthrough(Generic)SCSIDevices 150 AddingaPassthrough(Generic)SCSIDevice 150 EditingPassthrough(Generic)SCSIDevices 151 RemovingPassthrough(Generic)SCSIDevices 151 ConfiguringSCSIControllers 152 ConfiguringUSBControllersandDevices 152 AddingaUSBControllertoaVirtualMachine 152 RemovingaUSBControllerfromaVirtualMachine 153 ConnectingUSBDevices 153 UsingUSBDevicesinaVirtualMachine 154
VMware, Inc.
DisconnectingUSBDevicesfromaVirtualMachine 157 ConfiguringSound 157 AddingaSoundAdaptertoaVirtualMachine 158 EditingaVirtualSoundAdapter 158 RemovingaSoundAdapterfromaVirtualMachine 159 ConfiguringSerialPorts 159 AddingaSerialPorttoaVirtualMachine 159 EditingaVirtualSerialPort 162 RemovingaSerialPortfromaVirtualMachine 163 SerialPortGeneralUsageExamples 163 SerialPortDebuggingUsageExamples 166 ConfiguringParallelPorts 169 AddingaParallelPorttoaVirtualMachine 170 EditingaVirtualParallelPort 171 RemovingaParallelPortfromaVirtualMachine 171 UsingParallelPorts 171 ConfiguringaParallelPortonaWindowsHost 172 ConfiguringaParallelPortonaLinuxHost 172 NotesforUsingtheIomegaZipDrive 176 KeyboardMappingonLinuxHosts 176
9 PreservingtheStateofaVirtualMachine 185
SuspendingandResumingVirtualMachines 185 ConfiguringHardSuspendorSoftSuspend 186 SuspendingorResumingaVirtualMachine 186 UsingSnapshots 187 WhattoUseSnapshotsFor 187 WhatIsCapturedbyaSnapshot 188 ActivitiesThatConflictwithSnapshots 188 EnablingandDisablingBackgroundSnapshotsforAllVirtualMachines 189 SnapshotsandaVirtualMachinesHardDisks 189 ExcludingVirtualDisksfromSnapshots 189 TakingaSnapshot 190 RevertingtoaSnapshot 190 RemovingaSnapshot 191 LockingaSnapshot 191
10 ManagingRolesandPermissions 193
AccessElements 193 ManagingUsers 194
VMware, Inc.
Contents
ManagingGroups 195 ManagingRoles 195 CreatingRoles 196 EditingandRenamingRoles 197 RemovingRoles 197 ManagingPermissions 198 CreatingPermissions 198 EditingPermissions 199 RemovingPermissions 200 AccessRules 200 HierarchicalInheritance 200 MultiplePermissionSettings 201
11 ConfiguringaVirtualNetwork 203
NetworkBasics 203 ComponentsoftheVirtualNetwork 204 VirtualNetworkSwitch 205 InternalDHCPServer 205 VirtualNetworkAdapter 206 HostVirtualAdapter 206 CommonNetworkingConfigurations 207 BridgedNetworking 207 NetworkAddressTranslation(NAT) 208 HostOnlyNetworking 210 CustomNetworkingConfigurations 211 ChangingtheNetworkingConfiguration 215 RefreshingtheNetwork 215 AddingaVirtualNetworkAdapter 215 EditingaNetworkAdapter 216 RemovingaNetworkAdapter 217 ConfiguringBridgedNetworkingOptionsonaWindowsHost 217 Enabling,Disabling,Adding,andRemovingHostVirtualAdapters 219 AdvancedNetworkingTopics 222 SelectingIPAddressesonaHostOnlyNetworkorNATConfiguration 222 AvoidingIPPacketLeakageinaHostOnlyNetwork 224 MaintainingandChangingtheMACAddressofaVirtualMachine 225 ControllingRoutingforaHostOnlyNetworkonaLinuxHost 227 IssueswithHostOnlyNetworkingonaLinuxHost 227 SettingUpaSecondBridgedNetworkInterfaceonaLinuxHost 229 ConfiguringBridgedNetworkingWhenUsingTeamedNetworkInterface Cards 229
VMware, Inc. 9
SettingUpTwoSeparateHostOnlyNetworks 232 RoutingBetweenTwoHostOnlyNetworks 235 UsingVirtualNetworkAdaptersinPromiscuousModeonaLinuxHost UnderstandingNAT 239 UsingNAT 240 TheHostComputerandtheNATNetwork 240 DHCPontheNATNetwork 240 DNSontheNATNetwork 241 ExternalAccessfromtheNATNetwork 241 AdvancedNATConfiguration 242 CustomNATandDHCPConfigurationonaWindowsHost 245 ConsiderationsforUsingNAT 246 UsingNATwithNetLogon 247 SampleLinuxvmnetnat.confFile 248 UsingSambaforFileSharingonaLinuxHost 249 UsingtheVirtualNetworkEditor 258 SummaryTab 258 AutomaticBridgingTab 259 HostVirtualNetworkMappingTab 259 HostVirtualAdaptersTab 260 DHCPTab 261 NATTab 261
239
12 PerformanceTuningforVMwareServer 265
ConfiguringandMaintainingtheHostSystem 265 DefragmentingHardDisks 265 MaintainingAdequateFreeDiskSpace 266 EnablingDiskWriteCachingonWindowsHosts 266 ConfiguringSwapSpaceonLinuxHosts 266 IncreasingNICInterruptCoalescing 266 CalculatingMemoryRequirementstoAllowforVirtualMachine Overhead 267 ConfiguringHostWideVirtualMachineMemoryUsage 267 AllocatingMemorytoaVirtualMachine 268 EditingVirtualMachineMemory 269 UsingTwoWayVirtualSymmetricMultiprocessing 270 EditingVirtualProcessors 270 ConfiguringandMaintainingGuestOperatingSystems 271 MonitoringVirtualMachinePerformanceonWindowsHosts 275
10
VMware, Inc.
Contents
13 ConfiguringClusteringonWindowsHosts 277
OverviewofClusteringwithVMwareServer 277 ClusteringSoftwareRequirements 278 ApplicationsThatCanUseClustering 278 UsingSCSIReservationtoShareVirtualSCSIDisks 278 SCSIReservationPrerequisitesandRestrictions 279 EnablingSCSIReservation 279 CreatingaClusterinaBox 281 ConfiguringVirtualMachinesforClusterinaBox 282 CreatingaTwoNodeClusterwithMicrosoftClusteringServices 283
A DefinedPrivileges 289
Alarms 290 Datacenter 291 Datastore 291 Extensions 292 Folders 293 Global 293 HostCIM 295 HostConfiguration 296 HostInventory 298 HostLocalOperations 299 Network 300 Performance 300 Permissions 301 Resource 301 ScheduledTask 303 Sessions 303 Tasks 304 VirtualMachineConfiguration 304 VirtualMachineInteraction 307 VirtualMachineInventory 309 VirtualMachineProvisioning 309 VirtualMachineState 311
B FilesThatMakeUpaVirtualMachine 313
FilesThatMakeUpaVirtualMachine 313
VMware, Inc.
11
Glossary
317
Index 325
12
VMware, Inc.
TheVMwareServerUsersGuideprovidesinformationaboutinstallingandusing VMwareServer2.
Revision History
Thismanualisrevisedwitheachreleaseoftheproductorwhennecessary.Arevised versioncancontainminorormajorchanges.Table 1summarizesthesignificant changesineachversionofthismanual. Table 1. Revision History
Revision 20080828 Description FirstversionoftheVMwareServer2.0documentation.
Toviewthemostcurrentversionofthemanual,seetheVMwareWebsite: http://www.vmware.com/support/pubs/server_pubs.html
Intended Audience
Thisbookisintendedforanyonewhoneedstoinstall,upgrade,configure,oruse VMwareServer.VMwareServeruserstypicallyworkinsmallandmediumsized businesses,doingsoftwaredevelopmentandtestingorworkingwithmultiple operatingsystemsorcomputingenvironments.Usersincludesoftwaredevelopers,QA engineers,trainers,salespeoplewhorundemos,andanyonewhowantstocreate virtualmachines.
VMware, Inc.
RC DRAFT
13
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhave comments,sendyourfeedbackto: docfeedback@vmware.com
Support Offerings
FindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds.Goto: http://www.vmware.com/support/services
14
RC DRAFT
VMware, Inc.
Reporting Problems
IfyouhaveproblemswhilerunningVMwareServer,reportthemtotheVMware supportteam.Youmustfirstregisteryourserialnumber.Thenyoucanreportyour problemsbysubmittingasupportrequestto: http://www.vmware.com/requestsupport Logfilesareneededtodiagnoseandreportproblems.Therequiredlogfilesdependon theproblemyouencounter. Youcansimplifytheprocessofcollectingtheinformationbyrunningthesupportscript tocollectthelogfilesandsysteminformation.Followtheprocedurethatappliesto yourhostcomputer. NOTEThesupportscriptrunsonlyontheVMwareServerhost.Ifyouencounter problemsonaremoteclient,youmustcollectthelogfilesmanually. To run the support script on a Linux host 1 2 Openaterminalwindow. Runthesupportscriptastherootuser:
vm-support
Ifyoudonotrunthescriptasroot,thescriptdisplaysmessagesindicatingthatit cannotcollectsomeinformation.Thisisnormal.IftheVMwaresupportteam needsthatinformation,asupportrepresentativemightaskyoutorunthescript again,asroot. Thescriptcreatesacompressed.tgzfileinthecurrentdirectory. 3 Includetheoutputfilewithyoursupportrequest. Ifyourvirtualmachinesareinstalledinanonstandardlocation,thescriptmight notpickupalltherequireddata.Makesurethatthe*.log and*.vmxfilesfrom yourvirtualmachinefoldersareincludedwiththefilesyousend. To run the support script on a Windows host 1 2 Openacommandprompt. ChangetotheVMwareServerprogramdirectory.Thedefaultdirectoryis:
C:\Program Files\VMware\VMware Server
Runthesupportscript:
cscript vm-support.vbs
VMware, Inc.
RC DRAFT
15
Afterthescriptruns,itdisplaysthenameandlocationofthezippedoutput.
Log Files
ThefollowinglogfilesaregeneratedbyVMwareServerandcollectedbythesupport script.
Forexample:
C:\Documents and Settings\All Users\Application Data\VMware\VMware Server
OnLinuxhostsystems,thefilesarelocatedinthedirectory/var/log/vmware.
Forexample:
16
RC DRAFT
VMware, Inc.
Linux/etc/vmware/config 2 Addthefollowinglinestotheconfigurationfile:
vmauthd.logEnabled = TRUE log.vmauthdFileName = "vmauthd.log" pref.hardLimitDebug = 2
OnLinuxhosts,logfilesarelocatedinthedirectory/var/log/vmware/WebAccess.
VMware, Inc.
RC DRAFT
17
18
RC DRAFT
VMware, Inc.
ThischapterdescribesthekeyproductfeaturesandbenefitsofusingVMwareServer. ItalsodescribesthesystemrequirementsforoperatingVMwareServer.Thischapter containsthefollowingtopics: VMwareServerProductBenefitsonpage 19 NewFeaturesofVMwareServer2.0onpage 20 HostSystemRequirementsonpage 23 VIWebAccessandVMwareRemoteConsoleClientSystemRequirementson page 27 VirtualMachineSpecificationsonpage 28 SupportedGuestOperatingSystemsonpage 31
VMware, Inc.
RC DRAFT
19
IntelVirtualizationTechnology(IntelVT) AMDVirtualization(AMTV) WithVMwareServer,youcandothefollowing: Provisionanewserverwithoutpurchasingmorehardwarebylocatingmultiple virtualmachinesonthesamehost. RunWindows,Linux,andotheroperatingsystemsandapplicationswithout softwareconflictsbecausevirtualmachinesarecompletelyisolatedfromone anotherandfromthephysicalhost. Movevirtualmachinesfromonephysicalhosttoanotherwithouthavingto reconfigurethem.
Web-Based Interface
UseVMwareInfrastructureWebAccess(VIWebAccess)toperformhostandvirtual machineconfigurationforVMwareServer2.0.Thisintuitivewebbasedinterface providesasimpleandflexibletoolforvirtualmachinemanagement.UsingVI Web Access,youcandothefollowing: Create,configure,anddeletevirtualmachines Addandremovevirtualmachinesfromtheinventory Performpoweroperations(start,stop,reset,suspend,andresume)onvirtual machines Monitortheoperationofvirtualmachines GenerateaWebshortcutforvirtualmachineusersthatallowsthemtointeract directlywiththeguestoperatingsystemfromaWebbrowser,withtheoptionto limittheirviewtotheconsoleorasinglevirtualmachine GenerateaVMwareRemoteConsoledesktopshortcutthatallowsvirtualmachine userstointeractdirectlywiththeguestoperatingsystemoutsideofaWebbrowser ConfigurehostwideVMwareServersettings VI WebAccessandVMwareRemoteConsolereplacetheVMwareManagement InterfaceandVMwareServerConsole.SeeChapter 3,LearningVMwareServer Basics:UsingVIWebAccess,onpage 47.
20
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
21
22
RC DRAFT
VMware, Inc.
PC Hardware
Thenumberofvirtualmachinesyoucanrunconcurrentlydependsontheresources theyrequire.VMwareServersupportsupto16waymultiprocessorservers,witha maximumoffourvirtualmachinesrunningconcurrentlyperprocessor. VMwareServerhostsmustmeetthefollowingrequirements: Standardx86compatibleorx8664compatibleserverwithupto16processors. Hostswith32bitIA32processorsandIA32processorswith64bitextensionsare supported.
VMware, Inc.
RC DRAFT
23
733MHzorfasterCPUminimum. Compatibleprocessorsinclude: IntelXeon: DualCore,including5000series(Dempsey),5100series(Woodcrest), 3000series(Conroe),7000series(PaxvilleMP),and7100series(Tulsa) QuadCore,including5300series(Clovertown) IntelCore2,includingE6300,E6400,E6600,andE6700(Conroe),Q6600 andQ6700/E(Kentsfield),andE4300(Allendale)Series AMDOpteron1000/2000/8000series(SantaAna,SantaRosa) AMDOpteron100/200/800series(Venus,Troy,Athens,Denmark,Italy,Egypt) AMDAthlon64(Clawhammer,Newcastle,Winchester,Venice,SanDiego, Orleans,Lima) AMDAthlon64X2/X2(Manchester,Toledo,Windsor,Brisbane)
Memory
Youmusthaveaminimumof512MBofmemory(2GBisrecommended).Thetotal amountofmemoryyoucanassigntoallvirtualmachinesrunningonasinglehost systemislimitedonlybytheamountofmemoryonthehostcomputer. Youmusthaveenoughmemorytorunthehostoperatingsystem,plusthememory requiredforeachguestoperatingsystemandforapplicationsonthehostandguest systems.SeeVirtualMachineSpecificationsonpage 28andyourguestoperating systemandapplicationdocumentationforadditionalmemoryrequirements.The maximumamountofmemorypervirtualmachineis8GB.
Disk Drives
Guestoperatingsystemstypicallyresideinvirtualdiskfiles,althoughyoucanalso bootfromCDROMorfromaPrebootExecutionEnvironment(PXE)server.
Hard Disk
IDEandSCSIharddrivesaresupported. Atleast1.7GBfreediskspaceisrequiredforbasicinstallation.Youcandeletethe installerafterwardstoreclaimapproximately600MBdiskspace.
24
RC DRAFT
VMware, Inc.
Floppy Drives
Virtualmachinescanconnecttothehostsfloppydrives.Floppydiskimagefilesare alsosupported.
VMware, Inc.
RC DRAFT
25
RC DRAFT
VMware, Inc.
32bithostcomputerscanrunthefollowingoperatingsystems: MandrakeLinux10.1 MandrivaCorporateServer4 RedHatEnterpriseLinux5.1 RedHatEnterpriseLinux5.0 RedHatEnterpriseLinuxAS4.5 RedHatEnterpriseLinuxES4.5 RedHatEnterpriseLinuxWS4.5 SUSELinuxEnterpriseServer10SP1 SUSELinuxEnterpriseServer10 SUSELinuxEnterpriseServer9SP4 TurboLinuxEnterpriseServer10 UbuntuLinux8.04 UbuntuLinux7.10 UbuntuLinux7.04 UbuntuLinux6.10 UbuntuLinux6.06
VMware, Inc.
RC DRAFT
27
Processor
Sameprocessorasthehostcomputer Onevirtualprocessoronahostsystemwithoneormorelogicalprocessors Twovirtualprocessors(twowayvirtualsymmetricmultiprocessingor Virtual SMP)onahostsystemwithatleasttwologicalprocessors Thefollowingareallconsideredtohavetwologicalprocessors: AmultiprocessorhostwithtwoormorephysicalCPUs AsingleprocessorhostwithamulticoreCPU Asingleprocessorhostwithhyperthreadingenabled SeeUsingTwoWayVirtualSymmetricMultiprocessingonpage 270.
Chip Set
Intel440BXbasedmotherboard NS338SIO 82093AAIOAPIC
BIOS
PhoenixBIOS4.0Release6withVESABIOS
28
RC DRAFT
VMware, Inc.
Memory
Upto8GB,dependingonhostmemory,virtualmachinehardwareversion,and guestoperatingsystemsupport. Totalmemoryavailableforallvirtualmachinesislimitedonlybytheamountof memoryonthehostcomputer.
Graphics
VGA SVGA
IDE Drives
Uptofourdevices.AnyofthesedevicescanbeavirtualharddiskorCD/DVD drive. IDEvirtualdisksupto950GB. CD/DVDdrivecanbeaphysicaldeviceonthehostorclientsystem,oranISO imagefile.
SCSI Devices
Upto60devices.AnyofthesedevicescanbeavirtualharddiskorCD/DVDdrive. SCSIvirtualdisksupto950GB. LSILogicLSI53C10xxUltra320SCSII/Ocontroller.ForWindowsXPguest systems,thisrequiresanaddondriverfromtheLSILogicWebsite.Formore information,seetheVMwareGuestOperatingSystemInstallationGuideat http://pubs.vmware.com/guestnotes/. Mylex(BusLogic)BT958compatiblehostbusadapter.ForWindowsXPand WindowsServer2003guestsystems,thisrequiresanaddondriverfromthe VMwareWebsite.Formoreinformation,seetheVMwareGuestOperatingSystem InstallationGuideathttp://pubs.vmware.com/guestnotes/.
PCI Slots
SixvirtualPCIslotscanbedividedamongthevirtualSCSIcontrollers,virtualEthernet cards,virtualdisplayadapter,andvirtualsoundadapter.
VMware, Inc.
RC DRAFT
29
Floppy Drives
Uptotwo1.44MBfloppydevices Physicaldrivesorfloppyimagefiles
USB Ports
USB2.0supportisavailableonlyforVMwareproductsthatsupportvirtual machinehardwareversions6and7,suchasVMwareServer2andWorkstation6. ForUSB2.0support,yourhostmachinemustsupportUSB2.0. Supportsmostdevices,includingUSBprinters,scanners,PDAs,harddiskdrives, memorycardreadersanddigitalcameras,aswellasstreamingdevicessuchas webcams,speakers,andmicrophones.
Keyboard
104keyWindows95/98enhanced
Ethernet Card
Upto10virtualEthernetcardsinhardwareversion6and7virtualmachines. AMDPCnetPCIIIcompatible. For64bitguests:IntelPro/1000MTServerAdaptercompatible.
30
RC DRAFT
VMware, Inc.
Virtual Networking
Supportfor10virtualnetworkswitchesonWindowshostoperatingsystems. Supportfor255virtualnetworkswitchesonLinuxhosts.Threeswitchesare configuredbydefaultforbridged,hostonly,andNATnetworking. SupportformostEthernetbasedprotocols,includingTCP/IP,Microsoft Networking,Samba,NovellNetware,andNetworkFileSystem(NFS). BuiltinNATsupportsclientsoftwareusingTCP/IP,FTP,DNS,HTTP,andTelnet, includingVPNsupportforPPTPoverNAT.
Sound
Soundoutputandinputonhostsystemonly. EmulatesCreativeLabsSoundBlasterAudioPCI.MIDIinput,gamecontrollers, andjoysticksarenotsupported,exceptforUSBdevices.
VMware, Inc.
RC DRAFT
31
32
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
33
34
RC DRAFT
VMware, Inc.
ThischapterdescribeshowtoinstallVMwareServeronyourLinuxorWindowshost systemandcoversthefollowingtopics: InstallationPrerequisitesonpage 35 InstallingVMwareServeronaWindowsHostonpage 37 UninstallingVMwareServeronaWindowsHostonpage 41 InstallingVMwareServeronaLinuxHostonpage 41 ConfiguringVMwareServeronLinuxHostsUsingvmwareconfig.plon page 43 UninstallingVMwareServeronaLinuxHostonpage 44 UpgradingfromVMwareServer1onpage 44 WheretoGoNextonpage 46
Installation Prerequisites
InstallingVMwareServerisusuallyasimpleprocessofrunningastandardinstallation wizard.Thissectionoutlinesthetasksyouneedtoperformbeforestartingan installationandwhichVMwareproductscanbeinstalledonthesamecomputeras VMwareServer.
VMware, Inc.
RC DRAFT
35
VMwareServerinstallationsoftwareVMwareServerisavailableforboth WindowsandLinuxhostcomputers. InthepackageddistributionofVMwareServer,theinstallationsoftwarefilesfor bothhostplatformsareincludedonthesameCD. Intheelectronicdistribution,theinstallationsoftwareisinthefileyou downloaded. VMwareServerserialnumberYourserialnumberisontheregistrationcardin yourpackage.IfyouobtainedVMwareServeronline,theserialnumberissentby email. YourserialnumberallowsyoutouseVMwareServeronlyonthehostoperating systemforwhichyoulicensedthesoftware.Forexample,ifyouhaveaserial numberforaWindowshost,youcannotrunthesoftwareonaLinuxhost.Make surethatyouentertheserialnumberforthecorrectoperatingsystem. GuestoperatingsystemAfterVMwareServerisinstalled,youneedthe operatingsysteminstallationCDsorOSimagestosetupyourguestsystems.You canalsodownloadavirtualappliancefromtheVirtualApplianceMarketplaceor useabootableCDorPXEimagefile. WebbrowserTomanageVMwareServerusingVIWebAccess,useasupported Webbrowser,asdescribedinVIWebAccessandVMwareRemoteConsoleClient SystemRequirementsonpage 27.
36
RC DRAFT
VMware, Inc.
Ifyouwanttousethecommandlineinterfacetoperformasilentinstallationonmany computers,seeInstallingVMwareServerSilentlyonpage 39. To install VMware Server on a Windows host 1 LoginastheAdministratoruserorasauserwhoisamemberoftheWindows Administratorsgroup. Loginasalocaladministrator(thatis,donotlogintothedomain,unlessyour domainaccountisalsoalocaladministrator). AlthoughanadministratormustinstallVMwareServer,auserwithout administrativeprivilegescanuseVMwareServer. 2 FromtheStartmenu,selectRun,andspecifythepathtotheinstallerfile: IfyouareinstallingfromaCD,enterD:\setup.exe,whereD:isCD/DVD drive. Ifyouareinstallingfromadownloadedfile,browsetothedirectorywhere yousavedthefile,andruntheinstaller.(Thefilenameissimilarto VMware-server-<xxxx-xxxx>.exe,where<xxxx-xxxx>isaseriesof numbersrepresentingtheversionandbuildnumbers.)
VMware, Inc.
RC DRAFT
37
NOTEIfyouhaveanearlierversionofVMwareServerinstalledonyoursystem, theinstallerremovesthatversionbeforeinstallingthenewversion.Afterthe uninstallationiscomplete,youmightbepromptedtorestartyourcomputerbefore theinstallercaninstallthenewversion. 3 4 5 Whenthewizardfinishescomputingspacerequirements,clickNexttoclosethe Welcomepage. OntheLicenseAgreementpage,readandacceptthelicenseagreementtocontinue theinstallation. OntheDestinationFolderpage,ifyoudonotwantVMwareServerinstalledinthe directorythatisshown,clickChangeandspecifyanalternateinstallation directory. WindowsandtheMicrosoftInstallerlimitthelengthofapathtoadirectoryona localdriveto255characters.Forapathtoadirectoryonamappedorshareddrive, thelimitis240characters.Ifthepathexceedsthislimit,anerrormessageappears, andyoumustselectorenterashorterpath. Ifyouspecifyadirectorythatdoesnotexist,theinstallercreatesitforyou. YoucannotinstallVMwareServeronanetworkdrive. 6 7 ClickNext. OntheServerConfigurationInformationpage,ifyoudonotwantvirtualmachine filesstoredinthedirectorythatisshown,clickChangeandspecifyanalternate virtualmachinedirectory. Ifyouspecifyadirectorythatdoesnotexist,theinstallercreatesitforyou. 8 AlsoontheServerConfigurationInformationpage,acceptorchangethedefault valuesforFQDN,ServerHTTPPort,andServerHTTPSPort. Thefullyqualifieddomainname(FQDN)includesthehostnameandthedomain name.Forexample,intheFQDNmyserverhost.companydomain.com, myserverhostisthehostname,andcompanydomain.comisthedomain.The FQDNisusedtocreatethedesktopshortcutthatopensVI WebAccess. IfyoudonotsetServerHTTPPortto80,youmustincludetheportnumberyou specifyhereintheVIWebAccessconnectionURL,forexample:
http://<host name>:8222
Whenyouconnectremotely,youareautomaticallyredirectedtothesecureHTTP (HTTPS)port.
38
RC DRAFT
VMware, Inc.
AlsoontheServerConfigurationInformationpage,selectAllowvirtualmachines tostartandstopautomaticallywiththesystemifyouwanttoconfigurevirtual machinestostartupandshutdownautomaticallywhenthehostoperatingsystem startsandshutsdown.Formoreinformation,seeConfiguringVirtualMachine StartupandShutdownSettingsonpage 109. ClickNext. OntheConfigureShortcutspage,deselectanyshortcutsyoudonotwantthe installertocreate. OntheReadytoInstalltheProgrampage,clickInstallorclickBacktomake changes. (Optional)AfteryouclickInstall,ontheRegistrationInformationpage,enteryour name,companyname,andserialnumberandclickNext.Ifyouskipthisstep,you mustenteryourserialnumberlaterinVIWebAccess,beforeyoucanpowerona virtualmachine. Yourserialnumberiseitherontheregistrationcardinyourpackageorinanemail ifyouobtainedVMwareServeronline.
10 11 12 13
14
VMware, Inc.
RC DRAFT
39
Runtheinstallationusingmsiexecandtheinstallationimagethatyouextracted inthepreviousstep.Enterthecommandononeline.
msiexec /i "<InstallTempPath>\VMware Server.msi" [INSTALLDIR="<PathToProgramDirectory>"] ADDLOCAL=ALL [REMOVE=<featurename,featurename>] /qn
ToinstallVMwareServerinalocationotherthanthedefault,changethe INSTALLDIRpath. UsetheoptionalREMOVEsettingtoskipinstallationofcertainfeatures.TheREMOVE settingcantakeoneormoreofthevalueslistedinTable 21. Table 2-1. Values for the REMOVE Setting
Value Network Description Networkingcomponentsincludingthevirtualbridgeandthehostadapters forhostonlyandNATnetworking.Donotremovethiscomponentifyou wanttouseNATorDHCP. VirtualDHCPserver. VirtualNATdevice.
DHCP NAT
40
RC DRAFT
VMware, Inc.
OnUbuntuhosts,usethecommand:
sudo -s -H
VMware, Inc.
RC DRAFT
41
Unpackthearchive:
tar zxpf VMware-server-<xxxx>.tar.gz
Changetotheinstallationdirectory:
cd vmware-server-distrib
Runtheinstallationscript:
./vmware-install.pl
10 11
To install on a Linux host using the RPM installation file 1 2 LoginwiththeusernameyouplantousewhenrunningVMwareServer. Inaterminalwindow,usethecommandtobecomeroot,forexample:
su -
3 4
Inplaceof<xxxx>thefilenamecontainsnumbersthatcorrespondtotheversion andbuild.
42
RC DRAFT
VMware, Inc.
Runtheconfigurationscript:
./vmware-config.pl
vmware-config.plislocatedin/usr/bin.Ifthisisnotinyourdefaultpath,enter thefollowingcommandtorunthescript:
/usr/bin/vmware-config.pl
Respondtotheprompts.Inmostcases,thedefaultresponseisappropriate.
VMware, Inc.
RC DRAFT
43
Thefollowingportsareusedbydefault:port902fortheVMwareAuthorization Service,port8222forhttpconnections,andport8333forsecurehttp(https) connections.Changetheportnumberwhenpromptedifyoudonotwanttouse thedefaultvalue. Ifyoudonotspecifyport80forhttpconnections,youmustentertheportnumber whenyouconnecttoVMwareServerusingVI WebAccess.SeeLoggingInto VMwareServerUsingVIWebAccessonpage 47. Iftheconfigurationprogramdoesnotdisplayamessagesayingtheconfiguration completedsuccessfully,runtheconfigurationprogramagain. 3 Whendone,exitfromtherootaccount:
exit
RC DRAFT
VMware, Inc.
However,therearesomefeaturedifferencesbetweentheseproductversions: VI WebAccessandVMwareRemoteConsolereplacetheVMwareManagement InterfaceandVMwareServerConsole.SeeChapter 3,LearningVMwareServer Basics:UsingVIWebAccess,onpage 47. VMwareServer2doesnotsupportphysical(raw)disks. VMwareServer2usesdatastorestomanagevirtualmachinelocations.Adatastore isastoragelocationforVMwareServervirtualmachinefiles.Thestoragelocation canbethelocalfilesystem,aCIFSstore(Windowsonly),oranNFSmountedfile system(Linuxonly). VirtualmachinesthatwereregisteredinVMwareServer1areautomatically registeredinVMwareServer2.However,thelocationsforexistingvirtual machinesarenotautomaticallyaddedasdatastores.Itisrecommendedthatyou addthemmanually.SeeManagingDatastoresonpage 103. VMwareServer2createshardwareversion7virtualmachinesbydefault.Ifyou wanttouseallfeaturesofVMwareServer2,itisrecommendedthatyouupgrade virtualmachinestohardwareversion7. Youcanimporthardwareversion3andabovevirtualmachines.However,theonly tasksVIWebAccesscanperformonhardwareversion3virtualmachinesare poweroperationsandupgrade.Toupgradethehardwareversionofoldervirtual machines,seeUpgradingtheVirtualMachineVersiononpage 69. VMwareServer2usesadifferentpermissionsmodelfromVMwareServer1.After youinstallVMwareServer2,loginasanadministratorusertocreateandmanage permissionsfornonadministratorusers.SeeChapter 10,ManagingRolesand Permissions,onpage 193. VMwareServer2automaticallynamesbothdefaultandcustomvirtualnetworks. TheNetworkssectionoftheVIWebAccesshostSummarytabshowsthename, virtualnetwork(VMnet),andnetworktypeofeachvirtualnetwork.Ifyou customizevirtualnetworkingafterinstallation,youmustrefreshthenetwork,as describedinChangingtheNetworkingConfigurationonpage 215. ForupgradesfromVMwareServer1,ifyoubridged(mapped)virtualnetworksto specificphysicalorvirtualadapters,writedownthesettingsyouused. AlthoughVMwareServer2generallypreservesnetworksettingsduringthe upgrade,itcannotpreservebridgesettingscreatedwithVMwareServer1.
VMware, Inc.
RC DRAFT
45
Where to Go Next
AfteryouhaveinstalledtheVMwareServersoftwareontheserver,typicalnextsteps include: 1 2 Createavirtualmachine.SeeChapter 4,CreatingandUpgradingVirtual Machines,onpage 57. Installaguestoperatingsystem.Youneedtheinstallationmediaforyourguest operatingsystem.SeeInstallingaGuestOperatingSystemonpage 66andthe VMwareGuestOperatingSystemInstallationGuide. InstalltheVMwareToolspackageinyourguestoperatingsystemforenhanced performanceandfeatures.SeeInstallingVMwareToolsonpage 73. Createadditionaldatastoresandaddexistingvirtualmachinestoyourinventory. SeeChapter 6,ManagingVMwareServer,onpage 101. Startusingthevirtualmachines.SeeRunningVirtualMachinesonpage 115.
3 4 5
46
RC DRAFT
VMware, Inc.
ThischapterdescribeshowtoconnecttoVMwareServerandintroducestheVI Web Accessmanagementinterface.VI WebAccessprovidesasimpleandflexibletoolfor virtualmachinemanagement.Thischaptercontainsthefollowingsections: LoggingIntoVMwareServerUsingVIWebAccessonpage 47 OverviewofVIWebAccessonpage 48 UsingtheVMwareServerHostWorkspaceonpage 49 UsingtheVirtualMachineWorkspaceonpage 50 UsingVIWebAccessMenuOptionsonpage 53 LoggingOutonpage 56 Typically,yournextstepafterfamiliarizingyourselfwithVI WebAccessistocreatea virtualmachine.Theinformationandstepsyouneedtocreateavirtualmachineare describedinChapter 4,CreatingandUpgradingVirtualMachines,onpage 57.
VMware, Inc.
RC DRAFT
47
Ifyouarenotusingport80toconnecttoVMwareServer,youmustincludetheport numberyouspecifiedduringinstallationintheconnectionURL,forexample:
http://<host_name>:8222
Whenyouconnectremotely,youareautomaticallyredirectedtothesecurehttp (https)port. TheVI WebAccessloginpageappears. NOTEIfthespecifiedURLdoesnotwork,usethecorrecthostname,IPaddress, orlocalhost,asappropriate,intheconnectionURL.Youcanalsomanuallyenter theshortnameandtheFQDN,orlocalhost,inthe/etc/hostsfile. 3 Entertheusernameandpasswordyouusetologintothehost,andclickLog In. Afteryourusernameandpasswordareauthorized,themainapplicationpage appears. Rolesassignedtousersdeterminewhatuserscanseeandtheactionstheycanperform inVIWebAccess.SeeChapter 10,ManagingRolesandPermissions,onpage 193.
RC DRAFT
VMware, Inc.
MenubarThemenusabovetheInventorypanelprovideaccesstocommon applicationandvirtualmachineoperations,includingpoweroperationsand snapshotandconsolecommands.SeeUsingVIWebAccessMenuOptionson page 53. ToolbarAppearingalongthetopofthepage,thesebuttonsallowyoutoacton theselectedvirtualmachine,offeringoneclickaccesstopoweroperations.See ChangingthePowerStateofaVirtualMachineonpage 116. TaskareaAppearingalongthebottomofthepage,thisareadisplaystasks recentlyexecutedbyVMwareServer,includinghostlevelconfigurationchanges. Youcansorttasksbyclickingthecolumnheaders.Bydefault,tasksappearin reversechronologicalorder(mostrecenttasksfirst).Youcandoubleclickataskto getmoredetailedinformation.
VMware, Inc.
RC DRAFT
49
50
RC DRAFT
VMware, Inc.
Thecurrentpowerstateofthevirtualmachine:whetheritispoweredon, poweredoff,orsuspended.Forinformation,seeChangingVirtualMachine PowerSettingsonpage 118. Theguestoperatingsysteminstalledinthevirtualmachine. VMwareToolsstatus,indicatingwhetherVMwareToolsisinstalledand running,andwhetheryouneedtoupgradetothelatestversion.See Chapter 5,InstallingandUsingVMwareTools,onpage 71. TheDNSnameandIPaddressofthevirtualmachine. TheCommandssectiondisplays: Poweroperationscommands. AcommandtostarttheAddHardwarewizard.SeeAddingHardwaretoa VirtualMachineonpage 130. Snapshotcommands. Acommandtoopenthevirtualmachineconfigurationdialogbox. Acommandtocreateavirtualmachineshortcutthatenablesuserstointeract directlywiththeguestoperatingsystem.SeeGeneratingandSharingVirtual MachineShortcutsonpage 127. TheRelationshipssectiondisplaysthecurrentrelationshipsofthevirtualmachine: thehostname,datastores,andnetworks.
VMware, Inc.
RC DRAFT
51
ClickInstallplugin. IfyouareusingInternetExplorer,theFileDownloadSecurityWarningdialog boxisdisplayed. a CloseallinstancesofInternetExplorerbeforecontinuing. TheaddoncannotbeinstalledifanyInternetExplorerwindowsareopen. b c d ClickRun. TheInternetExplorerSecurityWarninginstallationdialogboxisdisplayed. ClickRun. NOTEDependingonyourInternetExplorersecuritysettings,youmightsee amessageatthetopofthebrowser:Thiswebsitewantstorunthefollowing addon. Ifyouseethismessage,clickitandallowtheaddontorun. Theaddonisinstalled.Skiptheremainingstepsofthisprocedure. IfyouareusingFirefox,amessageappearsatthetopofthebrowserindicating thatFirefoxpreventedthesitefromaskingyoutoinstallthesoftwareonyour computer. i ClickEditOptionsnexttotheFirefoxmessage. TheAllowedSitesAddonsInstallationpageappears. ii ClickAllowtoallowtheaddontobeinstalledfromtheVMwareServer hostsystem,andclickClose. YouarereturnedtotheConsoletabasshowninFigure 31. iii ClickInstallplugin. TheSoftwareInstallationpageappears. iv ClickInstallNow.
52
RC DRAFT
VMware, Inc.
Theaddonisinstalled. Firefoxrequiresyoutorestartyourbrowser.
Application Menu
TheApplicationmenuincludesgeneralVIWebAccessoptionsforgettingversion information,browsingtheVirtualApplianceMarketplace,viewingonlinehelp,and loggingout. AboutDisplaystheVIWebAccessversionnumber,VMwareServerversion number,andVMwarecopyrightinformation. EnterSerialNumberAllowsyoutoenteranewVMwareServerserialnumber ifyourcurrentserialnumberisexpiring.
VMware, Inc.
RC DRAFT
53
54
RC DRAFT
VMware, Inc.
TakeSnapshotTakesasnapshotofthevirtualmachine. ReverttoSnapshotRevertstoanexistingsnapshot. RemoveSnapshotRemovesanexistingsnapshot. ManageSnapshotsOpensthesnapshotmanagertodisplayinformationabout anexistingsnapshot. EnterFullScreenModeStartsVMwareRemoteConsoleinfullscreenmode. OpeninaNewWindowOpensanewVMwareRemoteConsoleinstance. FordetailedinformationaboutusingVI WebAccesstoperformvirtualmachinetasks, seeChapter 7,RunningVirtualMachines,onpage 115.
Administration Menu
TheAdministrationmenuliststheManageRolesoptionformanagingVMwareServer roles.SeeChapter 10,ManagingRolesandPermissions,onpage 193.
SelectataskandclickViewDetailstoseeadditionalinformation.Theadditionalfields aredescribedinthefollowingtable.
VMware, Inc.
RC DRAFT
55
SelectaneventandclickViewDetailstoseeadditionalinformation.Theadditional fieldsaredescribedinthefollowingtable.
Field Object TriggeredBy Type Message Description Theobjectonwhichthetaskwasperformed. Entitythattriggeredtheevent. Typeofeventthatoccurred. Textexplanationofaction.
Logging Out
YoucanlogoutofVIWebAccessbyclickingLogOutintheupperrightcornerofany page.
56
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
57
58
RC DRAFT
VMware, Inc.
Amount of Memory
OntheMemoryandProcessorspage,thememorysizeissettotheRecommendedSize bydefault.Therecommendedvalueisbasedontheselectedguestoperatingsystem andtheamountofmemoryinthehostcomputer. ClickRecommendedMaximumforbestperformance.Optimalmemorysizeis determinedbyanumberoffactors,describedinAllocatingMemorytoaVirtual Machineonpage 268. ClickRecommendedMinimumtominimizethehostmemoryresourcesallocatedto thisvirtualmachine. NOTEDonotenteravaluelowerthantherecommendedminimum.Thiscould preventtheguestoperatingsystemfromrunning. Themaximumamountofmemorypervirtualmachineis8GBforahardwareversion6 or7virtualmachine.Thetotalamountofmemoryyoucanassigntoallvirtual machinesrunningonasinglehostislimitedonlybytheamountofmemoryonthehost system.
Number of Processors
Settingthevirtualmachinetohavemultipleprocessorsissupportedonlyforhost machineswithatleasttwologicalprocessors.
VMware, Inc.
RC DRAFT
59
RC DRAFT
VMware, Inc.
NOTEPreallocatingdiskspaceisatimeconsumingoperationthatcannotbecanceled andrequiresasmuchphysicaldiskspaceasyouspecifyforthevirtualdisk. YouarealsogiventheoptionSplitdiskinto2GBfiles.Selectthisoptionifyourvirtual diskisstoredonafilesystemthatdoesnotsupportfileslargerthan2GB. Virtual Device Disk Mode Settings SelectwhetherornottorunthediskinIndependentMode.DisksinIndependent Modearenotaffectedbysnapshots. IfyouselectIndependentMode,selectoneofthefollowing: PersistentDisksinpersistentmodebehavelikeconventionaldiskdriveson yourphysicalcomputer.Alldatawrittentoadiskinpersistentmodearewritten outpermanentlytothedisk. NonpersistentChangestodisksinnonpersistentmodearesavedtothedisks, butarelostwhenthevirtualmachineispoweredofforreset.Nonpersistentmode isforuserswhowanttostartwithavirtualdiskinthepreviousstate.Exampleuses includeprovidingknownenvironmentsforsoftwaretesting,technicalsupport, anddemonstratingsoftware. Virtual Device Node Settings Whencreatinganewvirtualdisk,thedefaultadaptertypeisbasedonyourselected guestoperatingsystem.Anavailabledevicenodeisalsoselected. VirtualdiskscanbesetupasIDEdisksforanyguestoperatingsystem.Theycanbeset upasSCSIdisksforanyguestoperatingsystemthathasadriverfortheLSILogicor BusLogicSCSIadapteravailableinavirtualmachine.ThecorrectSCSIadapteris chosenbasedonyourselectedguestoperatingsystem. NOTETouseSCSIdisksina32bitWindowsXPvirtualmachine,youneedaspecial SCSIdriveravailablefromtheDownloadsectionoftheVMwareWebsiteat http://www.vmware.com/download.FollowtheinstructionsontheWebsitetousethe driverwithafreshinstallationofWindowsXP. Avirtualdiskofeithertypecanbestoredoneithertypeofphysicalharddisk.Thatis, thefilesthatmakeupanIDEvirtualdiskcanbestoredoneitheranIDEharddiskora SCSIharddisk.SocanthefilesthatmakeupaSCSIvirtualdisk.Theycanalsobestored onothertypesoffastaccessstoragemedia. Hard Disk Write Caching Policy Setting Thecachingpolicydetermineswhenchangesarewrittentodisk:
VMware, Inc.
RC DRAFT
61
62
RC DRAFT
VMware, Inc.
Ifyouarenotusingport80toconnecttoVMwareServer,youmustincludetheport numberyouspecifiedduringinstallationintheconnectionURL,forexample:
http://<host name>:8222
Whenyouconnectremotely,youareautomaticallyredirectedtothesecurehttp (https)port. TheVI WebAccessloginpageappears. 2 3 4 Enteryourusernameandpassword,andclickLogIn. IntheCommandssectionofthehostworkspace,clickCreateVirtualMachine. OntheNameandLocationpage,enterthenameofthevirtualmachine. Thenameyouenterhereisusedinthevirtualmachineinventorylist.Asubfolder withthisnameisalsocreatedtostoreallthefilesassociatedwiththisvirtual machine. 5 AlsoontheNameandLocationpage,selectadatastorefromthelistofexisting datastores.Thedatastoredetermineswherevirtualmachinefilesarestored. Afteryouselectadatastore,clickOK. Formoreinformation,seeVirtualMachineLocationonpage 57. 6 7 ClickNext. OntheGuestOperatingSystempage,selectthetypeofoperatingsystemthatyou intendtoinstallinthenewvirtualmachine.Thenselecttheoperatingsystem versionfromthedropdownmenu. Formoreinformation,seeGuestOperatingSystemonpage 58. 8 AlsoontheGuestOperatingSystempage,youcanexpandtheProduct Compatibilityheadingtoselectthevirtualmachineproductcompatibilitylevel. Ifyouselecthardwareversion7(thedefault),yourvirtualmachinecanusenew VMware Server 2features,suchasincreasedmaximummemorypervirtual machine.However,thevirtualmachinecannotbemigratedtomostotherVMware products,withtheexceptionofWorkstation6.x. Ifyouselecthardwareversion4,thevirtualmachinecanbeusedwithother currentVMwareproducts,includingWorkstation5and6,ESX3,andVMware Server1and2.
VMware, Inc.
RC DRAFT
63
Formoreinformation,seeProductCompatibility(VirtualMachineHardware Version)onpage 59. 9 10 ClickNext. OntheMemoryandProcessorspage,youcanadjustthememorysettingsoraccept therecommendedsize. Inmostcases,itisbesttokeepthedefaultmemorysetting.Ifyouplantousethe virtualmachinetorunmanyapplicationsorapplicationsthatneedlargeamounts ofmemory,youmightwanttouseahighermemorysetting.Formoreinformation, seeAmountofMemoryonpage 59. 11 AlsoontheMemoryandProcessorspage,selectthenumberofprocessorsforthe virtualmachine. Formoreinformation,seeNumberofProcessorsonpage 59. 12 13 ClickNext. OntheHardDiskpage,toconfigurethevirtualdisk,selectoneofthefollowing: CreateaNewVirtualDiskClicktoaddanewblankharddisktoyour virtualmachine. ThewizarddisplaysthePropertiespageforyoutoenterthediskcapacity, datastore,fileallocationoptions,diskmode,virtualdeviceadaptertypeand node,andcachingpolicysettings.Makeanyrequiredchangestothedefault valuesonthePropertiespage,andclickNext.Fordetailedinformationabout settingsyoucanconfigureonthePropertiespage,seeHardDiskTypeand Propertiesonpage 60. UseanExistingVirtualDiskClickifyouwanttoreuseorshareavirtual harddiskthathasalreadybeencreated. ThewizarddisplaysthePropertiespageforyoutoenterthepathorbrowseto theexistingvirtualdisk(.vmdk)file.Selectthevirtualdisktoviewthe capacityandfileallocationoptions,whichcannotbechanged.Youcanmodify thediskmode,virtualdevicenode,andcachingpolicysettings.Makeany requiredchangestothedefaultvaluesonthePropertiespage,andclickNext. FordetailedinformationaboutsettingsyoucanconfigureontheProperties page,seeHardDiskTypeandPropertiesonpage 60. DontAddaVirtualDiskClickonlyifyoucanuseabootableCDorPXE imagefileanddonotneedaharddisktoinstalltheoperatingsystem. 14 OntheNetworkAdapterpage,selectwhetherornottoaddanetworkadapter.
64
RC DRAFT
VMware, Inc.
AddaNetworkAdapterSelecttoaddanetworktoyourvirtualmachine. ThewizarddisplaysthePropertiespage.Selectthevirtualnetworkforthe virtualmachinefromthedropdownmenuofexistingnetworks. Optionally,deselectConnectatPowerOn,ifyoudonotwantthisnetworkto beconnectedwhenthevirtualmachineispoweredon. ClickNext. DontAddaNetworkAdapterYoucancreateavirtualmachinewithout networking,oraddavirtualnetworklater. Formoreinformation,seeNetworkConnectionTypeonpage 62. 15 OntheReadytoCompletepage: ClickBackornavigateusingthePagespaneltomakechanges. ExpandMoreHardwaretoaddmorehardwaretothevirtualmachinebefore youfinishcreatingit: Toaddaharddisk,seeAddingaHardDisktoaVirtualMachineon page 138. Toaddanetworkadapter,seeAddingaVirtualNetworkAdapteron page 215. ToaddaCD/DVDdrive,seeAddingaCD/DVDDrivetoaVirtual Machineonpage 144. Toaddafloppydrive,seeAddingaFloppyDrivetoaVirtualMachine onpage 147. Toaddapassthrough(generic)SCSIdevice,seeAddingaPassthrough (Generic)SCSIDeviceonpage 150. ToaddaUSBcontroller(onepervirtualmachine),seeAddingaUSB ControllertoaVirtualMachineonpage 152. Toaddasoundadapter(onepervirtualmachine),seeAddingaSound AdaptertoaVirtualMachineonpage 158. Forinformationaboutaddingaserialport,seeAddingaSerialPorttoa VirtualMachineonpage 159. Toaddaparallelport,seeAddingaParallelPorttoaVirtualMachine onpage 170. Eachtimeyoufinishaddinganewdevice,youreturntotheReadyto Completepage.
VMware, Inc.
RC DRAFT
65
66
RC DRAFT
VMware, Inc.
NOTEInthisrelease,onlyHostMediaissupported. 6 7 8 SelectConnectatpoweron. SelectPhysicalDrive. EnterthelocationofthedriveinthePhysicalDrivetextbox. Forexample,theserversCD/DVDdrivemightbed:(Windows)or/dev/cdrom (Linux). 9 10 11 12 SelecttheSCSIorIDEdevicenodeintheVirtualDeviceNodesection. ClickOKtosaveyourchanges. ClickPowerOntopoweronyourvirtualmachine. ClicktheConsoletabtocompletetheguestoperatingsysteminstallationusing VMwareRemoteConsole. Followtheinstructionsprovidedbytheoperatingsystemvendor. NOTEYoumightneedtochangethebootorderinthevirtualmachineBIOSso thatthevirtualmachineattemptstobootfromtheCD/DVDdevicebeforetrying otherbootdevices.Todoso,pressF2whenpromptedduringvirtualmachine startup. 13 InstallVMwareTools,asdescribedinInstallingVMwareToolsonpage 73.
To install a guest operating system from an ISO image 1 2 3 4 5 LogintoVIWebAccess. Selectthevirtualmachineintowhichyouareinstallingtheguestoperatingsystem fromtheInventorypanel. IntheHardwaresectionoftheSummarytab,clicktheCD/DVDdrivesiconand selectEdit. SelectConnectatpoweron. SelectISOImage. ClickBrowsetonavigatetoafilewiththe.isoextensioninanexistingdatastore. Ifyouenterthepathmanually,youmustusetheformat:
[ datastore_name ] path_and_filename.iso
SelecttheSCSIorIDEdevicenodeintheVirtualDeviceNodesection.
VMware, Inc.
RC DRAFT
67
7 8 9
10
IftheISOimagespansmultiplefiles,whenyouarepromptedtoinsertthenextCD: a b c d e f g ClicktheSummarytab. IntheHardwaresection,edittheCDsettingsbyclickingtheCD/DVDdrives iconandchoosingEdit. BrowsetothelocationofthenextISOimagefile,andkeepallotherselections astheyare. ClickOK. ClicktheConsoletabtoreturntoVMwareRemoteConsole. Intheguestoperatingsystem,clickOKorotherwiserespondtotheprompt sothatinstallationcancontinue. Repeatthisprocessforadditionalfiles.
11
InstallVMwareTools,asdescribedinInstallingVMwareToolsonpage 73.
68
RC DRAFT
VMware, Inc.
To update configuration information about the guest operating system 1 2 3 4 Selectthevirtualmachine. Makesurethatthevirtualmachineispoweredoff. IntheCommandssectionoftheworkspace,clickConfigureVM. IntheGuestOperatingSystemsectionoftheGeneraltab,selectthenewguest operatingsystemtypeandversion. Thesettingyouspecifyhereiswrittentothevirtualmachinesconfigurationfile. NOTEThissettingdoesnotchangetheguestoperatingsystemitself. 5 Poweronthevirtualmachine.
VMware, Inc.
RC DRAFT
69
Afterthevirtualmachineversionisupdated,youcanconfigureittousethefeatures supportedwiththenewversion.
70
RC DRAFT
VMware, Inc.
Thischapterdiscusseshowtoinstall,upgrade,andrunVMwareTools.Thischapter containsthefollowingsections: ComponentsofVMwareToolsonpage 71 InstallingVMwareToolsonpage 73 UpdatingVMwareToolsonpage 86 UninstallingVMwareToolsonpage 87 RepairingorChangingVMwareToolsonpage 88 UsingtheVMwareToolsControlPanelonpage 88 CustomizationstoVMwareToolsonpage 93 UsingtheVMwareToolsCommandLineInterfaceonpage 99
RC DRAFT
71
72
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
73
74
RC DRAFT
VMware, Inc.
Rebootthevirtualmachineifnecessary.
VMware, Inc.
RC DRAFT
75
Ifthefileversionisnot2.0orhigher,upgradetheenginebyrunninginstmsiw.exe (instmsia.exeforWindows95orWindows98guests),whichisincludedwiththe VMwareToolsinstaller. FormoreinformationaboutusingtheMicrosoftWindowsInstaller,including commandlineoptions,gototheWindowsInstallerpageontheMSDNWebsite: http://msdn2.microsoft.com/enus/library/aa367449.aspx To automate the installation of VMware Tools in a Windows guest 1 MakesurethatthevirtualmachinesCD/DVDdriveisconnectedtotheVMware ToolsISOimageandthatitisconfiguredtoconnectwheneveryoupoweronthe virtualmachine: a b c d e 2 Selectthevirtualmachine. IntheHardwaresectionofthevirtualmachineSummarytab,clickthe CD/DVDdrivetomodifyandselectEdit. IntheDevicestatussection,selecttheConnectatpoweroncheckbox. IntheConnectionsection,selectISOImageandbrowsetothewindows.iso file,locatedinthedirectorywhereyouinstalledVMwareServer. ClickOK.
(Optional)Intheguestoperatingsystem,suppresspromptsaboutinstalling unsigneddrivers. IfyouareinstallingVMwareToolsfromabetaorRC(releasecandidate)versionof VMwareServer,youareaskedtoconfirmtheinstallationofunsigneddrivers. Followthesestepstosuppresstheseconfirmationprompts. ForallWindowssystemsexceptWindowsVista: a b c d OnthevirtualmachinesdesktoporStartmenu,rightclickMyComputerand selectProperties. ClicktheHardwaretabandclickDriverSigning. IntheDriverSigningOptionsdialogbox,clickIgnoreandclickOK. ClickOKintheSystemPropertiesdialogbox.
76
RC DRAFT
VMware, Inc.
c d 3
ClickNevercheckfordriverswhenIconnectanewdeviceandclickOK. ClickOKintheSystemPropertiesdialogbox.
Openacommandpromptandusethefollowingcommandtoinstallsomeorallof theVMwareToolscomponents:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL [REMOVE=<component>] /qn
Inthiscommand,youcanoptionallyuse REMOVE=<component>ifyoudonot wanttoinstallaparticularcomponent: ToolboxVMwareToolscontrolpanelanditsutilities.Excludingthis featurepreventsyoufromusingVMwareToolsintheguestoperatingsystem. VMwaredoesnotrecommendexcludingthisfeature. DriversIncludestheSVGA,mouse,BusLogic,andvmxnetdrivers. SVGAVMwareSVGAdriver.Excludingthisfeaturelimitsthedisplay capabilitiesofyourvirtualmachine. MouseVMwaremousedriver.Excludingthisfeaturedecreasesmouse performanceinyourvirtualmachine. BuslogicVMwareBusLogicdriver.Ifyourvirtualmachineis configuredtousetheLSILogicdriver,youmightwanttoremovethis feature. VMXNetVMwarevmxnetnetworkingdriver. MemCtlVMwarememorycontroldriver.Recommendedifyouplantouse thisvirtualmachinewithESX.Excludingthisfeaturehindersthememory managementcapabilitiesofthevirtualmachinerunningonanESXsystem. HgfsVMwaresharedfoldersdriver.Thesharedfoldersfeatureisnot supportedinVMwareServer.Recommendedifyouplantousethisvirtual machinewithVMwareWorkstationoranotherproductthatsupportsshared folders. Forexample,toinstalleverythingbutthesharedfoldersdriver,typethefollowing onthecommandline:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL REMOVE=Hgfs /qn
VMware, Inc.
RC DRAFT
77
Toincludeafeature,useitwiththeADDLOCALoption.Toexcludeafeature,use itwiththeREMOVEoption.
Installing VMware Tools in a Linux Guest Within X Using the RPM Installer
YoucanuseagraphicaluserinterfacetoinstallVMwareToolsinaLinuxguest.For informationabouthowtoinstallVMwareToolfromthecommandline,seeInstalling VMwareToolsfromtheCommandLinewiththeTarorRPMInstalleronpage 79. Beforeyoubegin,makesurethatthevirtualmachineispoweredonandtheguest operatingsystemisrunning. To install VMware Tools in a Linux Guest Within X Using the RPM Installer 1 InVIWebAccess,clickInstallVMwareToolsintheStatussectionofthevirtual machineSummarytab. IfanearlierversionofVMwareToolsisinstalled,clickUpgradeVMwareTools. 2 ClicktheConsoletab. Theremainingstepstakeplaceinsidethevirtualmachine. TheguestoperatingsystemmountstheVMwareToolsinstallationvirtualCD.A windowmanagerdisplayingtwofilesmightappear.OnefileisfortheRPM installerandoneisforthetarinstaller.Alternatively,aVMwareToolsCDicon mightappearonthedesktop. 3 Dooneofthefollowing: IfyouseeaVMwareToolsCDicononthedesktop,doubleclickit,andafter itopens,doubleclicktheRPMinstallerintherootoftheCDROM. Ifyouseeafilemanagerwindow,doubleclicktheRPMinstallerfile. InsomeLinuxdistributions,theVMwareToolsCDiconmightfailtoappear.In thiscase,installVMwareToolsfromthecommandline,asdescribedinInstalling VMwareToolsfromtheCommandLinewiththeTarorRPMInstalleronpage 79. 4 Whenprompted,entertherootpasswordandclickOK. Theinstallerpreparesthepackages. 5 ClickContinuewhentheinstallerpresentsadialogboxthatshowsCompleted SystemPreparation.
78
RC DRAFT
VMware, Inc.
InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
(Optional)TostarttheVMwareToolscontrolpanel,enterthefollowingcommand:
vmware-toolbox &
Installing VMware Tools from the Command Line with the Tar or RPM Installer
YoucaninstallVMwareToolsfromthecommandlineinaLinuxguest.Forinformation abouthowtoinstallVMwareToolfromagraphicaluserinterface,seeInstalling VMwareToolsinaLinuxGuestWithinXUsingtheRPMInstalleronpage 78. Beforeyoubegin,makesurethatthevirtualmachineispoweredonandtheguest operatingsystemisrunning. To install VMware Tools from the command line with the tar or RPM installer 1 InVIWebAccess,clickInstallVMwareToolsintheStatussectionofthevirtual machineSummarytab. IfanearlierversionofVMwareToolsisinstalled,clickUpgradeVMwareTools. 2 ClicktheConsoletab. Theremainingstepstakeplaceinsidethevirtualmachine. 3 Intheguest,loginasroot(su).
VMware, Inc.
RC DRAFT
79
Ifnecessary,mounttheVMwareToolsvirtualCDROMimagebyenteringa commandsimilartothefollowing:
mount /dev/cdrom /mnt/cdrom
Where<xxxx>isthebuildnumberoftheproductrelease. FortheRPMinstaller,atthecommandprompt,enter:
rpm -Uhv /mnt/cdrom/VMwareTools-<xxxx>.i386.rpm umount /dev/cdrom
80
RC DRAFT
VMware, Inc.
10 11
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
12
(Optional)TostarttheVMwareToolscontrolpanel,enterthefollowingcommand:
vmware-toolbox &
VMware, Inc.
RC DRAFT
81
ClicktheConsoletab. Theremainingstepstakeplaceinsidethevirtualmachine.
3 4
AftertheCDROMismounted,changetoaworkingdirectory(forexample,/tmp) andextractVMwareToolsbyenteringthefollowingcommands:
cd /tmp gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf -
RuntheVMwareToolstarinstaller:
cd vmware-tools-distrib ./vmware-install.pl
8 9
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
10
(Optional)TostarttheVMwareToolscontrolpanel,enterthefollowingcommand:
vmware-toolbox &
RC DRAFT
VMware, Inc.
To install VMware Tools in a FreeBSD guest operating system 1 InVIWebAccess,clickInstallVMwareToolsintheStatussectionofthevirtual machineSummarytab. IfanearlierversionofVMwareToolsisinstalled,clickUpgradeVMwareTools. 2 ClicktheConsoletab. Theremainingstepstakeplaceinsidethevirtualmachine. 3 Makesurethattheguestoperatingsystemisrunningintextmode. YoucannotinstallVMwareToolswhileXisrunning. 4 5 Intheguest,loginasroot(su). Ifnecessary,mounttheVMwareToolsvirtualCDROMimagebyenteringa commandsimilartothefollowing:
mount /cdrom
UntartheVMwareToolstarfile:
tar zxpf /cdrom/vmware-freebsd-tools.tar.gz
Ifnecessary,unmounttheVMwareToolsvirtualCDROMimagebyenteringa commandsimilartothefollowing:
umount /cdrom
Ifyourdistributionusesautomounting,skipthisstep. 9 RuntheVMwareToolsinstaller:
cd vmware-tools-distrib ./vmware-install.pl
10
Logoutoftherootaccount:
exit
11 12
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
13
VMware, Inc.
(Optional)TostarttheVMwareToolscontrolpanel,enterthefollowingcommand:
RC DRAFT
83
vmware-toolbox &
Ifthefollowingerrormessageappears,therequiredlibrarywasnotinstalled:
Shared object 'libc.so.3' not found.
3 4
InsertandmounttheFreeBSD4.5installationCDoraccesstheISOimagefile. Changedirectoriesandruntheinstallationscript:
cd /cdrom/compat3x ./install.sh
RC DRAFT
VMware, Inc.
ClicktheConsoletab. Theremainingstepstakeplaceinsidethevirtualmachine.
ForaNetWare6.0orNetWare5.1virtualmachine,inthesystemconsole, enter:
LOAD CD9660.NSS
ForaNetWare4.2virtualmachine,inthesystemconsole,enter:
load cdrom
MounttheVMwareToolsCDROMimagebyentering:
cd mount vmwtools
Inthesystemconsole,enteroneofthefollowing: ForNetWare5.1,6.0,or6.5:
vmwtools:\setup.ncf
ForNetWare4.2:
vmwtools:\setup
Whentheinstallationfinishes,themessageVMware Tools for NetWare are now runningappearsintheLoggerScreen(NetWare6.5andNetWare6.0guests)orthe ConsoleScreen(NetWare4.2and5.1guests). 5 IfyouhaveaNetWare4.2guest,restarttheguestoperatingsystem,asfollows: a Toshutdownthesystem,inthesystemconsole,enter:
down
Torestarttheguestoperatingsystem,inthesystemconsole,enter:
restart server
VMware, Inc.
RC DRAFT
85
Starting the VMware User Process Manually If You Do Not Use a Session Manager on UNIX
OneoftheexecutablesusedbyVMwareToolsinUNIXguestsisvmware-user.This programimplementsfitguesttowindowandotherfeatures. Normally,vmware-userisstartedautomaticallyafteryouconfigureVMwareTools andthenlogoutofthedesktopenvironmentandlogbackin. However,ifyourunanXsessionwithoutasessionmanager(forexample,byusing startxandgettingadesktopandnotusingxdm,kdm,orgdm),youmuststartthe VMwareUserprocessmanually. Youmustalsostartvmware-usermanuallyafteryouupdatetoanewversionof VMwareTools. To start the VMware User process manually if you do not use a session manager Dooneofthefollowing: Tohavevmware-userstartwhenyoustartanXsession,addvmware-usertothe appropriateXstartupscript,suchasthe.xsessionor.xinitrcfile. Thevmware-userprogramislocatedinthedirectorywhereyouselectedtoinstall binaryprograms,whichdefaultsto/usr/bin.Thestartupscriptthatneedstobe modifieddependsonyourparticularsystem. Tostartvmware-userafteraVMwareToolssoftwareupdateorifyounotice certainfeaturesarenotworking,openaterminalwindowandenterthefollowing command:
vmware-user
86
RC DRAFT
VMware, Inc.
WhenyouupdateVMwareTools,anychangesyoumadetothedefaultscriptsare overwritten.Anycustomscriptsyoucreatedremainuntouched,butdonotbenefit fromanyunderlyingchangesthatenhancethedefaultscripts. To update VMware Tools for a virtual machine, do one of the following IntheOptionstaboftheVMwareToolsControlPanelclicktheUpdatebutton. InVIWebAccess,clickUpgradeVMwareToolsintheStatussectionofthevirtual machineSummarytab. Adialogboxenablesyoutoselectautomaticorinteractiveupgrade: IfyouselectAutomaticVMwareToolsUpgradeandclickUpgrade, VMwareToolsisupgradedwithoutfurtheruserinteraction. IfyouselectInteractiveVMwareToolsUpgradeandclickUpgrade,the remainingstepstakeplaceinsidethevirtualmachine. UsethesameprocedurethatyouusedforinstallingVMwareToolsthe firsttime.Forplatformspecificinstallationinstructions,seeInstalling VMwareToolsonpage 73. YouarepromptedtoselecttheVMwareToolscomponentstoupgrade.
OnaLinuxguestthathasVMwareToolsinstalledusinganRPMinstaller,enterthe followingcommand:
rpm -e VMwareTools
VMware, Inc.
RC DRAFT
87
88
RC DRAFT
VMware, Inc.
Options Tab
TheOptionstaboftheVMwareToolscontrolpanelprovidesthefollowingoptions: Timesynchronizationbetweenthevirtualmachineandthehostoperating systemPeriodically(everyminute)checkswhethertheguestoperatingsystems timeislaggingbehindthehosts.Ifso,theguestsclockismovedforwardtomatch thehostsclock.Ifyouusethisoption,disableallothertimesynchronization mechanisms.Forexample,someguestsmighthaveNTPorCMOSclock synchronizationturnedonbydefault. Regardlessofwhetheryouenablethissetting,timesynchronizationoccurswhen theVMwareToolsdaemonisstarted(suchasduringareboot),whenresuming fromasuspendoperation,andaftershrinkingadisk.Whentheoperatingsystem startsorreboots,synchronizationcanbeeitherforwardorbackwardintime.For otherevents,synchronizationisforwardintime. Todisabletimesynchronizationcompletely,seeDisableTimeSynchronizationby EditingtheVirtualMachineConfigurationFileonpage 90. ShowVMwareToolsinthetaskbar(Windowsguestsonly)Displaysthe VMwareToolsiconinthenotificationareaofthetaskbar.Theiconindicates whetherVMwareToolsisrunningandwhetheranupdateisavailable. Notifyifupdateisavailable(Windowsguestsonly)DisplaystheVMware Toolsiconwithayellowcautioniconwhenanupdateisavailable. Updatebutton(Windowsguestsonly)Becomesenabledwhenanupdateis available.ClickingthisbuttonhasthesameeffectasclickingtheUpgradeVMware ToolscommandintheStatussectionoftheVIWebAccessSummarytab.
VMware, Inc.
RC DRAFT
89
tools.syncTime
Devices Tab
TheDevicestaboftheVMwareToolscontrolpanelprovidesoptionsforenablingand connectingtocertaindevices. Thecontrolsforconnectinganddisconnectingcertaindevicesmightnotbeavailable. ToconnectanddisconnectremovabledevicesusingVMwareRemoteConsole,see ConnectingandDisconnectingClientDevicesonpage 125.
90
RC DRAFT
VMware, Inc.
Scripts Tab
FromtheScriptstaboftheVMwareToolscontrolpanel,youcanedit,disable,orrun scriptsthathelpautomateguestoperatingsystemoperationswhenyouchangethe virtualmachinespowerstate. Fromthistab,youcanalsospecifythelocationofcustomscriptsfortheSuspend, Resume,PowerOn,PowerOff,andResetbuttons. Onmostguestoperatingsystems,ifVMwareToolsisinstalledandifyouconfigurea virtualmachinespowercontrolstousetheguestoptions,oneormoredefaultscripts runontheguestwheneveryouchangethepowerstateofthevirtualmachine. Forexample,ifyouusethevirtualmachineconfigurationsettings(clickConfigureVM intheCommandssectionofthevirtualmachineworkspace,andclickthePowertab) andsetthePowerOffcontroltouseShutDownGuest,thenthe poweroff-vm-defaultscriptrunswhenyouclickthePowerOffbuttoninthetoolbar. Thisscriptcausestheguestoperatingsystemtoshutdowngracefully.Adescriptionof eachscriptisprovidedlaterinthissection,inHowVMwareToolsScriptsAffectPower Statesonpage 93. Forinformationaboutcreatingacustomscript,seeCreatingScriptstoOverride DefaultVMwareToolsScriptsonpage 94.
Shrink Tab
TheShrinktaboftheVMwareToolscontrolpanelprovidesoptionsforreclaiming unusedspaceinavirtualdisk.Ifyourvirtualmachinecannotbeshrunk,thistab displaysinformationexplainingwhyyoucannotshrinkyourvirtualdisks. Shrinkingadiskisatwostepprocess:apreparationstepandtheshrinkstep.Inthefirst step,VMwareToolsreclaimsallunusedportionsofdiskpartitions(suchasdeleted files)andpreparesthemforshrinking.Thissteptakesplaceintheguestoperating system. Theshrinkprocessisthesecondstep,andittakesplaceoutsidethevirtualmachine. TheVMwareapplicationreducesthesizeofthediskbasedonthediskspacereclaimed duringthepreparationstep.Ifthediskhasemptyspace,thisprocessreducesthe amountofspacethevirtualdiskoccupiesonthehostdrive.SeeShrinkingVirtual Disksonpage 141.
VMware, Inc.
RC DRAFT
91
About Tab
TheAbouttabdisplaysversion(buildnumber)andcopyrightinformation.In Windowsguests,thistabalsoshowsthestatusoftheVMwareToolsservice.
<command>isoneofthecommandslistedinTable 52. Table 5-2. VMware Tools Commands for Netware Guests
vmwtool Command help partitonlist shrink [<partition>] Definition DisplaysasummaryofVMwareToolscommandsand optionsinaNetWareguest. Displaysalistofalldiskpartitionsinthevirtualdisk andwhetherornotapartitioncanbeshrunk. Shrinksthelistedpartitions.Ifnopartitionsare specified,allpartitionsinthevirtualdiskareshrunk. Thestatusoftheshrinkprocessappearsatthebottomof thesystemconsole. devicelist Listseachremovabledeviceinthevirtualmachine,its deviceID,andwhetherthedeviceisenabledor disabled.Removabledevicesincludethevirtual networkadapter,CD/DVDdrives,andfloppydrives. Disablesthespecifieddeviceordevicesinthevirtual machine.Ifnodeviceisspecified,allremovabledevices inthevirtualmachinearedisabled.
92
RC DRAFT
VMware, Inc.
synctime [on|off]
RC DRAFT
93
OnmostUNIXguests,thedefaultscriptexecutedwhenyoususpendavirtual machinestopsnetworkingforthevirtualmachine.Thedefaultscriptexecuted whenyouresumeavirtualmachinestartsnetworkingforthevirtualmachine. ScriptscannotberunonNetWareandFreeBSDguests. OnUNIX,thedefaultscriptsarelocatedinthe/etc/vmware-toolsdirectory. Youcancreateyourownscriptsandusetheminsteadofthedefaultscriptsshownin Table 53. Table 5-3. Default VMware Tools Scripts
Script Name poweroff-vm-default Description Ifyouconfiguredthepoweroffoperationtoshutdowntheguest, thisscriptrunswhenthevirtualmachineisbeingpoweredoff. Ifyouconfiguredtheresetoperationtorestarttheguest,thisscript runswhenthevirtualmachineisbeingreset. Thisscripthasnoeffectonnetworkingforthevirtualmachine. poweron-vm-default Ifyouconfiguredthepoweronoperationtostarttheguest,this scriptrunswhenthevirtualmachineisbeingpoweredonrather thanresumed. Ifyouconfiguredtheresetoperationtorestarttheguest,thisscript runsaftervirtualmachinerestarts. Thisscripthasnoeffectonnetworkingforthevirtualmachine. resume-vm-default Ifyouconfiguredthepoweronoperationtostarttheguest,orthe resetoperationtorestarttheguest,thisscriptrunswhenthevirtual machineisresumedafteritwassuspended. OnWindowsguests,ifthevirtualmachineisconfiguredtouse DHCP,thisscriptrenewstheIPaddressofthevirtualmachine. OnLinux,FreeBSD,andSolarisguests,thisscriptstartsnetworking forthevirtualmachine. suspend-vm-default Ifyouconfiguredthesuspendoperationtosuspendtheguest,this scriptrunswhenthevirtualmachineisbeingsuspended. OnWindowsguests,ifthevirtualmachineisconfiguredtouse DHCP,thisscriptreleasestheIPaddressofthevirtualmachine. OnLinux,FreeBSD,andSolarisguests,thisscriptstopsnetworking forthevirtualmachine.
94
RC DRAFT
VMware, Inc.
ScriptsarerunbytheVMwareToolsdaemon(VMwareService.exe onWindowsand vmware-guestdonUNIX).Becausevmware-guestdisrunasrootonUNIXandas SystemonWindows,thescriptsareruninaseparatesessionfromtheloggedinusers session.TheVMwareToolsdaemonhasnoknowledgeofdesktopsessions,which meansthatitcannotdisplaygraphicalapplications.Donotattempttousecustom scriptstodisplaygraphicalapplications. Beforecreatingcustomscripts,makesurethatthefollowingconditionsaremetinthe guestoperatingsystem: ThevirtualmachineisusingthelatestversionofVMwareTools. TheVMwareToolsserviceisrunninginthevirtualmachine. Dependingontheoperationthescriptperforms,thevirtualmachinehasavirtual networkadapterconnected.Ifnot,thepoweroperationfails. (UNIXguestsonly)ToeditascriptbyusingtheEditbuttonontheScriptstab, xtermandvimustbeinstalledintheguestoperatingsystemandmustbeinyour PATH.Youmustbearootusertoeditthescript. To create scripts to override default VMware Tools scripts 1 Determinewhetheryouwanttocreateyourcustomscriptbymakingchangesto thedefaultscriptandsavingittoanewlocation. InWindowsguests,thedefaultscriptsarelocatedintheProgram Files\VMware\VMware Toolsfolder. OnUNIX,thedefaultscriptsarelocatedinthe/etc/vmware-toolsdirectory. 2 Modifythedefaultscriptandsaveitwithadifferentnameorwriteadifferent script. OnWindowsguests,ifyouwriteanewscript,createthescriptasabatchfile.For UNIX,createthescriptinanyexecutableformat(suchasshellorPerlscripts). YoucanalsousetheEditbuttonontheScriptstaboftheVMwareToolscontrol paneltoeditacustomscript.Youcanalsoeditscriptsmanuallyusinganytext editor. 3 Associateeachcustomscriptwithitsparticularpoweroperation: a b c
VMware, Inc.
RC DRAFT
95
96
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
97
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"
Topreventastringfrombeingpassedfromthehosttotheguestthroughtheservice, setthefollowinglineinyourvirtualmachinesconfigurationfile:
isolation.tools.getMachineID.disable = "TRUE"
Usethismethodtodeployvirtualmachinesonanetworkusingacommon configurationfilewhileprovidingeachmachinewithitsownuniqueidentity. Launcheachvirtualmachinewiththevmware -scommand.Eachvirtualmachinedisk filemustbecopiedintoitsowndirectoryifitsharesitsfilenamewithanothervirtual machinediskfile. OnaLinuxhost,themachineIDpassedonthecommandlinetakesprecedenceandis passedtotheguestoperatingsystemifthefollowingconditionsaremet: AvirtualmachineIDisspecifiedinthevirtualmachinesconfiguration(.vmx)file whichisusedtoopenthevirtualmachine. YouspecifyamachineIDonthecommandline.
98
RC DRAFT
VMware, Inc.
Dooneofthefollowingtoretrievethestringinthevirtualmachine: InaWindowsguest,enterthefollowingcommandtoretrievethestring:
VMwareService --cmd machine.id.get
InaLinuxguest,intheoperatingsystemsstartupscript,addthefollowing commandbeforethenetworkstartupsection.Forexample:
/usr/sbin/vmware-guestd --cmd 'machine.id.get'
Thelocationofvmware-guestddependsonthedirectoryyouspecifyatthe timeofinstallation. 3 Furthercustomizethisstartupscriptsothatitusesthestringtheserviceretrieved duringstartuptosetthevirtualmachinesnetworknametoW2KVManditsIP addressto148.30.16.24. Placethisstringinthescriptbeforethecommandtostartthenetworkservices. IfyouareusingaWindows2000guestoperatingsystem,forexample,youcancall theNetShellutility(netsh)andpassitthecontentsofthestring,whichusesthe stringaccordingly.Thatis,itcansetanewIPaddressforthevirtualmachine,if thatiswhatwaspassedinthestringoriginally.
RC DRAFT
99
InstallanduninstallVMwareTools,determinetheversion,andsoon. To use the VMware Tools command-line interface 1 Intheguestoperatingsystem,changedirectoriestothedirectorythatcontainsthe VMwareToolsdaemon. Dependingontheoperatingsystem,thenameanddefaultlocationofthedaemon areasfollows: OnMicrosoftWindowssystems,thedaemoniscalledVMwareService.exe andthelocationis:
C:\Program Files\VMware\VMware Tools\VMwareService.exe
Toconfigureperiodictimesynchronization,usethevmx.set_optioncommand. Usethefollowingsyntax: <daemon> --cmd "vmx.set_option synctime <old_val> <new_val>" <daemon>isvmware-guestdonUNIXsystemsorVMwareService.exeon Windowssystems. <old_val>and<new_val>aretheoldandnewvalues,respectively.Use0tomean FALSEand1tomeanTRUE. FollowingisanexampleofsettingtimesynchronizationtoTRUEonaLinuxguest:
./vmware-guestd --cmd "vmx.set_option synctime 0 1"
100
RC DRAFT
VMware, Inc.
Thischapterdescribeshowtoperformhostwideconfigurationtasks,including managingyourvirtualmachineinventoryanddatastores,andconfiguringglobal memory,snapshot,andvirtualmachinestartupandshutdownsettings.Italso describesWindowshostfeaturesforbackingupvirtualmachinesusingtheVolume ShadowCopyService(VSS)andloggingVMwareServereventsintheEventViewer.To performhostmanagementoperations,youmusthavetherequiredpermissions. Forinformationaboutmanagingindividualvirtualmachines,seeChapter 7,Running VirtualMachines,onpage 115. ForinformationaboutconfiguringVMwareServernetworking,seeChapter 11, ConfiguringaVirtualNetwork,onpage 203. Thischaptercoversthefollowingtopics: ManagingtheVirtualMachineInventoryonpage 101 ManagingDatastoresonpage 103 EditingHostWideMemoryandSnapshotSettingsonpage 106 ConfiguringVirtualMachineStartupandShutdownSettingsonpage 109 EnablingQuiescedBackupsofVirtualMachinesonWindowsonpage 111
VMware, Inc.
RC DRAFT
101
Thissectiondescribeshowtoaddandremovevirtualmachinesintheinventory.
102
RC DRAFT
VMware, Inc.
Whenthevirtualmachineispoweredoff,theRemoveVirtualMachinecommand appearsintheCommandssectionoftheworkspace. 4 ClickRemoveVirtualMachine. Aconfirmationdialogboxappears. 5 (Optional)Todeleteallthevirtualmachinefilesfromdisk,selectDeletethis virtualmachinesfilesfromthedisk. IfyoudonotselectDeletethisvirtualmachinesfilesfromthedisk,thevirtual machineisremovedfromtheinventory,butallthevirtualmachinefilesremain intactonthedatastore. 6 ClickOK. Thevirtualmachineisdeletedorremovedfromtheinventory. YoucanalsodeleteavirtualmachineorremoveitfromtheinventoryfromtheVirtual Machinemenu.SeeDeletingaVirtualMachineonpage 123.
Managing Datastores
Thissectiondescribeshowtoadd,rename,andremovedatastores.
VMware, Inc.
RC DRAFT
103
Adding Datastores
AdatastoreisastoragelocationforVMwareServervirtualmachinefiles.Thestorage locationcanbethelocalfilesystem,aCIFSstore(Windowsonly),oranNFSmounted filesystem(Linuxonly).
ToaddaCIFSdatastore(Windowshostonly): i ii iii
104
RC DRAFT
VMware, Inc.
iv
Enteravalidusername. Includethedomainorservername,forexample:
<domain_name>\<username>
or
<server_name>\<username>
v vi
.
Enterthecorrespondingpassword. ClickOKtoaddthedatastore.
NOTEVMwareServerusestheWindowscredentialmanagerforuser authentication.Becausethiscredentialmanagerfeatureisnotsupportedon Windows2000Server,youcannotaddaCIFSdatastoreifVMwareServeris installedonaWindows2000Serverhost. ToaddanNFSdatastore(Linuxhostonly): i ii iii iv SelectNetworkFileSystem. EnteravalidNFSservernameorIPaddress. Enterthelocationofthesharedfolder. ClickOKtoaddthedatastore.
Thedatastoreappearsinthelistofdatastores.
Renaming Datastores
Youcanrenameanexistingdatastore. To rename a datastore 1 2 3 4 5 SelectthehostintheInventorypanel. IntheDatastoressectionoftheSummarytab,clickthedatastoretorename. IntheCommandssectionoftheSummarytab,clickRenameDatastore. EnteranewnameforthedatastoreintheNametextbox. ClickOK. Therenameddatastoreappearsinthelistofdatastores.
VMware, Inc.
RC DRAFT
105
Removing Datastores
Ifyounolongerwanttoaccessadatastore,youcanremoveitfromVMwareServer. Beforeyoucanremoveadatastore,youmustremoveallvirtualmachinesinthe datastore. To remove a datastore 1 2 3 SelectthehostintheInventorypanel. IntheDatastoressectionoftheSummarytab,clickthedatastoretoremove. IntheCommandssectionoftheSummarytab,clickRemoveDatastore. Aconfirmationdialogboxappears. 4 ClickOKtoremovethedatastore. Thedatastorenolongerappearsinthelistofdatastores.
Refreshing Datastores
Whenyourefreshadatastore,VMwareServerupdatesthecapacityandfreespace availableforthatdatastore.Therefreshcommandallowsyoutoseechangesindisk capacityandfreespacecausedbyoperationsperformeddirectlyonthehostsystem. ThesevaluesareautomaticallyupdatedwhenyouperformVMwareServeroperations suchascreatingordeletingavirtualmachine. To refresh a datastore 1 2 3 SelectthehostintheInventorypanel. IntheDatastoressectionoftheSummarytab,clickthedatastoretorefresh. IntheCommandssectionoftheSummarytab,clickRefreshDatastore. Thevaluesforcapacityandfreespaceareupdatedforthatdatastore.
106
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
107
FitallvirtualmachinememoryintoreservedhostRAMStrictlyapplies thereservedmemorylimit.Thissettingimposesthetightestrestrictionsonthe numberandmemorysizeofvirtualmachinesthatcanrunatagiventime. BecausethevirtualmachinesarerunningentirelyinRAM,theyhavethebest possibleperformance. AllowsomevirtualmachinememorytobeswappedAllowsthehost operatingsystemtoswapamoderateamountofvirtualmachinememoryto diskifnecessary.Thissettingallowsyoutoincreasethenumberormemory sizeofvirtualmachinesthatcanrunonthehostsystematagiventime.It mightalsoresultinreducedperformanceifvirtualmachinememorymustbe swappedbetweenRAManddisk. AllowmostvirtualmachinememorytobeswappedAllowsthehost operatingsystemtoswapthemaximumamountofvirtualmachinememory todisk.Thissettingallowsyoutorunmorevirtualmachinesandusemore memorythanthemoderatesettingdoes.Performancemightbefurther decreasedifvirtualmachinememorymustbeswappedbetweenRAMand disk. 4 ClickOK.
108
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
109
Customizing the Startup and Shutdown Settings for Individual Virtual Machines
Youcanoverridethesystemwidesettingsforthedelaybetweeneachvirtualmachines startupandshutdownforindividualvirtualmachines.
110
RC DRAFT
VMware, Inc.
Youcanchangethestartupsettingsforvirtualmachinesthatarestartedautomatically, butnotforvirtualmachinesthatarestartedmanually.Youcanchangetheshutdown settingsforanyvirtualmachine. To override system-wide settings for individual virtual machines 1 Makesurethatsystemwidesettingsareenabled. SeeEnablingSystemWideStartupandShutdownSettingsonpage 109. 2 3 Selectthevirtualmachineforwhichyouwanttooverridethesystemsettingsand clickEdit. (Optional)Tooverridethedefaultsystemsettingforstartup,selectUsespecified settingsandchangeoneorbothofthefollowing: StartupDelayEntertheamountoftimeinsecondstowaitafteravirtual machineisstartedbeforestartingthenextvirtualmachineinthestartuplist. ContinueimmediatelyiftheVMwareToolsstartSelecttostartthenext virtualmachineinthestartuplistimmediatelyafterVMwareToolsstartsin thecurrentvirtualmachine. 4 (Optional)Tooverridethedefaultsystemsettingforshutdown,selectUse specifiedsettingsandchangeoneorbothofthefollowing: ShutdownDelayEntertheamountoftimeinsecondstowaitaftershutting downavirtualmachinebeforeshuttingdownthenextvirtualmachineinthe shutdownlist. PerformShutdownActionSelectSystemDefault,PowerOff,Suspend,or ShutDownGuest. 5 ClickOK.
VMware, Inc.
RC DRAFT
111
NOTEVMwarehastestedquiescedbackupsusingWindowsBackup(NTBackup).For informationaboutsupportforthirdpartybackupapplications,contactyourbackup applicationvendor. YoucanperformquiescedbackupsonhostoperatingsystemsrunningWindowsServer 2003andWindowsServer2008.Only32bitWindowsServer2008hostsaresupported. TheguestoperatingsystemmustberunningWindowsServer2003orWindowsServer 2008.AnuptodateversionofVMwareToolsmustbeinstalledintheguestoperating system. ForWindowsServer2003guestsystems,theVSSWriterusesapplicationVSSwriters sothattheVSSsnapshotisapplicationconsistent.Thesnapshotrepresentstheentire stateoftheVSSawareapplicationsregardlessoftheirbackuphistoryanddoesnot modifythebackuphistory. ForWindowsServer2008guestsystems,theVSSWriterdoesnotuseapplication writersand,asaresult,thesnapshotisfilesystemconsistent. NOTEVMwareServerallowsonesnapshotforeachvirtualmachine.Ifasnapshot exists,theVSSwriterdoesnotquiescethevirtualmachines,unlessyouoverridethis defaultbehavior. To enable and disable quiesced backups for virtual machines 1 (Optional)ToallowtheVSSWritertooverwriteanexistingsnapshot: a b Createthefilevmvsswriter.cfgintheVMwareServerinstallationdirectory, typicallyC:\Program Files\VMware\VMware Server. Addthefollowingparametertothevmvsswriter.cfgfiletospecifythatan existingsnapshotcanbeoverwrittensovirtualmachinescanbequiesced beforebackup:
vmwriter.overwriteSnapshots = "TRUE"
112
RC DRAFT
VMware, Inc.
TheuserrunningtheVSSWriterServicemusthavepermissiontoperform administrativetasksonvirtualmachines,suchascreatingsnapshots.Theuser mustalsobeabletowritetothevirtualmachinediskfiledirectory.Youcanverify orchangetheusernameandpasswordintheLogOntabofthePropertiesdialog boxfortheVSSWriterService. YoumustrestarttheVSSWriterServiceanytimeyoumakechangestothe vmvsswriter.cfgfile. To restore a virtual machine from a quiesced backup 1 2 Makesurethatanyvirtualmachinesyouwanttorestorearepoweredoff. Dooneofthefollowing: Usethebackupsoftwaretorestorethevirtualmachines. Restoreanindividualvirtualmachinebyrevertingtothesnapshot.For informationaboutrevertingtoasnapshot,seeRevertingtoaSnapshoton page 190.
VMware, Inc.
RC DRAFT
113
114
RC DRAFT
VMware, Inc.
AfteryouhaveinstalledVMwareServer,createdavirtualmachine,andinstalleda guestoperatingsystemandVMwareTools,youarereadytorunyourvirtualmachine. Toperformvirtualmachineoperations,youmusthavetherequiredpermissions.Many configurationmodificationsaredisabledwhenthevirtualmachineispoweredon. NOTETheonlytasksVIWebAccesscanperformonhardwareversion3virtual machinesarepoweroperationsandupgrade. Thischapterdescribesthemostcommontaskstomanageandusevirtualmachinesand coversthefollowingtopics: RunningVMwareToolsonpage 116 ChangingthePowerStateofaVirtualMachineonpage 116 ChangingVirtualMachinePowerSettingsonpage 118 ChangingVirtualMachineNameandGuestSystemSettingsonpage 117 ChangingVirtualMachineSnapshotSettingsonpage 119 ChangingVirtualMachineAdvancedSettingsonpage 121 DeletingaVirtualMachineonpage 123 UsingVMwareRemoteConsoleonpage 124 GeneratingandSharingVirtualMachineShortcutsonpage 127 EditingNotesintheVirtualMachineSummaryTabonpage 128 EditingtheHardwareConfigurationofaVirtualMachineonpage 129
VMware, Inc.
RC DRAFT
115
OnWindowsguests,iftheVMwareToolsiconincludesayellowcautionicon,itmeans thatanupdateisavailable.Toperformtheupdate,doubleclicktheicon,andonthe Optionstabthatappears,clicktheUpdatebutton. IftheVMwareToolsiconappearswitharedcircleandslashoverit,thismeansthat theVMwareToolsserviceisnotrunning.Tostarttheservice,selectRunfromthe WindowsStartmenu,andenterservices.msc.Inthewindowthatappears,startthe servicecalledVMwareToolsService. IftheVMwareToolsicondoesnotappearinthenotificationareaoftheWindows gueststaskbar,usetheVMwareToolscontrolpanelintheguesttodisplayit.See UsingtheWindowsControlPaneltoDisplaytheTaskbarIcononpage 89. TochangeotherVMwareToolsproperties,seeUsingtheVMwareToolsControl Panelonpage 88.Formoreinformationabouttheproperties,clickHelp.
116
RC DRAFT
VMware, Inc.
FromthehostworkspaceVirtualMachinestab,selectthevirtualmachine,and clickthebuttoninthetoolbarthatindicatesthedesiredpowerstate. Table 71describeswhathappenswhenyouchangethepowerstateofavirtual machine. Table 7-1. Toolbar Power Operations
Button Description Powersoffthevirtualmachine.Dependingonhowyouhaveconfiguredthe poweroptionsforthisvirtualmachine,VMwareServermightshutdownthe guestoperatingsystemandexecuteanyscriptsassociatedwiththispowerstate change. Whenthisiconisdepressed,thevirtualmachineispoweredoff. Suspendsarunningvirtualmachine.Dependingonhowyouhaveconfiguredthe poweroptionsforthisvirtualmachine,VMwareServermightputtheguest operatingsystemonstandbyandexecuteanyscriptsassociatedwiththispower statechange. Whenthisiconisdepressed,thevirtualmachineissuspended. Powersonastoppedvirtualmachineorresumesasuspendedvirtualmachine. Dependingonhowyouhaveconfiguredthepoweroptionsforthisvirtual machine,VMwareServermightrestartorresumetheguestoperatingsystemand executeanyscriptsassociatedwiththispowerstatechange. Whenthisiconisdepressed,thevirtualmachineisrunning. Resetsthevirtualmachine.Dependingonhowyouhaveconfiguredthepower optionsforthisvirtualmachine,VMwareServermightshutdownandrestartthe guestoperatingsystemandexecuteanyscriptsassociatedwiththispowerstate change.
NOTEShuttingdownorrestartingaguestoperatingsystemworksonlywhen VMwareToolsisinstalled.Otherwise,thepoweristurnedofforthevirtualmachineis resetexactlyasifyouhadpushedthepowerorresetbuttononaphysicalmachine.For informationaboutinstallingVMwareTools,seeChapter 5,InstallingandUsing VMwareTools,onpage 71.ForinformationabouthowtouseVMwareToolsscripts toaffectpowerstatebehavior,seeChangingVirtualMachinePowerSettingsonpage 118 andHowVMwareToolsScriptsAffectPowerStatesonpage 93.
RC DRAFT
117
To change virtual machine name or guest operating system settings 1 2 IntheCommandssectionofthevirtualmachinesSummarytab,clickConfigure VM. IntheGeneraltab,changethenameorguestoperatingsystemsetting: (Optional)Tochangethedisplayname,typeanewnameintheVirtual MachineNametextbox. (Optional)Tochangetheguestoperatingsystemsetting(forexample,ifyou areupgradingtheguestoperatingsystemversion),selectthetypeof operatingsystemandthenselecttheoperatingsystemversionfromthe dropdownmenu. Whenyouchangetheoperatingsystemversionhere,thesettingfortheguest operatingsystemischangedinthevirtualmachinesconfigurationfile.The guestoperatingsystemitselfisnotchanged.Forinformationaboutupdatingthe guestoperatingsystem,seeUpdatingtheGuestOperatingSystemon page 68. 3 ClickOKtosaveyourchangesandreturntotheSummarytab.
118
RC DRAFT
VMware, Inc.
ClickOKtosaveyourchangesandreturntotheSummarytab.
VMware, Inc.
RC DRAFT
119
120
RC DRAFT
VMware, Inc.
OnLinuxhostsystems,thefilesarestoredinthedirectory /var/log/vmware.
VMware, Inc.
RC DRAFT
121
EnableloggingEnablesloggingforthevirtualmachine.Youcanthen providethistoVMwaresupporttotroubleshootanyproblemsyouare experiencing.VMwarerecommendsthatyoukeeploggingenabled.Thereis minimaloverheadforthislogging. DisableaccelerationDisablesaccelerationinthevirtualmachine.You mightwanttotemporarilydisableaccelerationinavirtualmachineifyoutry toinstallorstartaprograminavirtualmachineandtheprogramseemsto hangorcrashorreportsthatitisrunningunderadebugger.Inmanycases, youcangetpasttheproblembytemporarilydisablingacceleration. Thissettingdegradesvirtualmachineperformance,souseitonlytogetpast aproblemrunningtheprogram.Afteryougetpasttheproblem,returntothe AdvancedtabanddeselectDisableacceleration.Youmightthenbeableto runtheprogramwithacceleration. SupportVMIParavirtualizationIfyouhaveaVMwareVMI3.0enabled kernelinaLinuxguestoperatingsystem,youcanenableVMI paravirtualizationsupporttoimproveperformanceinthevirtualmachine. Formoreinformationaboutparavirtualizationingeneral,seethefollowing VMwareWebsite: http://www.vmware.com/interfaces/paravirtualization.html AvailableVMIenabledkernelsincludeUbuntu7.04(Feisty)orlater. Usethestandardimagefor32bitIntelx86systems.VMIcurrentlysupports only32bitguests. ConfigureVirtualizedMMUSettingsRecentCPUsarecapableof virtualizingtheMemoryManagementUnit(MMU).Theuseofthiscapability almostalwaysimprovesvirtualmachineperformance.However,theremight becaseswhereitispreferablenottovirtualizetheMMU.Youcanselectone ofthefollowingchoices: Allowthehosttodetermineautomatically(thedefault) Forceuseofthesefeatureswhenavailable Donotusethesefeatures 4 ClickOKtosaveyourchangesandreturntotheSummarytab.
RC DRAFT
VMware, Inc.
3 4 5 6 7
To edit a parameter in the virtual machine configuration file 1 2 3 4 5 6 IntheCommandssectionofthevirtualmachinesSummarytab,clickConfigure VM. ClickAdvanced. IntheConfigurationParameterssection,selecttheparameterandclickEdit. EnterthenewvaluefortheparameterintheValuetextbox. ClickOK. ClickOKtosaveyourchangesandreturntotheSummarytab.
VMware, Inc.
RC DRAFT
123
124
RC DRAFT
VMware, Inc.
To run your virtual machine in full screen mode ClickthemaximizebuttonontheVMwareRemoteConsolewindow. Thedesktopexpandstofillthescreen,leavingatoolbarvisibleatthetopofthescreen. To pin the toolbar so it is always visible Clickthepushpinonthetoolbarsothatitisinadiagonalposition. To release the toolbar so only a very thin horizontal area is visible Clickthepushpinonthetoolbarsothatitisinahorizontalposition.Afterafewseconds withnouse,mostofthetoolbardisappears. To make the toolbar fully visible Movethemousepointertothetopmiddleofthescreenwherethethinhorizontalarea isvisible. To reduce the VMware Remote Console display so it is running in a window Clicktherestorebuttononthetoolbar. To return to a window if the mouse pointer is not available PressCtrl+Alt.
VMware, Inc.
RC DRAFT
125
RC DRAFT
VMware, Inc.
VMwareRemoteConsoleclosesautomaticallywhenthevirtualmachineissuspended orpoweredoff.
VMware, Inc.
RC DRAFT
127
ClickOKtoreturntotheSummarytab.
RC DRAFT
VMware, Inc.
AnysavedtextappearsintheNotessectionoftheSummarytab.
VMware, Inc.
RC DRAFT
129
USBControllerForinformationaboutconfiguringUSBdevices,see ConfiguringUSBControllersandDevicesonpage 152.Forinformationabout removingaUSBcontroller,seeRemovingaUSBControllerfromaVirtual Machineonpage 153. SoundAdapterForinformationaboutchangingthesettingsforasound adapter,seeEditingaVirtualSoundAdapteronpage 158.Forinformation aboutremovingasoundadapter,seeRemovingaSoundAdapterfromaVirtual Machineonpage 159. SerialPortsForinformationaboutchangingthesettingsforserialports,see EditingaVirtualSerialPortonpage 162.Forinformationaboutremovinga serialport,seeRemovingaSerialPortfromaVirtualMachineonpage 163. ParallelPortsForinformationaboutchangingthesettingsforparallelports,see EditingaVirtualParallelPortonpage 171.Forinformationaboutremovinga parallelport,seeRemovingaParallelPortfromaVirtualMachineonpage 171.
130
RC DRAFT
VMware, Inc.
CD/DVDDrivesSeeAddingaCD/DVDDrivetoaVirtualMachineon page 144. FloppyDrivesSeeAddingaFloppyDrivetoaVirtualMachineon page 147. Passthrough(Generic)SCSIDevicesSeeAddingaPassthrough(Generic) SCSIDeviceonpage 150. USBControllerSeeAddingaUSBControllertoaVirtualMachineon page 152. SoundAdapterSeeAddingaSoundAdaptertoaVirtualMachineon page 158. SerialPortsSeeAddingaSerialPorttoaVirtualMachineonpage 159. ParallelPortsSeeAddingaParallelPorttoaVirtualMachineon page 170. 5 OntheReadytoCompletepage,dooneofthefollowing: ClickBackornavigateusingthePagespaneltomakechanges. Ifyouwanttopoweronthevirtualmachineimmediatelyafteraddingthenew hardware,selectPoweronyourvirtualmachinenow. ExpandMoreHardwaretoaddmorevirtualhardwaretothevirtualmachine beforeyoufinish. Eachtimeyoufinishaddinganewdevice,youreturntotheReadyto Completepage. ClickFinishtocreatethevirtualmachinewiththelistedhardware. Thewizardaddsthehardwaretoyourvirtualmachine.
VMware, Inc.
RC DRAFT
131
Someapplicationsuseaproductactivationfeaturethatcreatesakeybasedonthe virtualhardwareinthevirtualmachinewhereitisinstalled.Changesinthe configurationofthevirtualmachinemightrequireyoutoreactivatethesoftware. Tominimizethenumberofsignificantchanges,setthememorysizeandinstall VMwareTools. IntherareinstancethatVMwareServerappearstohangwhenyouinstallorrun softwareinsideavirtualmachine,considertemporarilydisablingaccelerationin thevirtualmachine,asdescribedinChangingVirtualMachineAdvanced Settingsonpage 121.Generally,theproblemoccursearlyintheprograms execution. Thissettingslowsdownvirtualmachineperformance,soitisrecommendedonly forgettingpasttheproblemwithrunningtheprogram.Afteryoupassthepoint wheretheprogramwasencounteringproblems,tryreturningtotheAdvanced SettingstabanddeselectingDisableacceleration.
OnLinux,vmrunisinthedirectoryforVIXAPIbinaryfiles,typically/usr/bin. BeforeusingthevmruncommandonaWindowshost,youmustdooneofthe following: ChangeyourworkingdirectorytotheVMwareServerdirectory.The defaultlocationis: c:\Program Files\VMware\VMware Server AddtheVMwareVIXdirectorytothesystempath.OnWindows2000 Server,youcanchangethissettingfromtheWindowscontrolpanel:
132
RC DRAFT
VMware, Inc.
ControlPanel>System>Advanced>EnvironmentVariables> System variables>Path VMCISocketsinterface ThisfeatureisasocketsinterfacefortheVirtual MachineCommunicationInterface,whichprovidesafastermeansof communicationamongapplicationsrunningonthehostandinvirtualmachines. Thisfeatureiswellsuitedfordeveloperswhowanttowriteclientserver applications.Formoreinformation,seetheVMCISocketsProgrammingGuide. Toallowavirtualmachinetocommunicatewithothervirtualmachinesand applicationsonthehost,youmustaddthevmci0.unrestricted configuration fileparameterandsetittoTRUE,asdescribedinChangingVirtualMachine AdvancedSettingsonpage 121.Ifvmci0.unrestrictedisnotsetorsetto FALSE,thevirtualmachinecannotcommunicatewithothervirtualmachinesor applicationsonthehost.
VMware, Inc.
RC DRAFT
133
134
RC DRAFT
VMware, Inc.
Thischapterdescribeshowtousevariousdeviceswithavirtualmachineandcovers thefollowingtopics: ConfiguringHardDisksonpage 135 ConfiguringCD/DVDDrivesonpage 143 ConfiguringFloppyDrivesonpage 147 ConfiguringPassthrough(Generic)SCSIDevicesonpage 150 ConfiguringSCSIControllersonpage 152 ConfiguringUSBControllersandDevicesonpage 152 ConfiguringSoundonpage 157 ConfiguringSerialPortsonpage 159 ConfiguringParallelPortsonpage 169 KeyboardMappingonLinuxHostsonpage 176
RC DRAFT
135
136
RC DRAFT
VMware, Inc.
Ifyouhaveasnapshot,youmustremoveitbeforeyoucanchangethediskmodewhen youeditavirtualdisk.SeeRemovingaSnapshotonpage 191. IfyouselectIndependentMode,alsoselectoneofthefollowing: PersistentDisksinpersistentmodebehavelikeconventionaldisksonyour physicalcomputer.Alldatawrittentoadiskinpersistentmodearewritten permanentlytothedisk. NonpersistentChangestodisksinnonpersistentmodearediscardedwhenyou powerofforresetthevirtualmachine.Nonpersistentmodeenablesyoutorestart thevirtualmachinewithavirtualdiskinthesamestateeverytime.Changestothe diskareactuallywrittentoandreadfromaredologfilethatisdeletedwhenyou powerofforreset.
VMware, Inc.
RC DRAFT
137
138
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
139
ClickOKtosaveyourchanges.
140
RC DRAFT
VMware, Inc.
Defragmentingdiskscantakeconsiderabletime.
VMware, Inc.
RC DRAFT
141
Ifthevirtualdiskisanindependentdisk,itmustbepersistent.SeeDiskMode Settingsonpage 136. NOTETheshrinkprocessappliestoallvirtualdisksevenifyoudonotprepareallthe virtualdisksinavirtualmachineforshrinking. To shrink a virtual disk 1 LaunchtheVMwareToolscontrolpanel: ForaWindowsguest,doubleclicktheVMwareToolsiconinthenotification areaofthetaskbar. Iftheiconisnotavailable,selectStart>Settings>ControlPanel,and doubleclickVMwareTools. ForaLinux,Solaris,orFreeBSDguest,openaterminalwindow,becomeroot, andrunvmware-toolbox. Ifyoushrinkdisksasanonrootuser,youcannotwipethepartsofthevirtual diskthatrequirerootlevelpermissions. 2 IntheVMwareToolscontrolpanel,clicktheShrinktab. Ifthevirtualmachinedoesnotallowshrinking,theShrinktabshowsthereason. 3 SelectthevirtualdiskstoshrinkandclickPreparetoShrink. Ifyoudeselectsomepartitions,thewholediskisstillshrunk.However,those partitionsarenotwipedforshrinking,andtheshrinkprocessdoesnotreducethe sizeofthevirtualdiskasmuchasitwouldwithallpartitionsselected. VMwareToolsreclaimsallunusedportionsofdiskpartitions(suchasdeletedfiles) andpreparesthemforshrinking.Duringthisphase,youcanstillinteractwiththe virtualmachine. WhenVMwareToolsfinisheswipingtheselecteddiskpartitions,apromptto shrinkthedisksappears. 4 ClickYes. Shrinkingdiskscantakeconsiderabletime. 5 ClickOK.
142
RC DRAFT
VMware, Inc.
Unlikeaphysicaldisk,youcanenlargeavirtualdisksothatthemaximumcapacityis largerthanitwaswhenyoucreatedit.Thisisusefulifyouneedmorediskspaceina givenvirtualmachine,butdonotwanttoaddanothervirtualdiskorifyouuse ghostingsoftwaretotransferthedataonavirtualdisktoalargervirtualdisk. Youcanalsochangedisktypes.Whenyoucreateavirtualmachine,youspecifyhow diskspaceisallocated,asfollows: Allspaceforthevirtualdiskisallocatedinadvance.Thiscorrespondstothe preallocateddisktypeforVirtualDiskManager. Spaceallocatedforthevirtualdiskgrowsasneeded.Thiscorrespondstothe growabledisktypeforVirtualDiskManager. Ifyouallocateallthediskspaceforavirtualdiskbutlaterneedtoreclaimsomehard diskspaceonthehost,youcanconvertthepreallocatedvirtualdiskintoagrowable disk.Thenewvirtualdiskisstilllargeenoughtocontainallthedataintheoriginal virtualdisk. Youcanalsochangewhetherthevirtualdiskisstoredinasinglefileorsplitinto2GB files. SeetheVMwaretechnicalnoteaboutusingVirtualDiskManager.
VMware, Inc.
RC DRAFT
143
144
RC DRAFT
VMware, Inc.
ItdoesnotmatterwhethertheCD/DVDdriveisIDEorSCSI.AnIDEvirtualCD/DVD drivecanuseaphysicalIDEdriveoraphysicalSCSIdrive.SocanaSCSIvirtual CD/DVDdrive. To add a CD/DVD drive to a virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickCD/DVDDrive. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 SelectanoptionunderHostMediatoconnecttoadriveorISOimageonthe VMwareServerhost. ClickUseaPhysicalDrivetoconnectthevirtualmachinesdrivetoaphysical driveonthehostsystem. ClickUseanISOImagetoconnectthevirtualmachinesdrivetoanISO imagefileonthehostsystem. 3 4 ClickNext. DooneofthefollowingonthePropertiespage: IfyouselectedUseaPhysicalDrive,specifythedrivetouse. IfyouselectedUseanISOImage,clickBrowsetonavigatetoafilewiththe .isoextensioninanexistingdatastore.Toenterthepathmanually,youmust usetheformat:
[ datastore_name ] path_and_filename.iso
5 6
ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings.
Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
VMware, Inc.
RC DRAFT
145
(Optional)IntheVirtualDeviceNodesection,selectanadapteranddevicenode fromthedropdownmenus.
146
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
147
To add a new virtual floppy drive to a virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickFloppyDrive. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 SelectanoptionunderHostMediatoconnecttoafloppydriveorfloppyimageon theVMwareServerhost. ClickUseaPhysicalDrivetoconnectthevirtualfloppydrivetoaphysical driveonthehostsystem. ClickUseaFloppyImagetoconnectthevirtualfloppydrivetoafloppy imagefileonthehostsystem. 3 4 ClickNext. DooneofthefollowingonthePropertiespage: IfyouselectedUseaPhysicalDrive,selectthedrivetouse. IfyouselectedUseanexistingfloppyimageorCreateablankfloppyimage, clickBrowsetonavigatetoafilewiththe.flpextensioninanexisting datastore.Toenterthepathmanually,youmustusetheformat:
[ datastore_name ] path_and_filename.flp
5 6
Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
148
RC DRAFT
VMware, Inc.
ClickOKtosaveyourchanges.
VMware, Inc.
RC DRAFT
149
150
RC DRAFT
VMware, Inc.
To add a passthrough SCSI device to a virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickPassthroughSCSI Device. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 SelectaSCSIdevicetouse. AphysicalSCSIdevicemustbeattachedtothedevice,anditmustbeconnectedto thevirtualmachine. 3 4 (Optional)IntheVirtualDeviceNodesection,selectaSCSIadapteranddevice nodefromthedropdownmenus. ClickOK.
VMware, Inc.
RC DRAFT
151
152
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
153
TheUSBdevicereturnstothedeselectedstateinthetoolbarmenu.
154
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
155
DonotattempttoaddaUSBdrivesdevicenode(forexample,/dev/sda)directoryto thevirtualmachineasaharddisk.
RC DRAFT
VMware, Inc.
Device Control on a Linux Host OnLinuxhosts,guestoperatingsystemscanusedevicesthatarenotalreadyinuseby thehost(devicesthatarenotclaimedbyahostoperatingsystemdriver). Ifyourdeviceisinusebythehost,youcanunloadthedevicedrivermanuallyasroot (su -)byusingthermmodcommand.Or,ifthedriverwasautomaticallyloadedby hotplug,youcandisableitinthehotplugconfigurationfilesinthe/etc/hotplug directory.SeeyourLinuxdistributionsdocumentationfordetailsoneditingthese configurationfiles. Sometimesdevicesthatrelyonautomaticconnection(asPDAsoftendo)experience connectionproblems.Ifyouhavesuccessfullyusedautoconnectiontoconnectthe devicetoyourvirtualmachinebutlaterexperienceproblemswiththeconnectiontothe device,trythefollowingprocedure. To correct autoconnection problems 1 2 Disconnectandreconnectthedevicebyunpluggingitphysicallyandpluggingit backin. Ifyouseeadialogboxwarningthatthedeviceisinuse,disableitinthehotplug configurationfilesinthe/etc/hotplugdirectory.
Configuring Sound
VMwareServerprovidesasounddevicecompatiblewiththeCreativeLabsSound BlasterAudioPCIadapterandsupportssoundinavarietyofWindowsandLinuxguest operatingsystems. SoundsupportincludesPCM(pulsecodemodulation)outputandinput.Forexample, youcanplay.wavfiles,MP3audio,andRealMediaaudio.MIDIoutputfromWindows guestsissupportedthroughtheWindowssoftwaresynthesizer.MIDIinputisnot supported,andnoMIDIsupportisavailableforLinuxguests.
VMware, Inc.
RC DRAFT
157
Windows2000,WindowsXP,andmostrecentLinuxdistributionsautomaticallydetect thesounddeviceandinstallappropriatedriversforit. WhenyouinstallVMwareToolsina64bitWindowsVistaguestoperatingsystem,a sounddriverisinstalled.For32bitWindowsVistaguestsandWindows2003Server guests,useWindowsUpdatetoinstalla32bitdriver.Windows95,Windows98, Windows98SE,andWindowsNT4.0donothavedriversfortheSoundBlaster AudioPCIadapter.Tousesoundintheseguestoperatingsystems,downloadthedriver fromtheCreativeLabsWebsite(www.creative.com)andinstallitintheguest operatingsystem.CreativeLabshasanumberofWebsitesservingvariousregionsof theworld.Theadapternamevaries,dependingontheregion,butusuallyincludesPCI 128.
158
RC DRAFT
VMware, Inc.
3 4 5
VMware, Inc.
RC DRAFT
159
To add a physical serial port to the virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 4 5 ClickUsePhysicalSerialPorttoconnecttoaphysicalportonthehostmachine. OnthePropertiespage,selectaphysicalportfromthedropdownmenu. (Optional)Toconnecttothehostsserialportwhenthevirtualmachineispowered on,selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168. 6 ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings. 7 Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
To add an output file serial port to the virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 ClickUseOutputFiletosendtheoutputofanapplicationrunningintheguest systemtoafileonthehostsystem. OnthePropertiespage,enterthepathandfilenamefortheoutputfileorclick Browsetonavigatetoafileinanexistingdatastore.Toenterthepathmanually, youmustusetheformat:[ datastore_name ] path_and_filename (Optional)Toconnecttothehostsoutputfilewhenthevirtualmachineispowered on,selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168.
4 5
160
RC DRAFT
VMware, Inc.
ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings.
Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
To add a named pipe serial port to the virtual machine 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 ClickUseNamedPipetoconnectthisvirtualmachinetoanapplicationoranother virtualmachinerunningonthehostmachine. OnthePropertiespage,enterthepathandfilenameforthepipe.Dependingonthe hostsystem,enteroneofthefollowing: OnWindowshosts:Thepipenamemustbeintheformat \\.\pipe\<namedpipe>.Thenamemustbeginwith\\.\pipe\. OnLinuxhosts:Thepipenamemustbe/tmp/<socket>oranotherUNIX socketnameofyourchoice. 4 ForNearEnd,selectwhethertheapplicationrunningintheguestoperating systemwillfunctionasaserveroraclient. SelectIsaservertostartthisendoftheconnectionfirst. SelectIsaclienttostartthefarendoftheconnectionfirst. 5 ForFarEnd,specifywheretheapplicationthatthevirtualmachinewillconnectto islocated. SelectIsavirtualmachineiftheapplicationthatthevirtualmachinewill connecttoislocatedonanothervirtualmachineonthehostsystem. SelectIsanapplicationiftheapplicationthatthevirtualmachinewillconnect toisrunningdirectlyonthehostsystem. 6 7 (Optional)Toconnecttothenamedpipewhenthevirtualmachineispoweredon, selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168.
VMware, Inc.
RC DRAFT
161
ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings.
Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
162
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
163
To connect a virtual serial port and an application on the host 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 ClickUseNamedPipe. OnthePropertiespage,enterthepathandfilenameforthepipe.Dependingonthe hostsystem,enteroneofthefollowing: OnWindowshosts:Thepipenamemustbeintheformat \\.\pipe\<namedpipe>.Thenamemustbeginwith\\.\pipe\. OnLinuxhosts:Thepipenamemustbe/tmp/<socket>oranotherUNIX socketnameofyourchoice. 4 FortheNearEnd,selectIsaserverorIsaclient. SelectIsaserverifyouplantostartthisendoftheconnectionfirst. 5 6 7 FortheFarEnd,selectIsanapplication. (Optional)Toconnecttothenamedpipewhenthevirtualmachineispoweredon, selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168. 8 ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings. 9 10 Reviewtheconfigurationsummary,andclickFinishtocompletethewizard. Onyourhostsystem,configuretheapplicationthatcommunicateswiththevirtual machinetousethesamepipename(foraWindowshost)ortheUNIXsocketname (foraLinuxhost). Poweronthevirtualmachine.
11
RC DRAFT
VMware, Inc.
Thefollowingproceduresdescribehowtosetuptheserverandtheclienttoconnectto eachotherusingvirtualserialports. To set up the server side of the connection 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 ClickUseNamedPipe. OnthePropertiespage,enterthepathandfilenameforthepipe.Dependingonthe hostsystem,enteroneofthefollowing: OnWindowshosts:Thepipenamemustbeintheformat \\.\pipe\<namedpipe>.Thenamemustbeginwith\\.\pipe\. OnLinuxhosts:Thepipenamemustbe/tmp/<socket>oranotherUNIX socketnameofyourchoice. 4 5 6 7 SelectThisendistheserver. SelectTheotherendisavirtualmachine. (Optional)Toconnecttothenamedpipewhenthevirtualmachineispoweredon, selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168. 8 ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings. 9 10 Reviewtheconfigurationsummary,andclickFinishtocompletethewizard. Poweronthevirtualmachine.
To set up the client side of the connection 1 FromtheAddHardwareorNewVirtualMachinewizard,clickSerialPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 ClickUseNamedPipe.
VMware, Inc.
RC DRAFT
165
4 5 6 7
SelectThisendistheclient. SelectTheotherendisavirtualmachine. (Optional)Toconnecttothenamedpipewhenthevirtualmachineispoweredon, selectConnectatpoweron(thedefault). (Optional,onWindowshostsonly)ExpandI/OModetoselectYieldCPUonpoll, whichisdeselectedbydefault. Thekernelinthetargetvirtualmachineusesthevirtualserialportinpolledmode, notinterruptmode.Formoreinformation,seeYieldingCPUonPolltoImprove PerformanceWhenDebugging(WindowsHostsOnly)onpage 168.
ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings.
9 10
Reviewtheconfigurationsummary,andclickFinishtocompletethewizard. Poweronthevirtualmachine.
166
RC DRAFT
VMware, Inc.
IfyouareusingKD,enterthefollowing:
kd -k com:port=\\.\pipe\<namedpipe>,pipe
PressEntertostartdebugging.
VMware, Inc.
RC DRAFT
167
When you are ready to continue, complete the following steps: 1 2 3 Poweronbothvirtualmachines. Makesurethattheserialportisconnected. Inthedebuggervirtualmachine,startdebuggingwithWinDbgorKD.
168
RC DRAFT
VMware, Inc.
Thisoptionisusefulwhentheserialportisbeingusedbytheguestoperatingsystem inpolledmodeasopposedtointerruptmode.Polledmodecausesthevirtualmachine toconsumeadisproportionateshareofCPUtime,whichcancausethehostandother guestsrunsluggishly. Changing the Input Speed of the Serial Connection Thisoptionincreasesthespeedofyourserialconnectionoverapipetothevirtual machine.Inprinciple,thereisnolimitontheoutputspeed,whichisthespeedatwhich thevirtualmachinesendsdatathroughthevirtualserialport.Inpractice,theoutput speeddependsonhowfasttheapplicationattheotherendofthepipereadsdatabeing senttoit. To change the input speed of the serial connection 1 2 3 Usetheguestoperatingsystemtoconfiguretheserialportforthehighestsetting supportedbytheapplicationyouarerunninginthevirtualmachine. Poweroffthevirtualmachine. Addtheserial<n>.pipe.charTimePercentparametertoyourvirtual machinesconfiguration(.vmx)fileasdescribedinChangingVirtualMachine AdvancedSettingsonpage 121,andsetittoapositiveintegervalue,asfollows: nisthenumberoftheserialport,startingfrom0.Sothefirstserialportis serial0. Thevalueisapositiveintegerthatspecifiesthetimetakentotransmita character,expressedasapercentageofthedefaultspeedsetfortheserialport intheguestoperatingsystem.Forexample,asettingof200forcestheportto taketwiceaslongpercharacter,orsenddataathalfthedefaultspeed.A settingof50forcestheporttotakehalfaslongpercharacter,orsenddataat twicethedefaultspeed. Tosettheserialportspeedappropriatelyintheguestoperatingsystem, experimentwiththissetting.Startwithavalueof100andgraduallydecrease ituntilyoufindthehighestspeedatwhichyourconnectionworksreliably. 4 Poweronthevirtualmachine.
VMware, Inc.
RC DRAFT
169
To add an output file parallel port to the virtual machine 1 1 SelectthevirtualmachinetomodifyfromtheInventorypanel. FromtheAddHardwareorNewVirtualMachinewizard,clickParallelPort. ForinformationabouthowtostarttheAddHardwarewizard,seeAdding HardwaretoaVirtualMachineonpage 130. 2 3 ClickOutputfile. OnthePropertiespage,typethepathandfilenamefortheoutputfileorclick Browsetonavigatetoafileinanexistingdatastore.Toenterthepathmanually, youmustusetheformat:[ datastore_name ] path_and_filename (Optional)Toconnecttothehostsserialportwhenthevirtualmachineispowered on,selectConnectatpoweron(thedefault). ClickNext. TheReadytoCompletepagedisplaysthehardwaresettings. 6 Reviewtheconfigurationsummary,andclickFinishtocompletethewizard.
4 5
170
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
171
172
RC DRAFT
VMware, Inc.
To check the module configuration 1 Determinewhethertheparport,parport_pc,andvmppusermodulesare installedandrunningonyoursystembyrunningthelsmodcommandastheroot user. Allthreemodulesmustbeincludedinthelistingofrunningmodules.Youcanalso lookatthe/proc/modulesfileforthesamelist. 2 Toloadthepropermodules,runthiscommand:
insmod <modulename>
Ifnoneofthelistedparallelportmodulesisloaded,enterthiscommand:
insmod parport_pc
Toensurethatthepropermodulesfortheparallelportareloadedatboottime,add thefollowinglinetothe/etc/modules.confor/etc/conf.modulesfile:
alias parport_lowlevel parport_pc
VMware, Inc.
RC DRAFT
173
Ifnoneofthelistedparallelportmodulesisloaded,usethiscommand:
insmod parport_pc
Toensurethatthepropermodulesfortheparallelportareloadedatboottime,add thislinetothe/etc/modules.confor/etc/conf.modulesfile:
alias parport_lowlevel parport_pc
174
RC DRAFT
VMware, Inc.
Toensurethatthepropermodulesfortheparallelportareloadedatboottime,add thislinetothe/etc/modules.confor/etc/conf.modulesfile:
alias parport_lowlevel parport_pc
VMware, Inc.
RC DRAFT
175
Device Permissions
SomeLinuxdistributionsdonotgrantthevirtualmachineaccesstothelpand parportdevicesbydefault.Inmostofthesecases,theownerofthedeviceisrootand theassociatedgroupislp.ToallowtheVMwareusertoaccessthedevice,addtheuser totheassociatedgroup.Toviewtheownerandgroupofthedevice,runthiscommand:
ls la /dev/parport0
Thenexttimetheuserlogsontothehost,thechangestakeeffect.
176
RC DRAFT
VMware, Inc.
IfyouareusinganXFree86serverrunninglocally,andthekeyboarddoesnotwork correctly,reporttheproblemtoVMwaretechnicalsupport.
RC DRAFT
177
178
RC DRAFT
VMware, Inc.
Whichtableyouusedependsonthekeyboardlayout.Thenormaldistributionincludes tablesforPCkeyboardsfortheUnitedStatesandanumberofEuropeancountriesand languages.Andformostofthese,thereareboththe101key(or102key)andthe 104key(or105key)variants. VMwareServerautomaticallydetermineswhichtabletousebyexaminingthecurrent Xkeymap.However,itsmappingmightnotbecorrect.Inaddition,eachmappingis fixedandmightnotbecompletelycorrectforagivenkeyboardandXkey codetokeysymmapping.Forexample,ausermighthaveswappedCtrlandCaps Lockusingxmodmap.Thismeansthekeysareswappedinthevirtualmachinewhen usingaremoteserver(keysymmapping)butarenotswappedwhenusingalocal server(keycodemapping). Therefore,keysymmappingisnecessarilyinexact.Tomakeupforthis,youcancontrol mostofthebehaviorusingconfigurationsettings: xkeymap.language = "<keyboard-type>" UsethissettingifVMwareServerhasatableinxkeymapforyourkeyboardbut cannotdetectit.<keyboard-type>mustbeoneofthetablesinthexkeymap directory.(Seeaboveforlocation.)However,thefailuretodetectthekeyboard probablymeansthetableisnotcompletelycorrectforyou. xkeymap.keysym.<sym> = "<v-scan code>" Ifyouusekeysymmapping,mapkeysym<sym>to<v-scan code>.Whenyoudo, <sym>mustbeanXkeysymnameand<v-scan code>isaCsyntaxhexadecimal number(forexample,0x001). Theeasiestwaytofindthekeysymnameforakeyistorunxevorxmodmap -pk. TheXheaderfile/usr/include/X11/keysymdef.hhasacompletelistof keysyms.(ThenameofakeysymisthesameasitsCconstantwithouttheXK_ prefix.)MostvscancodesareinVScanCodeTableonpage 180. Thexkeymaptablesthemselvesarealsohelpful.Usethemtofixsmallerrorsinan existingmapping. xkeymap.fileName = "<file-path>" Usethekeysymmappingtablein<file-path>.Atableisasequenceof configurationlinesusingthefollowingformat:
<sym> = "<v-scan code>"
VMware, Inc.
RC DRAFT
179
Compilingacompletekeysymmappingisdifficult.Itisbesttostartwithan existingtableandmakesmallchanges.
180
RC DRAFT
VMware, Inc.
Table 8-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol [ ] Enter Ctrl A S D F G H J K L ; ` Shift \ Z X C V B N M , . / Shift < > ? right | left left Shifted Symbol { } Location V-Scan Code 0x01a 0x01b 0x01c 0x01d 0x01e 0x01f 0x020 0x021 0x022 0x023 0x024 0x025 0x026 0x027 0x028 0x029 0x02a 0x02b 0x02c 0x02d 0x02e 0x02f 0x030 0x031 0x032 0x033 0x034 0x035 0x036
VMware, Inc.
RC DRAFT
181
Table 8-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol * Alt Spacebar CapsLock F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 NumLock ScrollLock Home Uparrow PgUp Leftarrow 5 Rightarrow + End Downarrow PgDn Ins Del 1 2 3 0 6 4 7 8 9 numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad Shifted Symbol Location numericpad left V-Scan Code 0x037 0x038 0x039 0x03a 0x03b 0x03c 0x03d 0x03e 0x03f 0x040 0x041 0x042 0x043 0x044 0x045 0x046 0x047 0x048 0x049 0x04a 0x04b 0x04c 0x04d 0x04e 0x04f 0x050 0x051 0x052 0x053
182
RC DRAFT
VMware, Inc.
Table 8-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol F11 F12 Break Enter Ctrl / SysRq Alt Home Uparrow PageUp Leftarrow Rightarrow End Downarrow PageDown Insert Delete Windows Windows Menu PrintScrn right functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad left right Pause numericpad right numericpad Shifted Symbol Location V-Scan Code 0x057 0x058 0x100 0x11c 0x11d 0x135 0x137 0x138 0x147 0x148 0x149 0x14b 0x14d 0x14f 0x150 0x151 0x152 0x153 0x15b 0x15c 0x15d
VMware, Inc.
RC DRAFT
183
184
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
185
186
RC DRAFT
VMware, Inc.
To suspend a virtual machine 1 2 SelectthevirtualmachinethatispoweredonintheInventorypanel. ClicktheSuspendbuttononthetoolbar. Whenyoususpendavirtualmachine,afilewitha.vmssextensioniscreatedin theworkingdirectory.Thisfilecontainstheentirestateofthevirtualmachine. To resume a virtual machine that is suspended 1 2 SelectthesuspendedvirtualmachineintheInventorypanel. ClickthePlaybuttononthetoolbar. Whenyouresumethevirtualmachine,itsstateisrestoredfromthe.vmssfile.
Using Snapshots
Snapshotsallowyoutopreservethestateofthevirtualmachinesoyoucanreturnto thesamestaterepeatedly.Forexample,youmightusesnapshotstotestsoftware.You cantakeasnapshotbeforeinstallingdifferentversionsofanapplicationtoensurethat eachtestinstallationbeginsfromtheidenticalbaseline. Tosavethecurrentstateofyourvirtualmachinetemporarily,seeSuspendingand ResumingVirtualMachinesonpage 185.
VMware, Inc.
RC DRAFT
187
188
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
189
Taking a Snapshot
Youcantakeasnapshotwhileavirtualmachineispoweredon,poweredoff,or suspended.Ifyouaresuspendingavirtualmachine,waituntilthesuspendoperation hasfinishedbeforetakingasnapshot.AsdescribedinActivitiesThatConflictwith Snapshotsonpage 188,donottakeasnapshotwhenthevirtualmachineis communicatingwithanothercomputer. NOTEIfyouruseofvirtualmachinesisstronglyperformanceoriented,consider defragmentingtheguestoperatingsystemsdrivesbeforetakingasnapshot.Usethe guestoperatingsystemsdefragmentationutility.SeeVirtualDiskMaintenanceTasks onpage 140. To take a snapshot 1 2 IntheCommandssectionofthevirtualmachinesSummarytab,expandthe Snapshotcommand(ifnotalreadyexpanded)andclickTakeSnapshot. Ifasnapshotalreadyexists,adialogboxasksyouifyouwanttooverwritethe existingsnapshot.Ifyouwanttooverwriteit,clickYes. Anewsnapshotiscreated.
Reverting to a Snapshot
Youcanrestorethevirtualmachinetothepointintimethatasnapshotwastaken.The currentdisk,settings,andmemorystatesarediscarded,andthevirtualmachinereverts tothedisk,settings,andmemorystatesofthesnapshot.SeeWhatIsCapturedbya Snapshotonpage 188. To revert to a snapshot 1 2 IntheCommandssectionofthevirtualmachinesSummarytab,expandthe Snapshotcommand(ifnotalreadyexpanded)andclickReverttoSnapshot. Adialogboxasksyoutoconfirmthatyouwanttoreverttothesnapshot.Ifyou wanttoreverttothesnapshot,clickYes.
190
RC DRAFT
VMware, Inc.
Removing a Snapshot
Removingthesnapshotwritesthecontentsofthesnapshottothevirtualdisk.This actiondoesnotdestroyanydatainthevirtualmachine.Movingforward,anychanges youmakeasyourunthevirtualmachinearewrittentothevirtualdisk.Youcannot reverttoapreviousstatebecausethesnapshotnolongerexists. Removingasnapshotwhenthevirtualmachineispoweredoffcantakealongtime, dependingonthesizeofthesnapshotfile. To remove the snapshot 1 2 3 Poweroffthevirtualmachine. IntheCommandssectionofthevirtualmachinesSummarytab,expandthe Snapshotcommand(ifnotalreadyexpanded)andclickRemoveSnapshot. Adialogboxasksyoutoconfirmthatyouwanttoremovethesnapshot.Ifyou wanttoremoveit,clickYes. Thesnapshotisremoved.
Locking a Snapshot
Lockingthecurrentsnapshotpreventsitfrombeingoverwritten.Youcanlocka snapshotafterithasbeentaken.SeeLockingtheSnapshotonpage 120.
VMware, Inc.
RC DRAFT
191
192
RC DRAFT
VMware, Inc.
10
10
ThischapterdescribeshowtomanageaccesstoVMwareServerusingrolesand permissions.VMwareServerauthenticatesusersbasedontheloginusernameand passwordcombination.RolesassignedtousersonVMwareServerobjectsdetermine whatactionsuserscanperformonthoseobjects. Thischaptercontainsthefollowingtopics: AccessElementsonpage 193 ManagingUsersonpage 194 ManagingGroupsonpage 195 ManagingRolesonpage 195 ManagingPermissionsonpage 198 AccessRulesonpage 200
Access Elements
AccesstoVMwareServerobjectsandoperationsisdeterminedbasedonthefollowing: LogininformationUsernameandpassword. Usersarecreatedandmanagedusingthemechanismsprovidedbythehost operatingsystem. GroupMembershipAgroupiscollectionofusers.Ausercanbeamemberof oneormoregroups.
VMware, Inc.
RC DRAFT
193
Groupsprovideaconvenientwaytomanageacollectionofusers.Groupsare createdandmanagedusingthemechanismsprovidedbythehostoperating system. PrivilegesAprivilegeisarighttoperformanindividualactiononanobjector categoryofobjects. Forexample,theabilitytopoweronavirtualmachineisaprivilege,inthecategory ofinteractionswiththevirtualmachineobject.Thisprivilegeistypicallygrouped inarolewithotherpoweroperationsonvirtualmachines.Foracompletelistof availableprivileges,groupedforconveniencebycategory,seeAppendix A, DefinedPrivileges,onpage 289.Privilegescannotbemodified. RolesAroleisanamedcollectionofprivilegesthatcanbeassignedtousersand groups. Aroleisacollectionofpredefinedprivilegesthatcontrolsuserorgroupaccessto particularVMwareServerobjects.VMwareServerprovidessystemroles,listedin Table 101,SystemRoles,onpage 196.Youcanalsocreateandmanage userdefinedroles. PermissionsApermissionisarulethatdeterminesaccesscontrol.Itspecifies whichrole(setofprivileges)isgrantedtoauserorgroup. Theroleandauserorgroupnamemakeapair.ThispairisassignedtoaVMware Serverobject.Youcanchoosewhetherornotthepermissionispropagatedtothe childobjectsintheinventoryhierarchy. Figure 10-1. Permission
user group
Managing Users
AuserisanindividualauthorizedtologintoVMwareServer.Userscanaccess VMwareServerusingVIWebAccess,thevmruncommand,theVIXAPI,ora thirdpartyclient.
194
RC DRAFT
VMware, Inc.
Managing Groups
Agroupisasetofusersthatyouwanttomanagethroughacommonsetofrules.You canefficientlymanageusersthatrequirethesameprivilegesbycreatinggroups.Using groupscansignificantlyreducethetimeittakestosetupyourpermissionsmodel. Tocreate,remove,ormodifygroupsonaVMwareServersystem,usethemechanisms providedbythehostoperatingsystem.Groupmembershipischeckedeachtimeauser logsin.ThegroupsareretrievedeitherfromtheWindowsdomain(forVMwareServer runningonWindows)orfromtheLinuxoperatingsystemgrouplist(forVMware ServerrunningonLinux). Whenyougrantprivilegesonanobjecttoagroup,theyapplytoalltheusersinthe group.VI WebAccessdisplaysalistofexistinggroupsthatyoucanselectfromwhen youassignpermissions.
Managing Roles
Rolesareanamedcollectionofprivileges.VMwareServergrantsaccesstoobjectsonly tousersthathavepermissionsfortheobject.Bypairingauserorgroupwitharole,you granttheuserorgroupaccessrightstotheobject. VMwareServerprovidesbuiltinsystemroles.Theprivilegesassociatedwithsystem rolescannotbechanged. Youcanalsocreateuserdefinedroles.Theserolescanbemodified,renamed,or removed. Table 101liststhepredefinedsystemroles.
VMware, Inc.
RC DRAFT
195
Creating Roles
Youcancreateuserdefinedrolesifyouhavesituationsthatrequireacombinationof accessprivilegesotherthanthosedefinedinthesystemroles. Youcanalsomodifyexistinguserdefinedrolestosuityourneeds.SeeEditingand RenamingRolesonpage 197. To create a role 1 2 FromtheVIWebAccessmenubar,selectAdministration>ManageRoles. EnteranamefortheroleintheNametextbox. Adescriptionfortheroleisautomaticallycreated,butitisidenticaltotherole name.Enteradescriptivenameforeachroleyoucreatetohelpidentifyit. 3 4 InthePrivilegestree,selecttheprivilegestoincludeintherole.Expandthetreeas necessarytoseetheprivilegesineachcategory. ClickOK.
Theroleiscreated.
196
RC DRAFT
VMware, Inc.
Thechangestotherolearemade.
Removing Roles
Whenyouremoveauserdefinedrole,ifitisnotassignedtoanyusersorgroups,the definitionisremovedfromthelistofroles.Whenyouremovearolethatisassignedto anyusersorgroups,youcanremoveallassignmentsorreplacethemwithan assignmenttoanotherrole. CAUTIONBesurethatyouunderstandhowuserswillbeaffectedbeforeremovingrole assignmentsorreplacingthem. Systemrolescannotberemoved. To remove an existing role 1 2 3
VMware, Inc.
RC DRAFT
197
4 5
ClickOK.
Theroleisremovedfromthelistandisnolongeravailabletoassigntousersorgroups.
Managing Permissions
InVMwareServer,apermissionconsistsofauserorgroupsassignedrolefora VMwareServerobject,suchasavirtualmachine. Anewpermissioniscreatedbypairingauserandaroleandassigningthispairtoan inventoryobject.Permissionsgrantuserstherighttoperformspecificactivitieson specificobjects.Forexample,toconfigurememoryforVMwareServer,youmusthave hostconfigurationpermissions. Allchangestakeeffectimmediately.Usersdonotneedtologoutandloginforchanges topermissionstotakeeffect. NOTEBydefault,alluserswhoaremembersoftheAdministratorsgroupona VMwareServerhostrunningonWindowsaregrantedthesameaccessrightsasany userassignedtotheAdministratorrole.UserswhoaremembersoftheAdministrators groupcanloginasindividualsandhavefullaccess.
Creating Permissions
YoucanassignsystemoruserdefinedrolestousersorgroupsonVMwareServer inventoryobjects.InVMwareServer,theonlyinventoryobjectsarethehostand individualvirtualmachines. To create a permission 1 2 LogintoVIWebAccessasauserwithAdministratorprivileges. Withthehostoravirtualmachineinventoryobjectselected,clickthePermissions tab.
198
RC DRAFT
VMware, Inc.
3 4
Editing Permissions
Whenyoueditapermission,youcanchangetheroletopairwiththeuserorgroupand whetherthepermissionispropagatedtochildobjects.Theprivilegetreeisalso displayedsoyoucanseetheprivilegesassociatedwiththeroleyouselect. To edit the permission role for a user or group 1 2 3 4 5 ClickthehostsorvirtualmachinesPermissionstab. InthePermissionslist,selectthepermissionyouwanttomodify. ClickEditPermissionintheCommandssectionofthetab. Selectauserorgrouptowhichyouwanttoassignaroleonthisobject. Selectaroletoassignfromthedropdownlist. Whenaroleisselected,theprivilegesgrantedwiththerolearelistedinthetree belowforyourreference. 6 (Optional)SelecttheGrantthissetofpermissionstochildobjectscheckbox. Ifthischeckboxisselected,theroleisalsoappliedtoallchildobjectsoftheselected inventoryobject. 7
VMware, Inc.
ClickOK.
RC DRAFT
199
Thepermissionismodified.
Removing Permissions
Removingapermissionforauserorgroupdoesnotremovetheuserorgroupfromthe listofthoseavailable.Italsodoesnotremovetherolefromthelistofavailableitems.It removestheuserorgroup+rolepairfromtheselectedinventoryobject. To remove a permission role for a user or group 1 2 3 4 ClickthehostsorvirtualmachinesPermissionstab. InthePermissionslist,selectthepermissionyouwanttoremove. ClickRemovePermissionintheCommandssectionofthetab. ClickOKtoconfirmthatyouwanttoremovethepermission.
Access Rules
Thefollowingisalistofgeneralrulestoconsiderwhenconfiguringpermissions.
Hierarchical Inheritance
Propagationissetperpermission,notuniversallyapplied.Permissionsdefinedfora subobjectalwaysoverridethosepropagatedfromparentobjects. Withrespecttopermissions,therearedifferenttypesofelementsinthehierarchy.They are: ManagedentityThesecanhavepermissionsdefinedonthem. Virtualmachines Hosts GlobalentityThesealwaysgettheirpermissionsfromtherootnode.Examples include:
200
RC DRAFT
VMware, Inc.
Roles
VMware, Inc.
RC DRAFT
201
202
RC DRAFT
VMware, Inc.
11
11
Thefirsttopicsinthischapterintroducethevirtualnetworkingcomponentsthat VMwareServerprovidesanddescribehowyoucanusethemwithyourvirtual machine.Therestofthechapterprovidesmoredetailonnetworkingcapabilitiesand specializedconfigurations. Thischapterincludesthefollowingtopics: NetworkBasicsonpage 203 ComponentsoftheVirtualNetworkonpage 204 CommonNetworkingConfigurationsonpage 207 CustomNetworkingConfigurationsonpage 211 ChangingtheNetworkingConfigurationonpage 215 AdvancedNetworkingTopicsonpage 222 UnderstandingNATonpage 239 UsingSambaforFileSharingonaLinuxHostonpage 249 UsingtheVirtualNetworkEditoronpage 258
Network Basics
VMwareServerprovidesmultiplewaysyoucanconfigureavirtualmachineforvirtual networking:
VMware, Inc.
RC DRAFT
203
BridgednetworkingConfiguresyourvirtualmachineasauniqueidentityon thenetwork,separatefromandunrelatedtoitshost.Othercomputersonthe networkcancommunicatedirectlywiththevirtualmachine.Bridgednetworking workswithEthernet,DSL,cable,wireless,andlegacyphonemodems.See BridgedNetworkingonpage 207. Networkaddresstranslation(NAT)Configuresyourvirtualmachinetoshare theIPandMACaddressesofthehost.Thevirtualmachinesharesthehostspublic networkidentity,andhasaprivateidentitythatisnotvisiblebeyondthehost.NAT canbeusefulwhenyouareallowedasingleIPaddressorMACaddressbyyour networkadministrator.YoumightalsouseNATtoconfigureseparatevirtual machinesforhandlingHTTPandFTPrequests,withbothvirtualmachines runningoffthesameIPaddressordomain. NATworkswithEthernet,DSL,andlegacyphonemodems.SeeNetwork AddressTranslation(NAT)onpage 208. HostonlynetworkingConfiguresyourvirtualmachinetoallownetwork accessonlytoaprivatenetworkonthehost.Withhostonlynetworking,the virtualmachinecancommunicateonlywiththehostandothervirtualmachinesin thehostonlynetwork.Thiscanbeusefulwhenyouwantasecurevirtualmachine thatisconnectedtothehostnetwork,butavailableonlythroughthehostmachine. Inthisconfiguration,thevirtualmachinecannotconnecttotheInternet.See HostOnlyNetworkingonpage 210. YoucansetupspecializedconfigurationsusingthevirtualnetworkeditoronWindows hostsandvmware-config.plonLinuxhosts.SeeCustomNetworking Configurationsonpage 211. OnaWindowshost,thesoftwareneededforbridged,NAT,andhostonlynetworking configurationsisinstalledwhenyouinstallVMwareServer.TheNewVirtualMachine wizardconnectsthevirtualmachinetothevirtualnetworkyouselect:thebridged VMnet0virtualnetwork(namedBridged)isthedefaultselection.Youcanlatersetup morespecializedconfigurationsbyconfiguringtheappropriatesettingsinthevirtual networkeditorandonyourhostcomputer. OnaLinuxhost,whenyouinstallandconfigureVMwareServer,youcanchooseto havebridged,hostonly,andNATnetworkingavailabletoyourvirtualmachinesby configuringeachoptionwhenyourunvmware-config.pl.Youcanlaterreconfigure networkingtoadd,delete,ormodifyvirtualnetworksbyrerunning vmware-config.pl.
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
205
206
RC DRAFT
VMware, Inc.
Bridged Networking
Bridgednetworkingconnectsavirtualmachinetoanetworkbyusingthehost computersnetworkadapter.IfyourhostcomputerisonanEthernetnetwork,thisis oftentheeasiestwaytogiveyourvirtualmachineaccesstothatnetwork.Thevirtual networkadapterinthevirtualmachineconnectstothephysicalnetworkadapterin yourhostcomputer,allowingittoconnecttotheLANusedbythehostcomputer. Bridgednetworkingmakesthevirtualmachinevisibletoothercomputersonthe network,andtheycancommunicatedirectlywiththevirtualmachine.Network Basicsonpage 203 Figure 11-1. Bridged Networking Setup
virtual network adapter
virtual machine
VMware, Inc.
RC DRAFT
207
208
RC DRAFT
VMware, Inc.
virtual machine
DHCP server
NAT device
network
IfyouselectNAT,thevirtualmachinecanusemanystandardTCP/IPprotocolsto connecttoothermachinesontheexternalnetwork.Forexample,youcanuseHTTPto browseWebsites,FTPtotransferfiles,andTelnettologontoothercomputers.NAT alsoallowsyoutoconnecttoaTCP/IPnetworkusingaTokenRingadapteronthehost computer.NetworkBasicsonpage 203 IntheNATconfiguration,computersontheexternalnetworkcannotinitiate connectionstothevirtualmachine.Thatmeans,forexample,thatthedefault configurationdoesnotletyouusethevirtualmachineasaWebservertosendWeb pagestocomputersontheexternalnetwork.Thisconfigurationhastheadvantageof protectingtheguestoperatingsystemfrombeingcompromisedbeforeyouhavea chancetoinstallsecuritysoftware.Forexample,itisoftenrecommendedthatfor Windowsguestoperatingsystems,youuseNATuntilyouinstallantivirussoftware.
VMware, Inc.
RC DRAFT
209
Host-Only Networking
Hostonlynetworkingcreatesanetworkthatiscompletelycontainedwithinthehost computer.Hostonlynetworkingprovidesanetworkconnectionbetweenthevirtual machineandthehostcomputer,usingahostnetworkadapterthatisvisibletothehost operatingsystem.Thisapproachcanbeusefulifyouneedtosetupanisolatedvirtual network. Figure 11-3. Host-Only Networking Setup
virtual network adapter
virtual machine
DHCP server
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
211
Inadditiontousingthedefaultbridgednetwork,VMnet0,thisconfigurationrequires youtoconfigureVMnet2andVMnet3hostonlyvirtualnetworks.Youwillalsocreate fourvirtualmachinesandinstalltheappropriateguestoperatingsystemsand applicationsoftwareineachvirtualmachineandmaketheappropriatenetworking settingschangesineachvirtualmachine. To set up a virtual network that connects to an external network 1 ConfigureVMnet2andVMnet3hostonlynetworks. OnWindows,usethevirtualnetworkeditor(fromtheWindowsStartmenu, selectPrograms>VMwareServer>ManageVirtualNetworks)toaddhost virtualadaptersforVMnet2andVMnet3. Afteryoumakechangesusingthevirtualnetworkeditor,youmustrestart yournetworkusingtheRefreshNetworkSystemcommandintheHost SummarytabofVI WebAccess.Thenyoucanaddthesenetworkstovirtual machines.
212
RC DRAFT
VMware, Inc.
OnLinux,runvmware-config.pltoconfigureVMnet2andVMnet3 networks.Thescriptautomaticallyrefreshesthenetworkwhenitcompletes theconfigurationchanges. 2 SetupfourvirtualmachinesusingtheNewVirtualMachinewizardasdescribed inChapter 4,CreatingandUpgradingVirtualMachines,onpage 57: a Createthefirstvirtualmachineusingthedefaultbridgednetwork(VMnet0), soitcanconnecttoanexternalnetworkwiththehostcomputersnetwork adapter.ThisvirtualmachineactsastheoutsidefirewallfortheDMZ,andis namedFW1inthisprocedure. Createtheotherthreevirtualmachineswithoutnetworking.Thevirtual machinewiththeWebServerisnamedWSinthisprocedure.Thevirtual machinethatactsasaninternalfirewallisnamedFW2inthisprocedure. Youwillsetuptheirvirtualnetworkadaptersinlatersteps. YouwillnotinstalltheoperatingsystemsuntilStep 8. 3 Configurenetworksettingsforthefirstvirtualmachine,FW1: a b SelectvirtualmachineFW1inVI WebAccess,butdonotpoweriton. UsetheAddHardwarewizardtoaddtheVMnet2network(HostOnly1)to thevirtualmachine. SeeAddingaVirtualNetworkAdapteronpage 215. 4 ConfigurenetworksettingsfortheWebServervirtualmachine,asfollows: a b SelectWSinVI WebAccess,butdonotpoweriton. UsetheAddHardwarewizardtoaddtheVMnet2(HostOnly1)network adaptertothevirtualmachine. SeeAddingaVirtualNetworkAdapteronpage 215. 5 Configurenetworksettingsfortheinsidefirewallvirtualmachine,asfollows: a b SelectFW2inVI WebAccess,butdonotpoweriton. UsetheAddHardwarewizardtoaddtheVMnet2(HostOnly1)network adaptertothevirtualmachine. SeeAddingaVirtualNetworkAdapteronpage 215. c UsetheAddHardwarewizardtoaddtheVMnet3(HostOnly2)connectionto thevirtualmachine.
VMware, Inc.
RC DRAFT
213
DeterminethenetworkaddressesusedforVMnet2andVMnet3: OnWindowshosts,openacommandpromptandrun:
ipconfig /all
Notethenetworkaddressesusedbyeachvirtualadapter. OnLinuxhosts,openaterminalandrun:
ifconfig
Notethenetworkaddressesusedbyeachvirtualswitch. 8 Poweroneachvirtualmachineinturnandinstalltheappropriateguestoperating system. NOTEOnaWindowshost,forStep 9,youarenotrequiredtoconfigurenetwork addressesmanually.YoucaninsteaduseVMwareServersDHCPserver.Inthe virtualnetworkeditorsDHCPtab,addVMnet2andVMnet3tothelistofvirtual networksservedbytheVMwareinternalDHCPserver. 9 Configurethenetworkingineachguestoperatingsystem: Machine1Forthebridgednetworkadapterinvirtualmachine1,usethe networkingsettingsneededforaconnectiontotheexternalnetwork.Ifthe virtualmachinegetsitsIPaddressfromaDHCPserverontheexternal network,thedefaultsettingswillwork. Forthesecondnetworkadapterinvirtualmachine1,manuallyassignanIP addressintherangeyouareusingwithVMnet2. Machine2AssignanIPaddressintherangeyouareusingwithVMnet2. Machine3NetworkadaptersareconnectedtoVMnet2andVMnet3.Assign eachadapteranIPaddressintherangeyouareusingwiththevirtualnetwork towhichitisconnected. Machine4AssignanIPaddressintherangeyouareusingwithVMnet3. 10 Installthenecessaryapplicationsoftwareineachvirtualmachine.
214
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
215
RC DRAFT
VMware, Inc.
RC DRAFT
217
YoucanrestricttherangeofchoicesbyusingoptionsontheAutomaticBridging tab. (AlsoshownareVMnet1,thedefaultvirtualnetworkforhostonlynetworking, andVMnet8,thedefaultvirtualnetworkforNAT,iftheyareenabledinVMware Server.) 3 ToexcludeoneormorephysicalnetworkadaptersfromthelisttowhichVMnet0 canbebridged,clicktheAutomaticBridgingtab. Toexcludeanetworkadapter,clickAddtoaddittothelistofexcludeddevices. IntheChooseNetworkAdaptersdialogbox,selectthelistingfortheadapteryou wanttoexclude,thenclickOK. Toremoveanadapterfromthelistofexcludedadapters,selectitsnameinthelist, andclickRemove. Ifyouareusingteamednetworkadaptersonyourhost,youcanexcludethe physicalnetworkadaptersfrombridgednetworking.Forinformationabout teamednetworkadapters,seeConfiguringBridgedNetworkingWhenUsing TeamedNetworkInterfaceCardsonpage 229. 4 Todesignateaphysicalnetworkadaptertobeusedforbridgednetworkingon virtualswitchesnamedVMnet2VMnet7,clicktheHostVirtualNetwork Mappingtab. Selectanadapterfromthedropdownlistbesidethenameofthevirtualswitch youwanttouse. Ifyouareusingteamednetworkadaptersonyourhost,youcanselecttheteamed networkadapterforVMnet0. CAUTIONBecarefulwhenyouchangethebridgedadaptermappings.Ifyou reassignaphysicalnetworkadaptertoadifferentvirtualnetwork,anyvirtual machineusingtheoriginalnetworklosesitsnetworkconnectivitythroughthat network.Youmustthenchangethesettingforeachaffectedvirtualmachines networkadapterindividually.Thiscanbeespeciallytroublesomeifyourhosthas onlyonephysicalnetworkadapterandyoureassignittoaVMnetotherthan VMnet0.EventhoughtheVMnetstillappearstobebridgedtoanautomatically chosenadapter,theonlyadapteritcanusehasbeenassignedtoanotherVMnet. 5 TomakechangestothesubnetortheDHCPsettingsforavirtualnetwork,clickthe buttonontherightthatcorrespondstothevirtualnetworkyouwanttoconfigure, thenselectSubnetorDHCP. ChangingtheSubnet
218
RC DRAFT
VMware, Inc.
IntheSubnetdialogbox,youcanchangethesubnetsIPaddressandthesubnet mask. Theaddressmustbeavalidnetworkaddressthatissuitableforusewiththe subnetmask. Thedefaultsubnetmaskis255.255.255.0(aclassCnetwork).Typically,thismeans youshouldmodifyonlythethirdnumberintheIPaddressforexample,xin 192.168.x.0or172.16.x.0.Ingeneral,youshouldnotchangethesubnetmask. Certainvirtualnetworkservicesmightnotworkaswellwithacustomizedsubnet mask. Whenyoumodifythenetworkaddressorsubnetmask,VMwareServer automaticallyupdatestheIPaddresssettingsforothercomponentssuchas DHCP,NAT,andhostvirtualadapteronthatvirtualnetworktoreflectthenew settings.ThespecificsettingsthatareautomaticallyupdatedincludeDHCPlease range,DHCPserveraddress,NATgatewayaddress,andhostvirtualadapterIP address.However,ifyouhavechangedanyofthesesettingsfromitsdefault valueevenifyouhavelaterchangedthesettingbacktothedefaultVMware Serverdoesnotupdatethatsettingautomatically.Itpresumesthatcustomsettings arenottobemodified. ChangingDHCPSettings IntheDHCPsettingsdialogbox,youcanchangetherangeofIPaddresses providedbytheDHCPserveronaparticularvirtualnetwork.Youcanalsosetthe durationofleasesprovidedtoclientsonthevirtualnetwork. 6 WhenyouhavemadeallthechangesyouwanttomakeonalltabsoftheVMware NetworkEditor,clickOK.
VMware, Inc.
RC DRAFT
219
To disable a host virtual adapter on a Windows host 1 Usethevirtualnetworkeditortodisableanyunwantedadapters(fromthe WindowsStartmenu,selectPrograms>VMwareServer>ManageVirtual Networks). SelecttheHostVirtualAdapterstab. Selecttheadapteryouwanttodisable. ClickDisableadapter. ClickOK.
2 3 4 5
To enable a disabled host virtual adapter on a Windows host 1 1 2 3 4 FromtheWindowsStartmenu,selectPrograms>VMwareServer>Manage VirtualNetworks ClickHostVirtualAdapters. Selectthedisabledadapteryouwanttoenable. ClickEnableadapter. ClickOK.
To add a host virtual adapter on a Windows host 1 1 2 3 4 5 FromtheWindowsStartmenu,selectPrograms>VMwareServer>Manage VirtualNetworks ClickHostVirtualAdapters. ClickAddnewadapter. SelectthevirtualnetworkonwhichyouwanttousetheadapterandclickOK. ClickApply. ClickOKtoclosethevirtualnetworkeditor.
To remove a host virtual adapter on a Windows host 1 1 2 3 FromtheWindowsStartmenu,selectPrograms>VMwareServer>Manage VirtualNetworks ClickHostVirtualAdapters. Selecttheadapteryouwanttoremove,thenclickRemoveadapter. ClickOK.
220
RC DRAFT
VMware, Inc.
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
VMware, Inc.
RC DRAFT
221
222
RC DRAFT
VMware, Inc.
Ingeneral,ifyouhavevirtualmachinesyouintendtousefrequentlyorforextended periodsoftime,itisprobablymostconvenienttoassignthemstaticIPaddressesorto configuretheVMwareDHCPservertoalwaysassignthesameIPaddresstoeachof thesevirtualmachines. To configure the DHCP server on a Linux host 1 2 OnaLinuxhost,configurethehostonlyDHCPserverbyeditingtheDHCP configurationfileforVMnet1(/etc/vmware/vmnet1/dhcp/dhcp.conf). ToconfiguretheDHCPserverfortheNATnetwork,edittheconfigurationfilefor VMnet8(/etc/vmware/vmnet8/dhcp/dhcp.conf). EditingtheDHCPserverconfigurationfilerequiresinformationthatisbest obtaineddirectlyfromtheDHCPserverdocumentation. 3 Consultthemanualpagesdhcpd(8)anddhcpd.conf(8).
To configure the DHCP server on a Windows host 1 2 3 4 5 OnaWindowshost,youconfiguretheDHCPserverusingthevirtualnetwork editor. FromtheWindowsStartmenu,selectPrograms>VMwareServer>Manage VirtualNetworks. ClickDHCP. Selectthevirtualnetworkforwhichyouwanttochangesettingsandclick Properties. Makethedesiredchanges,thenclickOK.
VMware, Inc.
RC DRAFT
223
Windows Hosts
SystemsusingserverversionsofWindows2000arecapableofforwardingIPpackets thatarenotaddressedtothem.Bydefault,however,thesesystemscomewithIPpacket forwardingdisabled. IfyoufindpacketsleakingoutofahostonlynetworkonaWindows2000host computer,checktoseewhetherforwardinghasbeenenabledonthehostmachine.Ifit isenabled,disableit. SelectStart>Programs>AdministrativeTools>RoutingandRemoteAccess.Anicon ontheleftislabeledwiththehostname.Ifagreendotappearsovertheicon,IP forwardingisturnedon.Toturnitoff,rightclicktheiconanddisableRoutingand RemoteAccess.Areddotappears,indicatingthatIPforwardingisdisabled.
224
RC DRAFT
VMware, Inc.
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
Using Filtering
Ifthehostcomputerhasmultiplenetworkadapters,itmightbeintentionally configuredtodoIPforwarding.Inthiscase,youdonotwanttodisableforwarding.To avoidpacketleakage,youmustenableapacketfilteringfacilityandspecifythat packetsfromthehostonlynetworkshouldnotbesentoutsidethehostcomputer. Consultyouroperatingsystemdocumentationfordetailsonhowtoconfigurepacket filtering.
VMware, Inc.
RC DRAFT
225
226
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
227
DHCPD on the Linux Host Does Not Work After VMware Server Installation
IfyouwererunningtheDHCPserverprogramdhcpdonyourmachinebefore installingVMwareServer,itprobablywasconfiguredtorespondtoDHCPrequests fromclientsonanynetworkinterfacepresentonthemachine.Whenhostonly networkingisconfigured,anadditionalnetworkinterface,VMnet1,ismarkedup andavailableforuse,anddhcpdmightnoticethis. Insuchcases,somedhcpdimplementationsabortiftheirconfigurationfilesdonot includeasubnetspecificationfortheinterfaceevenifdhcpdisnotsupposedto respondtomessagesthatarrivethroughtheinterface. Thebestsolutiontothisproblemistoaddalineinthefollowingformattothedhcpd configurationfile:
subnet <net>.0 netmask 255.255.255.0 {}
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
229
Anothermethodforprovidingfaulttoleranceisbymakingsurethatautomatic bridgingisenabled.ThisfeatureisavailableonWindowshostsonlyandisenabledby default.Formoreinformation,seeConfiguringBridgedNetworkingOptionsona WindowsHostonpage 217.Thismethodismorelimitedthanusingnetworkadapter teaming,asitdoesnotallowforloadbalancing,switchfaulttolerance,faulttolerance toanynecessaryservicesrunningonthehost,ortheabilitytospecifyanadapterasthe primaryorsecondaryadapter. Certainnetworkadapterteamingmodesprovideloadbalancingandarediscussed below. IfyourVMwareServerhostisconfiguredtouseteamednetworkinterfacecards,and youusebridgednetworkingwithyourvirtualmachines,youneedtoadjustyour networksettings.YoudothisbybindingtheVMwareBridgeProtocoltotheteamed networkadapterandunbindingitfromeachindividual,physicalnetworkadapteron thehost.SeeSettingUptheWindowsHostonpage 231. BeforeyoustartusingteamedNICstonetworkyourvirtualmachines,youmusthave agoodunderstandingofhownetworkteamingworksinyourhostenvironment.
230
RC DRAFT
VMware, Inc.
VMwareServersupportsteamedIntelbasednetworkadapterswhenusedwithIntel PROSetversion6.4orhigher(32bithosts)orPROSetversion10.0orhigher(64bit hosts)inthefollowingmodes: AdapterFaultTolerance AdaptiveLoadBalancing StaticLinkAggregation(64bithosts) FEC/802.3adStaticLinkAggregation(32bithosts) GEC/802.3adStaticLinkAggregation(32bithosts) IEEE802.3adDynamicLinkAggregation NOTEExpressTeamingmodeisnotsupportedwhenyouareteamingIntelbased networkadapters.
2 3 4 5
6 7
RC DRAFT
231
232
RC DRAFT
VMware, Inc.
Completetheremainingstepsinthewizard. Whenthewizardisfinished,itrestartsallservicesusedbyVMwareServer.
VMware, Inc.
RC DRAFT
233
Thevirtualmachineisconfiguredwithtwovirtualnetworkadapters.Onevirtual adapterisconnectedtothedefaulthostonlyinterface(VMnet1)andtheother virtualadapterisconnectedtothenewlycreatedhostonlyinterface(VMnet2). Configuration 1 Connect to the Default Host-Only Interface 1 2 3 4 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchVI WebAccessandselectthevirtualmachine. Launchthevirtualnetworkeditor. SelectNIC,selectCustom,andselectVMnet1(Hostonly)(onaWindowshost)or /dev/vmnet1(onaLinuxhost)fromthedropdownlistontheright. Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter. Configuration 2 Connect to the Newly Created Host-Only Interface 1 2 3 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchVI WebAccessandselectthevirtualmachine. Edittheconfigurationusingthevirtualnetworkeditor. SelectNIC,selectCustom,andselectVMnet2(Hostonly)(onaWindowshost) or/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright. Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter. Configuration 3 Connect to Two Host-Only Interfaces 1 2 3 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchVI WebAccessandselectthevirtualmachine. Edittheconfigurationusingthevirtualnetworkeditor. Selectthefirstnetworkadapterinthelistofdevices,selectCustom,andselect VMnet1(Hostonly)(onaWindowshost)or/dev/vmnet1(onaLinuxhost)from thedropdownlistontheright.Selectthesecondnetworkadapterinthelistof devices,selectCustom,thenselectVMnet2(Hostonly)(onaWindowshost)or /dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright. Ifyouneedtoaddoneormorenetworkadapters,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter.
234
RC DRAFT
VMware, Inc.
Atthispointyoucanpoweronthevirtualmachineandinstallyourguestoperating system.Inconfigurations1and2youseeoneAMDPCNetAdapter.Inconfiguration3 youseetwoAMDPCNetAdapterswithintheguest.Configurethenetworkadapters asyouwouldphysicaladaptersonaphysicalcomputer,givingeachadapteranIP addressontheappropriateVMnetsubnet. OnWindowshosts,youcanopenacommandpromptandrunipconfig /alltosee whatIPaddresseseachhostonlynetworkisusing. OnLinuxhosts,youcanopenaterminalandrunifconfigtoseewhatIPaddresses eachhostonlynetworkisusing.
VMware, Inc.
RC DRAFT
235
ClickOKtoclosethevirtualnetworkeditor.
236
RC DRAFT
VMware, Inc.
Virtual Machine 1 Connected to the Default Host-Only Interface 1 2 3 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchaVMwareServerConsoleandopenthevirtualmachine. Edittheconfigurationusingthevirtualnetworkeditor. SelectNIC,selectCustom,andselectVMnet1(Hostonly)(onaWindowshost)or /dev/vmnet1(onaLinuxhost)fromthedropdownlistontheright. Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter. Virtual Machine 2 Connected to the Newly Created Host-Only Interface 1 2 3 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchaVMwareServerConsoleandopenthevirtualmachine. Edittheconfigurationusingthevirtualnetworkeditor. SelectNIC,selectCustom,andselectVMnet2(Hostonly)(onaWindowshost)or /dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright. Ifnonetworkadapterisshowninthelistofdevices,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter. Ifyouplantoruntheroutersoftwareonyourhostcomputer,youcanskipthenext section. Virtual Machine 3 Connected to Both Host-Only Interfaces Ifyouplantoruntheroutersoftwareonavirtualmachine,setupathirdvirtual machineforthatpurpose. 1 2 3 Createthevirtualmachineoruseanexistingvirtualmachine. LaunchaVMwareServerConsoleandopenthevirtualmachine. Edittheconfigurationusingthevirtualnetworkeditor. Selectthefirstnetworkadapterinthelistofdevices,selectCustom,andselect VMnet1(Hostonly)(onaWindowshost)or/dev/vmnet1(onaLinuxhost)from thedropdownlistontheright.Selectthesecondnetworkadapterinthelistof devices,thenselectCustom,selectVMnet2(Hostonly)(onaWindowshost)or /dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright. Ifyouneedtoaddoneormorenetworkadapters,clickAdd,andusetheAdd Hardwarewizardtoaddanadapter.
VMware, Inc.
RC DRAFT
237
Nowyouneedtoconfigurethenetworkingcomponentsonthehostandinthevirtual machines.TherecommendedapproachusesstaticIPaddressesforallthevirtual machines. To configure the host and virtual machine networking components 1 StoptheVMnetDHCPserverservice. Windowshost:Fromthevirtualnetworkeditor,selectDHCPandclickStop service. Linuxhost:Stopthevmnet-dhcpdservice.
killall -TERM vmnet-dhcpd
2 3 4
Installguestoperatingsystemsineachofthevirtualmachines. Installtheroutersoftwareonthehostcomputerorinthethirdvirtualmachine, dependingontheapproachyouareusing. Configurenetworkinginthefirsttwovirtualmachinestouseaddressesonthe appropriatehostonlynetwork. OnWindowshosts,youcanopenacommandpromptandrunipconfig /allto seewhatIPaddresseseachhostonlynetworkisusing. OnLinuxhosts,youcanopenaterminalandrunifconfigtoseewhatIP addresseseachhostonlynetworkisusing.
Ifyouarerunningtherouteronthehostcomputer,assigndefaultrouteraddresses basedontheaddressesofthehostonlyadaptersonthehostcomputer.Inthefirst virtualmachinesnetworkingconfiguration,thedefaultrouteraddressshouldbe theIPaddressforthehostonlyadapterconnectedtoVMnet1.Inthesecondvirtual machinesnetworkingconfiguration,thedefaultrouteraddressshouldbetheIP addressforthehostonlyadapterconnectedtoVMnet2. Ifyouarerunningtheroutersoftwareonthethirdvirtualmachine,setthedefault routeraddressesinthefirsttwovirtualmachinesbasedonthoseusedbythethird virtualmachine.Inthefirstvirtualmachinesnetworkingconfiguration,the defaultrouteraddressshouldbetheIPaddressforthethirdvirtualmachines networkadapterconnectedtoVMnet1.Inthesecondvirtualmachinesnetworking configuration,thedefaultrouteraddressshouldbetheIPaddressforthethird virtualmachinesnetworkadapterconnectedtoVMnet2.
238
RC DRAFT
VMware, Inc.
Understanding NAT
Networkaddresstranslation,orNAT,providesasimplewayforvirtualmachinesto usemostclientapplicationsoveralmostanytypeofnetworkconnectionavailableto thehost.TheonlyrequirementforNATisthatthenetworkconnectionmustsupport TCP/IP. NATisusefulwhenyouhavealimitedsupplyofIPaddressesorareconnectedtothe networkthroughanonEthernetnetworkadapter.NATworksbytranslatingaddresses ofvirtualmachinesinaprivateVMnetnetworktothatofthehostmachine.Whena virtualmachinesendsarequesttoaccessanetworkresource,itappearstothenetwork resourceasiftherequestcamefromthehostmachine.
VMware, Inc.
RC DRAFT
239
Using NAT
TheNATdeviceisconnectedtotheVMnet8virtualswitch.Virtualmachinesconnected totheNATnetworkalsousetheVMnet8virtualswitch. TheNATdevicewaitsforpacketscomingfromvirtualmachinesontheVMnet8virtual network.Whenapacketarrives,theNATdevicetranslatestheaddressofthevirtual machinetothatofthehostbeforeforwardingthepackettotheexternalnetwork.When dataarrivesfromtheexternalnetworkforthevirtualmachineontheprivatenetwork, theNATdevicereceivesthedata,replacesthenetworkaddresswiththatofthevirtual machineandforwardsthedatatothevirtualmachineonthevirtualnetwork.This translationoccursautomaticallyandrequiresminimalconfigurationontheguestand thehost.
240
RC DRAFT
VMware, Inc.
RC DRAFT
241
Thesamecannotbesaidfornetworkconnectionsthatareinitiatedfromtheexternal networktoavirtualmachineontheNATnetwork. Whenamachineontheexternalnetworkattemptstoinitiateaconnectionwithavirtual machineontheNATnetwork,itcannotreachthevirtualmachinebecausetheNAT devicedoesnotforwardtherequest.Networkconnectionsthatareinitiatedfrom outsidetheNATnetworkarenottransparent. However,itispossibletoconfigureportforwardingmanuallyontheNATdeviceso networktrafficdestinedforacertainportcanstillbeforwardedautomaticallytoa virtualmachineontheNATnetwork.Fordetails,seeAdvancedNATConfiguration onpage 242. FilesharingofthetypeusedbyWindowsoperatingsystemsandSambaispossible amongcomputersontheNATnetworkincludingvirtualmachinesandthehost computer.IfyouareusingWINSserversonyournetwork,avirtualmachineusing NATnetworkingcanaccesssharedfilesandfoldersonthehostthatareknownbythe WINSserversolongasthosesharedfilesandfoldersareinthesameworkgroupor domain.
Windows Hosts
ConfiguretheNATdeviceusingthevirtualnetworkeditor(fromtheWindowsStart menu,selectPrograms>VMwareServer>ManageVirtualNetworks,thenselect NAT). Youcanstop,restart,andstartthevirtualNATdevicebyclickingtheappropriate button.TheVMnethostsettingletsyouselectwhichvirtualnetworkusestheNAT device.YoucanselectDisableifyoudonotwanttouseNATonanyvirtualnetwork. ToeditNATsettingsforavirtualnetwork,selectitfromthedropdownmenu,then clickEdit.TheNATSettingsdialogboxappears. YoucanchangeanyofthefollowingNATsettings: PortforwardingletsyousendincomingTCPorUDPrequeststoaspecificvirtual machineonthevirtualnetworkservedbytheNATdevice.Tosetupandconfigure forwardedports,clickPortforwarding.Adialogboxappears.
242
RC DRAFT
VMware, Inc.
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,ora nonstandardportifsoftwarerunninginthevirtualmachineisconfiguredtoaccept requestsonanonstandardport.TheDescriptionfieldisoptional.Youmightuse ittoidentifytheservicebeingforwarded(forexample,HTTP).Whenyouhave madethesesettings,clickOK. 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 tabofthevirtualnetworkeditorandselectSubnet. ToallowonlypassivemodeFTPovertheNATdevice,deselecttheActiveFTP checkbox. YoucanchangethenumberofminutestokeeptheUDPmappingfortheNATin theUDPtimeoutfield. IfyouchangetheOUI(OrganizationallyUniqueIdentifier)portionoftheMAC addressforthevirtualmachineandsubsequentlycannotuseNATwiththevirtual machine,youshouldchecktheAllowAnyOUIcheckbox. IntheConfigportfield,youcanspecifyaportthatcanbeusedtoaccessstatus informationabouttheNAT.Thisoptionisusedfortroubleshootingpurposeswith VMwaretechnicalsupportonly. YoucanchangeNetBIOStimeoutandretrysettings. Whenyouhavemadeallthenetworkingchangesyouwant,clickOK.
VMware, Inc.
RC DRAFT
243
Linux Hosts
UsetheNATconfigurationfileonthehosttoconfiguretheNATdevice.Thisfileis /etc/vmware/vmnet8/nat/nat.conf. Theconfigurationfileisdividedintosections.EachsectionconfiguresapartoftheNAT device.Textsurroundedbysquarebracketssuchas[host]marksthebeginning ofasection.Ineachsectionisaconfigurationparameterthatcanbeset.The configurationparameterstaketheformip = 192.168.27.1/24. ForanexampleofaNATconfigurationfile,seeSampleLinuxvmnetnat.confFileon page 248.Theconfigurationfilevariablesaredescribedbelow.
244
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
245
246
RC DRAFT
VMware, Inc.
Using NAT to Connect to an Existing WINS Server Already Set Up on the Host
Tousethismethod,aWINSserverinthesameworkgroupordomainmustbesetup onthehost.ThesestepsuseWindows2000,WindowsXP,orWindowsServer2003asa guide.TheprocessissimilarforWindowsNT,WindowsMe,andWindows9xguests. To use NAT to connect to an existing WINS Server 1 2 3 4 5 6 Inthevirtualmachine,rightclickonMyNetworkPlacesandselectProperties. IntheNetworkConnectionswindow,rightclickthevirtualnetworkadapterand selectProperties. InthePropertiesdialogbox,selectInternetProtocol(TCP/IP),andclick Properties. IntheTCP/IPPropertiesdialogbox,clickAdvanced. ClicktheWINStab,thenunderNetBIOSsetting,selectUseNetBIOSsetting fromDHCPServer. ClickOKtwice,andclickClose.
VMware, Inc.
RC DRAFT
247
248
RC DRAFT
VMware, Inc.
# enable configuration; disabled by default for security reasons #configport = 33445 # VMnet device if not specified on command line device = VMnet8 # Allow PORT/EPRT FTP commands (they need incoming TCP stream...) activeFTP = 1 # Allows the source to have any OUI. Enable this if you change the OUI # in the MAC address of your virtual machines. #allowAnyOUI = 1 [udp] # Timeout in seconds, 0 = no timeout, default = 60; real value might # be up to 100% longer timeout = 30 [incomingtcp] # Use these with care - anyone can enter into your virtual machine through # these... # FTP (both active and passive FTP is always enabled) # ftp localhost 8887 #8887 = 192.168.27.128:21 # 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.
RC DRAFT
249
YoucanthenuseWindowsExplorerinthevirtualmachinetomoveandcopyfiles betweenvirtualmachineandhostorbetweenvirtualmachinesonthesamenetwork justasyouwouldwithfilesonphysicalcomputersthatshareanetworkconnection. ThelightlymodifiedSambaserverinstalledbyVMwareServerrunsovertheVMware ServervirtualEthernet,andtheSambatrafficbetweendifferentoperatingsystemsis isolatedfromactuallocalareanetworks. Thesourcecodedifferencesforthechanges(indiffformatandbasedonSamba2.0.6) areavailablefromVMware.Formoreinformation,see www.vmware.com/download/open_sources.html. IfyoualreadyhaveSambaconfiguredonyourLinuxhost,therecommendedapproach istomodifythatconfigurationsoitincludestheIPsubnetusedbytheVMwareServer virtualnetworkadapter,VMnet1. YoucanconfigureyourexistingSambaservertoworkwithahostonlynetwork.Allthe sharesyousetupinSambaandintheguestoperatingsystemnormallyappearonthe bridgednetworkaswell. Ifyouneedtobesurethesharessetupintheguestoperatingsystemareseenonlyon thehostonlynetwork,youmightfinditeasiesttoinstallandusetheSambaserver providedwithVMwareServer. Ifyoudonotneedanysharestoappearonyourbridgednetwork,youcanuseyour existingSambaserverandsetuptheconfigurationfilesoitworksonlyonthehostonly network. Sambaconfigurationscanbequitecomplex.Thissectionprovidesseveralsample configurationfiles.Ifyouneedtogobeyondtheissuescoveredhere,seethemanpage forthesmb.conffile.Toviewthismanpage,typeoneofthefollowingcommandsina terminalwindow:
man smb.conf
or
man 5 smb.conf
250
RC DRAFT
VMware, Inc.
Configuration file for Samba 2.0.6 vmware-[sn]mbd operating on vmnet1. This file was generated by the VMware configuration program and modified for this document. 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
VMware, Inc.
RC DRAFT
251
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
lock directory = /etc/vmware/vmnet1/smb/var/locks smb passwd file = /etc/vmware/vmnet1/smb/private/smbpasswd codepage dir = /usr/lib/vmware/smb/codepages dns proxy = no # 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
This is the main Samba configuration file. Read the smb.conf(5) manual page to understand the options listed here. Samba has a huge number of configurable options most of which are not shown in this example
RC DRAFT
VMware, Inc.
# # # # # # # # #
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 might wish to enable NOTE: Whenever you modify this file run the command "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 # # ; ; ; Note: Printers not loaded in this example. Resource definitions commented below. printcap name = lpstat load printers = yes printing = cups
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 log file = /var/log/samba/log.%m max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/smbpasswd dns proxy = no preserve case = yes short preserve case = yes default case = lower ; case sensitive = no # Shared Resources [homes] comment = Home Directories browseable = yes writable = yes ;[printers]
VMware, Inc.
RC DRAFT
253
; ; ; ; ; ; ; ; ; ; ; ; ;
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
Adding User Names and Passwords to the VMware Server Samba Password File
YoumustbesuretheSambapasswordfileincludesentriesforallusersofthevirtual machinewhowillaccessthehostsfilesystem.Theusernamesandpasswordsinthe Sambapasswordfilemustbethesameasthoseusedforloggingontotheguest operatingsystem. YoucanaddusernamesandpasswordstotheVMwareServerSambapasswordfileat anytimefromaterminalwindowonyourLinuxhostcomputer. To add user names and passwords to the VMware Server Samba password file 1 Logontotherootaccount.
su -
RuntheVMwareServerSambapasswordcommand.
vmware-smbpasswd vmnet1 -a <username>
254
RC DRAFT
VMware, Inc.
Logoutoftherootaccount.
exit
Youmightreceiveanerrormessagethatsays
Unknown virtual interface "vmnet1"
VMware, Inc.
RC DRAFT
255
To add user names and passwords to the Samba password file from a Linux host 1 Logontotherootaccount.
su -
RuntheSambapasswordcommand.
smbpasswd -a <username>
<username>istheusernameyouwanttoadd.Followtheonscreeninstructions. 3 Logoutoftherootaccount.
exit
Sample smb.conf for Running Two Samba Servers at the Same Time
; ; ; ; ; This file is the recommended smb.conf file for your normal Samba server if you want to run it concurrently (which we don't advise) with the VMware Samba server. Your normal samba server should be at least v 2.0.6
256
RC DRAFT
VMware, Inc.
; ; 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 ; ; Max log size in KB max log size = 1024 ; Locks lock directory = /var/samba ; SMB passwords smb passwd file = /etc/samba/smbpasswd ; ; Name browsing
VMware, Inc.
RC DRAFT
257
; ; Allow the host to participate in master browser ; elections local master = yes ; Force a local browser election upon startup ; We need that otherwise it takes a long time before the ; windows network is browsable preferred master = yes ; Do not try to resolve SMB names using DNS dns proxy = no ; 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 [Slash] comment = Whole filesystem path = / public = no writeable = yes printable = no
Summary Tab
TheSummarytabdisplaysalistofthevirtualnetworkscurrentlyactiveonthehost.
258
RC DRAFT
VMware, Inc.
Bydefault,theVMnet0virtualnetworkissetupinbridgedmodeandbridgestoan activenetworkadapteronthehostcomputer.Iftherearemultipleactivenetwork adaptersonthehost,thechoiceofwhichadapteritusesisarbitrary.Torestrictthe rangeofchoices,clicktheAutomaticBridgingtabandspecifyanyadaptersyouwant toexclude.Formoreinformation,seeAutomaticBridgingTab. ClicktheHostVirtualNetworkMappingtabtospecifythenetworkadapterusedfor VMnet0andforanyothervirtualnetworksyouwanttouseforbridgednetworking. Controlsonthispanelalsoallowyoutospecifythesubnettobeusedbyanyvirtual network.Formoreinformation,seeHostVirtualNetworkMappingTab. ClicktheHostVirtualAdapterstabtospecifywhichvirtualnetworkshavehostvirtual adaptersvirtualnetworkadaptersthatallowthehostcomputertoconnecttothe network.Formoreinformation,seeHostVirtualAdaptersTab. ClicktheDHCPtabtospecifywhichvirtualnetworksusethevirtualDHCPserveror toconfigureDHCPsettingsforanyofthosenetworks.Formoreinformation,see DHCPTab. ClicktheNATtabtoconfiguresettingsforthevirtualnetworkaddresstranslation (NAT)device.Formoreinformation,seeNATTab.
VMware, Inc.
RC DRAFT
259
Changesubnetandnetmasksettingsforavirtualadapter(seeChangingSubnet andNetmaskSettings). ChangeDHCPsettings(seeChangingDHCPSettings). Becarefulwhenyouchangethebridgedadaptermappings.Ifyoureassignaphysical networkadaptertoadifferentvirtualnetwork,anyvirtualmachinethatusedthe originalnetworkisnolongerbridgedtotheexternalnetworkviathatvirtualnetwork. Youmustthenchangethesettingforeachaffectedvirtualmachinesnetworkadapter individually. Thiscanbeespeciallytroublesomeifyourhosthasonlyonephysicalnetworkadapter andyoureassignittoaVMnetotherthanVMnet0.EventhoughtheVMnetstillappears tobridgetoanautomaticallychosenadapter,theonlyadapteritcanusehasbeen assignedtoadifferentVMnet.
260
RC DRAFT
VMware, Inc.
DHCP Tab
YouneedtoconfigurethevirtualDHCPserverifyouwanttoassignIPaddressesto eachvirtualmachineandthehostontheprivatenetwork(thatis,ifyouwanttouse hostonlyorNATnetworking).UsingDHCPtoassignIPaddressesissimplerandmore automaticthanstaticallyassigningthem. Toaddanewvirtualnetworktothelist,clickAdd.Inthedialogboxthatappears,select thenetworkyouwanttoaddfromthedropdownlist,andclickOK.(Atthispoint,you cannotchangeanyoftheothersettingsintheDHCPSettingsdialogbox.)OntheDHCP tab,clickApplytoactivatethenewnetwork.Youcannowselectthenewlyadded networkandchangethesettings,asfollows. TochangeDHCPsettingsforavirtualnetwork,selectitinthelist,andclickProperties. IntheDHCPSettingsdialogboxthatappears,youcanchangetherangeofIPaddresses providedbytheVMwareServerDHCPserveronaparticularvirtualnetwork.Youcan alsochangethedurationofDHCPleasesprovidedtoclientsonthevirtualnetwork.(If youwanttochangethesubnetsettings,youneedtousetheHostVirtualnetwork Mappingtab.) YoucancompletelystoptheDHCPserviceforallvirtualnetworksbyclickingStop, andthenclickingApply.Iftheserviceisstopped,youcanstartitbyclickingStartand thenApply. (YoucanalsomodifyDHCPsettingsbychoosingEdit>VirtualNetworkSettings> HostVirtualNetworkMapping,selectingaspecificbridgedadapter,thenclickingthe >buttonforthatvirtualnetwork.)
NAT Tab
OptionsontheNATtabletyoudeterminewhichvirtualnetworkisusingthevirtual NATdevice,stopandstarttheNATservice,andconfigureavarietyofsettingsforthe NATdevice. Youcanstop,restart,andstartthevirtualNATdevicebyclickingtheappropriate button.TheVMnethostsettingletsyouselectwhichvirtualnetworkusestheNAT device.YoucanselectDisableifyoudonotwanttouseNATonanyvirtualnetwork. YoucanchangeanyofthefollowingNATsettingswhenyouclickEdit:
VMware, Inc.
RC DRAFT
261
GatewayIPaddressUsethisfieldtochangetheIPaddressfortheNATdevice. Ifyouneedtochangethenetmask,clickthe<buttonontheHostVirtualNetwork MappingtaboftheVirtualNetworkEditorandselectSubnet. UDPtimeoutUsethisfieldtochangethenumberofminutestokeeptheUDP mappingfortheNA. ConfigportfieldUsethisfieldfortroubleshootingpurposeswithVMware technicalsupportonly.Youwillbedirectedtospecifyaportthatcanbeusedto accessstatusinformationabouttheNAT. PortforwardingPortforwardingletsyousendincomingTCPorUDPrequests toaspecificvirtualmachineonthevirtualnetworkservedbytheNATdevice.To setupandconfigureforwardedports,clickPortForwarding,andcompletethe dialogboxthatappears,asfollows: ToaddanewportforeitherTCPorUDP,clickAddintheappropriatesection, andcompletethedialogboxthatappears,asfollows: HostportSpecifythenumberoftheincomingTCPorUDPport.For example,incomingHTTPrequestsareusuallyonport80. VirtualMachineIPaddressfieldSpecifytheIPaddressofthevirtual machinetowhichyouwanttoforwardtheincomingrequests. PortfieldonthatlineSpecifytheportnumberyouwanttousefor thoserequestsonthatvirtualmachine.Thismaybethestandardport, suchas80forHTTP,oranonstandardportifsoftwarerunninginthe virtualmachineisconfiguredtoacceptrequestsonanonstandardport. Description(optional)SpecifyYoumightusethisfieldtoidentifythe servicebeingforwarded,forexample,HTTP. Tochangesettingsforaportalreadylisted,selectitsnameinthelist,andclick Properties. DNSThisbuttonletsyouspecifyserverstobeusedbythevirtualNATdevice. Youcanchangethefollowingsettings: PolicyIfyouusemultipleDNSservers,specifythestrategytousefor choosingwhichservertosendarequestto: OrderSendoneDNSrequestatatimeinorderofthenameservers. RotateSendoneDNSrequestatatimeandrotatethroughtheDNS servers. BurstSendtothreeserversandwaitforthefirstonetorespond.
262
RC DRAFT
VMware, Inc.
AutodetectSelectthischeckboxtohaveVMwareServerautomatically detectavailableDNSservers. TimeoutSpecifythenumberofminutestokeeptrying,iftheNATisunable toconnecttotheDNSserver. RetriesSpecifythenumberoftimestheNATshouldtrytoconnecttothe DNSserver. ToaddaDNSservertothelist,clickAddandentertheDNSserversIP addressintheIPaddressfield.TheDescriptionfieldisoptional. Tochangesettingsforaserveralreadylisted,selectitsnameinthelist,and clickProperties. ActiveFTPClearthischeckboxifyouwanttoallowonlypassivemodeFTP overtheNATdevice. AllowanyOUIIfyouchangetheOUI(organizationallyuniqueidentifier) portionoftheMACaddressforthevirtualmachineandsubsequentlycannotuse NATwiththevirtualmachine,youshouldselectthischeckbox. NetBIOSsectionUsethissectiontospecifyNBNS(NetBIOSNameService)and (NetBIOSDatagramService)timeoutsandretrysettings.
VMware, Inc.
RC DRAFT
263
264
RC DRAFT
VMware, Inc.
12
12
ThischapterdescribeshowtooptimizeVMwareServerperformancebycorrectly configuringVMwareServerhostsystems,hostwideVMwareServersettings,and virtualmachines.Thischaptercoversthefollowingtopics: ConfiguringandMaintainingtheHostSystemonpage 265 AllocatingMemorytoaVirtualMachineonpage 268 EditingVirtualMachineMemoryonpage 269 EditingVirtualProcessorsonpage 270 UsingTwoWayVirtualSymmetricMultiprocessingonpage 270 ConfiguringandMaintainingGuestOperatingSystemsonpage 271
VMware, Inc.
RC DRAFT
265
266
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
267
Ifyousetthisvaluetoohigh,thehostmightperformpoorlywhenotherapplications arerunningonthehost.Ifyousetthisvaluetoolow,virtualmachinesmightperform poorlyandfewervirtualmachinescanrunsimultaneously. Reservedmemoryisallocatedasneeded,andtheamountinusevarieswhilevirtual machinesarerunning.Ifmultiplevirtualmachinesarerunningsimultaneously,they managethememorybetweeneachother. Evenwhenmultiplevirtualmachinesarerunningsimultaneously,VMwareServer mightbeusingonlyafractionofthereservedmemorylimit.Unusedhostmemoryis availableforusebyotherapplications.However,ifallthereservedhostmemoryisin usebyoneormorevirtualmachines,thehostandotherhostapplicationscannot operateproperly.Theamountofmemorythatmustremainallocatedtothehostand otherhostapplicationsdependsonthehostoperatingsystemandthetotalhost memorysize.
268
RC DRAFT
VMware, Inc.
Mostmodernoperatingsystemsusesignificantamountsofmemory,soallowinga generousvirtualmachinememorycapacityisbeneficialforoptimalperformance.The optimalsettingdependsonthefollowingconsiderations: Therecommendationsoftheoperatingsystemvendor. Thetypesofapplicationsthatareruninthevirtualmachine. Whethermultiplevirtualmachinesarecontendingformemoryresources.Ifyou plantorunonevirtualmachineatatimemostofthetime,agoodstartingpointis togivethevirtualmachinehalfoftheavailablehostmemory. Whatapplicationsarerunonthehostatthesametimeasthevirtualmachine. Thetotalamountofhostmemorythatallrunningvirtualmachinescanuse.See ReservingHostMemoryforVirtualMachineUseonpage 267. Thefilesystemwherethevirtualmachineisstored.Youcannotallocatemorethan 2GBofmemorytoavirtualmachineifitisstoredonafilesystemthatdoesnot supportfileslargerthan2GB,suchasFAT16.Ifyoudo,thevirtualmachinewillnot boot. Forinformationabouthostwidememorysettings,seeConfiguringHostWide VirtualMachineMemoryUsageonpage 267.
VMware, Inc.
RC DRAFT
269
RC DRAFT
VMware, Inc.
To change the number of processors in a virtual machine 1 2 3 4 5 SelectthevirtualmachinetomodifyfromtheInventorypanel. Makesurethatthevirtualmachineispoweredoff. IntheHardwaresectionoftheSummarytab,clicktheProcessorsiconandselect Edit. SelectthenumberofprocessorsfromtheProcessorCountdropdownmenu. ClickOKtosaveyourchanges.
RC DRAFT
271
272
RC DRAFT
VMware, Inc.
Disabling Fade Effects in Windows 2000, Windows XP, and Windows Server 2003
ThefadeeffectsusedbyWindows2000,WindowsXP,andWindowsServer2003to displaymenuscanmakethevirtualmachineseemlessresponsive. To disable fade effects 1 RightclicktheguestoperatingsystemdesktopandselectProperties> Appearance>Effects(onWindowsXPorWindowsServer2003)or Properties > Effects(onWindows2000). DeselecttheUsetransitioneffectsformenusandtooltipscheckbox.
VMware, Inc.
RC DRAFT
273
RC DRAFT
VMware, Inc.
InWindowsServer2003,WindowsXP,andWindows2000,DMAisenabledbydefault. Windows95OSR2andWindows98canuseDMAforfasterIDEharddiskaccess,but DMAmightnotbeenabledbydefault. To enable DMA access using the Device Manager in Windows 95 and Windows 98 1 2 3 4 5 RightclickMyComputerandselectProperties. Clicktheplus(+)signnexttoDiskDrivestodisplaythevirtualmachines individualdrives. RightclicktheentryforeachIDEdrivetoopenitsPropertiesdialogbox. UnderSettings,selectDMAandacceptanywarningsthatWindowsdisplays. RestarttheWindowsguestsystem.
ThemethodforchangingthesettingvariesforotherWindowsoperatingsystems.
VMware, Inc.
RC DRAFT
275
ThePerformanceconsoleisavailableonlyonWindowshosts.However,youcan monitortheperformanceofanytypeofguestoperatingsystem,includingLinux guests. TheVMwareServerperformancecounterscanmonitorthefollowingdatafroma runningvirtualmachine: Readsandwritestovirtualdisks Memoryusage Virtualnetworktraffic Youcantrackvirtualmachineperformanceonlywhenavirtualmachineisrunning. Theperformancecountersreflectthestateofthevirtualmachine,nottheguest operatingsystem.Forexample,thecounterscandeterminehowoftentheguestreads fromavirtualdisk,butcannotdeterminehowmanyprocessesarerunningintheguest. To add counters to track virtual machine performance using the Windows Performance console 1 2 SelectStart>Programs>AdministrativeTools>Performanceorenter perfmon.mscattheWindowscommandprompt. InthePerformanceconsole,selectSystemMonitor,andclicktheplus(+)signon thetoolbar. TheAddCountersdialogboxisdisplayed. 3 4 InthePerformanceobjectlist,selectVMware. Selectwhichcounterstomonitor: AllCountersMonitorallcounters SelectcountersfromlistMonitorthecountersyouselectfromthelist Todisplaythedescriptionofacounter,selectthecounterandclickExplain. 5 Selectwhichvirtualmachinestomonitor: AllinstancesMonitorallrunningvirtualmachines SelectinstancesfromlistMonitorthevirtualmachinesyouselectfromthe list 6 ClickAddtoaddthecounterstothePerformanceconsole.
FormoreinformationaboutusingthePerformanceconsole,usetheconsoleinproduct helporvisittheMicrosoftWebsite.
276
RC DRAFT
VMware, Inc.
13
13
VMware, Inc.
277
278
VMware, Inc.
VMware, Inc.
279
To enable SCSI reservation in a virtual machine 1 2 Makesurethatthevirtualmachineispoweredoff. Setthescsi<x>.sharedBus parameter(where<x>isthenumberoftheSCSIbus beingshared)tovirtualinthevirtualmachineconfigurationfile,asdescribedin ChangingVirtualMachineAdvancedSettingsonpage 121. Forexample,toenableSCSIreservationfordevicesonthescsi1bus,set scsi1.sharedBustovirtual.Thisallowsthewholebustobeshared. Ifyoudonotwanttosharethewholebus,youcanselectivelyallowSCSI reservationforaspecificSCSIdiskonthesharedbus.Forexample,ifyouwantto shareaSCSIdisklocatedatscsi1:1,setscsi1:1.sharedtotrue.Youmust specifythesameSCSItarget(inthisexample,scsi1:1)intheconfigurationfilefor eachvirtualmachinethatsharesthedisk.IfSCSIreservationisenabledforthe wholebus(thatis,scsi1.sharedBusissettovirtual),thissettingisignored. NOTEDonotshareresourcesusingtwoseparatebuses(forexample,dataon SCSI1:0andquorumonSCSI2:0).Thiscausestheconfigurationfiletobecome invalid.Iftheconfigurationfileisnotvalid,youcannotbootthevirtualmachine. 3 Setthedisk.lockingparametertofalseinthevirtualmachineconfiguration file. NOTEThissettingappliestoalldisksinthevirtualmachine. Becausedisklockingisdisabled,multiplevirtualmachinescanaccesstheshared diskconcurrently. CAUTIONIfanyvirtualmachinethatisnotconfiguredforSCSIreservationattemptsto accessthediskconcurrently,theshareddiskisvulnerabletodatalossorcorruption.
280
VMware, Inc.
VMware, Inc.
281
Thefollowingsectionsdescribehowtoconfigureaclusterinabox.
AsecondaryvirtualSCSIhostadapter. Oneormorepreallocatedvirtualdisksthataresharedandareattachedtothe secondarySCSIhostadapter. NotethefollowingaboutvirtualPCIslotsinthevirtualmachines: EachvirtualmachinebydefaulthassixPCIslotsavailable. Thisconfiguration(twonetworkadaptersandtwoSCSIhostbusadapters)uses fouroftheseslots. OnemorePCIslotisavailableforathirdnetworkadapterifneeded.(Thesixthslot isusedbythevirtualdisplayadapter.) IfthevirtualmachinesbootpartitionisonanIDEvirtualdisk,thepartition occupiesoneofthePCIslots.
VMware, Inc.
283
Windows2000AdvancedServerorWindowsServer2003EnterpriseEdition astheguestoperatingsystem. SQL1asthevirtualmachinename. Thecorrectdatastore. Bridgednetworkingforthevirtualmachine. 3 Addanewnetworkadapterthatuseseitheranotherexternaladapterorthe VMnet1hostonlyadapter.(Forcompleteisolationfromthehost,youcanalsouse anyunusedvirtualEthernetswitch,typicallyVMnet2throughVMnet7.)For information,seeAddingaVirtualNetworkAdapteronpage 215. ThisadapterisusedasthevirtualprivateEthernetconnectionforheartbeat monitoring. 4 Addthetwosharedvirtualdisks: Ashareddatadisk,forexample,data.vmdk Asharedquorumdisktostoretransactionsbeforetheyarecommittedtothe datadisk,forexample,quorum.vmdk Forinformation,seeAddingaHardDisktoaVirtualMachineonpage 138. 5 Addthefollowingparameterstothevirtualmachineconfigurationfile (SQL1.vmx)asdescribedinChangingVirtualMachineAdvancedSettingson page 121: Setscsi1.sharedBustovirtual Setdisk.lockingtofalse ThisenablesSCSIreservation,whichisdescribedinmoredetailinthesection UsingSCSIReservationtoShareVirtualSCSIDisksonpage 278. Youarefinishedcreatingthevirtualmachineforthefirstnodeinyourcluster. Thenextstepistoinstallaguestoperatingsysteminthevirtualmachine. 6 InstalltheWindows2000AdvancedServerorWindowsServer2003Enterprise EditionguestoperatingsystemasdescribedinInstallingaGuestOperating Systemonpage 66. NOTEDonotinstalltheclusteringservicesduringtheinstallationoftheguest operatingsystem. Forinformationaboutyourguestoperatingsystem,seetheVMwareGuest OperatingSystemInstallationGuide,availablefromtheVMwareWebsite.
284 VMware, Inc.
To clone the first virtual machine node 1 Runsysprep.exe,whichisavailableontheWindowsCDinthefile \support\tools\deploy.caborfromtheMicrosoftWebsite. Thesysprep.exeutilityremovesthesecurityIDassignedtotheguestoperating system,resetsthemachineinformation,andresetstheTCP/IPnetwork configuration. 2 3 4 5 Shutdowntheguestoperatingsystemandpoweroffthevirtualmachine. CreateavirtualmachinedirectorynamedSQL2inthesamedatastoreasSQL1. CopytheSQL1*.vmdkfilestothisdirectory. UsetheVMwareVirtualDiskManagertochangethenameofthevirtualdiskto SQL2*.vmdk.Atacommandprompt,type:
vmware-vdiskmanager -n SQL1.vmdk SQL2.vmdk
Formoreinformationaboutthevirtualdiskmanager,seeUsingVMwareVirtual DiskManageronpage 142. Youarefinishedcloningthefirstnode. Next,createthesecondnodeintheclusterusingtheclone. To create the second node in the cluster from the clone of the first node 1 2 LogintoyourVMwareServerhostasanAdministratoruser. CreateanewvirtualmachineasdescribedinChapter 4,CreatingandUpgrading VirtualMachines,onpage 57.Choosethesettingsyouwant,suchasthesizeof thevirtualdiskandthevirtualmemorylimit,butmakesurethatyouspecify: Windows2000AdvancedServerorWindowsServer2003EnterpriseEdition astheguestoperatingsystem. SQL2asthevirtualmachinename. Thecorrectdatastore. Tousetheexistingvirtualdisk,clickBrowseandselectSQL2.vmdk. Bridgednetworkingforthevirtualmachine. 3 Addanewnetworkadapterthatuseseitheranotherexternaladapterorthe VMnet1hostonlyadapter.SeeAddingaVirtualNetworkAdapteronpage 215.
VMware, Inc.
285
Youarefinishedcreatingthesecondnode. Nowthatyouhavevirtualmachinesforbothnodesinyourtwonodecluster,youcan installtheclusteringservicessoftware. To install Microsoft Clustering Services on the first node 1 2 Poweronthenode1virtualmachine. AttheWindowssetupprompts,enterthefollowing: TheWindowsserialnumber Thehostname(SQL1) TheIPaddressesofthepublicandprivatenetworkadapters NOTEForthepublicnetworkadapter,enteranIPaddressthatbelongstothe physicalnetwork.FortheprivateIPaddress,youcanuseanaddresslike 192.168.x.xwithaclassCsubnetmask(255.255.255.0). Attheendoftheprocess,Windowsreboots. 3 4 5 StarttheDiskManagementutilityandchangebothshareddiskstoBasicdisks. FormatbothsharedvirtualdiskswithNTFSiftheyarenotalreadyformatted. AssignthefirstshareddisktoQ:(quorum)andtheseconddisktoR:(data). IfyouhavejoinedthisvirtualmachinetoanexistingActiveDirectorydomain,skip toStep 10. 6 Rundcpromo.exefromthecommandprompttostarttheActiveDirectorywizard.
286
VMware, Inc.
8 9 10 11
12 13 14 15 16 17
InserttheWindowsCDintheCDROMdrive. ChooseControlPanel>Add/RemovePrograms. SelectAdd/RemoveWindowsComponents. SelecttheClusterServicecomponent. ClickNextandfollowthepromptstoinstalltheservice. Toconfiguretheclusterservice,chooseFormaNewClusterandspecifythe following: SQLCLUSTERastheclustername. TheclusterserviceaccountcreatedinStep 11. Bothshareddisksaremanagedbytheclusterservice. Theshareddisk(Q:)isthequorumdisk. Indicatewhichnetworkadapterispublicandwhichisprivate. TheclusterIPaddress.Thisistheaddressthatrepresentsthecluster.Itmust beonthesamenetworkasthephysicalEthernetdevice.
18
YouarefinishedinstallingMicrosoftClusteringServicesonthefirstnode.
VMware, Inc. 287
To install Microsoft Clustering Services on the second node 1 2 3 4 Startthenode2virtualmachine. RepeatStep 2andStep 3intheprocedureforthefirstnode. StarttheDiskManagementtoolandassignthefirstshareddisktoQ:(quorum) andtheseconddisktoR:(data). Startdcpromo.exeandaddthisvirtualmachineasadomaincontrollerinthe samedomaincreatedinStep 7forthefirstnode,oraddittoanexistingdomain. NOTEThesetupinnode2mustmatchthesetupinnode1,whichyouspecifiedin Step 7fornode1. 5 6 Tostarttheclusterserviceinthenode1virtualmachine,rightclickthenodename fromClusterManager,andselectStartClusterService. Inthenode2virtualmachine,repeatStep 13throughStep 17inToinstall MicrosoftClusteringServicesonthefirstnodeonpage 286,withoneexception: inStep 17,selectJoinaCluster.
Youarenowfinishedconfiguringthecluster.
288
VMware, Inc.
Defined Privileges
Thefollowingtableslistthedefaultprivilegesthat,whenselectedforarole,canbe pairedwithauserandassignedtoanobject.ThefollowingtablesuseVCtoindicate VirtualCenterServerandHCtoindicatehostclient,astandaloneESX/ESXiorVMware Serverhost. Whensettingpermissions,verifyalltheobjecttypesaresetwithappropriateprivileges foreachparticularaction.Someoperationsrequireaccesspermissionattherootfolder orparentfolderinadditiontoaccesstotheobjectbeingmanipulated.Someoperations requireaccessorperformancepermissionataparentfolderandarelatedobject.See Chapter 10,ManagingRolesandPermissions,onpage 193forinformationabout applyingrolestoinventoryobjects. SeeTable 101,SystemRoles,onpage 196foralistofpredefinedgroupedprivileges. Thisappendixcontainsthefollowingtopics: Alarmsonpage 290 Datacenteronpage 291 Datastoreonpage 291 Extensionsonpage 292 Foldersonpage 293 Globalonpage 293 HostCIMonpage 295 HostConfigurationonpage 296 HostInventoryonpage 298
VMware, Inc.
RC DRAFT
289
HostLocalOperationsonpage 299 Networkonpage 300 Performanceonpage 300 Permissionsonpage 301 Resourceonpage 301 ScheduledTaskonpage 303 Sessionsonpage 303 Tasksonpage 304 VirtualMachineConfigurationonpage 304 VirtualMachineInteractiononpage 307 VirtualMachineInventoryonpage 309 VirtualMachineProvisioningonpage 309 VirtualMachineStateonpage 311
Alarms
Table A-1. Alarms Privileges
Privilege Name CreateAlarm1 Description Createsanewalarm. UserinterfaceelementAlarmstab contextmenu,File>New>Alarm DeleteAlarm Deletesanexistingalarm. UserinterfaceelementAlarmstab contextmenu ModifyAlarm Changesthepropertiesofanexisting alarm. UserinterfaceelementAlarmstab contextmenu VConly VConly Used VConly Pair with Object Alarm object parent Alarm object parent Alarm object parent Effective on Object All inventory objects All inventory objects All inventory objects
1. Whencreatingalarmswithacustomaction,privilegetoperformtheactionisverifiedwhentheusecreates thealarm.
290
RC DRAFT
VMware, Inc.
Defined Privileges
Datacenter
Table A-2. Datacenter Privileges
Privilege Name Create Datacenter Description Createsanewdatacenter. UserinterfaceelementInventory contextmenu,toolbarbutton,andFile> NewDatacenter Removesadatacenter. UserinterfaceelementInventory contextmenu,Inventory>Datacenter> Remove,Edit>Remove Movesadatacenter. Privilegemustbepresentatboththe sourceanddestination. UserinterfaceelementInventory draganddrop Rename Datacenter Changesthenameofadatacenter. UserinterfaceelementInventory object,Inventorycontextmenu,Edit> Rename,Inventory>Datacenter> Rename VConly Datacenter Datacenters VConly VConly Datacenter plusparent object Datacenter, sourceand destination Affects VConly Pair with Object Datacenter Effective on Object Datacenter folders
Delete Datacenter
Datacenters
Move Datacenter
Datastore
Table A-3. Datastore Privileges
Privilege Name Browse Datastore Description Browsesfilesonadatastore. UserinterfaceelementAddexisting disk,browseforCDROMorFloppy media,serialorparallelportfiles Removesadatastore. UserinterfaceelementInventory datastorecontextmenu,Inventory> Datastore>Remove Deletesafileinthedatastore. UserinterfaceelementDatastore BrowsertoolbarbuttonandDatastore contextmenu HCandVC Datastores HCandVC Datastores Affects HCandVC Pair with Object Datastores Effective on Object Datastores, Datastore folders Datastores, Datastore folders Datastores
Delete Datastore
Delete DatastoreFile
VMware, Inc.
RC DRAFT
291
Extensions
Table A-4.
Privilege Name Register Extension Unregister Extension Update Extension Description Registersanextension(plugin) Unregistersanextension(plugin) Updatesanextension(plugin) Affects VConly VConly VConly Pair with Object Root Folder Root Folder Root Folder Effective on Object RootFolder RootFolder RootFolder
292
RC DRAFT
VMware, Inc.
Defined Privileges
Folders
Table A-5. Folder Privileges
Privilege Name CreateFolder Description Createsanewfolder. UserinterfaceelementTaskbar button,Filemenu,contextmenu DeleteFolder Deletesafolder. UserinterfaceelementFilemenu, contextmenu MoveFolder Movesafolder. Privilegemustbepresentatboththe sourceanddestination. UserinterfaceelementInventory draganddrop RenameFolder Changesthenameofafolder. UserinterfaceelementInventory paneobjecttextfield,contextmenu, Filemenu VConly Folders Folders VConly VConly Foldersplus parentobject Folders, sourceand destination Folders Affects VConly Pair with Object Folders Effective on Object Folders
Folders
Global
Table A-6. Global Privileges
Privilege Name CancelTask Description Cancelsarunningorqueuedtask. UserinterfaceelementRecenttasks panecontextmenu,Tasks&Events contextmenu.Cancurrentlycancel cloneandclonetotemplate. Capacity Planning Enablestheuseofcapacityplanningfor planningconsolidationofphysical machinestovirtualmachines. UserinterfaceelementConsolidation buttonintoolbar. Diagnostics Getslistofdiagnosticfiles,logheader, binaryfiles,ordiagnosticbundle. UserinterfaceelementFile>Export> ExportDiagnosticData,Admin SystemLogstab VConly Anyobject Rootfolder VConly Anyobject Affects HCandVC Pair with Object Anyobject Effective on Object Inventory object relatedtothe task Rootfolder
VMware, Inc.
RC DRAFT
293
Rootfolder
294
RC DRAFT
VMware, Inc.
Defined Privileges
Rootfolder
Host CIM
Table A-7. Host CIM Privileges
Privilege Name CIM Interaction Description Allowsaclienttoobtainatickettouse forCIMservices. Affects HCandVC Pair with Object Hosts Effective on Object Hosts
VMware, Inc.
RC DRAFT
295
Host Configuration
Table A-8. Host Configuration Privileges
Privilege Name Advanced Configuration Description Setsadvancedoptionsinhost configuration. UserinterfaceelementHost Configurationtab>Advanced Settings,Inventoryhierarchycontext menu ChangeDate TimeSettings Setstimeanddatesettingsonthehost. UserinterfaceelementHost Configurationtab>Time Configuration Allowsenablinganddisablingof backgroundsnapshotsandsettingof lockdownmode. UserinterfaceelementHost Configurationtab>SecurityProfile> LockdownMode>Edit ChangeSNMP Settings Connection Edits,restarts,andstopsSNMPagent. NouserVIClientinterfaceelementsare associatedwiththisprivilege. Changestheconnectionstatusofahost (connectedordisconnected). UserinterfaceelementRightclick Host Firmware Allowsupdatestothehostfirmwareon ESXihosts. NouserVIClientinterfaceelementsare associatedwiththisprivilege. Hyper Threading Enablesanddisableshyperthreadingin thehostCPUscheduler. UserinterfaceelementHost Configurationtab>Processors Maintenance Putsthehostinandoutofmaintenance mode,shutsdownandrestartsthehost. UserinterfaceelementHostcontext menu,Inventory>Host>Enter MaintenanceMode HCandVC Hosts Hosts HCandVC Hosts Hosts HCandVC Hosts Hosts(ESXi only) VConly Hosts Hosts HCandVC Hosts Hosts HCandVC Hosts Hosts HCandVC Hosts Hosts Affects HCandVC Pair with Object Hosts Effective on Object Hosts
Change Settings
296
RC DRAFT
VMware, Inc.
Defined Privileges
VMware, Inc.
RC DRAFT
297
Host Inventory
Table A-9. Host Inventory Privileges
Privilege Name AddHostTo Cluster Add Standalone Host Description Addsahosttoanexistingcluster. UserinterfaceelementInventory contextmenu,File>New>AddHost Addsastandalonehost. UserinterfaceelementToolbar button,Inventorycontextmenu, Inventory>Datacenter>AddHost, File>New>AddHost,Hoststab contextmenu Createsanewcluster. UserinterfaceelementsToolbar button,inventorycontextmenu, Inventory>Datacenter>NewCluster, File>New>Cluster Modify Cluster Changesthepropertiesofacluster. UserinterfaceelementInventory contextmenu,Inventory>Cluster> EditSettings,Summarytab Movesaclusterorstandalonehost betweenfolders. Privilegemustbepresentatboththe sourceanddestination. UserinterfaceelementInventory hierarchy MoveHost Movesasetofexistinghostsintoa cluster. Privilegemustbepresentatboththe sourceanddestination. UserinterfaceelementInventory hierarchydraganddrop Remove Cluster Deletesaclusterorstandalonehost. UserinterfaceelementInventory contextmenu,Edit>Remove, Inventory>Cluster>Remove VConly Clustersplus parentobject Clusters, Hosts VConly Hosts,source and destination Clusters, Hostfolders VConly Clusters, sourceand destination Clusters, Hostfolders VConly Clusters VConly Clusters VConly Hosts Datacenters, Hostfolders Affects VConly Pair with Object Hosts Effective on Object Clusters
CreateCluster
Datacenters, Hostfolders
Clusters
298
RC DRAFT
VMware, Inc.
Defined Privileges
VMware, Inc.
RC DRAFT
299
Network
Table A-11. Network Privileges
Privilege Name Assign Network MoveNetwork Description Assignsanetworktoavirtualmachine. Affects VConly Pair with Object Virtual Machine Network, sourceand destination Effective on Object Networks, Virtual Machines Networks
HCandVC
Delete Network
HCandVC
Datacenter
Datacenters
Performance
Table A-12. Performance Privileges
Privilege Name Modify Intervals Description Creates,removes,andupdates performancedatacollectionintervals. Userinterfaceelement Administration>VirtualCenter ManagementServerConfiguration> Statistics Affects VConly Pair with Object Rootfolder Effective on Object Rootfolder
300
RC DRAFT
VMware, Inc.
Defined Privileges
Permissions
Table A-13. Permissions Privileges
Privilege Name Modify Permission Description Definesoneormorepermissionrules onanentity,orupdatesrulesifalready presentforthegivenuserorgroupon theentity. UserinterfaceelementPermissions tabcontextmenu,Inventory> Permissionsmenu ModifyRole Updatesarolesnameandthe privileges. UserinterfaceelementRolestab contextmenu,toolbarbutton,File menu ReassignRole Permissions Reassignsallpermissionsofaroleto anotherrole. UserinterfaceelementDeleteRole dialogboxradiobuttonandassociated menu HCandVC Anyobject Rootfolder HCandVC Anyobject Rootfolder Used HCandVC Pair with Object Anyobject plusparent object Effective on Object All inventory items
Resource
Table A-14. Resource Privileges
Privilege Name Apply Recommenda tion AssignVirtual MachineTo Pool CreatePool Description Askstheservertogoaheadwitha suggestedVMotion. UserinterfaceelementClusterDRS tab Assignsvirtualmachinestoaresource pool. UserinterfaceelementNewVirtual Machinewizard Createsanewresourcepool. UserinterfaceelementFilemenu, contextmenu,Summarytab,Resources tab HCandVC Resource pools, clusters Resource pools, clusters HCandVC Resource pools Resource pools Affects VConly Pair with Object Clusters Effective on Object Clusters
VMware, Inc.
RC DRAFT
301
Resource pools
Rootfolder
Rootfolder
Resource pools
302
RC DRAFT
VMware, Inc.
Defined Privileges
Scheduled Task
Table A-15. Scheduled Task Privileges
Privilege Name CreateTasks1 Description Schedulesatask.Requiresthe privilegestoperformthescheduled actionatthetimeofscheduling. UserinterfaceelementScheduled Taskstoolbarbuttonandcontextmenu ModifyTask Reconfiguresthescheduledtask properties. UserinterfaceelementInventory> ScheduledTasks>Edit,Scheduled Taskstabcontextmenu RemoveTask Removesascheduledtaskfromthe queue. UserinterfaceelementScheduled Taskscontextmenu,Inventory> ScheduledTask>Remove,Edit> Remove RunTask Runsthescheduledtaskimmediately. UserinterfaceelementScheduled Taskscontextmenu,Inventory> ScheduledTask>Run VConly Allinventory objects Allinventory objects VConly Allinventory objects Allinventory objects VConly Allinventory objects Allinventory objects Affects VConly Pair with Object Allinventory objects Effective on Object Allinventory objects
1. Creatingandrunningatask(ondemand)requirespermissiontoinvoketheassociatedaction.
Sessions
Table A-16. Session Privileges
Privilege Name Global Message Description Setsthegloballoginmessage. UserinterfaceelementSessionstab, Administration>EditMessageofthe Day Impersonatesanotheruser.This capabilityisusedbyextensions. VConly Rootfolder Rootfolder Affects VConly Pair with Object Rootfolder Effective on Object Rootfolder
Impersonate User
VMware, Inc.
RC DRAFT
303
Tasks
Table A-17. Tasks Privileges
Privilege Name Create Update Description Allowsanextensiontocreatea userdefinedtask. Allowsanextensiontoupdatesa userdefinedtask. Affects VConly VConly Pair with Object Rootfolder Rootfolder Effective on Object Rootfolder Rootfolder
304
RC DRAFT
VMware, Inc.
Defined Privileges
VMware, Inc.
RC DRAFT
305
Affects HCandVC
HCandVC
Virtual machines
Virtual machines
HCandVC
HCandVC
HCandVC HCandVC
306
RC DRAFT
VMware, Inc.
Defined Privileges
Console Interaction
Virtual machines
Virtual machines
VMware, Inc.
RC DRAFT
307
308
RC DRAFT
VMware, Inc.
Defined Privileges
Virtual machines
VMware, Inc.
RC DRAFT
309
Virtual machines
Virtual machines
Customize
310
RC DRAFT
VMware, Inc.
Defined Privileges
VMware, Inc.
RC DRAFT
311
312
RC DRAFT
VMware, Inc.
VMware, Inc.
RC DRAFT
313
314
RC DRAFT
VMware, Inc.
<vm_name>-Snapshot<#>.vmem
VMware, Inc.
RC DRAFT
315
316
RC DRAFT
VMware, Inc.
Glossary
VMware, Inc.
317
console SeeVIWebAccess(VMwareInfrastructureWebAccess),VMwareRemote Console. customnetworking Anytypeofnetworkconnectionbetweenvirtualmachinesandthehostthatdoes notusethedefaultbridged,hostonly,ornetworkaddresstranslation(NAT) configurations.Forinstance,differentvirtualmachinescanbeconnectedtothe hostbyseparatenetworksorconnectedtoeachotherandnottothehost.Any networktopologyispossible.Seealsobridgednetworking,hostonlynetworking, NAT(networkaddresstranslation).
DE
datastore Virtualrepresentationsofcombinationsofunderlyingphysicalstorageresources. Adatastoreisthestoragelocationforvirtualmachinefiles.Thestoragelocation canbethelocalfilesystem,aCIFSstore(Windowsonly),oranNFSmountedfile system(Linuxonly). diskmode Apropertyofavirtualdiskthatdefinesitsexternalbehavior(howthe virtualizationlayertreatsitsdata)butiscompletelyinvisibletotheguestoperating system.Availablemodesvarybyproductandincludepersistentmode(changesto thediskarealwayspreservedacrosssessions)andnonpersistentmode(changes areneverpreserved).
318
VMware, Inc.
Glossary
host ThephysicalcomputeronwhichtheVMwareServersoftwareisinstalled. hostagent Softwarethat,wheninstalledonavirtualmachinehost,performsactionsonbehalf ofaremoteclient. hostedproducts VMwareproducts(includingWorkstation,VMwarePlayer,VMwareServer, VMwareACE,andLabManager)thatrunasapplicationsonphysicalmachines withoperatingsystemssuchasMicrosoftWindowsorLinux.Bycomparison,ESX Serverisabaremetalproduct,whichprovidesathinsoftwarelayer(the hypervisor)thatenablesittorundirectlyonthephysicalmachine. hostonlynetworking Atypeofnetworkconnectionbetweenavirtualmachineandthehost.With hostonlynetworking,avirtualmachineisconnectedtothehostonaprivate network,whichnormallyisnotvisibleoutsidethehost.Multiplevirtualmachines configuredwithhostonlynetworkingonthesamehostareonthesamenetwork. Seealsobridgednetworking,customnetworking,NAT(networkaddress translation). hostoperatingsystem Anoperatingsystemthatrunsonthehostmachine.Seealsoguestoperating system.
I-L
VMware, Inc.
319
MN
NAT(networkaddresstranslation) Inhostednetworking,atypeofnetworkconnectionthatenablesyoutoconnect yourvirtualmachinestoanexternalnetworkwhenyouhaveonlyoneIPnetwork addressandthataddressisusedbythehostcomputer.IfyouuseNAT,yourvirtual machinedoesnothaveitsownIPaddressontheexternalnetwork.Instead,a separateprivatenetworkissetuponthehostcomputer.Yourvirtualmachinegets anaddressonthatnetworkfromtheVMwarevirtualDHCPserver.TheVMware NATdevicepassesnetworkdatabetweenoneormorevirtualmachinesandthe externalnetwork.Itidentifiesincomingdatapacketsintendedforeachvirtual machineandsendsthemtothecorrectdestination.Seealsobridgednetworking, customnetworking,hostonlynetworking. NetBIOS(networkbasicinput/outputsystem) AnAPIthatenablesapplicationsondifferentcomputerstocommunicateacrossa LAN.NetBIOSprovidesthenameserviceandofferstwocommunicationmodes: sessionserviceforconnectionorientedcommunicationanddatagramdistribution serviceforconnectionlesscommunication. NIC(networkinterfacecard) Anexpansionboardthatprovidesadedicatedconnectionbetweenacomputer andanetwork.Alsocalledanetworkadapter.
320
VMware, Inc.
Glossary
O-P
permission Adataobjectconsistingofanauthorizationrole,auserorgroupname,anda managedentityreference.Apermissionallowsaspecifiedusertoaccesstheentity (suchasavirtualmachine)withanyoftheprivilegespertainingtotherole. persistentmode Adiskmodeinwhichalldiskwritesissuedbysoftwarerunninginsideavirtual machineareimmediatelyandpermanentlywrittentoavirtualdiskthathasbeen configuredasanindependentdisk.Asaresult,avirtualdiskorphysicaldiskin independentpersistentmodebehaveslikeaconventionaldiskdriveonaphysical computer.Seealsodiskmode,nonpersistentmode. preallocateddisk Atypeofvirtualdiskwherealldiskspaceforthevirtualmachineisallocatedat thetimethediskiscreated.Seealsogrowabledisk. privilege Authorizationtoperformaspecificactionorsetofactionsonamanagedobjector groupofmanagedobjects.
Q-R
readonlyuser Aroleinwhichtheuserisallowedtoviewtheinventorybutnotallowedto performanytasks. remoteconsole Aninterfacetoavirtualmachinethatprovidesnonexclusiveaccesstoavirtual machinefromtheserveronwhichthevirtualmachineisrunningandfrom workstationsconnectedtothatserver.SeealsoVMwareRemoteConsole. resume Toreturnavirtualmachinetooperationfromitssuspendedstate.Whenyou resumeasuspendedvirtualmachine,allapplicationsareinthesamestatethey werewhenthevirtualmachinewassuspended.Seealsosuspend.
VMware, Inc.
321
shrink Toreclaimunusedspaceinavirtualdisk.Ifadiskhasemptyspace,shrinking reducestheamountofspacethevirtualdiskoccupiesonthehostdrive.Youcannot shrinkpreallocatedvirtualdisks. snapshot Areproductionofthevirtualmachinejustasitwaswhenyoutookthesnapshot, includingthevirtualmachinespowerstate(on,off,orsuspended).Ifthevirtual harddisksarenotsettoindependentmode,asnapshotalsoincludesthestateof thedataonallthevirtualmachinesdisks.Youcantakeasnapshotwhenavirtual machineispoweredon,poweredoff,orsuspended.Seealsoindependentdisk. suspend Tosavethecurrentstateofarunningvirtualmachine.Toreturnasuspended virtualmachinetooperation,usetheresumefeature.Seealsoresume.
TU
user Auserisaprincipalknowntothesystem.
VX
virtualdisk Afileorsetoffilesthatappearsasaphysicaldiskdrivetoaguestoperating system.Thesefilescanbeonthehostmachineoronaremotefilesystem.Seealso growabledisk,preallocateddisk. virtualhardware Thedevicesthatmakeupavirtualmachine.Thevirtualhardwareincludesthe virtualdisk,removabledevicessuchastheCD/DVDandfloppydrives,andthe virtualEthernetadapter. virtualmachine Avirtualizedx86PCenvironmentinwhichaguestoperatingsystemand associatedapplicationsoftwarecanrun.Multiplevirtualmachinescanoperateon thesamehostmachineconcurrently. virtualmachineadministrator Aroleinwhichtheuserisallowedtoperformallthevirtualmachinemanagement functions.
322
VMware, Inc.
Glossary
virtualmachineconfiguration Thespecificationofwhichvirtualdevices,suchasdisksandmemory,arepresent inavirtualmachineandhowtheyaremappedtohostfilesanddevices. virtualmachineconfigurationfile Afilecontainingavirtualmachineconfiguration.This.vmxfileiscreatedwhen youcreatethevirtualmachine.Itisusedtoidentifyandrunaspecificvirtual machine. virtualmachineuser Aroleinwhichtheuserisallowedtoperformpoweroperationsonvirtual machines. virtualnetwork Anetworkconnectingvirtualmachinesthatdoesnotdependonphysical hardwareconnections.Forexample,youcancreateavirtualnetworkbetweena virtualmachineandahostthathasnoexternalnetworkconnections. virtualnetworkeditor Aneditorthatrunsonthehostandisusedtoviewandmodifythenetworking settingsforthevirtualnetworkscreatedbyVMwareServer. VirtualSMP Thetechnologythatenablesavirtualmachinetodosymmetricmultiprocessing. VirtualSMPenablesyoutoassigntwovirtualprocessorstoavirtualmachineon anyhostmachinethathasatleasttwologicalprocessors. VIWebAccess(VMwareInfrastructureWebAccess) AuserinterfacethatrunsinaWebbrowserandprovidesasimpleandflexibletool toperformallVMwareServermanagementtasks.VI WebAccessandVMware RemoteConsolereplacetheVMwareManagementInterfaceandVMwareServer Console.SeealsoVMwareRemoteConsole. VMwareauthorizationservice TheservicethatVMwareServeremploystoauthenticateusers.Theprocessis calledvmwareauthdonLinuxhosts. VMwarePlayer FreesoftwarethatenablesPCuserstoeasilyrunanyvirtualmachineona WindowsorLinuxPC.VMwarePlayerrunsvirtualmachinescreatedbyVMware Workstation,VMwareServer,orESXServerandalsosupportsMicrosoftvirtual machinesandSymantecBackupExecSystemRecoverydiskformats.
VMware, Inc.
323
VMwareRemoteConsole VMwareRemoteConsoleenablesyoutointeractwiththeguestoperatingsystem runninginavirtualmachinefromthehostoraremoteclientsystem. VMware RemoteConsolealsoallowsyoutoconnectanddisconnectclient CD/DVDandfloppydevices.SeealsoVIWebAccess(VMwareInfrastructureWeb Access). VMwareTools Asuiteofutilitiesanddriversthatenhancestheperformanceandfunctionalityof yourguestoperatingsystem.KeyfeaturesofVMwareToolsincludesomeorallof thefollowing,dependingonyourguestoperatingsystem:anSVGAdriver,a mousedriver,theVMwareToolscontrolpanelandsupportforsuchfeaturesas shrinkingvirtualdisks,timesynchronizationwiththehost,VMwareToolsscripts, andconnectinganddisconnectingdeviceswhilethevirtualmachineisrunning.
324
VMware, Inc.
Index
A
About menu option VI Web Access 53 About tab VMware Tools 92 acceleration enabling and disabling in guest 121, 272 hardware in Windows Server 2003 274 access inventory objects 193 permissions 198 privileges 289 rules for inheritance 200 rules for propagation 200 Add Hardware wizard adding CD/DVD drives 144 adding floppy drives 147 adding generic SCSI devices 150 adding hard disks 138 adding network adapters 215 adding parallel ports 170 adding passthrough SCSI devices 150 adding serial ports 159 adding sound adapters 158 adding USB controllers 152 using the wizard 130 virtual machine power state 130 adding CD/DVD drives 144
datastores 104 floppy drives 147 generic SCSI devices 150 hard disks 138 host virtual adapters 219 network adapters 215 parallel ports 170 passthrough SCSI devices 150 permissions 198 roles 196 serial ports 159 sound adapters 158 USB controllers 152 virtual machine to inventory 102 add-on VMware Remote Console 51 addresses assigning IP 223 assigning MAC 225 assigning MAC manually 226 IP on virtual network 222 network address translation 239 using DHCP to assign on virtual network 222 Advanced tab VI Web Access 121 alarms privileges 290 assigning IP addresses 222 MAC addresses 225 ATAPI emulation 144
VMware, Inc.
RC DRAFT
325
audio in virtual machines 31, 158 AudioPCI sound adapter 158 automatic bridging 218, 259
B
background snapshots enabling and disabling 108 backups restoring from snapshot 113 restoring quiesced 113 taking quiesced 111 taking using VSS 111 BIOS NVRAM file in virtual machine 313 provided in virtual machine 28 setup when virtual machine boots 119 bridged networking configuring 217 explained 204 Bridging tab in virtual network editor 259 BusLogic SCSI driver 29, 61, 152
C
CD/DVD drives accessing directly 144 adding 144 autorun polling in virtual machines 273 connecting and disconnecting 125 editing 146 IDE system requirements 29 removing 147 SCSI system requirements 29 using ATAPI emulation 144 CIFS datastores 104 client devices connecting and disconnecting 125
clock real-time on Linux host 41 synchronize guest and host 89, 119 clustering applications 278 cluster in a box 281 configuring virtual machines 282 overview 277 software requirements 278 two-node cluster 283 command-line interface for VIX API 132 for VMware Tools 99 configuring advanced virtual machine options 121 automatic bridging 218, 259 bridged networking 217 CD/DVD drives 143 custom virtual networks 211 DHCP on Linux host 223 DHCP on Windows host 223 DHCP settings 218, 261 floppy drives 147 groups 195 hard disks 135 host virtual network mapping 218 memory size in virtual machines 269 NAT 242 NAT on Linux host 248 NAT settings 261 network adapters 215 parallel ports 169 processors in virtual machines 270 SCSI controllers 152 SCSI devices 150 second bridged network on a Linux host 229
326
RC DRAFT
VMware, Inc.
Index
serial ports 159 sound adapters 157 USB controllers 152 users 194 virtual machine file settings 122 virtual network subnet settings 218 virtual networking settings 258 virtual networks 203, 207, 215 VMware Tools scripts 119 connecting CD/DVD drives 125 floppy drives 125 floppy image files 125 ISO image files 125 USB devices 153 Console tab VI Web Access 51 console, virtual machine 51, 53 core files 16 CPU host requirement 24 provided in virtual machines 28 See also processors 270 creating CD/DVD drives 144 datastores 104 floppy drives 147 generic SCSI devices 150 hard disks 138 network adapters 215 parallel ports 170 passthrough SCSI devices 150 permissions 198 roles 196 serial ports 159 sound adapters 158 USB controllers 152 virtual machines 57 VMware Remote Console
VMware, Inc.
shortcuts 128 Web shortcuts for virtual machines 127 Creative Labs 31, 158
D
datacenters privileges 291 datastores adding 104 managing 103 removing 106 renaming 105 DDNS 228 debugging effect on performance 273 enabling and disabling virtual machine 121 default scripts for VMware Tools 93 defragmenting physical host disks 265 virtual disks 140, 272 deleting CD/DVD drives 147 datastores 106 floppy drives 150 hard disks 140 network adapters 217 parallel ports 171 permissions 200 roles 197 serial ports 163 sound adapters 159 USB controllers 153 virtual machines 102, 123 desktop shortcut for VMware Server 39 device drivers BusLogic SCSI 61 LSI Logic SCSI 61
RC DRAFT
327
VMware Tools 72 devices configuring SCSI in virtual machines 150 connecting and disconnecting in VMware Remote Console 125 connecting and disconnecting in VMware Tools 90 disconnecting USB 157 using USB in virtual machines 154 Devices menu VMware Remote Console 125 Devices tab VMware Tools 90 DHCP assigning IP addresses on a virtual network 222 changing settings 218 configuring in virtual network editor 261 configuring on a Linux host 223 configuring on a Windows host 223 on a virtual network with NAT 240 server on virtual network 209, 210 servers 205 troubleshooting on a Linux host 228 DHCP tab in virtual network editor 261 dhcpd 228 dial-up connections 225 direct memory access See DMA disconnecting CD/DVD drives 125 floppy drives 125 floppy image files 125 ISO image files 125 USB devices 157 disk space
328
required on host computer 24 disks defragmenting 140 DMA and performance 274 growable 60, 136 IDE drives in virtual machines 29 IDE drives supported in host 24 preallocated 60, 136 SCSI drives in virtual machines 29 SCSI drives supported in host 24 shrinking 140 types supported in host 24 DMA and disk performance 274, 275 DNS 241 drivers BusLogic SCSI 61 LSI Logic SCSI 61 video, in older versions of Windows 75 DVD drives optical drives supported in host 25 supported in virtual machines 144 See also CD/DVD drives dynamic domain name service 228
E
editing CD/DVD drives 146 floppy drives 149 generic SCSI devices 151 hard disks 139 network adapters 216 parallel ports 171 passthrough SCSI devices 151 permissions 199 roles 197 SCSI controllers 152 serial ports 162 sound adapters 158
VMware, Inc.
RC DRAFT
Index
EHCI controller 154 Ethernet adapters See network adapters events virtual machine 56 VMware Server 56 Events tab VI Web Access 56 exiting VMware Remote Console 126 extensions privileges 292
F
fault tolerance in networks 217 files BIOS in virtual machines 313 redo log 314 sharing on a Linux host using Samba 249 snapshot 315 suspended state 315 used by a virtual machine 313 virtual disk 314 virtual machine configuration 315 virtual machine locking 315 virtual machine log 313 Firefox requirements for VI Web Access 27 requirements for VMware Remote Console 27 using VMware Remote Console 51 firewall 247 floppy drives adding 147 connecting and disconnecting 125 editing 149 removing 150 supported in virtual machines 30 floppy images
adding 147 connecting and disconnecting 125 editing 149 removing 150 supported in virtual machines 30 folders privileges 293 FreeBSD VMware Tools for 82 FTP 241 full screen mode entering 124 leaving 124
G
gated server processes 227 General tab VI Web Access 118 generating VMware Remote Console shortcuts 128 Web shortcuts for virtual machines 127 generic SCSI devices 150 adding 150 editing 151 removing 151 global privileges 293 graphics support in virtual machine 29 groups 193 managing 195 growable virtual disks 60, 136 guest operating system defined 23 installing 66 interacting with 124 pressing Ctrl+Alt+Del 124 supported 31
VMware, Inc.
RC DRAFT
329
upgrading 68
I
ICMP 241 IDE drives in virtual machines 29 drives supported in host 24 importing virtual machines 102 independent virtual disks 61 installing disk space requirements 24 guest operating system 66 Linux guests in text mode 271 on Linux host 41 on Windows host 37 software in a virtual machine 131 VMware Remote Console addon 51 VMware Server 35 VMware Server silently on Windows hosts 39 VMware Tools 73 VMware Tools silently on Windows guests 75 Internet Explorer requirements for VI Web Access 27 requirements for VMware Remote Console 27 using VMware Remote Console 51 inventory access to objects 193 inventory panel VI Web Access 48 Iomega zip drives and parallel ports 176 IP address assigning 223 IP forwarding 224, 225 ISO images connecting and disconnecting 125
H
hard disks adding 138 editing 139 removing 140 hardware version of virtual machines 59, 69 heartbeat and clustering virtual machines 282 host computer disk space required 24 system requirements 23 host operating system defined 23 supported Linux 26 supported Windows 25 host virtual adapters adding 219 disabling 219 enabling 219 removing 219 Host Virtual Adapters tab in virtual network editor 260 Host Virtual Mapping tab in virtual network editor 259 host virtual network mapping 218, 259 host-only networking basic configuration 210 selecting IP addresses 222 hosts CIM privileges 295 configuration privileges 296 inventory privileges 298 local operations privileges 299 host-wide settings 106, 109
330
RC DRAFT
VMware, Inc.
Index
K
kernel upgrades and VMware Server 43 key code mappings 178 keyboards mapping on a Linux host 176 keysym defined 177 mapping 179
enabling and disabling 121 logging in access permissions 193 to VI Web Access 47 logging out VI Web Access 56 LSI Logic SCSI devices 29 LSI Logic SCSI driver 61, 152
L
leaking IP packets in host-only network 224 IP packets in virtual machine 225 licensing, serial number and 39 Linux guests performance 271 VMware Tools for 78, 79 Linux hosts installing VMware Server 41 performance 266 supported operating systems 26 uninstalling VMware Server on 44 location virtual machine configuration file 118, 313 working directory 118, 313 .lck file 315 locking snapshots 120 .log file 313 log files authorization service 16 host agent 16 VI Web Access 17 virtual machine 16 VMware Authorization Service 16 VMware host agent 16 VMware Remote Console 17 logging
VMware, Inc.
M
MAC addresses 225, 226 managing datastores 103 groups 195 users 194 mappings key code 178 keyboard 176 keysym 179 memory amount required on host 24 available in virtual machine 29 choosing for best performance 268 configuring 269 editing 269 host-wide settings 106, 267 reserving for virtual machines 107 setting when creating virtual machine 59 swapping in host 107 virtual machine memory size 268 menu options VI Web Access 53 virtual machine 53 message log viewing VMware Remote Console 126 MIDI 157 MMU 122
RC DRAFT
331
modifying CD/DVD drives 146 floppy drives 149 hard disks 139 network adapters 216 parallel ports 171 permissions 199 SCSI controllers 152 serial ports 162 sound adapters 158 mouse driver installed by VMware Tools 72 MP3 157 Mylex SCSI adapter 29
N
named pipe 161, 164, 165, 167 NAT advanced configuration 242 and DHCP 240 and DNS 241 and the host computer 240 configuring 261 external access from a NAT network 241 on virtual networks 208, 239 sample configuration file for Linux host 248 selecting IP addresses 222 NAT tab in virtual network editor 261 nat.conf 244, 248 NetWare, Novell 92 network adapters adding virtual 215 editing virtual 216 removing virtual 217 teaming 218, 229 networks
automatic bridging 218 changing DHCP settings 218 changing subnet settings 218 changing the configuration 215 common configurations 207 components 204 configuring 203 configuring automatic bridging 259 configuring bridged 217 configuring DHCP 261 configuring NAT 261 configuring options 258 custom configurations 211 DHCP 222 DHCP server 205 dial-up connections 225 dynamic domain name service 228 fault tolerance 217 hardware addresses 225 host virtual network mapping 218 host-only 210 host-only subnet 222 IP forwarding 224, 225 IP packet leaks 224, 225 MAC addresses 225 managing host virtual adapters 260 mapping bridged adapters 259 NAT 208, 239 NAT as firewall 247 NAT subnet 222 overview of virtual network options 203 packet filtering 225 privileges 300 promiscuous mode on a Linux host 239 refreshing virtual 215 routing between two host-only networks 235
332
RC DRAFT
VMware, Inc.
Index
routing on a Linux host 227 Samba 249 second bridged network on a Linux host 229 switches 205 teamed NICs 218, 229 token ring 209 troubleshooting DHCP on a Linux host 228 two host-only networks 232 virtual adapters 206 virtual DHCP server 209, 210 Virtual Network Editor 217, 220, 223 virtual switches 205 NFS datastores 104 NFS root squash option 104 NICS See network adapters nonpersistent virtual disks 61 NTBackup 112 NVRAM file for BIOS settings 313
O
operating system installing guest 66 supported guest 31 supported Linux host 26 supported Windows host 25 Options tab VMware Tools 89 overview VI Web Access 48
P
packets filtering 225 leaks in host-only network 224 leaks in virtual machine 225 parallel ports
adding 170 and Iomega zip drives 176 and the Linux kernel 172 configuring on a Linux host 172 editing 171 in a virtual machine 171 removing 171 paravirtualization 122 passthrough SCSI devices 150 adding 150 editing 151 removing 151 passwords in Samba password file 254 PCI slots in virtual machine 29 limits 29 performance CD/DVD drive autorun polling 273 debugging mode 273 disk options 274 DMA and disks 274 eliminating snapshots 272 installing applications in a guest 272 Linux guests 271 memory settings 268 memory usage 267, 268 privileges 300 remote disk access 272 Windows 2000 guest 273 Windows 95 and Windows 98 guests 275 permissions 193, 198 access 198 creating 198 editing 199 hierarchy of 201 privileges 301 removing 200 settings, multiple 201
333
VMware, Inc.
RC DRAFT
persistent virtual disks 61 physical disks storing virtual disks on 61, 137 ping 241 pipe, named 161, 164, 165, 167 plug-in VMware Remote Console 51 power off snapshot options 120, 190 power state changing virtual machine 116 current virtual machine 50 Power tab VI Web Access 118 preallocated virtual disks 60, 136 privileges 193, 289 alarms 290 configuration 296 datacenter 291 extension 292 folders 293 global 293 host CIM 295 host inventory 298 host local operations 299 network 300 performance 300 permission 301 resource 301 scheduled tasks 303 sessions 303 tasks 304 virtual machine 309 virtual machine configuration 304 virtual machine interaction 307 virtual machine provisioning 309 virtual machine state 311 processor count configuring 270
334
maximum in virtual machine 270 setting when creating virtual machine 59 processors host requirement 24 provided in virtual machines 28 product compatibility 59 product registration 15 promiscuous mode 239 PXE image file 36, 60
Q
quiesced backups 111 quiet mode, install VMware Tools 75 quitting VMware Remote Console 126
R
RAM amount required on host 24 available in virtual machine 29 Real Media 157 real-time clock requirement on Linux host 41 redo-log files 314 refreshing virtual network 215 registration 15 Remote Console See VMware Remote Console removing CD/DVD drives 147 datastores 106 floppy drives 150 generic SCSI devices 151 hard disks 140 host virtual adapters 219 network adapters 217 parallel ports 171 passthrough SCSI devices 151
RC DRAFT
VMware, Inc.
Index
permissions 200 roles 197 serial ports 163 sound adapters 159 USB controllers 153 USB devices 157 virtual machines from inventory 102, 123 renaming datastores 105 roles 197 repairing VMware Tools installations 88 reporting problems 15 resources privileges 301 resuming virtual machines 185 roles 193 configuring 195 creating 196 default 196 editing 197 managing 195 privileges, lists of 289 removing 197 renaming 197 routed server processes 227 routing between two host-only networks 235 for a host-only network on a Linux host 227 RPM installer for VMware Server 42 for VMware Tools 78, 79 running suspended virtual machines 185
S
Samba already running on a Linux host 255 and file sharing on a Linux host 249 and printer sharing 250 CIFS datastores 104 on both bridged and host-only networks 256 password file 254 running two Samba servers 256 sample configuration file 251, 252, 256 saving virtual machine state 185, 187 scan code 177 scheduled tasks privileges 303 scripts creating custom VMware Tools 94 enabling, disabling, and running 91 running and disabling 96 running during power state changes 93 VMware Tools 119 Scripts tab VMware Tools 91 SCSI controller 152 SCSI devices adding 150 editing 151 generic 150 host requirement 24 in virtual machine 29 passthrough 150 removing 151 SCSI reservation and clustering 278 enabling 279 issues to consider 281 preallocated virtual disks 278
335
VMware, Inc.
RC DRAFT
sharing SCSI disks 278 support 279 serial connections between host application and virtual machine 163 between two virtual machines 164 changing input speed 169 to a serial port on the host 163 yielding CPU on poll 168 serial number 15, 36, 39, 53 serial ports adding 159 configuring 163 editing 162 example usage 163 removing 163 using 163 servers DHCP 205, 219, 223, 228, 240, 247 DNS 228, 241, 243, 262 Samba 249 WINS 242, 247 service VSS Writer 111 sessions privileges 303 Shared Folders tab VMware Tools 91 sharing files on a Linux host with Samba 249 shortcut, desktop, for VMware Server 39 Shrink tab VMware Tools 91 shrinking virtual disks 91, 140 virtual disks in Netware 92 shutting down host-wide virtual machine
336
settings 109 order of virtual machines 110 smb.conf file 251, 252, 256 Snapshot tab VI Web Access 119 snapshots as background activity 108, 189 eliminating for performance 272 excluding virtual disks from 189 files for storing 315 host-wide settings 108 locking 120 power-off options 120, 190 removing 191 reverting to 190 taking 190 using with VSS backups 112 virtual machine 187 Solaris VMware Tools for 81 sound configuring in virtual machines 157 Sound Blaster 158 support in guest 31 sound adapters adding 158 device compatibility 157 drivers for Windows guests 158 editing 158 removing 159 sound drivers 158 specifications for virtual machines 28 starting suspended virtual machines 185 virtual machines automatically 109 startup host-wide virtual machine settings 109 order of virtual machines 110
VMware, Inc.
RC DRAFT
Index
startup commands used by VMware Tools 98 startup scripts using VMware Tools 97 statistics enabling and disabling 121 stopping order of virtual machines 110 subnet changing settings 218 in NAT configuration 222 on host-only networks 222 Summary tab 50 in virtual network editor 258 VI Web Access 50 supported guest operating systems 31 supported host operating systems Linux 26 Windows 25 suspending virtual machine files storing state 315 virtual machines 185 SVGA drivers installing in Windows guests 75 SVGA graphics support 29 swap space on a Linux host 266 switches virtual networks 205 system requirements 23 memory 24 processors 24 remote client 27 VI Web Access 27 VMware Remote Console 27
in VMware Tools control panel 88 tar installer for VMware Server 41 for VMware Tools 79 tasks privileges 304 virtual machine 55 VMware Server 55 Tasks tab VI Web Access 55 teamed network interface cards 218, 229 telnet 241 time synchronization, between guest and host 89, 119 time.synchronize options for VMware Tools 90 token ring networks 209 toolbar power operations 116 USB controller 153 tools See VMware Tools
U
UHCI controller 154 uninstalling host virtual adapters 219 VMware Server on Linux host 44 VMware Server on Windows host 41 VMware Tools 87 unplugging USB devices 157 updating guest operating system 68 virtual machine hardware version 69 upgrading guest operating system 68 Linux kernel, reconfiguring VMware
337
T
tabs in VI Web Access 48
VMware, Inc.
RC DRAFT
Server after 43 virtual machine hardware version 69 USB connecting devices 153 control of devices by host and guest 156 devices in a virtual machine 154 disconnecting devices 157 enabling and disabling the controller 152 on a Linux host 156 on a Windows host 155 port specifications 30 supported device types 155 USB 1.1 154 USB 2.0 154 USB controllers adding 152 removing 153 users configuring 194 managing 194
V
VGA graphics support 29 VI Web Access changing guest operating system 118 changing virtual machine name 118 changing virtual machine power settings 103, 118 configuring VMware Tools scripts 119 Events tab 56 General tab 118 inventory panel 48 log files 17 logging in 47 logging out 56
338
managing virtual machine inventory 101 menu options 53 overview 48 Power tab 118 setting guest operating system 118 setting snapshot options 119 setting virtual machine name 118 setting virtual machine power options 118 Snapshot tab 119 Summary tab 50 Tasks tab 55 Virtual Machines tab 103 workspace 48 Virtual Appliance Marketplace 36, 54 Virtual Disk Manager 142 virtual disks adding 138 allocating space 136 caching 61 constituent files 314 defragmenting 140, 272 editing 139 growable 60, 136 independent mode 61 nonpersistent 61 persistent 61 preallocated 60, 136 removing 140 SCSI drivers 61 setting maximum size 136 shrinking 91, 140 shrinking in Netware 92 size 29 storing on physical disks 61, 137 Virtual Disk Manager 142 Virtual Machine Communication Interface (VMCI) 72
RC DRAFT
VMware, Inc.
Index
virtual machines adding CD/DVD drives 144 adding floppy drives 147 adding hard disks 138 adding parallel ports 170 adding serial ports 159 adding sound adapters 158 adding to inventory 102 adding USB controllers 152 and SMP 270 changing guest operating system 117 changing power settings 103, 118 changing snapshot settings 119 changing the name of 117 choosing datastore location 57 configuration file 315 configuration file location 118, 313 configuration file parameters 122 configuration privileges 304 configuring memory 269 configuring processor count 270 configuring SCSI controllers 152 configuring sound 158 configuring sound adapters 157 console to interact with guest 51, 53 constituent files 313 creating 57 creating virtual disks 60 creating VMware Remote Console shortcuts 128 creating Web shortcuts 127 default location 57 deleting 102, 123 deleting floppy drives 150 editing CD/DVD drives 146 editing floppy drives 149 editing hard disks 139 editing parallel ports 171
VMware, Inc.
editing serial ports 162 editing sound adapters 158 entering BIOS setup at boot 119 events 56 generating VMware Remote Console shortcuts 128 generating Web shortcuts 127 hardware specifications 28 hardware version 59, 69 host-wide settings 109 IDE drives in 29 importing 102 installing software in 131 interaction privileges 307 inventory of 101 inventory privileges 309 location 57 log files 313 managing inventory 101 memory settings 59 menu options 53 performing disk maintenance 140 platform specifications 28 power operations 116 processor settings 59 product compatibility 59 provisioning privileges 309 removing CD/DVD drives 147 removing floppy drives 150 removing from inventory 102, 123 removing hard disks 140 removing parallel ports 171 removing serial ports 163 removing sound adapters 159 removing USB controllers 153 resuming 185 setting guest operating system 117 setting power options 118 setting shutdown order 110
339
RC DRAFT
setting snapshot options 119 setting startup order 110 setting the name of 117 starting automatically 109 state privileges 311 status information 50 summary information 50 summary view 50 suspending 185 tasks 55 working directory location 118, 313 Virtual Machines tab VI Web Access 103 virtual network adapters 206 Virtual Network Editor 258 virtual networks adding adapters 215 changing the configuration 215 components 204 configuring 203 configuring in virtual network editor 258 DHCP server 210 editing adapters 216 refreshing 215 removing adapters 217 teamed NICs 218 Virtual SMP 270 virtual switches 205 VIX API 23, 132 VMCI Sockets interface 132 .vmdk file 314 .vmem file 315 VMI (Virtual Machine Interface) 122 vmnet1.conf 228 VMnet8 240 vmrun 132 .vmsd file 315 .vmsn file 315
340
.vmss file 315 vmvsswriter.cfg file 112 VMware Authorization Service default port 44 log 16 vmware-config.pl 43 VMware host agent log 16 VMware Remote Console 17 desktop shortcuts 128 full screen mode 124 installing Web browser add-on 51 interacting with guest 124 powering off 126 quitting 126 resetting 126 shortcuts 128 starting 53 viewing message log 126 VMware Remote Console shortcuts 128 VMware Server host-wide settings 106 logging in 47 logging out 56 serial number for 39 VMware Tools 119 About tab 92 automated install 75 command-line interface 99 configuring 88 configuring in a Netware virtual machine 92 control panel 88 device drivers 72 Devices tab 90 for FreeBSD guests 82 for Linux guests 78, 79 for Solaris guests 81 installing 73
VMware, Inc.
RC DRAFT
Index
installing from the command line with the RPM installer 79 installing from the command line with the tar installer 79 installing in Windows guests 74 interacting with VSS 111 modifying installation 88 Options tab 89 repairing installation 88 running 116 running scripts during power state changes 93 Scripts tab 91 Shared Folders tab 91 Shrink tab 91 silent install 75 taskbar icon, displaying 89 uninstalling 87 using from command line 92 VMware user process 73 vmwtool commands 92 VMware Tools scripts 119 VMware Tools service executing commands on halt or reboot 96 overview of 72 passing strings from the host 97 VMware user process, in VMware Tools 73 vmware-user, starting manually 86 vmware-config.pl file 43 vmwtool program 92 .vmx file 315 .vmxf file 315 Volume Shadow Copy Service 111 v-scan code defined 177 table of codes 180 VSS 111
W
.wav file 157 Web shortcuts creating 127 generating 127 Windows Backup 112 Windows credential manager 105 Windows hosts installing VMware Server 37 uninstalling VMware Server 41 working directory 118, 313 workspace in VI Web Access 48
X
X server and keyboard mapping 177 xFree86 and keyboard mapping 177
Z
zip drives on a parallel port 176
VMware, Inc.
RC DRAFT
341
342
RC DRAFT
VMware, Inc.