Professional Documents
Culture Documents
VMware Manual 7.0 Eng
VMware Manual 7.0 Eng
Workstation 7.0
EN-000168-00
You can find the most up-to-date technical documentation on the VMware 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
Copyright 19982009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark 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
19
1 IntroductionandSystemRequirements 21
ProductBenefits 21 OverviewofThisManual 22 HostSystemRequirements 22 PCHardware 23 Memory 23 Display 23 DiskDrives 24 LocalAreaNetworking 25 HostOperatingSystem 25 VirtualMachineSpecifications 29 Processor 29 ChipSet 29 BIOS 30 Memory 30 Graphics 30 IDEDrives 30 SCSIDevices 30 FloppyDrives 30 Serial(COM)Ports 31 Parallel(LPT)Ports 31 USBPorts 31 Keyboard 31 MouseandDrawingTablets 31 EthernetCard 31 Sound 31 VirtualNetworking 32 SupportedGuestOperatingSystems 32 Supportfor64BitGuestOperatingSystems 36
VMware, Inc.
2 InstallingandUpgradingVMwareWorkstation 39
InstallationPrerequisites 39 SharingaWorkstationHostwithOtherVMwareProducts 40 InstallWorkstationonaWindowsHost 41 InstallWorkstationSilently 42 UninstallWorkstationfromaWindowsHost 44 InstallWorkstationonaLinuxHost 44 UsingCommandLineInstallationOptions 46 UninstallWorkstationfromaLinuxHost 46 PreparingforanUpgrade 47 UpgradeWorkstationonaWindowsHost 48 UpgradingtoaWindowsVistaandWindows7Host 49 UpgradeWorkstationonaLinuxHost 50
3 LearningWorkstationBasics 53
StartWorkstationonaWindowsHost 53 StartWorkstationonaLinuxHost 54 OverviewoftheWorkstationWindow 54 HomePageandViews 56 ToolbarButtons 59 ViewtheSidebar 62 FavoritesListintheSidebar 62 CheckforProductUpdates 65 QuicklyCreateaVirtualMachineandInstallanOperatingSystem 65 IntroductiontoWorkstationPreferences 66 IntroductiontoVirtualMachineSettings 68 HardwareTab 68 OptionsTab 69 ClosingVirtualMachinesandExitingWorkstation 70 SetaVirtualMachinetoRunintheBackground 71 KeyboardShortcuts 71 ChangetheHotKeyCombination 73 GatheringInformationforVMwareTechnicalSupport 74 RegisterandCreateaSupportRequest 74 GatherDebuggingInformationforaVirtualMachine 74 RunningtheSupportScript 75
VMware, Inc.
Contents
4 CreatingandUpgradingaVirtualMachine 79
MethodsofCreatingVirtualMachines 79 ConfigurationOptionsfortheNewVirtualMachineWizard 80 EasyInstallFeatureforSomeGuestOperatingSystems 80 TypicalComparedtoCustomConfigurations 81 GuestOperatingSystemSelection 82 VirtualMachineLocation 83 VirtualHardwareCompatibilityLevels 84 NumberofProcessors 84 MemoryAllocation 84 NetworkConnectionType 84 I/OAdapterTypes 85 DiskTypes 86 NormalandIndependentDiskModes 86 VirtualDisksandPhysicalDisks 86 DiskCapacity 87 PocketACEDiskSizeCalculatoronWindowsOnly 87 UsetheNewVirtualMachineWizard 87 InstallingaGuestOperatingSystem 88 InstallationRequirementsforESXGuestOperatingSystem 88 RespondtoEasyInstallPrompts 89 InstallaGuestOperatingSystemManually 90 UseaParavirtualizedKernelinLinuxGuests 91 UpgradeaGuestOperatingSystem 92 ChangetheVersionofaVirtualMachine 93 UsinganOlderVersionVirtualMachineWithoutUpgrading 95 FilesThatMakeUpaVirtualMachine 95
5 InstallingandUsingVMwareTools 99
ComponentsofVMwareTools 99 VMwareToolsService 100 VMwareDeviceDrivers 100 VMwareUserProcess 101 VMwareToolsControlPanel 101 InstallingVMwareTools 102 InstallVMwareToolsinaWindowsGuest 102 ConfiguretheVideoDriveronOlderVersionsofWindows 103 AutomatetheInstallationofVMwareToolsinaWindowsGuest 104
VMware, Inc.
InstallVMwareToolsonaLinuxGuest 106 InstallVMwareToolsinaSolarisGuest 108 InstallVMwareToolsinaFreeBSDGuest 109 InstallVMwareToolsinaNetWareVirtualMachine 110 StarttheVMwareUserProcessManuallyIfYouDoNotUseaSessionManager onUNIX 111 VMwareToolsUpdateProcess 112 HowAutomaticUpdatesOccur 112 HowYouAreNotifiedtoDoaManualUpdate 113 UseGlobalSettingstoUpdateVMwareToolsAutomatically 113 SetAutoupdateOptionsforEachVirtualMachine 114 UpdateVMwareToolsinOlderWindowsVirtualMachines 114 UninstallVMwareTools 115 RepairorChangeInstalledModulesinaWindowsGuest 115 OpentheVMwareToolsControlPanel 116 UsetheWindowsControlPaneltoDisplaytheTaskbarIcon 116 OptionsTabSettings 117 DevicesTabSettings 119 ScriptsTabSettings 119 ShrinkTabSettings 119 AboutTab 120 ConfigureVMwareToolsinaNetWareGuest 120 CustomizationstoVMwareTools 121 HowVMwareToolsScriptsAffectPowerStates 122 ExecuteCommandsAfterYouPowerOfforResetaVirtualMachine 125 PassingaStringfromtheHosttotheGuestatStartup 125 PassingInformationBetweentheGuestandAnotherProgram 128 UsetheVMwareToolsServiceCommandLineInterface 128
6 CreatingaVirtualMachinefromaSystemImageorAnotherVirtual
Machine 131
ConversionProcessforImportingfromOtherFormats 131 VMwareConverterComparedtotheConversionWizard 133 SupportedSourceMachines 133 OperatingSystemCompatibility 134 ImportingfromVariousSources 134 SupportedDestinations 138 DesignatingaDestinationforaVirtualMachine 138 ConversionImpactonSettings 140
6 VMware, Inc.
Contents
142
7 GettingStartedwithVirtualMachines 145
StartingaVirtualMachine 145 StartaVirtualMachinefromtheWorkstationUserInterface 146 StartaVirtualMachineThatIsRunningintheBackground 146 StartaVirtualMachinebyUsingVMStreaming 147 VirtualMachineLocation 148 ShutDownaVirtualMachine 148 ConfigurePowerOffandResetOptionsforaVirtualMachine 149 DownloadComponents 150 PausingaVirtualMachine 151 PauseFeatureLimitations 151 PauseandUnpauseaVirtualMachine 152 EncryptingaVirtualMachine 152 RestrictionsonEncryption 153 EncryptaVirtualMachine 154 RemoveEncryptionfromaVirtualMachine 154 ChangethePasswordforanEncryptedVirtualMachine 154 DeleteaVirtualMachine 155 ControllingtheVirtualMachineDisplay 155 UsingUnityMode 156 UseFullScreenMode 159 UseQuickSwitchMode 161 UseExclusiveMode 162 UseMultipleMonitorsforOneVirtualMachine 163 UseMultipleMonitorsforMultipleVirtualMachines 165 FittingtheWorkstationConsoletotheVirtualMachineDisplay 166 WorkingwithNonstandardResolutions 167 ConfiguringVideoandSound 168 SettingScreenColorDepth 168 SupportforDirect3DGraphics 169 ConfiguringSound 171 InstallNewSoftwareinaVirtualMachine 175 DisableAccelerationIfaProgramDoesNotRun 175 ReportBatteryInformationintheGuest 176
VMware, Inc.
UseHostPrintersinaVirtualMachine 176 UseRemovableDevicesinaVirtualMachine 177 ConfiguretheApplianceViewforaVirtualMachine 178 CreateaScreenshotofaVirtualMachine 179 CreateandPlayBackaMovieofaVirtualMachine 180 AdvancedOptionsforApplicationDevelopers 181
8 TransferringFilesandTextBetweentheHostandGuest 183
UsingtheDragandDropFeature 183 EnableorDisabletheDragandDropFeature 184 UsingtheCopyandPasteFeature 185 EnableorDisabletheCopyandPasteFeature 185 UsingSharedFolders 186 SetUpSharedFolders 186 EnablingandDisablingSharedFolders 188 ViewingaSharedFolder 190 PermissionsandFolderMountingforSharedFoldersonLinuxGuests 191 UsingaMappedDrive 193 MaporMountaVirtualDisktoaDriveontheHost 193 DisconnecttheHostfromtheVirtualDisk 195
9 PreservingtheStateofaVirtualMachine 197
UsingtheSuspendandResumeFeatures 197 UseHardSuspendorSoftSuspend 197 SuspendorResumeaVirtualMachine 198 UsingSnapshots 199 ScenariosforUsingMultipleSnapshots 199 InformationCapturedbySnapshots 201 SnapshotConflicts 201 EnableorDisableBackgroundSnapshots 202 ExcludeaVirtualDiskfromSnapshots 203 SnapshotManagerOverview 203 TakeaSnapshot 205 RenameaSnapshotorRecording 206 RestoreanEarlierStatefromaSnapshot 206 DeleteaSnapshotoraRecording 207 TakeorReverttoaSnapshotatPowerOff 208 UsingAutoProtectSnapshots 209
VMware, Inc.
Contents
SnapshotsandWorkstation4VirtualMachines
211
10 Cloning,Moving,andSharingVirtualMachines 213
TheVirtualMachinesUniversalUniqueIdentifier 213 UUIDOptionsWhenYouMoveaVirtualMachine 214 SpecifyaUUIDforaVirtualMachine 214 CloningaVirtualMachine 215 TypesofClones 216 CreatingClones 217 MovingaVirtualMachine 219 HostswithDifferentHardware 219 MoveaVirtualMachinetoaNewLocationoraNewHost 221 MovinganOlderVirtualMachine 222 MovingLinkedClones 222 SharingVirtualMachineswithOtherUsers 222 UsingVNCforRemoteConnectionstoaVirtualMachine 223 ConfigureaVirtualMachineasaVNCServer 223 UseaVNCClienttoConnecttoaVirtualMachine 224 MakeVirtualMachinesAvailableforStreamingfromaWebServer 225 SharingVirtualMachineswithVMwarePlayer 226 StartandExitVMwarePlayer 226 SettingUpVirtualMachinesforUsewithVMwarePlayer 228
11 UsingDisksandDiskDrives 231
VirtualMachineDiskStorage 231 BenefitsofUsingVirtualDisks 232 PhysicalDisks 234 VirtualDiskMaintenanceTasks 234 DefragmentVirtualDisks 235 CompactaVirtualDisk 236 ExpandaVirtualDisk 236 AddingVirtualandPhysicalDiskstoaVirtualMachine 237 AddaNewVirtualDisktoaVirtualMachine 237 AddanExistingVirtualDisktoaVirtualMachine 239 RemoveaVirtualDiskfromaVirtualMachine 239 UsingPhysicalDisksinaVirtualMachine 240 AddingDVD/CDROMandFloppyDrivestoaVirtualMachine AddDVDorCDDrivestoaVirtualMachine 246
246
VMware, Inc.
249
12 RecordingandReplayingVirtualMachineActivity 253
UsesoftheRecord/ReplayFeature 253 PhysicalandVirtualHardwareRequirements 254 ConfigureRecord/ReplayforaVirtualMachine 255 RecordControlDialogBoxFeatures 257 ReplayControlDialogBoxFeatures 258 CreateaRecording 260 ReplayaRecording 261 BrowseaRecording 262 UsinganExecutionTraceFileofaRecording 262 EnableExecutionTracingforaRecording 263 CreateanExecutionTraceFileofaRecording 263 MaintenanceTasksforUsingRecordings 264 DeleteaRecording 264 DisablePeriodicScreenshots 264
13 ConfiguringTeams 267
BenefitsofUsingTeams 267 ManagingTeams 268 CreateaTeam 268 OpenaTeamandAddIttotheFavoritesList 269 RenameaTeam 270 PowerOfforCloseaTeam 270 DeleteaTeam 271 SummaryandConsoleViewsforTeamsandTheirVirtualMachines 271 ManagingtheMembersofaTeam 272 AddaVirtualMachinetoaTeam 272 RemoveaVirtualMachinefromaTeam 273 SpecifytheStartupSequenceforaTeam 273 PowerOperationsforTeamsandTheirMembers 274 PowerOnaTeam 274 SuspendorResumeaTeam 275
10
VMware, Inc.
Contents
PerformPowerOperationsonOneTeamMember 275 WorkingwithTeamNetworks 276 LANSegmentRequirementsRegardingIPAddresses 276 CreateaTeamLANSegment 276 ConfigureLANSegments 277 AddorRemoveNetworkAdapters 277 DeleteaLANSegment 278 CloningandTakingSnapshotsofTeamVirtualMachines 278
14 ConfiguringaVirtualNetwork 281
ComponentsoftheVirtualNetwork 281 VirtualSwitch 281 DHCPServer 282 NetworkAdapter 282 CommonNetworkingConfigurations 282 BridgedNetworking 283 NetworkAddressTranslation(NAT) 285 HostOnlyNetworking 286 ExampleofaCustomNetworkingConfiguration 287 SetUpaCustomNetworkingConfiguration 288 ChangingaNetworkingConfiguration 290 FindtheNetworkTypeofaVirtualMachine 291 AddVirtualNetworkAdapters 291 ModifyExistingVirtualNetworkAdapters 292 ConfiguringBridgedNetworking 292 ConfigureVMnet0AutomaticBridgedNetworkingonaWindowsHost 292 Configurevmnet0AutomaticBridgedNetworkingonaLinuxHost 294 SettingUpaSecondAutomaticBridgedNetworkInterface 295 ChangingtheSubnetorDHCPSettingsforaVirtualNetwork 295 ChangeSubnetorDHCPSettingsonaWindowsHost 296 ChangeSubnetorDHCPSettingsonaLinuxHost 296 ConfiguringHostVirtualNetworkAdapters 297 ConnectorDisconnectaHostVirtualNetworkAdapter 297 SettingUpTwoSeparateHostOnlyNetworks 298
15 AdvancedVirtualNetworking 299
SelectingIPAddressesonaHostOnlyNetworkorNATConfiguration 299 HowtheSubnetNumberIsAssigned 300
VMware, Inc.
11
DeterminingWhethertoUseDHCPorStaticallyAssignAddresses 300 DHCPConventionsforAssigningIPAddresses 301 ConfiguretheDHCPServeronaWindowsHost 301 ConfiguretheDHCPServeronaLinuxHost 302 AvoidingIPPacketLeakageinaHostOnlyNetwork 302 DisablePacketForwardingonWindowsHosts 303 DisablePacketForwardingonLinuxHosts 303 MaintainingandChangingtheMACAddressofaVirtualMachine 304 AvoidingMACAddressChanges 304 AssigntheSameMACAddresstoAnyVirtualMachineManually 305 ControllingRoutingInformationforaHostOnlyNetworkonLinux 306 PotentialIssueswithHostOnlyNetworkingonLinux 306 DHCPDontheLinuxHostDoesNotWorkAfterInstallingWorkstation 306 DHCPandDDNS 307 ConfiguringHostOnlyVirtualMachines 307 SetUpUsingConfiguration1or2 308 SetUpUsingConfiguration3 308 CompleteConfiguringtheVirtualNetworkAdapters 309 SetUpRoutingBetweenTwoHostOnlyNetworks 309 UsingVirtualNetworkAdaptersinPromiscuousModeonaLinuxHost 311 UsingNAT 312 HowtheNATDeviceUsestheVMnet8VirtualSwitch 312 DHCPontheNATNetwork 313 DNSontheNATNetwork 313 ExternalAccessfromtheNATNetwork 314 AdvancedNATConfiguration 314 ConfigureNATonaWindowsHost 315 CustomNATandDHCPConfigurationonaWindowsHost 315 SpecifyingConnectionsfromPortsBelow1024 316 ConfiguringNATonaLinuxHost 316 ConsiderationsforUsingNAT 319 UsingNATwithNetLogon 319 SampleLinuxnat.confFile 322 UsingSambawithWorkstation 324 AddUserstotheSambaPasswordFile 324 UsingaSambaServerforBridgedandHostOnlyNetworks 324 UseSambaWithoutNetworkAccess 325
12
VMware, Inc.
Contents
16 ConnectingDevices 327
UsingParallelPorts 327 AddaVirtualParallelPorttoaVirtualMachine 328 TroubleshootECRErrorsforParallelPorts 328 ConfiguringaParallelPortonaLinuxHost 329 UsingSerialPorts 330 AddaVirtualSerialPorttoaVirtualMachine 331 ChangetheInputSpeedoftheSerialConnection 333 DebuggingoveraVirtualSerialPort 333 ConfiguringKeyboardFeatures 335 UsetheEnhancedVirtualKeyboardforWindowsHosts 335 HotKeysforVirtualMachines 335 SpecifyaLanguageKeyboardMapforVNCClients 336 KeyboardMappingonaLinuxHost 337 UsingUSBDevicesinaVirtualMachine 346 EnabletheUSB2.0ControllerforaVirtualMachine 347 AddaUSBControllertoaVirtualMachine 347 ConnectingUSBDevices 348 USBDriverInstallationonaWindowsHost 350 AccessandUseaUSBDeviceonaLinuxHost 351 HowDeviceControlIsSharedBetweenHostandGuest 351 DisconnectingUSBDevicesfromaVirtualMachine 352 UseSmartCardswithVirtualMachines 353 SwitchtoUsingtheVirtualSmartCardReaderonLinuxHosts 355 DisableSmartCardSharing 355 SupportforGenericSCSIDevices 356 InstallingRequiredAdaptersorDriversforSomeWindowsGuests 357 AvoidingConcurrentAccessonLinuxHosts 358 AddaGenericSCSIDevicetoaVirtualMachine 358 TroubleshootProblemsDetectingGenericSCSIDevices 359 UseFourWayVirtualSymmetricMultiprocessing 361 UseaVirtualMachineThatOriginallyHadMoreThanTwoVirtual Processors 362
17 SpecialPurposeConfigurationOptionsforWindowsHosts 363
RestrictingtheUserInterface 363 EnabletheRestrictedUserInterface 364 RestricttheUserInterfaceandReturntoaSnapshot 364
VMware, Inc.
13
DisabletheRestrictedUserInterface 365 MakingaVirtualMachineAlwaysUseFullScreenSwitchMode 366 CreateaVirtualMachineforUseinFullScreenSwitchMode 366 MovingaVirtualMachinetoaUsersComputer 367 ConfiguringHotKeysforFullScreenSwitchMode 367 UsingvmwarefullscreentoRunaVirtualMachine 372 GuestACPIS1Sleep 374
18 LearningtheBasicsofVMwareACE 377
BenefitsofUsingVMwareACE 377 KeyFeaturesofVMwareACE 378 VMwareACETerminology 379 NetworkandDiskSpaceRequirementsfortheAdministrativeWorkstation 379 OverviewofCreatingandDeployingACEPackages 380 OverviewoftheACEUserInterface 382 TroubleshootingUsersProblems 382
19 SettingandUsingPoliciesandCustomizingVMwarePlayer 385
BenefitsofUsingPolicies 386 SetPoliciesforACEInstances 386 SettingAccessControlPolicies 387 CreateorEditanAccessControlPolicy 387 ActivationSettings 388 AuthenticationSettings 389 UsinganAuthenticationScript 389 IncludeaPowerOnandPowerOffScriptinthePackage 390 SetaRecoveryKeyforEncryptedACEInstances 391 SetActivationLimit 392 ActiveDirectoryPasswordChangeProxying 392 SettingHosttoGuestDataScriptPolicies 393 SpecifyaScriptandaCommandtoRunIt 394 SettingExpirationPolicies 395 SettingCopyProtectionPolicies 396 SettingResourceSigningPolicies 396 SettingNetworkAccessPolicies 397 BeforeYouBeginSettingHostPolicies 397 UsetheNetworkAccessWizardtoConfigureNetworkAccess 398 GuidelinesforSpecifyingZoneConditions 399
14
VMware, Inc.
Contents
UsingtheRulesetEditortoConfigureHostandGuestAccess 402 ChangeNATSettings 404 ConfigureWhichPhysicalNetworkAdaptertoUse 405 UnderstandingtheInteractionofHostandGuestAccessFilterswithTunneling Protocols 405 UpdatingaNetworkAccessPolicy 406 SettingRemovableDevicesPolicies 406 SettingUSBDevicePolicies 406 AccessLevelsforUSBDevices 406 SetanAccessPolicyforUSBDevices 407 SettingVirtualPrinterPolicies 408 SettingRuntimePreferencesPolicies 409 RuntimePreferencesSettings 409 EnhancedVirtualKeyboardSettings 410 ExitBehaviorSettings 410 PocketACECacheSettings 411 SettingSnapshotPolicies 411 SettingAdministratorModePolicies 412 UseAdministratorModeonanACEInstance 413 SettingKioskModePolicies 413 ChangetheKeyCombinationforExitingKioskMode 414 SettingHotFixPoliciesforStandaloneACEInstances 414 SettingthePolicyUpdateFrequencyforManagedACEInstances 415 ControlWhichACEInstancesRunonaHost 415 WritingPlugInPolicyScripts 417 ExamplesofPolicyScripts 418 CustomizingtheVMwarePlayerInterfaceonWindowsHostsOnly 422 CreateandSpecifyaSkinFile 422 CustomizingtheVMwarePlayerIcons 423 CustomizingtheTitleBarText 423 CustomizingtheRemovableDeviceDisplay 424 ShortcutKeyValues 425 SampleSkinFile 426
20 DeployingACEPackages 429
EditDeploymentSettings 429 EncryptionSettings 430 PackageLifetimeSettings 430 InstanceCustomizationonWindowsHostsOnly 431
VMware, Inc. 15
CustomEULASettings 439 DeploymentPlatformSettings 439 ACEResourcesDirectory 439 ReviewtheConfigurationofanACEEnabledVirtualMachine 440 UsePreviewModetoTestPolicyandDeploymentSettings 441 CreatingaPackage 443 OverviewofPackageCreationandValidation 443 TurnOfftheVMwareToolsCheckforTestDeployments 444 PrerequisitesforUsingthePackagingWizards 445 UsetheNewPackageWizard 446 ViewPackagePropertiesandAddNotes 448 PerformanEndtoEndDeploymentTest 448 DeployPackages 449
21 PocketACE 451
UseCasesforPocketACE 451 PortableDeviceRequirements 453 PoliciesandDeploymentSettingsforPocketACE 453 CreateaPocketACEPackage 454 DeployingtheACEPackageonaPortableDevice 455 UsetheGraphicalUtilitytoDeployPocketACEPackages 455 UsetheCommandLineUtilitytoDeployPocketACEPackages RunthePocketACEInstance 457
456
22 InstallingACEPackages 459
InstallinganACEPackageonaWindowsHost 459 InstallanACEInstanceonaSingleWindowsHost 459 InstallinganACEPackageSilentlyonMultipleWindowsHosts 460 UninstallVMwarePlayeroranACEinstancefromaWindowsHost 462 InstallinganACEPackageonaLinuxHost 463 ManuallyInstallVMwarePlayeronaLinuxHost 463 InstalltheACEInstanceonaSingleLinuxHost 464 InstallanACEPackageSilentlyonMultipleLinuxHosts 465 PrepareaLinuxHostforRunninginKioskMode 465 UninstallVMwarePlayeroranACEInstancefromaLinuxHost 466 UpgradingACEInstancestoACE2.6 467 StartandUseanACEInstance 467 ChangeDefaultKioskModeStartupBehavior 468
16
VMware, Inc.
Contents
UseMultipleVirtualMachinesinKioskMode 470 InstallanACEClientLicense 471 ChangetheACEClientLicense 471 QuitVMwarePlayer 472 TroubleshootingTools 472 UsingthevmwareacetoolCommandLineTool 472 RespondtoHotFixRequests 474 TroubleshootingSetupIssues 475
A WorkstationCommandLineReference 477
StartupOptionsforWorkstationandVirtualMachines UsingStartupOptionsinaWindowsShortcut 478 477
Glossary
481
Index 487
VMware, Inc.
17
18
VMware, Inc.
Intended Audience
Thisbookisintendedforanyonewhoneedstoinstall,upgrade,oruseVMware Workstation.Workstationuserstypicallyincludepeoplewhodosoftwaredevelopment andtestingorworkwithmultipleoperatingsystemsorcomputingenvironments: softwaredevelopers,QAengineers,trainers,salespeoplewhorundemos,andanyone whowantstocreatevirtualmachines.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhave comments,sendyourfeedbacktodocfeedback@vmware.com.
VMware, Inc.
19
Support Offerings
TofindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds,goto http://www.vmware.com/support/services.
20
VMware, Inc.
Product Benefits
Workstationisusedinthesoftwaredevelopment,qualityassurance,training,sales,and ITfields. Workstationstreamlinessoftwaredevelopmentandtesting:
WorkstationenhancesproductivityofITprofessionals:
VMware, Inc.
21
Workstationfacilitatescomputerbasedtrainingandsoftwaredemos:
22
VMware, Inc.
Fordefinitionsoftheseandotherspecialterms,seeGlossaryonpage 481.
PC Hardware
Memory
Youneedenoughmemorytorunthehostoperatingsystem,plusthememoryrequired foreachguestoperatingsystemandforapplicationsonthehostandguest.The minimummemoryrequirementis1GB,VMwarerecommendstohave2GBandabove. Formoreinformationonmemoryrequirements,seeyourguestoperatingsystemand applicationdocumentation. Asofversion7.0ofWorkstation,thetotalamountofmemoryyoucanassigntoall virtualmachinesrunningonasinglehostislimitedonlybytheamountofRAMonthe host.Themaximumamountofmemoryforeachvirtualmachineis32GB. FormemoryrequirementstosupportWindows7Aerographics,see RecommendationsforWindows7AeroGraphicsSupportonpage 24.
Display
16bitor32bitdisplayadapterisrecommended.Fordisplayrequirementstosupport Windows7Aerographics,seeRecommendationsforWindows7AeroGraphics Supportonpage 24.
VMware, Inc.
23
CPU
IntelDualCore,2.2GHzandabove AMDAthlon4200+andabove
HostGCPU
nVidiaGeForce8800GTandabove ATIRadeonHD2600andabove
Memoryatleast3GBofhostsystemmemory,1GBofmemoryallocatedtothe guestoperatingsystem,and256MBgraphicsmemory.
Disk Drives
Guestoperatingsystemscanresideonphysicaldiskpartitionsorinvirtualdiskfiles.
Hard Disks
Floppy Drives
Virtualmachinescanconnecttothehostsdiskdrives.Floppydiskimagefilesarealso supported.
24
VMware, Inc.
VMware, Inc.
25
26
VMware, Inc.
VMware, Inc.
27
28
VMware, Inc.
Processor
SeeUseFourWayVirtualSymmetricMultiprocessingonpage 361.
Chip Set
VMware, Inc.
29
BIOS
PhoenixBIOS4.0Release6withVESABIOS
Memory
Youcanallocateupto32GBofmemoryforavirtualmachine,dependingonhost memory. Nomaximumlimitforthetotalavailableforallvirtualmachines.
Graphics
VGAandSVGAaresupported.
IDE Drives
SCSI Devices
Floppy Drives
Uptotwo1.44MBfloppydevices. Physicaldrivesorfloppyimagefiles.
VMware, Inc.
30
Uptofourserial(COM)ports. Outputtoserialports,WindowsorLinuxfiles,ornamedpipes.
Uptothreebidirectionalparallel(LPT)ports. Outputtoparallelportsorhostoperatingsystemfiles.
USB Ports
Keyboard
104keyWindows95/98enhanced
Ethernet Card
Sound
Soundoutputandinput.
VMware, Inc.
31
EmulatesCreativeLabsSoundBlasterAudioPCI.(DoesnotsupportMIDIinputor gameportcontroller/joysticks.)
Virtual Networking
32
VMware, Inc.
VMware, Inc.
33
34
VMware, Inc.
VMware, Inc.
35
36
VMware, Inc.
Workstationsupportsvirtualmachineswith64bitguestoperatingsystemsonlyon hostmachinesthathaveoneofthesupported64bitprocessors.Whenyoupowerona virtualmachinewitha64bitguestoperatingsystem,Workstationperformsaninternal check.IfthehostCPUisnotasupported64bitprocessor,youcannotpoweronthe virtualmachine. VMwarealsoprovidesastandaloneutilitythatyoucanusewithoutWorkstationto performthesamecheckanddeterminewhetheryourCPUissupportedfor Workstationvirtualmachineswith64bitguestoperatingsystems.Downloadthe64bit processorcheckutilityfromthedownloadsareaoftheVMwareWebsite. Workstationsupportsvirtualmachineswith64bitguestoperatingsystemsonlyin versions5.5andlater.IfyourversionofWorkstationis5.0orearlier,upgradetoversion 6.0orlaterfor64bitguestoperatingsystemsupport.Avirtualmachinecreatedin Workstationversion5.5witha64bitoperatingsystemcannotbepoweredonor resumedinWorkstationversions5.0andearlier.
VMware, Inc.
37
38
VMware, Inc.
Installation Prerequisites
InstallingVMwareWorkstationisusuallyasimpleprocessofrunningastandard installationwizard. Beforeyouruntheinstallationprogram,besureyouhavethefollowing:
AcompatiblehostVerifythatthecomputerandhostoperatingsystemmeetthe systemrequirementsforrunningWorkstation.SeeHostSystemRequirements onpage 22. WorkstationinstallationsoftwareIfyouhavethepackageddistributionof Workstation,theinstallationsoftwareisontheinstallationmediainyourpackage. Ifyouhavetheelectronicdistribution,theinstallationsoftwareisinthefileyou downloaded. WorkstationisavailableforWindowsandLinuxhostcomputers.Theinstallation filesforbothhostplatformsareincludedinthepackageddistribution.
VMware, Inc.
39
WorkstationorVMwareACEserialnumberYourserialnumberisonthe registrationcardinyourpackage.IfyoupurchasedWorkstationorVMwareACE online,theserialnumberissentbyemail. YourserialnumberallowsyoutouseWorkstationonlyonthehostoperating systemforwhichyoulicensedthesoftware.Forexample,ifyouhaveaserial numberforaWindowshost,youcannotrunthesoftwareonaLinuxhost. Youneedonelicenseforeachuser. TouseWorkstationonadifferenthostoperatingsystem,purchasealicenseonthe VMwareWebsite.Youcanalsoobtainanevaluationlicenseatnochargefora 30dayevaluationofthesoftware.Formoreinformation,gototheVMwareWeb site. IfyoudonotentertheWorkstationserialnumberatinstallationtime(anoption availableonaWindowshost),youarepromptedtoenteritthefirsttimeyou attempttopoweronavirtualmachine.
AguestoperatingsystemAfterWorkstationisinstalled,youneedtheoperating systeminstallationCDs,DVDs,orISOimagefilestosetupaguestinavirtual machine. (Optional)EclipseorMicrosoftVisualStudioToinstalltheEclipseorVisual StudioIntegratedVirtualDebuggerpluginsincludedwithWorkstation,Eclipse orVisualStudiomustbeinstalledonthehostbeforeyouruntheWorkstation installer.IfyouinstalloneorbothoftheseprogramsafteryouinstallWorkstation, runtheWorkstationinstalleragainandselecttheModifyoptiontoinstallthe pluginsatthattime. FormoreinformationaboutsupportedversionsofVisualStudioandEclipse,see thefollowingguides:
IntegratedVirtualDebuggerforEclipseDevelopersGuide IntegratedVirtualDebuggerforVisualStudioDevelopersGuide
40
VMware, Inc.
Afteryoucompletetheprerequisitesanddeterminewhichcomputeryouwanttouse forhostingWorkstation,seetheappropriateplatformspecificinstallationtopic.
VMware, Inc.
41
Followtherestofthewizardprompts.
Someinstallationsmightrequirethatyourebootyourcomputer.Whenyourestart,you donotneedtologinasauserwithAdministratorprivileges.
42
VMware, Inc.
ToinstallWorkstationinalocationotherthanthedefault,changethepaththat followsINSTALLDIR=tospecifythelocation. UsetheoptionalREMOVE=<property>toskipinstallationofcertainfeatures. The REMOVE=<property>settingcantakeoneormoreofthevalueslistedin Table 21. Table 2-1. Values for the REMOVE Property
Value Authd Network Description VMwareauthorizationservice,whichisusedtoperformtaskswhenyouare notrunningWorkstationasanAdministratoruser. Networkingcomponents,includingthevirtualbridgeandthehostadapters forhostonlynetworkingandNATnetworking.Donotremovethis componentifyouwanttouseNATorDHCP. VirtualDHCPserver. VirtualNATdevice.
DHCP NAT
Ifyouspecifymorethanonevalue,useacommatoseparatethevalues. For example,REMOVE=Authd,NAT. IfyouspecifyREMOVE=Network,theinstallerskipsinstallationofcertain networkingcomponents,includingNATandDHCP.Youdonotneedtospecify DHCPorNATseparately. Youcancustomizetheinstallationfurtherbyusingtheformat <property>="<value>"toaddanyoftheinstallationpropertieslistedin Table 22tothecommand.Avalueof1meanstrue.Avalueof0meansfalse.Ifyou usetheserialnumberproperty,entertheserialnumberwithhyphens (xxxxxxxxxxxxxxxxxxxx).
VMware, Inc.
43
44
VMware, Inc.
Thebundleinstallerletsyouinstalltheproductinonestep.IftheGUIbasedinstaller fails,runtheinstallerfilewiththe--consoleoptioninyourterminal. NOTEOnRedHatEnterpriseLinux5.1hostsandpossiblysomeotherLinux distributions,thebundlebasedinstallerlaunchesacommandlinewizardratherthan aGUIwizard. VMware-Workstation-<xxxx-xxxx>.<architecture>.bundleisthenameofthe installerfile.Inthename,<xxxx-xxxx>isaseriesofnumbersthatrepresenttheversion andbuildnumbers,and<architecture>isi386or.x86_64. To install Workstation on a Linux host 1 2 LogintoyourLinuxhostwiththeusernameyouplantousewhenrunning Workstation. Inaterminalwindow,becomeroottoperformtheinitialinstallationsteps: suorsudo ThecommandyouusedependsonyourLinuxdistributionandconfiguration. 3 4 Ifyouareinstallingfromtheinstallationmediainsteadofadownloadedfile, mounttheWorkstationinstallationmedia. Changedirectoriestothedirectorywheretheinstallerfileislocatedandrunthe installationfile:
sh VMware-Workstation-<xxxx-xxxx>.<architecture>.bundle
7 8 9
VMware, Inc.
--gtkOpenstheGUIbasedVMwareinstaller,whichisthedefaultoption. --consoleAllowsyoutousetheterminalforinstallation. --customShowsalltheinstallationquestions.Youcancustomizetheinstallation directories,setorresettheEclipsedirectoriesandhardlimitforthenumberof openfiledescriptors. --regularShowsinstallationquestionsthathavenotbeenansweredbeforeor arerequired.Thisisthedefaultoption. --requiredShowsonlytheEULA,thenproceedstoinstallWorkstation. --ignore-errors or -I Allowstheinstallationtocontinueevenifthereisan errorinoneoftheinstallerscripts.However,thesectionthathasanerrordoesnot complete,sothecomponentmaynotbeproperlyconfigured.
Ifyouusedthebundleinstaller,enterthefollowingcommand:
vmware-installer -u vmware-workstation
EnterYesorNotoconfirmwhetheryouwanttopreserveorremoveyour configurationfiles.
IfyouusedtheRPMinstallertoinstallWorkstation4,5.x,and6.x,enterthe followingcommands:
46
VMware, Inc.
MakesureallvirtualmachinesareWorkstation4,5.x,or6.xvirtualmachines. DirectupgradesfromaWorkstation2or3virtualmachinearenotsupportedin Workstation6.xand7.0. IfavirtualmachinewascreatedwithaversionofWorkstationearlierthan Workstation5.5andithasasnapshot,deletethesnapshotbeforeupgrading. See DeleteaSnapshotoraRecordingonpage 207. ForupgradesfromWorkstation4,5.x,or6.x,ifyoubridged(mapped)virtual networkstospecificphysicalorvirtualadapters,writedownthesettingsyouused. AlthoughWorkstation7.0generallypreservesnetworksettingsduringthe upgrade,itcannotpreservebridgesettingscreatedwithWorkstation4,5.x,or6.x.
Ifanyvirtualmachinesaresuspended,resumethem,shutdowntheguest operatingsystems,andpowerthemoff. Ifanyvirtualmachinesarerunninginthebackground,starttheminWorkstation andpowerthemoff.SeeStartaVirtualMachineThatIsRunninginthe Backgroundonpage 146. Backupthevirtualmachinesbymakingbackupcopiesofallthefilesinthevirtual machinedirectories. Thisincludes.vmdkor.dskfiles,.vmxor.cfgfiles,and.nvram files.Depending onyourupgradepath,youmightnotbeabletorunyourvirtualmachinesunder bothWorkstation7.0andyourpreviousversionofWorkstation.
Poweroffallrunningvirtualmachines.
YoucannowuseoneofthefollowingplatformspecifictaskstoinstallWorkstation:
UpgradeWorkstationonaWindowsHostonpage 48
VMware, Inc.
47
UpgradeWorkstationonaLinuxHostonpage 50
4 5
48
VMware, Inc.
Aftertheupgradeiscomplete,iftheFavoriteslistinWorkstationdoesnotwork correctly,youcanremovethevirtualmachinesfromitandaddthemagain.
VMware, Inc.
49
Aspartoftheupgrade,youmustuninstalltheWorkstation5.xapplication,however theWorkstation5.xvirtualmachinesarenotdeleted. ToupgradeWorkstation5.xonWindowsVistatoWorkstation7.0onWindows Vista 1 2 3 GotoStart>ControlPanel>Programs>Programs and Features>Uninstalla program. SelectVMwareWorkstationandclickUninstall. InstallWorkstation7.0. SeeInstallWorkstationonaWindowsHostonpage 41. 4 (Optional)Toupgradethevirtualmachines,usetheChangeVersionwizardin Workstation7.0. SeeChangetheVersionofaVirtualMachineonpage 93.
50
VMware, Inc.
MakesurethatyouhaveaWorkstation7.0serialnumber.Youarepromptedto enterthe serialnumberafterinstallationiscomplete,thefirsttimeyoustart Workstationaftertheupgrade.AlsoperformthetasksdescribedinPreparingfor anUpgradeonpage 47. IfyourpreviousinstallationwasfromanRPMinstallerandyouwanttoinstall Workstation7.0,manuallyuninstallthepreviousversionofWorkstation.To manuallyuninstallWorkstation,seeUninstallWorkstationfromaLinuxHoston page 46.
IfyoucurrentlyhaveWorkstation4,5.x,or6.xinstalledonyoursystem,theolder versionwillbeuninstalledautomaticallybeforethelatestversionofWorkstationis installed.Workstation7.0savesnetworksettingsexceptforbridgedsettingsusedto mapindividualvirtualnetworkstospecificphysicalorvirtualadapters. NOTEStartingwithWorkstation5.x,Sambaisnolongerautomaticallyconfigured duringinstallation. To upgrade Workstation on a Linux host 1 2 RuntheWorkstationbundleinstallerasyouwouldforanewinstallation. Ifyouusedbridgedsettingstomapvirtualnetworkstospecificphysicalorvirtual adapters,recreatethemappings. AlthoughWorkstation7.0generallypreservesnetworksettingsduringthe upgrade,itcannotpreservemappingscreatedwithWorkstation4,5.x,or6.x. 3 (Optional)Toupgradethevirtualmachines,usetheChangeVersionwizardin Workstation7.0. SeeChangetheVersionofaVirtualMachineonpage 93.
VMware, Inc.
51
52
VMware, Inc.
ThischapterdiscusseslaunchingtheWorkstationprogramandintroducestheVMware Workstationwindow.Thischapterincludesthefollowingtopics:
StartWorkstationonaWindowsHostonpage 53 StartWorkstationonaLinuxHostonpage 54 OverviewoftheWorkstationWindowonpage 54 CheckforProductUpdatesonpage 65 QuicklyCreateaVirtualMachineandInstallanOperatingSystemonpage 65 IntroductiontoWorkstationPreferencesonpage 66 IntroductiontoVirtualMachineSettingsonpage 68 ClosingVirtualMachinesandExitingWorkstationonpage 70 KeyboardShortcutsonpage 71 GatheringInformationforVMwareTechnicalSupportonpage 74
VMware, Inc.
53
If/usr/binisinyourdefaultpath,enterthefollowingcommand:
vmware &
If/usr/binisnotinyourdefaultpath,enterthefollowingcommand:
/usr/bin/vmware &
Readandaccepttheenduserlicenseagreement(EULA).
54
VMware, Inc.
sidebar
status bar
message log
TheVMwareWorkstationwindowcontainsthefollowingsections:
Homepage,summary,console,orapplianceviewMainpartofthewindowthat showsthevirtualmachines. TabsEachopenvirtualmachinehasatab.Clickatabtomakethatvirtual machineactive.ClicktheClosebuttontoclosethetab.Dependingonhowyou configureWorkstation,thevirtualmachineistheneitherpoweredofforcontinues toruninthebackground. SidebarBookmarkyourfavoritevirtualmachinesandteamsofvirtualmachines forquickaccess.Youcanalsoseewhichvirtualmachinesarepoweredon. Rightclickcontextmenusenableyoutoperformmanyoperationsonaselected virtualmachine.AnadditionalsectionofthesidebardisplaysACEManagement Servers. StatusbarDisplaysWorkstationmessagesandaniconforeachremovable device.Youcanclickorrightclickanicontodisconnectitoredititsconfiguration. MessagelogAnoteiconindicateswhetheranyunreadmessagesarepresentin themessagelogfortheselectedvirtualmachine.Iftheiconisdimmed,all messageswereread.Toopenthemessagelog,rightclicktheiconandchoose OpenMessageLog.Alternatively,fromthemenubar,chooseVM>MessageLog. Messagesincludewarninginformationaboutthevirtualmachine,suchasCould notconnecttothefloppydrive.orNobootabledevicewasdetected.Selectan iteminthemessagelogtoseeadetaileddescriptionofthemessage.
VMware, Inc.
55
Home Page
ClicktheHometabtodisplaytheWorkstationhomepage.Usetheiconsonthehome pagetostartcreatinganewvirtualmachineoropenanexistingvirtualmachine. Toclosethehomepage,clicktheXtotherightofthetabsonaWindowshostortheX onthetabonaLinuxhost.Todisplaythehomepageagain,chooseView>GotoHome Tab.
Summary View
Whenyouselectatabforapoweredoffvirtualmachineorteamofmachines, Workstationdisplaysonlyasummaryoftheconfigurationinformationaboutthatitem. Workstationalsodisplaysasummaryforasuspendedvirtualmachineorteam.Click theSummarybuttoninthetoolbaratanytimetoexaminesettingsinthesummary view. Summaryviewsappearonlyforvirtualmachinesthatarecurrentlyopen.SeeStarting aVirtualMachineonpage 145.Thesummaryorconsoleviewremainsvisibleaslong asthevirtualmachineremainsopen. Figure 32showsanexampleofthesummaryview.
56
VMware, Inc.
Console View
Theconsoleviewforanactivevirtualmachineislikethemonitordisplayofaphysical computer.
VMware, Inc.
57
Appliance View
Ifyousetupthevirtualmachinetoactasanappliance,suchasaWebserverwitha browserbasedconsole,youcanspecifythatthedefaultviewisanapplianceview. The applianceviewgivesabriefdescriptionofthetypeofserverorappliance.Italso providesalinkthatopensthebrowseronthehostsystemandconnectstothe appliancesmanagementconsole. Theapplianceviewisavailableonlyforvirtualmachinesthatyoudesignateas appliances.SeeConfiguretheApplianceViewforaVirtualMachineonpage 178.
58
VMware, Inc.
Toolbar Buttons
ThetoolbarareaatthetopoftheVMwareWorkstationwindowcontainsbuttonsyou canclicktopowervirtualmachinesonandoff,changetheWorkstationdisplay,manage snapshots,andrecordvirtualmachineactivity. Figure 3-4. Workstation Toolbars
Power toolbar
Snapshot toolbar
Replay toolbar
View toolbar
ACE toolbar
PowerOffTurnsofftheactivevirtualmachineorteamlikethepowerbuttonon aphysicalPC.YoucanconfigureWorkstationforasoftpoweroff(calledshut down)orahardpoweroff(calledpoweroff).SeeShutDownaVirtualMachine onpage 148orPowerOfforCloseaTeamonpage 270. SuspendStopsavirtualmachineorteaminamannerthatallowsyoutoresume yourworklater.SeeUsingtheSuspendandResumeFeaturesonpage 197. PowerOnorResumePowersonaselectedvirtualmachineorteamthatis poweredoff,orresumesavirtualmachineorteamthatissuspended.SeeStarting aVirtualMachineonpage 145,PowerOnaTeamonpage 274,andUsingthe SuspendandResumeFeaturesonpage 197. ResetResetsavirtualmachineorteamliketheresetbuttononaphysicalPC. See ConfigurePowerOffandResetOptionsforaVirtualMachineonpage 149.
TheSnapshottoolbarcontainsthefollowingbuttons:
VMware, Inc. 59
TakeSnapshotEnablesyoutosavethestateofavirtualmachineinthesame manneryoumightsaveawordprocessingdocument.Youcanreturntothatstate ifyoumakeamistakebyusingtheRevertbutton.SeeUsingSnapshotson page 199. RevertAllowsyoutoreturnavirtualmachinetotheparentstate,astate previouslypreservedbytakingasnapshot.SeeUsingSnapshotsonpage 199. ManageSnapshotsOpensthesnapshotmanager,whereyoucanviewthevirtual machinesexistingsnapshots,reverttoasnapshot,takeanewsnapshot,andmake aclonefromasnapshot.SeeSnapshotManagerOverviewonpage 203.
TheViewtoolbarcontainsthefollowingbuttons:
ShoworHideSidebarTogglesbetweenshowingandhidingthesidebar. See ViewtheSidebaronpage 62. QuickSwitchEnlargestheWorkstationconsoletocovertheentirehostmonitor. Consoletabsenableyoutoswitchbetweenvirtualmachinesandteamswitha singleclick.SeeUseQuickSwitchModeonpage 161. FullScreenEnlargesthevirtualmachinedisplaytocovertheentirehostmonitor. Thevirtualmachinenolongerappearsinawindow.SeeUseFullScreenMode onpage 159. UnityIntegratesyourfavoriteguestapplicationswithyourhostsdesktopsothat guestapplicationwindowslookjustlikehostapplicationwindows,butwith colorcodedborders.SeeUsingUnityModeonpage 156. SummaryViewDisplaysthesummaryview.SeeSummaryViewonpage 56. ApplianceViewDisplaystheapplianceview.SeeApplianceViewonpage 58. ConsoleViewDisplaystheconsoleview.SeeConsoleViewonpage 57.
TheReplaytoolbarcontainsthefollowingbuttons:
TheACEtoolbar,whichisavailableonWindowshostsonly,containsthefollowing buttons:
EditPoliciesOpensthepolicyeditor. EditDeploymentSettingsOpensthedeploymentsettingseditor.
60
VMware, Inc.
VMware, Inc.
61
ClickClose.
62
VMware, Inc.
Table 3-1.
PoweredoffWorkstation5.xor6.xvirtualmachineorfullclone.To determinetheexactversion,usethesummaryviewsVersionfield. Poweredoffvirtualmachinecreatedasalinkedcloneofanothervirtual machine. Poweredoffteamofvirtualmachines.
PoweredoffWorkstation4virtualmachine.
Poweredonindicatorcanappearforvirtualmachinesandteams.
Suspendedindicatorcanappearforvirtualmachinesandteams.
VMware, Inc.
63
DraganddropFavoritesitemsinthedesiredfolder.
Powered On List
Thislistinthesidebarenablesyoutofindoutwhichvirtualmachinesorteamsare currentlypoweredon.RightclickitemsinthePoweredOnlisttodisplayamenuof commandsyoucanuseforthatvirtualmachineorteam.
64
VMware, Inc.
VMware, Inc.
65
Forinstructions,seeStartWorkstationonaWindowsHostonpage 53orStart WorkstationonaLinuxHostonpage 54. 3 4 5 6 ChooseFile>New>VirtualMachine. OntheWelcomepage,selectTypicalandclickNext. OntheGuestOperatingsystemInstallationpage,selectInstallerdiscorInstaller discimagefile,asappropriate,andclickNext. CompletethefieldsontheEasyInstallInformationpage. Specifyingapasswordisoptional.OnWindows,thepasswordyouenterhereis usedforanaccountwithAdministratorpermissions.OnWindows2000,the passwordisusedfortheAdministratoraccount. 7 Acceptthedefaultsontherestofthewizardpages. ThevirtualmachineiscreatedanditsnameisaddedtotheFavoriteslist. Theconsoleviewforthevirtualmachineappears.Soonthebootdevice(suchasthe CDROM)isdetectedandinstallationoftheoperatingsystembegins. OnWindows2000guests,ifyouenteredapasswordwhencompletingtheNewVirtual Machinewizard,thenwhentheoperatingsystemstartsup,itmightpromptyouto enteranAdministratorpassword.Usethepasswordthatyoucreatedwhencompleting theNewVirtualMachinewizard. Afterinstallationisfinished,VMwareToolsisautomaticallyinstalled. Nowthatyouhaveavirtualmachinewithaguestoperatingsysteminstalled,youcan refertoitasyoureadtherestofthetopicsinthischapter.
66
VMware, Inc.
WorkspacetabLetsyouconfigurethefollowingsettings:
LocationsectionLetsyouchangethedirectoryinwhichnewlycreated virtualmachinesarestored.SeeVirtualMachineLocationonpage 83and FilesThatMakeUpaVirtualMachineonpage 95. VirtualMachinessectionSeveraloftheseoptionshavetodowithexiting Workstationwhileleavingsomevirtualmachinespoweredon.SeeClosing VirtualMachinesandExitingWorkstationonpage 70.Forinformationabout enablingsharedfolders,seeSetUpSharedFoldersonpage 186. SoftwareUpdatessectionSeeCheckforProductUpdatesonpage 65.
InputtabLetsyouadjustthewaythevirtualmachinecapturescontrolof keyboardandmouse.Forexample,bydefaultthevirtualmachinegrabskeyboard andmouseinputwhenyouclickinthevirtualmachinewindow. HotKeystabLetsyouspecifythekeycombinationthatisusedwithhotkey sequencesforallyourvirtualmachines.Usehotkeycombinationstoenterand leavefullscreenmode,ungrabmouseandkeyboardinput,andsoon.See KeyboardShortcutsonpage 71. DisplaytabLetsyouadjustthemannerinwhichtheconsoleandthehostdisplay accommodateadifferentguestoperatingsystemdisplayresolution. AlsoseeFittingtheWorkstationConsoletotheVirtualMachineDisplayon page 166andUseFullScreenModeonpage 159.
VMware, Inc.
67
Hardware Tab
UsetheHardwaretabtoadd,remove,andconfigurevirtualdevicesfortheselected virtualmachine.
68
VMware, Inc.
memory device
Help button
Options Tab
TheOptionstabletsyouadjustcharacteristicsoftheselectedvirtualmachine:
VMware, Inc.
69
General options
70
VMware, Inc.
WhenyoucloseataborexitWorkstation,younolongerreceiveaprompt.
Keyboard Shortcuts
YoucanusekeyboardshortcutstointeractwithWorkstationandwithvirtual machines.MostoftheavailablekeyboardshortcutsforWorkstationarelistednextto theirassociatedcommandsinWorkstationmenus. Hotkeys,orkeyboardshortcutsforinteractionswithvirtualmachines,areshownin Table 32.Hotkeycombinationscanbeusedtodothefollowing:
VMware, Inc.
Switchbetweenvirtualmachines Enterandleavefullscreenmode
71
Bydefault,mosthotkeycombinationsincludeCtrl+Alt,butyoucanchangethis combination.SeeChangetheHotKeyCombinationonpage 73. IfyouchangethePreferencessettingforthehotkeycombination,substituteyournew settingforCtrl+AltasneededintheshortcutslistedinTable 32.Forexample,ifyou changethehotkeycombinationtoCtrl+Shift+Alt,youmustpress Ctrl+Shift+Alt+spacebartohaveWorkstationnotprocessacommand. Table 3-2. Hot-Key Combinations
Action Grabinputfromkeyboardandmouse. Releasethemousecursor.Ifthevirtualmachineisinthetypeoffull screenmodecalledexclusivemode,pressingCtrl+Altchangesthevirtual machinefromexclusivemodetowindowedmode. Shutsdownor(dependingupontheguestoperatingsystem)logsoutof theguest.Thiscommandisreceivedsolelybythevirtualmachine. Note:ForthisandallshortcutsthatincludeCtrl+Alt,changingthe hotkeycombinationchangesthesequenceyouneedtouse.Forinstance, ifyouchangethehotkeycombinationtoCtrl+Shift+Alt,youmustpress Ctrl+Shift+Alt+Inserttoendtheguestoperatingsystemsession.
Ctrl+Alt+Insert
Ctrl+Alt+Delete
Ctrl+Alt+spacebar
72
VMware, Inc.
VMware, Inc.
73
74
VMware, Inc.
To gather debugging information for a virtual machine 1 2 3 4 5 Selectthevirtualmachine. Makesurethevirtualmachineispoweredofforsuspended. ChooseVM>Settings. OntheOptionstab,selectAdvanced. SelectfromtheGatherdebugginginformationdropdownmenuortheLog virtualmachineprogressperiodicallycheckbox,asdirectedbyVMwaretechnical support. Usingfulldebuggingmodeandloggingprogressperiodicallycauseadecreasein performance. 6 IntheFilelocationssection,notethedirectorypathtothelogfile. Toviewthecompletepath,clickinthereadonlytextboxandusetherightarrow keytoscrollthroughthepath. 7 ClickOK.
VMware, Inc.
75
OnLinuxhosts,thescriptcreatesacompressed.TGZfileintheusershomedirectory. Becausethescriptisnotrunasroot,thescriptdisplaysmessagesindicatingthatit cannotcollectsomeinformation.Thisisnormal.IftheVMwaresupportteamneeds thatinformation,asupportrepresentativeasksyoutorunthescriptfromthecommand lineasroot.Forinstructions,seeRuntheSupportScriptfromaLinuxTerminal Windowonpage 77. Beforeyoubegin,createasupportrequest.SeeRegisterandCreateaSupport Requestonpage 74.Increasetheleveloflogging,asdescribedinGatherDebugging InformationforaVirtualMachineonpage 74.MakesurethatthelatestVMwareTools isinstalledinthevirtualmachinestocollectsupportdatafromtheguest,andthatthe virtualmachinesarepoweredon. To run the support script from the Workstation user interface 1 SelectHelp>CollectSupportData. AdialogboxdisplaysallyouropenWorkstationvirtualmachines. 2 Checktheboxesforthevirtualmachinestocollectsupportdatafromandselect Collect. a b IfyouselectCollectwithnovirtualmachinesselected,thesupportcollection scriptcollectsdataonlyfromyourhostmachine. IfyouselectacheckboxforavirtualmachineandselectCollect,thesupport collectionscriptcollectsthecurrentdatafromtheyourguestandhost machines. ThevirtualmachinemustbepoweredonandhavethelatestVMwareTools running.VMwarerecommendsthatyouusethisoptiontocollectthecurrent dataforyourguestmachine. 3 Addthe.ZIPor.TGZdatafiletoyoursupportrequest.
76
VMware, Inc.
Afterthescriptruns,itdisplaysthenameofthedirectorywhereithasstoredits output. 4 UseafilecompressionutilitysuchasWinZiporPKZIPtozipthescriptoutput directory,andincludethezipfilewithyoursupportrequest. IfyouarereportingaproblemyouencounteredwhileinstallingVMware Workstation,alsoincludetheinstallationlogfile. OnaWindowshost,thefileisVMInst.log.ItissavedintheTempfolder.Ona WindowsXPorWindowsServer2003host,thedefaultlocationisC:\Documents and Settings\<username>\Local Settings\Temp. Youcanusethecommandcd %temp%tolocatetheLocal Settingsfolder,which ishiddenbydefault.Toseeitscontents,openMyComputer,gotoTools>Folder Options,clicktheViewtabandselectShowHiddenFilesandFolders.
Includethatoutputfilewithyoursupportrequest.
77
IfyouarereportingaproblemyouencounteredwhileinstallingWorkstation,also includetheinstallationlogfile.
78
VMware, Inc.
VMware, Inc.
79
WindowsVista,Windows7,WindowsXP,andWindows2000 WindowsServer2008,WindowsServer2003,andWindows2000Server
OnLinuxguests,theeasyinstallfeatureisavailableforthefollowingoperating systems:
80
VMware, Inc.
ForWindowsguests:
(Optional)WindowsproductkeyIfyouspecifyaproductkey,youarenot promptedforitlater,duringinstallationoftheoperatingsystem.Entera productkeyunlesstheinstallationmediaalreadycontainsavolumelicense productkey. FullnameThisnameisusedforregisteringtheoperatingsystem.Donotuse thenameAdministratororGuest.Ifyouuseoneofthesenames,youwill receiveanerrormessageduringinstallationoftheoperatingsystemandbe promptedtoenteradifferentname. (Optional)PasswordOnWindowsoperatingsystemsotherthanWindows 2000,thepasswordyouenterhereisusedforanaccountwithAdministrator permissions.OnWindows2000,thepasswordyouenterhereisusedforthe Administratoraccount.
ForLinuxguests:
VMware, Inc.
81
Makeadifferentversionofvirtualmachinethanwhatisspecifiedinthe preferenceseditor. SpecifytheI/OadaptertypeforSCSIadapters:BusLogic,LSILogic,or LSI Logic SAS. SpecifywhetheryouwanttocreateanIDEoraSCSIvirtualdisk,regardlessofthe defaultthatisusuallyusedfortheguestoperatingsystem. Useaphysicaldiskratherthanavirtualdisk(forexpertusers). Useanexistingvirtualdiskratherthancreateavirtualdisk. Placethevirtualdiskfileinalocationotherthanthevirtualmachinedirectory. Allocateallvirtualdiskspaceratherthanallowingthediskspacetogradually growtothemaximum.
Selectappropriatedefaultvalues,suchastheamountofmemorytoallocate.
VMware, Inc.
82
OnWindowsXPandWindowsServer2003hosts,thedefaultfolderforaWindows XPProfessionalvirtualmachineis:
C:\Documents and Settings\<username>\My Documents\My Virtual Machines\<guestOSname>
OnWindowsVistaandWindows7hosts,thedefaultfolderis:
C:\Users\<username>\Documents\Virtual Machines\<guestOSname>
OnLinuxhosts,thedefaultlocationforaWindowsXPProfessionalvirtual machineis:
<homedir>/vmware/<guestOSname>
The<homedir>valueisthehomedirectoryoftheuserwhoiscurrentlyloggedin. Virtualmachineperformancemightbeslowerifyourvirtualharddiskisonanetwork drive.Forbestperformance,besurethevirtualmachinesfolderisonalocaldrive. However,ifotherusersneedtoaccessthisvirtualmachine,considerplacingthevirtual machinefilesinalocationthatisaccessibletothem.SeeSharingVirtualMachines withOtherUsersonpage 222. NOTEIfyouplantodeploythevirtualmachineonaUSBdrive,first,createthevirtual machineonyourlocalharddisk.YoucanthenusePocketACEfeaturestodeploythe virtualmachine. Forinformationaboutthefilesstoredinthevirtualmachinefolder,seeFilesThat MakeUpaVirtualMachineonpage 95.
VMware, Inc. 83
Number of Processors
Thisoptionisavailableforcustomconfigurationsonly.Settingthevirtualmachineto havetwoprocessorsissupportedonlyforhostmachineswithatleasttwological processors.(IfyouarecreatingaWorkstation4virtualmachine,youdonotseethis panel.) Thefollowingareallconsideredtohavetwologicalprocessors:
Memory Allocation
ThisoptionisavailableforcustomconfigurationsorifyouclickCustomizeHardware onthelastpageoftheNewVirtualMachinewizard. Acolorcodediconcorrespondstoeachvalue.Touseoneoftheseamounts,movethe slidertothecorrespondingicon.Thehighendoftherangethatappearsisdetermined bytheamountofmemoryallocatedtoallrunningvirtualmachines.Ifyouallowvirtual machinememorytobeswapped,thisvaluechangestoreflecttheamountofswapping thatwasspecified.Tochangetheamountofmemoryavailabletoallvirtualmachines, usetheWorkstationpreferenceseditor(Edit>Preferences).
84
VMware, Inc.
BridgednetworkingIfyourhostcomputerisonanetworkandyouhavea separateIPaddressforyourvirtualmachine(orcangetoneautomaticallyfroma DHCPserver),selectBridged.Othercomputersonthenetworkcanthen communicatedirectlywiththevirtualmachine. NAT(NetworkAddressTranslation)IfyoudonothaveaseparateIPaddressfor yourvirtualmachinebutyouwanttobeabletoconnecttotheInternet,selectNAT. Thevirtualmachineandthehostshareasinglenetworkidentitythatisnotvisible outsidethenetwork. HostonlyHostonlynetworkingprovidesanetworkconnectionbetweenthe virtualmachineandthehostcomputer,usingavirtualnetworkadapterthatis visibletothehostoperatingsystem.Withhostonlynetworking,thevirtual machinecancommunicateonlywiththehostandothervirtualmachinesinthe hostonlynetwork.SelectHostonlytosetupanisolatedvirtualnetwork.
SeeCommonNetworkingConfigurationsonpage 282.
VMware, Inc.
85
Disk Types
Thisoptionisavailableforcustomconfigurationsonly.Thedefaultforyourguest operatingsystemisalreadyselected. OnLinuxhosts,andintheAddHardwarewizard,youcanselectadiskmodeonthe SelectaDiskTypepage.SeeNormalandIndependentDiskModesonpage 86.
Disk Capacity
Thewizardpromptsyoutosetasizebetween0.1GBand950GBforavirtualdisk. On Windowshosts,thePocketACEsizecalculatorcontrolcanhelpdeterminethedisk sizeforanACEinstancethatfitsonaportabledevice. SelecttheoptionSplitvirtualdiskinto2GBfilesifyourvirtualdiskisstoredonafile systemthatdoesnotsupportfileslargerthan2GB. Forcustomconfigurations,youarealsogiventheoptionAllocatealldiskspacenow. VMwarerecommendsthatyouallowthedisktogrow.Allocatingalldiskspacenow givessomewhatbetterperformance,butitisatimeconsumingoperation.Alsoit requiresasmuchphysicaldiskspaceasyouspecifyforthevirtualdisk.Ifyouallocate allthediskspacenow,youcannotusetheshrinkdiskfeaturelater.
VMware, Inc.
87
To use the New Virtual Machine wizard 1 2 FromtheWorkstationmenubar,chooseFile>New>VirtualMachine. Followtheprompts. Formoreinformationaboutthefieldsonawizardpage,clickHelponthatpage. Afterthewizardcreatesthevirtualmachine,thenextstepisinstallingtheguest operatingsystem.SeeInstallingaGuestOperatingSystemonpage 88.
88
VMware, Inc.
HardwareassistedvirtualizationmustbeenabledfortheESX4.0andESXi4.0 guests.ThehostsystemmusthaveIntelEM64TprocessorswithVTxorAMD64 Family10HandlaterprocessorswithAMDV.Whereapplicable,VTxorAMDV mustbeenabledintheBIOS(orotherfirmware).PoweroffandrestartIntelhosts afterchangingtheBIOSsettingstoenablehardwarevirtualization. ESX4.0guestsmustbeconfiguredwithtwoormorecores.VMwarerecommends thatthehostsystemshouldhaveatleastasmanycoresastheguest. Only32bitguestsmaybeinstalledtorunasnestedvirtualmachinesinsideanESX guest.Thesevirtualmachinescanonlybeconfiguredtousebinarytranslation. VMwareToolsarenotavailableforESX4.0orESXi4.0guests.Donotinstallthe LinuxversionofVMwareToolsinanESXguest. ForinstructionsonhowtosetthevirtualEthernetadapteronaLinuxhosttorun inpromiscuousmode,seetheVMwareknowledgebasearticle287availableonthe VMwareWebsite.
FormoreinformationonhowtoconfigureESX4.0andESXi4.0,seetheVMware vSpheredocumentationsetavailableontheVMwareWebsite.
VMware, Inc.
89
Anewvirtualmachineislikeaphysicalcomputerwithablankharddisk.Beforeyou canuseit,youneedtopartitionandformatthevirtualdiskandinstallanoperating system.Theoperatingsystemsinstallationprogrammighthandlethepartitioningand formattingstepsforyou. Installingaguestoperatingsysteminsideavirtualmachineisessentiallythesameas installingitonaphysicalcomputer. NOTEWorkstationsupports64bitguestoperatingsystemsonlyinWorkstation 5.5 andhigher,andonlyonhostmachineswithsupportedprocessors. To install a guest operating system manually 1 2 StartWorkstation. Dooneofthefollowingsothatthevirtualmachinecanaccesstheinstallation mediafortheguestoperatingsystem:
ForaCDorDVD,ifnecessary,configurethevirtualmachinetousethehosts CDROM/DVDdrive,andinserttheoperatingsystemmediainthedrive.
90
VMware, Inc.
ForanISOimage,connecttheCDROMdrivetoanISOimagefileofan installationdisk.
TouseaPXEservertoinstalltheguestoperatingsystemoveranetwork connection,youdonotneedtheoperatingsysteminstallationmedia.Whenyou poweronthevirtualmachine,thevirtualmachinedetectsthePXEserver. 3 4 5 ClickthePowerOnbutton. Followtheinstructionsprovidedbytheoperatingsystemvendor. IftheoperatingsystemspansseveralCDs,followthesestepswhenyouare promptedtoinsertthesecondCD: a b c d e f DisconnectfromthecurrentimagebychoosingVM>RemovableDevices> CDROM>Disconnect. EdittheCDsettingsbychoosingVM>RemovableDevices>CDROM> Edit. ForUseISOimagefile,clickBrowse,andselecttheISOimageforthesecond CD. IntheDeviceStatusarea,selecttheConnectedcheckboxandclickOK. Intheguestoperatingsystem,clickOKorrespondtothepromptsothat installationcancontinue. RepeatthisprocessforadditionalCDs.
VMware, Inc.
91
Beforeyoubegin,obtaininstallationmedia(CDorISOimage)fortheoperatingsystem. Paravirtualizedkernelsupportisavailablefor32bitversionsofUbuntu7.04,7.10,or 8.04andSUSELinuxEnterpriseServer10SP2. The64bitversionofSUSELinuxEnterpriseServer10SP2alreadycontains paravirtualization.YoudonotneedtouseaWorkstationsettingtoenableit. Formoreinformationaboutparavirtualizationingeneral,seethefollowingVMware Websiteat: http://www.vmware.com/interfaces/paravirtualization.html IfyouhaveaVMwareVMI(VirtualMachineInterface)enabledkernelintheguest operatingsystem,youwillseeimprovedperformanceifyouenableparavirtual supportinthevirtualmachine. To use a paravirtualized kernel in Linux guests 1 2 UsetheNewVirtualMachinewizardtocreatevirtualmachineforoneofthe supported32bitguestoperatingsystems. Afteryoufinishcreatingthevirtualmachine,enableparavirtualkernelsupport,as follows: a b ChooseVM>Settings. OntheHardwaretab,selectProcessors,andintheExecutionModesection, selecttheVMwarekernelparavirtualizationcheckbox.
92
VMware, Inc.
6 7
ForWorkstation4,5.x,6.xand7.0virtualmachines,youcanchangetheversionof theoriginalvirtualmachineorcreateafullclone,sothattheoriginalremains unaltered.ForWorkstation4virtualmachines,Workstationchangestheoriginal virtualmachine. IfyouupgradeaWorkstation4or5.xvirtualmachinethatiscompatiblewith ESX ServertoWorkstation6.x,youcannotusetheChangeVersionwizardtolater downgradeitagaintoanESXcompatiblevirtualmachine. OnWindowshosts,however,youcanusetheConversionwizard(chooseFile> Import)toperformsuchadowngrade.
VMware, Inc.
93
To change the version of a virtual machine 1 2 Makebackupcopiesofthevirtualdisks(.vmdkfiles). IfyouareupgradingfromaWorkstation4or5.xvirtualmachine,ordowngrading toaWorkstation4or5.xvirtualmachine,makeanoteoftheNICsettingsinthe guest. Specifically,ifyouspecifiedastaticIPaddressforthisvirtualmachine,afterthe upgrade,thatsettingmightbechangedtoautomaticassignmentbyDHCP. TochecktheNICsettings,usethemethodappropriateforyouroperatingsystem. Forexample,onWindowsXP,youcanusetheControlPanelsNetwork ConnectionsitemtofindinformationabouttheTCP/IPaddressforthevirtual machine. 3 4 5 Shutdowntheguestoperatingsystemandpoweroffthevirtualmachine. SelectthevirtualmachineandchooseVM>Upgrade or Change Version. Followtheprompts. Whenyouselectahardwarecompatibilityversion,youseealistoftheVMware productsthatarecompatiblewiththatversion.IfyouselectWorkstation4,5.x,or 6.xyoualsoseealistofWorkstation7.0featuresthatarenotsupportedforthat version. 6 Poweronthevirtualmachine. IfyouupgradeavirtualmachinethatcontainsaWindows98operatingsystemto aWorkstation7.0virtualmachine,youarepromptedtoinstallaPCIPCIbridge driverwhenyoupoweronthevirtualmachine.BecauseWorkstation7.0has32 morePCIPCIbridgesthanWorkstation6.x,youmightneedtorespondtothe prompt32or33times. 7 8 Ifapplicable,intheguestoperatingsystem,checktheNICsettingsandadjustthem iftheychanged,asdescribedinStep 2. IfthevirtualmachinedoesnothavethelatestversionofVMwareToolsinstalled, updateVMwareTools. Evenif,forexample,youupgradedaWorkstation5.xvirtualmachineto Workstation6.xratherthan7.0,besuretoupdateVMwareToolstotheversion includedwithWorkstation7.0.SeeVMwareToolsUpdateProcessonpage 112. DonotremovetheolderversionofVMwareToolsbeforeinstallingthenew version.
94
VMware, Inc.
5.x
6.x 7.0
YoucanrunolderversionsofvirtualmachinesinWorkstation7.0,butyouwillnothave thebenefitsofthenewfeaturesofWorkstation7.0. FormoreinformationaboutcompatibilitybetweenVMwareproducts,seethe VMware VirtualMachineMobilityPlanningGuide. Ifyoudecidenottoupgradeavirtualmachine,youstillneedtoupgradeVMwareTools tothenewversion.Followtheinstructionsforyourguestoperatingsystemin VMwareToolsUpdateProcessonpage 112.Donotremovetheolderversionof VMwareToolsbeforeinstallingthenewversion.
VMware, Inc.
95
96
VMware, Inc.
<vmname>-<disk>-<###>.vmdk
.vmem
<uuid>.vmem
<snapshot_name_number>.vmem
VMware, Inc.
97
.vmxf
<vmname>.vmxf
98
VMware, Inc.
Thischapterdiscusseshowtoinstall,update,andrunVMwareTools.Thischapter includesthefollowingtopics:
ComponentsofVMwareToolsonpage 99 InstallingVMwareToolsonpage 102 VMwareToolsUpdateProcessonpage 112 UninstallVMwareToolsonpage 115 RepairorChangeInstalledModulesinaWindowsGuestonpage 115 OpentheVMwareToolsControlPanelonpage 116 ConfigureVMwareToolsinaNetWareGuestonpage 120 CustomizationstoVMwareToolsonpage 121 UsetheVMwareToolsServiceCommandLineInterfaceonpage 128
VMware, Inc.
99
Passesmessagesfromthehostoperatingsystemtotheguestoperatingsystem. Executescommandsintheoperatingsystemtocleanlyshutdownorrestarta Linux,FreeBSD,orSolarissystemwhenyouselectpoweroperationsin Workstation. OnWindowsguests,allowsthemousecursortomovefreelybetweentheguest andhostoperatingsystems. OnWindowsguests,matchestheguestsscreenresolutiontothehostsscreen resolutionandthereverse. Synchronizesthetimeintheguestoperatingsystemwiththetimeinthehost operatingsystem. Runsscriptsthathelpautomateguestoperatingsystemoperations.Thescriptsrun whenthevirtualmachinespowerstatechanges.
100
VMware, Inc.
Enablesyoutocopyandpastetextbetweentheguestandhostoperatingsystems, andcopyandpastefilesbetweenthehostoperatingsystemsandWindows,Linux, Solaris,andFreeBSDguestoperatingsystems. Enablesyoutodraganddropfilesbetweenthehostoperatingsystemsand Windows,Linux,Solaris,andFreeBSDguestoperatingsystems. EnablesyoutousetheUnityfeaturewithWindowsandLinuxguests. OnLinux,Solaris,andFreeBSDguests,grabsandreleasesthemousecursorwhen theSVGAdriverisnotinstalled. OnLinux,Solaris,andFreeBSDguests,matchestheguestsscreenresolutiontothe hosts.
VMware, Inc.
101
InstallVMwareToolsinaWindowsGuestonpage 102 InstallVMwareToolsonaLinuxGuestonpage 106 InstallVMwareToolsinaSolarisGuestonpage 108 InstallVMwareToolsinaFreeBSDGuestonpage 109 InstallVMwareToolsinaNetWareVirtualMachineonpage 110
IfyouarerunningWorkstationonaWindowshostandyourvirtualmachinehas onlyoneCDROMdrive,makesuretheCDROMdriveisconfiguredasanIDEor SCSICDROMdrive.ItcannotbeconfiguredasagenericSCSIdevice.Ifnecessary, addanIDEorSCSICDROMdrivetothevirtualmachine.SeeAdding DVD/CDROMandFloppyDrivestoaVirtualMachineonpage 246. MakesurethevirtualCDROMdriveisconfiguredtoautodetectaphysicaldrive. ThistaskisnecessaryifyouconnectedthevirtualmachinesCDdrivetoanISO imagefilewhenyouinstalledtheoperatingsystem.Changetheconnectionfrom theISOimagetoautodetectaphysicaldrive.(Withthevirtualmachinepowered off,chooseVM>Settings>CD/DVD>UsePhysicalDrive>Autodetect.) WhenyouinstallVMwareTools,makesurethevirtualmachineispoweredon. IftheguestoperatingsystemisaWindowsNT,Windows2000,WindowsXP, WindowsServer2003,WindowsVista,orWindow7operatingsystem,loginasan administrator.AnyusercaninstallVMwareToolsinaWindows 95,Windows98, orWindowsMeguestoperatingsystem.
DependingonwhetherAutorunisenabled,oneofthefollowingoccursinsidethe guestoperatingsystem:
2 3
Rebootthevirtualmachineifnecessary.
VMware, Inc.
103
TheEnglishversionoftheinstructionsfromtheNotebookfilearereprintedin KnowledgeBasearticle1001819attheVMwareWebsite.
104
VMware, Inc.
c d 3
Openacommandpromptandusethefollowingcommandtoinstallsomeorallof theVMwareToolscomponents:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL [REMOVE=<component>] /qn TRANSFORMS= <path>\1041.msi
VMware, Inc.
105
Table 5-1.
Valid Component Values Toolbox Description VMwareToolscontrolpanelanditsutilities.Excludingthisfeature preventsyoufromusingVMwareToolsintheguestoperating system.VMwaredoesnotrecommendexcludingthisfeature. IncludestheSVGA,mouse,BusLogic,andvmxnetdrivers.
Drivers
MemCtl
Hgfs
Forexample,toinstalleverythingbutthesharedfoldersdriver,typethefollowing onthecommandline:
msiexec -i "D:\VMware Tools.msi" ADDLOCAL=ALL REMOVE=Hgfs /qn
Toincludeafeature,useitwiththeADDLOCALoption.Toexcludeafeature,use itwiththeREMOVEoption.
106
VMware, Inc.
To install VMware Tools on a Linux guest 1 Onthehost,chooseVM>InstallVMwareTools. IfanearlierversionofVMwareToolsisinstalled,themenuitemisUpdate VMwareTools. 2 3 Ontheguest,loginasroot(su). Ifnecessary,mounttheVMwareToolsvirtualCDROMimagebyenteringa commandsimilartothefollowing:
mount /dev/cdrom /mnt/cdrom
RuntheinstallerandunmounttheCDROMimage.
tar zxpf /mnt/cdrom/VMwareTools-<xxxx>.tar.gz umount /dev/cdrom
VMware, Inc.
107
exit
9 10
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
11
12
Enterthefollowingcommandstorestorethenetwork:
/etc/init.d/network stop rmmod vmxnet modprobe vmxnet /etc/init.d/network start
AftertheCDROMismounted,changetoaworkingdirectory(forexample,/tmp) andextractVMwareToolsbyenteringthefollowingcommands:
cd /tmp gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf -
108
VMware, Inc.
RuntheVMwareToolstarinstaller:
cd vmware-tools-distrib ./vmware-install.pl
Respondtotheconfigurationprompts.PressEntertoacceptthedefaultvalue. 6 Logoutoftherootaccount:
exit
7 8
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
UntartheVMwareToolstarfile:
tar zxpf /cdrom/vmware-freebsd-tools.tar.gz
VMware, Inc.
109
Ifnecessary,unmounttheVMwareToolsvirtualCDROMimagebyenteringa commandsimilartothefollowing:
umount /cdrom
Ifyourdistributionusesautomounting,skipthisstep. 8 RuntheVMwareToolsinstaller:
cd vmware-tools-distrib ./vmware-install.pl
Logoutoftherootaccount:
exit
10 11
(Optional)Startyourgraphicalenvironment. InanXterminal,tostarttheVMwareUserprocess,enterthefollowingcommand:
vmware-user
ForaNetWare6.5virtualmachineinthesystemconsole,enter:
LOAD CDDVD
ForaNetWare6.0orNetWare5.1virtualmachine,inthesystemconsole, enter:
LOAD CD9660.NSS
ForaNetWare4.2virtualmachine,inthesystemconsole,enter:
VMware, Inc.
110
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). 4 IfyouhaveaNetWare4.2guest,restarttheguestoperatingsystem,asfollows: a Toshutdownthesystem,inthesystemconsole,enter:
down
Torestarttheguestoperatingsystem,inthesystemconsole,enter:
restart server
Start the VMware User Process Manually If You Do Not Use a Session Manager on UNIX
OneoftheexecutablesusedbyVMwareToolsinUNIXguestsisvmware-user. This programimplementsthefitguesttowindowfeatureandUnitymode,among otherfeatures. Normally,vmware-userisstartedautomaticallyafteryouconfigureVMwareTools andthenlogoutofthedesktopenvironmentandlogbackin.Youmuststartthe vmware-userprocessmanuallyinthefollowingenvironments:
VMware, Inc.
111
To start the VMware User process manually if you do not use a session manager Dooneofthefollowing:
112
VMware, Inc.
Anautoupdatecheckisperformedaspartofthebootsequencewhenyoupowerona virtualmachine.Ifthevirtualmachinewassuspendedandyouresumeitorrestoreit toasnapshotduringthebootsequencebeforethischeckoccurs,theautomaticupdate occursasplanned. Ifyouresumethevirtualmachineorrestoreittoasnapshotaftertheautoupdatecheck occurs,theautomaticupdatedoesnotoccur. Formoreinformationaboutautomaticupdates,seeUseGlobalSettingstoUpdate VMwareToolsAutomaticallyonpage 113andSetAutoupdateOptionsforEach VirtualMachineonpage 114.
VMware, Inc.
113
114
VMware, Inc.
To update VMware Tools in older Windows virtual machines 1 2 TouninstalltheoldversionofVMwareTools,usetheAdd/RemoveProgramsitem intheguestsControlPanel. ToinstallthenewversionofVMwareTools,seeInstallingVMwareToolson page 102.
OnanyUNIXguest,logonasroot(su)andenterthefollowingcommand:
vmware-uninstall-tools.pl
OnaLinuxguestthathasVMwareToolsinstalledbyusinganRPMinstaller,you canuninstallbyusingthefollowingcommand:
rpm -e VMwareTools
ClickChangetorepairormodifywhichmodulesofVMwareToolsare installed.
VMware, Inc.
115
Completetherestofthepagesofthewizard.
Iffeaturesstilldonotwork,uninstallVMwareToolsandreinstall.
OnLinux,FreeBSD,andSolarisguests,openaterminalwindowandenterthe command:
/usr/bin/vmware-toolbox &
OnNetWareguests,dooneofthefollowing:
116
VMware, Inc.
To use the Windows Control Panel to display the taskbar icon 1 2 3 GotoStart>ControlPanel. DoubleclicktheVMwareToolsicon. OntheOptionstab,selectShowVMwareToolsinthetaskbarandclickApply.
Timesynchronizationbetweenthevirtualmachineandthehostoperating systemSetsthetimeoftheguestoperatingsystemtobethesameasthetimeof thehostandthenperiodically(everyminute)checkswhethertheguestoperating systemstimematchesthatofthehosts.Ifnot,theclockontheguestis synchronizedtomatchtheclockonthehost. Iftheclockontheguestfallsbehindtheclockonthehost,VMwareToolsmoves theclockontheguestforwardtomatchtheclockonthehost.Iftheclockonthe guestisaheadofthatonthehost,VMwareToolscausestheclockontheguestto runmoreslowlyuntiltheclocksaresynchronized. Ifyouusethisoption,disableallothertimesynchronizationmechanisms.For example,someguestsmighthaveNTPorCMOSclocksynchronizationturnedon bydefault. RegardlessofwhetheryouturnonVMwareToolsperiodictimesynchronization, timesynchronizationoccurswhentheVMwareToolsdaemonisstarted(suchas duringarebootorpoweronoperation),whenresumingavirtualmachinefroma suspendoperation,afterrevertingtoasnapshot,andaftershrinkingadisk.When theoperatingsystemstartsorreboots,andwhenyoufirstturnonperiodictime synchronization,synchronizationcanbeeitherforwardorbackwardintime. For otherevents,synchronizationisforwardintime. Todisabletimesynchronizationcompletely,seeDisableTimeSynchronizationby EditingtheVirtualMachineConfigurationFileonpage 118.
VMware, Inc.
117
Table 5-2.
Option Name tools.syncTime time.synchronize.continue time.synchronize.restore time.synchronize.resume.disk time.synchronize.shrink time.synchronize.tools.startup Synchronization Occurs During the Following Event Periodically(normallyonceperminute). Time synchronizationisonlyforwardintime. Takingasnapshot.Timesynchronizationisonly forwardintime. Revertingtoasnapshot.Timesynchronization isonlyforwardintime. Resumingasuspendedvirtualmachine. Time synchronizationisonlyforwardintime. Shrinkingavirtualdisk.Timesynchronization isonlyforwardintime. Bootingtheguestoperatingsystem. Time synchronizationcanbeeitherforwardor backwardintime.
Saveandclosethefile.
118
VMware, Inc.
VMware, Inc.
119
Shrinkingadiskisatwostepprocess:apreparationstepandtheshrinkstep.Inthefirst step,VMwareToolsreclaimsallunusedportionsofdiskpartitions(suchasdeletedfiles) andpreparesthemforshrinking.Thissteptakesplaceintheguestoperatingsystem. Theshrinkprocessisthesecondstep,andittakesplaceoutsidethevirtualmachine. TheVMwareapplicationreducesthesizeofthediskbasedonthediskspacereclaimed duringthepreparationstep.Ifthediskhasemptyspace,thisprocessreducesthe amountofspacethevirtualdiskoccupiesonthehostdrive.SeeCompactaVirtual Diskonpage 236. OnUNIXguests,runVMwareToolsastherootuser(su)toshrinkvirtualdisks.Ifyou shrinkthevirtualdiskasanonrootuser,youcannotpreparetoshrinkthepartsofthe virtualdiskthatrequirerootlevelpermissions.
About Tab
TheAbouttabdisplaysversion(buildnumber)andcopyrightinformation. In Windowsguests,thistabalsoshowsthestatusoftheVMwareToolsservice.
120
VMware, Inc.
VMware, Inc.
121
122
VMware, Inc.
VMware, Inc.
123
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 OntheScriptstaboftheVMwareToolscontrolpanel,selecttheappropriate scriptevent. SelecttheUseScriptcheckbox,selectCustomscript,andusetheBrowse buttontopointtothescriptyouwanttouse. ClickOK.
Todisablethescript,cleartheUseScriptcheckboxandclickOK.
124
VMware, Inc.
Defaultscriptsforsuspendingandresumingworktogether.Ifyoudisablethe scriptofoneoftheseactions,disablethescriptfortheotheractionaswell.
Addoneorbothofthefollowingcommandstothefile:
VMware, Inc.
125
Usethisstrategy,forexample,tomakecopiesofthesameconfigurationfile,adda differentstringtoeach(eitherintheconfigurationfileitselforatthecommandline), andusethesevariationsofthesameconfigurationfiletolaunchthesamevirtualdisk innonpersistentmodemultipletimesinatrainingortestingenvironment. Passingastringisalsousefulwhenyouwanttodeployvirtualmachinesonanetwork usingacommonconfigurationfilewhileprovidingeachmachinewithitsownunique identity. Youcanpassstringstoavirtualmachinesguestoperatingsysteminoneoftwoways: placingthestringinthevirtualmachinesconfigurationfileorpassingthestringtothe guestfromthecommandline. Usethisfeatureonlyifyouhaveagoodunderstandingofascriptinglanguage(for example,PerlorNetShell)andknowhowtomodifysystemstartupscripts.
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"
Onthehostmachine,addthefollowinglinetoyourvirtualmachines configurationfile(.vmxfile):
machine.id = "W2K-VM 148.30.16.24"
Openthevirtualmachineusingthisconfigurationfile.
Openthevirtualmachinefromthecommandlinebyenteringthefollowing ononeline:
C:\Program Files\VMware\VMware Workstation\vmware -s 'machine.id=W2K-VM 148.30.16.24' C:\Virtual Machines\win2000\win2000.vmx
Dooneofthefollowingtoretrievethestringinthevirtualmachine:
InaWindowsguest,enterthefollowingcommandtoretrievethestring:
vmtoolsd --cmd machine.id.get
VMware, Inc.
127
InaLinuxguest,intheoperatingsystemsstartupscript,addthefollowing commandbeforethenetworkstartupsection.Forexample:
/usr/sbin/vmtoolsd --cmd 'machine.id.get'
Thelocationofvmtoolsddependsonthedirectoryyouspecifyatthetimeof installation. 3 Furthercustomizethisstartupscriptsothatitusesthestringtheserviceretrieved duringstartuptosetthevirtualmachinesnetworknametoW2KVMandits IP addressto148.30.16.24. Placethisstringinthescriptbeforethecommandtostartthenetworkservices. IfyoureusingaWindows2000guestoperatingsystem,forexample,youcancall theNetShellutility(netsh)andpassitthecontentsofthestring,whichusesthe stringaccordingly.Thatis,itcansetanewIPaddressforthevirtualmachine,if thatiswhatwaspassedinthestringoriginally.
To use the VMware Tools command-line interface 1 Ontheguestoperatingsystem,changedirectoriestothedirectorythatcontainsthe VMwareToolsdaemon. Dependingontheoperatingsystem,thenameanddefaultlocationofthedaemon areasfollows:
OnMicrosoftWindowssystems,thedaemoniscalledvmtoolsd.exeandthe locationis:
128
VMware, Inc.
Toconfigureperiodictimesynchronization,usethevmx.set_optioncommand. Usethefollowingsyntax: <daemon> --cmd "vmx.set_option synctime <old_val> <new_val>" <daemon>isvmtoolsdonUNIXsystemsorvmtoolsd.exeonWindowssystems. <old_val>and<new_val>aretheoldandnewvalues,respectively.Use0tomean FALSEand1tomeanTRUE. FollowingisanexampleofsettingtimesynchronizationtoTRUEonaLinuxguest:
./vmtoolsd --cmd "vmx.set_option synctime 0 1"
VMware, Inc.
129
130
VMware, Inc.
ConversionProcessforImportingfromOtherFormatsonpage 131 VMwareConverterComparedtotheConversionWizardonpage 133 SupportedSourceMachinesonpage 133 SupportedDestinationsonpage 138 ConversionImpactonSettingsonpage 140 OpenaThirdPartyVirtualMachineorSystemImageonpage 141 ImportaVirtualMachine,VirtualAppliance,orSystemImageonpage 142
VMware, Inc.
131
Workstationprovidesthreewaystoconvertavirtualmachineorsystemimage:
UsingtheFile>Opencommandconvertsandopensavirtualmachineorsystem imagequickly.Workstationusesdefaultsettingstomaketheconversion automatically,withnoinputrequiredfromyou.TheoriginalMicrosoftVirtualPC, SymantecBackupExecSystemRecovery,StorageCraftShadowProtect,orAcronis TrueImage(.vmc,.spf,.sv2i,or.tib)fileisunchanged. Forallsupportedfiletypesexcept.ovfand.ovafiles,theFile>Opencommand createsalinkedclonewhenitopensthefile.Ifyouopenavirtualappliancethat uses.ovfor.ovafiles,Workstationcreatesafullclone. Ifyouattempttoopenavirtualmachineorsystemimagethatispassword protected,youarepromptedforthepassword,andWorkstationcreatesafull clone.
ThewizardcreatesacompletelynewVMwarevirtualmachinebasedontheinput virtualmachineorsystemimage.ThenewlymigratedVMwarevirtualmachineretains theconfigurationoftheoriginalvirtualmachineorimage. Themigrationprocesscanbenondestructive,soyoucancontinuetousetheoriginal virtualmachinewithMicrosoftVirtualPC,ortheoriginalsystemimagewithSymantec BackupExecSystemRecovery.However,torunanewVMwarevirtualmachineonthe samenetworkastheoriginalVirtualPCvirtualmachine,youmustmodifythenetwork nameandIPaddressononeofthevirtualmachinessotheoriginalandnewvirtual machinescancoexist. ForMicrosoftVirtualPCandMicrosoftVirtualServervirtualmachines,youhavethe optionofsharingthesourcevirtualharddisk(.vhd)files.ThismeansthattheVMware virtualmachinecanwritedirectlytotheoriginal.vhdfilesinsteadofVMwarevirtual harddisk(.vmdk)files.
132
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
Physicalmachines
VMwarevirtualmachines(.vmxand.vmtnfiles)
VMware, Inc.
VMwareServer1.xand2.0.x(ifthevirtualmachineisonthelocalfilesystem) VirtualCenter2.x
Othervirtualmachinesandsystemimages
TheoperatingsystemonthesourceMicrosoftVirtual PCorVirtual Servervirtual machinemustbeaWindows2000orlaterguestoperatingsystemsupportedbythe intendedVMwareplatform(forexample,Workstation4,5.x,or6).Forguest operatingsystemsupport,knownissues,andinstallationinstructions,seethe onlineVMwareCompatibilityGuide.GototheVMwareWebsiteandselect Resources>CompatibilityGuides,andclicktheViewtheGuest/HostOStabon theVMwareCompatibilityGuideWebsitelink. NOTEVirtualmachinesfromMacintoshversionsofMicrosoftVirtualPCarenot supported.
134
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
VMware, Inc.
135
IntheConversionwizard,youcanselect.ovffiles,whicharetheOVFequivalentofa VMwarevirtualmachineconfigurationfile(.vmxfile),oryoucanselect.ovafiles (openvirtualappliancefiles).An.ovafilestorestheconfigurationfileandvirtualhard diskfiletogether,likea.zipfile,foreasydistribution. WhenspecifyingthelocationoftheOVFappliance,youcanbrowsetoadirectoryor useaURLtodownloadtheappliancefromaWebserver.Youcanalsodownloadthe appliancefromasecure(HTTPS)Webserver. NOTEWhenyouuseaURL,thevirtualapplianceisdownloadedbeforetheconversion processstarts.Downloadingcantake15minutesorlonger,dependingonthesizeofthe file. TheConversionwizardalwaysmakesafullclonewhenitconvertsanOVFappliance toavirtualmachine.SeeFullorLinkedClonesonpage 137.
136
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
VMware, Inc.
137
LinkedclonescanbecreatedfromVMwarevirtualmachines,SymantecBackupExec SystemRecoveryvirtualmachines(.sv2ifiles),MicrosoftVirtualPCandVirtual Servervirtualmachines,AcronisTrueImage(.tibfiles),andStorageCraftfiles(.spf files).CreatingalinkedcloneofaVMwarevirtualmachinerequiresthatthevirtual hardwareversionofthedestinationmachinenotbehigherthanthehardwareversion ofthesource. CAUTIONForlinkedclones,thevirtualmachinecreatedbythewizardbecomes corruptedifthesourceismodifiedaftertheimport.Thisistrueforlinkedclones importedfromVirtualPCandVirtualServermachinesandfromSymantecbackup images.InthecaseofVirtualPCandVirtualServersourcevirtualmachines,powering themoninVirtualPCorVirtualServermodifiesthem.
Supported Destinations
TheConversionwizardcancreatevirtualmachinesthatarecompatiblewiththe followingproducts:
Workstation 4.5,5.x,6.x,and7.0 VMwareACE 1.x,2.x,and2.6 VMwareFusion 1.x,2.x,and3.0 VMwarePlayer 1.x,2.x,and3.0 ESXServer 3.x(Thisdestinationisnotsupportedifyouareimportingaremote physicalmachine.) ESXServer 2.5.x(Thisdestinationissupportedonlybyimportingthrougha VirtualCenter 2.xserverthatmanagesthe2.5.xESXServer.) VMwareServer 1.xand2.0.x(ifthevirtualmachineisonthelocalfilesystem) VirtualCenter 2.x
138
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
Network Adapters
Youarepromptedtochoosefromtheavailablenetworksatthedestinationlocation.For moreinformationaboutnetworkingchoicesforvirtualmachinesusedwith WorkstationratherthanESXorVirtualCenter,seeCommonNetworking Configurationsonpage 282.
Computerinformation
Windowslicensinginformation
139
VMware, Inc.
Timezone Networkinformation
Networkadapter(interfaces)Resettodefaultormakechanges. DHCPChoosebetweenusingDHCPtoobtainIPaddressesorenteringthem manually.YoucanalsouseDHCPtoobtainaDNSserveraddressorenterit manually. DNSEnterDNSsuffixesandcustomizetheirordertospecifytheorderin whichavirtualmachineusesthemtomakeconnections. WINSSpecifyprimaryandsecondaryWINSaddresses. WorkgroupordomainForworkgroups,specifytheworkgroupname,upto 15characters.Fordomains,specifytheWindowsServerdomain,alongwith theappropriateusernameandpassword.
140
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
TheCPUmodelandserialnumbers(ifactivated)canbedifferentafterthe migration.TheycorrespondtothephysicalcomputerhostingtheVMwarevirtual machine. Thenetworkadaptercanbedifferent(AMDPCNetorVMXnet)withadifferent MACaddress.EachinterfacesIPaddressmustbeindividuallyreconfigured. Thegraphicscardcanbedifferent(VMwareSVGAcard). Thenumbersofdisksandpartitionsarethesame,buteachdiskdevicecanhavea differentmodelanddifferentmanufacturerstrings. Theprimarydiskcontrollerscanbedifferentfromthesourcemachines controllers. Applicationsmightnotworkiftheydependondevicesthatarenotavailablefrom withinavirtualmachine.
VMware, Inc.
141
YoucanusethefieldFilesoftypetofilterthefilesdisplayedbyfileextension. 3 ClickOpen. WorkstationcreatesaVMwarevirtualmachine,withaVMwareconfigurationfile (.vmx)fortheconvertedvirtualmachineorsystemimage.Theconvertedvirtual machinelinkstothevirtualdisksoftheoriginalvirtualmachineorsystemimage unlessthesourceusesopenvirtualizationformat(.ovfor.ovafiles).Theoriginal VirtualPC,SymantecBackupExecSystemRecovery,orStorageCraftconfiguration (.vmc,.spf,or.sv2i)fileisunchanged. Ifyouopenavirtualappliancethatuses.ovfor.ovafiles,Workstationcreatesa fullclone. Ifyouattempttoopenavirtualmachineorsystemimagethatispassword protected,youarepromptedforthepassword,andWorkstationcreatesafull clone.
142
VMware, Inc.
Chapter 6 Creating a Virtual Machine from a System Image or Another Virtual Machine
VMware, Inc.
143
144
VMware, Inc.
Thischapterincludesthefollowingtopics:
StartingaVirtualMachineonpage 145 ShutDownaVirtualMachineonpage 148 DownloadComponentsonpage 150 PausingaVirtualMachineonpage 151 EncryptingaVirtualMachineonpage 152 DeleteaVirtualMachineonpage 155 ControllingtheVirtualMachineDisplayonpage 155 ConfiguringVideoandSoundonpage 168 InstallNewSoftwareinaVirtualMachineonpage 175 UseHostPrintersinaVirtualMachineonpage 176 UseRemovableDevicesinaVirtualMachineonpage 177 ConfiguretheApplianceViewforaVirtualMachineonpage 178 CreateaScreenshotofaVirtualMachineonpage 179 CreateandPlayBackaMovieofaVirtualMachineonpage 180 AdvancedOptionsforApplicationDevelopersonpage 181
TostartavirtualmachinefromtheWorkstationuserinterface,youmustopenthe virtualmachineandpoweriton.
145
VMware, Inc.
146
VMware, Inc.
BydefaultWorkstationisconfiguredtodisplayapowerstatusiconinthenotification areaofthehoststaskbarevenwhenWorkstationisnotrunning.
Ifthisiconisnotvisible,beforeyoubegin,usetheWorkspacetaboftheWorkstation preferenceseditortodisplayit.SeeIntroductiontoWorkstationPreferenceson page 66. To start a virtual machine that is running in the background 1 2 Clickthepowerstatusiconinthenotificationareaofthehoststaskbar. Selectavirtualmachinefromlistthatappearsinthetooltip. Thelistcontainsthevirtualmachinesandteamsthatbelongtotheuserwhois loggedin. Workstationstartsanddisplaystheconsoleviewofthevirtualmachine.
VMware, Inc.
147
Thestatusbarindicatestheprogressofthedownload.Pointtotheicononthe statusbarforVMstreamingandatooltipindicateswhetherstreamingisactiveand providestheURLoftheWebserver. 4 (Optional)Tosavethevirtualmachinesothatyoucanuseitwhenyoudonothave accesstotheWebserver,chooseVM>SaveforOfflineUse. Usingthissettingalsoallowsyoutopausedownloadingbypoweringoffthe virtualmachinebeforestreamingisfinished.Youcanrestartlaterbypoweringon thevirtualmachine.ItalsoallowsyoutousetheFile>Opencommandtoopenthe virtualmachineafteryoucloseit. Whenyoupoweroffastreamedvirtualmachine,youarepromptedtosaveordiscard changes.Ifyoudiscardchanges,thedirectorythatwascreatedonyourlocalmachine andallthevirtualmachinedataaredeleted.
OnWindowsVistaandWindows7,thedefaultfolderis:
C:\Users\<username>\Documents\Virtual Machines\<guestOSname>
OnLinuxhosts,Workstationstoresvirtualmachinesin:
<homedir>/vmware/<guestOSname>
148
VMware, Inc.
YouarenotrequiredtoshutdowntheguestbeforeyouexitWorkstation.Toexit Workstationbutleavethevirtualmachinerunninginthebackground,seeClosing VirtualMachinesandExitingWorkstationonpage 70. To shut down a virtual machine 1 Intheguestsystem,shutdowntheoperatingsystemasyouwouldifyouwere usingaphysicalmachineratherthanavirtualmachine. Forexample,inWindowsXP,clickStart>ShutDown. 2 IntheWorkstationmenubar,chooseVM>PowerOptions>PowerOfftoturnoff thevirtualmachine.
VMware, Inc.
149
To configure the Power Off and Reset options for a virtual machine 1 Selectthevirtualmachine. Thevirtualmachinecanbepoweredonoroff. 2 3 4 ChooseVM>Settings. ClicktheOptionstabandselectPower. InthePowerControlssectionofthedialogbox,setthePowerOffbuttontoshut downtheguestgracefullyortoabruptlypowerthevirtualmachineoff. Theselectionyoumakeisreflectedinthetooltipyouseewhenyoupointtothe PowerOffbutton. 5 6 SpecifyhowyouwanttheResetbuttontowork. Ifyouwanttochangeanyoftheothersettingsandneedmoreinformation,click Help. ForUNIXguests,topassXtoolkitoptionswhenyoupoweronavirtualmachine, seeAppendix A,WorkstationCommandLineReference,onpage 477.
Download Components
Workstationliststhecomponentsthatmustbeinstalledtoimprovetheuserexperience oftheproduct.Beforeyoubegin,upgradetothelatestversionofWorkstation.Checkto makesureyouhavenetworkconnectivity. 1 Poweronthevirtualmachine. TheDownloadsdialogboxappearswithalistofcomponentsreadyfordownload ifyouareconnectedtotheInternetandmusteitherinstallorupdateVMware Tools. 2 IfyouareusingaproxytoconnecttotheInternet,completethefollowingtasks: a SelectVM>InstallVMwareTools. TheSoftwareUpdatesdialogboxappears. b Completetheproxycredentialstocontinue,andclickOK.
TheDownloadsdialogboxappearswithalistofcomponentsreadyfordownload. 3 Downloadthecomponent.
SelectDownloadtodownloadthecomponent.
150
VMware, Inc.
TheDownloadsdialogcanbeminimizedintheWorkstationstatusbar.You canclickthearrowinthestatusbartoopenthedownloadprogresswindow.
VMware, Inc.
151
ThepausefeaturedoesnotworkwhenavirtualmachineisinUnitymode.You cannotswitchtoUnitymodewhenavirtualmachineispaused. Youcannotswitchtoexclusivemodewhenavirtualmachineispaused. Thepausefeaturedoesnotworkwhenyouareusingtherecord/replayfeatureor whenthereplaydebuggerisattached.Therecord/replayfeaturedoesnotwork whenavirtualmachineispaused. Whenpaused,avirtualmachinedoesnotsendorreceivenetworkpackets.Ifa virtualmachineispausedformorethanafewminutes,somenetworkconnections mightbeinterrupted. Ifyoutakeasnapshotwhenthevirtualmachineispaused,thevirtualmachineis notpausedwhenyourestorethatsnapshot.Similarly,ifyoususpendavirtual machinewhileitispaused,itisnotpausedwhenyouresumethevirtualmachine. Ifyouinitiatesoftpoweroperationswhenavirtualmachineispaused,those operationsdonottakeeffectuntilthevirtualmachineisunpaused. Whileavirtualmachineispaused,LEDsanddevicesremainenabled,butdevice connectionchangesdonottakeeffectuntilthevirtualmachineisunpaused.
SelectVM>Pause. Thevirtualmachinedisplaydimsandaplaybuttonappearsoverthedisplay.
Clicktheplaybuttononthevirtualmachinedisplay,ordeselectVM>Pause.
152
VMware, Inc.
Restrictions on Encryption
Theencryptionfeaturehasthefollowingrestrictions:
Avirtualmachinemustbepoweredoffbeforeyoucanaddorremoveencryption, orchangetheencryptionpassword. Theencryptionfeatureworksonlywithvirtualmachinesofvirtualhardware version5.xorlater. Youcancreatealinkedclonefromanencryptedvirtualmachine,butyoucannot encryptorremoveencryptionfromavirtualmachinethatistheparentofalinked clone. Thereisoneexceptiontothisrestriction.IfyouusetheConversionwizard(File> ImportorExport)tocreatealinkedclone,youcancreatealinkedclonewithout disablingtheencryptionfeaturefortheparentvirtualmachine.Ifyoucreatea linkedclonethiswayandthenencrypttheparentvirtualmachine,thelinkedclone cannotreaddatafromthevirtualdiskoftheencryptedparentvirtualmachine.To fixthisproblem,unencrypttheparentvirtualmachine. Ifyouplantousetheencryptionfeature,VMwarerecommendsthatyouavoidthis potentialproblembyusingVM>Clonetocreatealinkedclone.Workstation disablestheencryptionfeaturefortheparentofalinkedclonethatiscreatedwith theVM>Cloneoption.
VMware, Inc.
153
YoucannotencryptACEvirtualmachines.Ifyouhaveanencryptedvirtual machineyoucannotenableACEfeatures.
154
VMware, Inc.
To change the password for an encrypted virtual machine 1 2 3 4 SelectVM>Settings. ClicktheOptionstab,andselectEncryption. SelectChangePassword. Enteryourcurrentpasswordandthenewpassword,andenterthenewpassword againtoconfirmit. Besuretorecordthenewpassword.
VMware, Inc.
155
OnWindowshosts,pointtotheStartmenu. OnLinuxhosts,pointtotheupperleftcorneroftheprimarymonitor.
156
VMware, Inc.
Tohelpdistinguishbetweentheapplicationwindowsthatbelongtovariousvirtual machines,youcangivethemdifferentcolors.Forexample,youcansettheapplications foronevirtualmachinetohaveablueborderandsettheapplicationsforanother virtualmachinetohaveayellowborder. YoucanalsosetaWorkstationpreferencetominimizetheWorkstationwindowwhen youenterUnitymode. To set preferences for Unity mode 1 2 3 4 Selectthevirtualmachine. ChooseVM>Settings. ClicktheOptionstabandselectUnity. CompletethesettingspanelandclickOK. Usethefollowinginformationtodeterminewhichfeaturestoenable:
AStartmenuappearsonWindowsguests. AnApplicationsmenuappearsonLinuxguests.
OnWindowshosts,pointtotheStartmenu.OnLinuxhosts,pointtothe upperleftcorneroftheprimarymonitor.Themenuhasthesamecolorborder asthevirtualmachineapplicationwindows. 5 6 RepeatthisprocessforeachvirtualmachinethatyouplantouseinUnitymode. (Optional)ToautomaticallyminimizetheWorkstationwindowwhenyouenter Unitymode,dothefollowing: a b c ChooseEdit>Preferences. ClicktheDisplaytab. SelectMinimizeWorkstationwhenenteringUnityandclickOK. ThisWorkstationpreferenceisusedforallvirtualmachines.
VMware, Inc.
157
ThevirtualmachinemustbeaWorkstation6.xorhighervirtualmachine. VMwareToolsmustbeinstalledandrunninginthevirtualmachinesguest operatingsystem.TheversionofVMwareToolsmustbetheversionincludedin Workstation7.0.Forinstructions,seeInstallingVMwareToolsonpage 102. TheguestoperatingsysteminthevirtualmachinemustbeLinuxorWindows2000 orlater. ForLinuxguestsandhosts,VMwarerecommendsthatyouuseamodernversion ofMetacityorKDE.PerformanceonLinuxdependsonacombinationofvariables suchasthesystem,theapplicationsthatarerunning,andtheamountofRAM.
To enter and exit Unity mode 1 2 Inthevirtualmachine,opentheapplicationstouseinUnitymode. FromtheWorkstationmenubar,chooseView>Unity. AcheckmarkappearsnexttoUnityinthemenu. ThevirtualmachinesconsoleviewintheWorkstationwindowishidden,andthe guestsopenapplicationsappearinapplicationwindowsonthehostsdesktop. YoucanalsoenterUnitymodefromfullscreenmode. 3 ToexitUnitymode,displaytheWorkstationwindowandchooseView>Unityto removethecheckmarknexttoUnity,orclickExitUnityinthevirtualmachines consoleview.
158
VMware, Inc.
To access a virtual machines Start or Applications menu in Unity mode 1 2 ToenterUnitymode,poweronavirtualmachine,openoneormoreapplications, andchooseView>UnityfromtheWorkstationmenubar. TodisplaythevirtualmachinesStartorApplicationsmenuonthehost,dooneof thefollowing:
Beforeyoubegin,makesuretheguestoperatingsystemhasVMwareToolsinstalled. SeeInstallingVMwareToolsonpage 102. NOTEIfyouplantorunthevirtualmachineinfullscreenmodeonalaptopcomputer, alsosettheguesttoreportbatteryinformation.SeeReportBatteryInformationinthe Guestonpage 176. To use full screen mode 1 2 3 Selectthevirtualmachineandmakesureitispoweredon. Ifyouhavemultiplemonitors,movetheWorkstationwindowintothemonitorto useforfullscreenmode. ChooseView>FullScreen.
VMware, Inc.
159
Toswitchfromfullscreenmodebacktowindowedmode,whichshowsthe virtualmachineinsideaWorkstationwindowagain,pressCtrl+Alt+Enter. Tohidethefullscreentoolbarandmenuswhileyouareusingfullscreen mode,clickthepushpiniconandmovethepointeroffofthetoolbar. Thisactionunpinsthetoolbar.Thetoolbarslidesuptothetopofthemonitor anddisappears.Todisplaythetoolbaragain,pointtothetopofthescreen untilthetoolbarappears. Ifyoucannotdisplaythefullscreentoolbar,seeSetPreferencesforAutofit, FullScreenMode,andUnityModeonpage 160.
Toswitchfromonepoweredonvirtualmachinetoanotherwhileinfull screenmode,dooneofthefollowing:
Set Preferences for Autofit, Full Screen Mode, and Unity Mode
Youcansetpreferencesforhowthedisplaysettingsofallvirtualmachinesadjusttofit theWorkstationwindow.TheseadjustmentsoccurwhenyouresizetheWorkstation windoworwhenyouchangethedisplaysettingsinsidetheguest.
160
VMware, Inc.
Youcanalsoconfigurehowthehostandguestdisplaysettingsinteractwhenyouenter fullscreenmodeandUnitymode. Beforeyoubegin,makesurethatVMwareToolsisinstalledintheguestoperating systemsinthevirtualmachines. To set preferences for autofit, full screen mode, and Unity mode 1 2 3 4 ChooseEdit>Preferences. ClicktheDisplaytab. SelectoneormorecheckboxesintheAutofitsection. UsethefollowinginformationtohelpyoucompletetheFullScreensection:
VMware, Inc.
161
Quickswitchmodeissimilartofullscreenmodewiththeadditionoftabsatthetopof thescreenforswitchingfromonevirtualmachinetoanother.Theotherdifferenceis thatyoucanusequickswitchmodewithvirtualmachinesthatarepoweredonoroff. To use quick switch mode 1 2 3 4 5 Selectthevirtualmachine. ChooseView>QuickSwitch. (Optional)ToviewtheWorkstationmenuandtoolbarwhileusingquickswitch mode,pointtothetopofthescreen. (Optional)Toresizeaguestoperatingsystemsdisplaysothatitfillsasmuchofthe screenaspossibleinquickswitchmode,chooseView>FitGuestNow. Toexitquickswitchmode,pointtothetopofthescreenandchooseView>Quick Switch.
OnWindowshosts,clicktheWorkstationicontodisplaythesystemmenu andchooseExclusiveMode.
OnLinuxhosts,clicktheViewmenuonthefullscreentoolbarandchoose ExclusiveMode.
Toexitexclusivemodeandreturntowindowedmode,pressCtrl+Alt.
ThevirtualmachineisaWorkstation6.xorhighervirtualmachine. VMwareToolsisinstalledandrunninginthevirtualmachinesguestoperating system.TheversionofVMwareToolsmustbetheversionincludedinWorkstation 7.0.Forinstructions,seeInstallingVMwareToolsonpage 102. TheguestoperatingsysteminthevirtualmachineisWindowsXP,WindowsVista, Windows7,orLinux. Onthehost,thedisplaysettingsformonitorsmustbesetinacompatibletopology. Forexample,theleftmostmonitorcannotbeplacedlowerthananyothermonitor inthedisplaytopology.Itdoesnotmatterifthemonitorshavedifferentresolutions ororientations.Whenenteringfullscreenmode,themonitorthatcontainsthe Workstationwindowcannotbelowerthananothermonitor. Putanotherway:WhenyouusetheWindowsdisplaypropertiescontrols,ifyou selectamonitoriconandbegintodragittoanewlocation,atooltipdisplaysthe coordinates.Ifacoordinateshownforthenewlocationoftheiconisanegative number,thatlocationwillnotwork.
To use multiple monitors for one virtual machine 1 2 3 ChooseEdit>Preferences. ClicktheDisplaytabandintheFullScreensection,selectAutofitguestandclick OK. Selectavirtualmachine.
VMware, Inc.
163
4 5 6
OnthesettingspanelfortheDisplaytab,specifyhowtodeterminethenumberof monitors. Inmostcases,selectUsehostsettingformonitors.Ifthevirtualmachineisrunon ahostthatisusingonemonitor,thevirtualmachinedetectsonlyonemonitor.But ifthesamevirtualmachineismovedtoahostthatisusingtwomonitors,the virtualmachinedetectstwomonitors. Thenumberofmonitorsdependsonthenumberofmonitorsthatthehost recognizesatstartup.Forexample,ifyoupoweronalaptopthatisundocked,the hostsettingisonemonitor,evenifyoulaterplacetherunninglaptopinadocking stationthatusestwomonitors. Similarly,ifthehosthasonemonitorandyoususpendthevirtualmachineand changethehosttohavetwomonitors,whenyouresumethevirtualmachine,itis stillconfiguredtouseonemonitor.Youmustrestartthevirtualmachinetodetect thenewsettings. Youmightwanttosetaspecificnumberofmonitorsif,forexample,youare writinganapplicationtobedisplayedonmultiplemonitorsbutthehostyouare usinghasonlyonemonitor.
PoweronthevirtualmachineandchooseView>FullScreen. Formoreinformation,seeUseFullScreenModeonpage 159. Makesurethevirtualmachineiscompletelypoweredon.Ifwhenyoupoweron thevirtualmachine,itissettoberestoredfromasnapshotandifbackground snapshotsareenabled,poweringonmighttakelonger.Inthiscase,displayingthe virtualmachinetotwomonitorsmightnotworkcorrectlyatfirst.Ifyouseethis issue,gotoEdit>Preferences>Priorityanddeselectthecheckboxcalled Take andrestoresnapshotsinthebackground.
10
164
Onthefullscreentoolbar,clicktheCycleMultipleMonitorsbutton.
VMware, Inc.
Thisbuttonisavailableonlyifthehosthasmultiplemonitors.Thisbuttonisshown inFigure 71,FullScreenToolbaronaWindowsHost,onpage 159. ClickingtheCycleMultipleMonitorsbuttoncausestheguestoperatingsystems desktoptoextendtotheadditionalmonitorormonitors. Ifthevirtualmachinedoesnotappearcorrectly,usethesystemmenu(on Windowshosts)ortheViewmenu(onLinuxhosts)andselectAutofitGuest. 11 Ifyouhavemorethantwomonitors,andyouwantthevirtualmachinetouse them,clicktheCycleMultipleMonitorsbuttonagain. Theorderinwhichthemonitorsareuseddependsontheorderinwhichthe monitorswereaddedtothehostoperatingsystem. 12 Toreturntousingonlyonemonitor,clicktheCycleMultipleMonitorsbutton untilthedisplayreturnstoonemonitor.
DrageachWorkstationwindowtothemonitoronwhichyouwanttouseit.
VMware, Inc.
165
166
VMware, Inc.
Ifyouhavevirtualmachinesthatweresuspendedunderaversionof VMware Toolsearlierthanversion5.5,displayresizingdoesnotworkuntilthe virtualmachinesarecompletelypoweredoffandpoweredonagain.(Rebooting theguestoperatingsystemisnotsufficient.) UpdateVMwareToolstothelatestversionintheguestforthedisplayresizing optionstowork. BeforeyoucanusetheAutofitGuestandFitGuestNowoptions,VMwareTools mustberunning. AlltherestrictionsforresizingthattheX11Windowssystemimposesonphysical hostsapplytoguests:
Youcannotresizetoamodethatisnotdefined.TheVMwareTools configurationscriptcanaddalargenumberofmodelines,butyoucannot resizein1pixelincrementsasyoucaninWindows.VMwareToolsadds modelinesin100pixelincrements.Thismeansyoucannotresizeaguest largerthanthelargestmodedefinedinyourX11configurationfile.Ifyou attempttoresizelargerthanthatmode,ablackborderappearsandtheguest stopsincreasing. TheXserveralwaysstartsupinthelargestresolutionthatisdefined. You cannotavoidthisrestriction.TheXDM/KDM/GDMloginscreenalways appearsatthelargestsize.ButGnomeandKDEallowyoutospecifyyour preferredresolution,sothatyoucanreducetheguestdisplaysizeafteryou login.
VMware, Inc.
167
168
VMware, Inc.
Increasethenumberofcolorsavailableonthehost. Decreasethenumberofcolorsusedintheguest.
Forbestperformance,usethesamenumberofcolorsintheguestandonthehost.
IfyouareusingaWindowshost,turnuphardwareaccelerationinthedisplay properties:
Toensurethat3Dapplicationsworkonyourhost,run:
170
VMware, Inc.
glxgears
Afteryourhostisconfigured,configureavirtualmachineforaccelerated3D.
Configuring Sound
WorkstationprovidesasounddevicecompatiblewiththeSoundBlasterAudioPCIand supportssoundinWindows95,Windows98,WindowsMe,WindowsNT,Windows XP,WindowsVista,Windows7,WindowsServer2003,andLinuxguestoperating systems.TheWorkstationsounddeviceisenabledbydefault.
VMware, Inc.
171
Soundsupportincludespulsecodemodulation(PCM)outputandinput.Forexample, youcanplay.wavfiles,MP3audio,andRealMediaaudio.MIDIoutputfromWindows guestsissupportedbytheWindowssoftwaresynthesizer.MIDIinputisnotsupported, andnoMIDIsupportisavailableforLinuxguests. Workstation7.0andlaterforLinuxsupportsAdvancedLinuxSoundArchitecture (ALSA) WindowsXP,WindowsVista,Windows7andmostrecentLinuxdistributionsdetect thesounddeviceandinstallappropriatedriversforit. ForWindowsVistaorWindows7,whenyouinstallVMwareToolsina64bitWindows VistaorWindows7guestoperatingsystem,asounddriverisinstalled.For32bit WindowsVistaandWindows7guestsandWindows2003Serverguests,useWindows Updatetoinstalla32bitdriver.
172
VMware, Inc.
Obtaining Sound Card Information YoucanobtaininformationaboutthesoundcardsonyourLinuxhostsystemfromthe commandline. To obtain sound card information by using the command line Atacommandprompt,enteroneofthefollowingcommands.
Command lspci | grep -i audio cat /proc/asound/cards alsamixer Description Tolistthenameandtypeofthesoundchipsetonyourhost machine Tolistthesoundcardsonyourhostmachine Todeterminewhetherthecurrentuserhastheappropriate permissionstoaccessthesounddevice
Ifthecurrentuserdoesnothavepermissions,anerrorsimilartothefollowingmessage appears: alsamixer: function snd_ctl_open failed for default: No such device. Givetheuserread,write,andexecutepermissionstothedirectorycontainingthe ASLAsounddevice.Typically,theALSAsounddeviceisfoundin/dev/snd/,butthis locationmayvary,dependingonyourdistributionofLinux. Using ALSA in a Virtual Machine YoucanconfigureyourvirtualmachinetouseALSAintheVirtualMachineSettings dialogbox. To use ALSA in a virtual machine 1 2 3 SelectVM>Settings. OntheHardwaretab,selectSoundCard. MakesurethattheConnectedandConnectatpoweroncheckboxesarechecked.
VMware, Inc.
173
SelectoneoftheConnectioncheckboxes.
Command Usedefaulthostsoundcard Specifyhostsoundcard Description TohaveWorkstationdetectthehostsoundcard Tochooseasoundcard.Makeaselectionfromthe dropdownmenu.Thedropdownmenudisplays PCMdevicesforeverysoundcardonthehostsystem.
ClickSave.
Using an ALSA Sound Device that Does Not Appear in Virtual Machine Settings FollowthisproceduretouseanALSAsounddevicethatdoesnotappearinVirtual MachineSettings. To use an ALSA sound device that does not appear in Virtual Machine Settings 1 DeterminethenameoftheALSAsounddevice. Usingthealsa-utilspackage,atacommandprompt,enteraplay -Ltolist ALSAsounddevicesonyoursystem. 2 3 4 5 6 SelectVM>Settings. OntheHardwaretab,selectSoundCard. MakesuretheConnectedandConnectatpoweroncheckboxesarechecked. SelectSpecifyhostsoundcardandenterthenameoftheALSAsounddeviceto use,forexamplefront:CARD=Intel,DEV=0 ClickSave.
Overriding the ALS Library Version Requirement IfyourhostsystemdoesnotmeetALSArequirementsorforsomeotherreasoncannot useALSA,WorkstationusestheOSSAPIforsoundplaybackandrecording. Dependingonthesoundcardinthehostcomputer,thesoundqualitymightnotbeas goodwithanolderversionoftheALSAlibrary.VMwarerecommendsthatyou upgradethehostsystemtousenewersounddriversandlibraries. IfthehostsystemhasanolderversionoftheALSAlibrary,youcanoverridethe requirementforversion1.0.16.
174
VMware, Inc.
VMware, Inc.
175
To disable acceleration 1 Selectthevirtualmachine. Thevirtualmachinecanbepoweredofforon. 2 3 4 ChooseVM>Settings. OntheHardwaretab,selectProcessors. IntheExecutionModesection,selectDisableaccelerationforbinarytranslation andclickOK. Thissettingslowsdownvirtualmachineperformance.VMwarerecommendsthat youusethesettingonlyforgettingpasttheproblemwithrunningtheprogram. 5 Afteryoupassthepointwheretheprogramencounteredproblems,repeatStep 2 throughStep 4anddeselectDisableaccelerationforbinarytranslation.
176
VMware, Inc.
To use host printers in a virtual machine 1 2 3 4 Selectthevirtualmachine. SelectVM>Settings. OntheHardwaretab,selectAdd. IntheAddHardwareWizarddialogbox,selectVirtualPrinterandFinish. Thedefaultdevicesettingistoconnectthevirtualprinterwhenthevirtual machineispoweredon. WhentheACEVirtualPrinterpolicyisenabled,VirtualPrinterisavailableandcannot beremoveduntiltheACEVirtualPrinterpolicyisdisabled.
VMware, Inc.
177
NOTETheapplianceviewcannotbedisplayedforvirtualmachinesthatarepartofa team,justasthesummaryviewisnotdisplayedforindividualmembersofateam. To configure the appliance view for a virtual machine 1 (Optional)Tousealogointheapplianceview,createaPNGorBMPimagefilethat isnolargerthan256x256pixelsandplaceitinthedirectorythatcontainsthe.vmx fileforthevirtualmachine. Selectthevirtualmachine. Thevirtualmachinecanbepoweredonoroff. 3 4 5 6 ChooseVM>Settings. ClicktheOptionstabandselectApplianceView. SelecttheEnableapplianceviewcheckbox. Completethefieldsonthissettingspaneltocreatethetextandimagesthatusers seewhenthevirtualmachinestartsup. Usethefollowinginformationtoconfigurethesettingsonthispanel:
OnlytheNamefieldisrequired.
VMware, Inc.
178
ClickOK.
Whenauserstartsthisvirtualmachine,theapplianceviewappears.Apoweringon messageappears,followedbyalinktoaccesstheappliancesmanagementconsole.
Totakethescreenshot,dooneofthefollowing:
VMware, Inc.
179
180
VMware, Inc.
Whilemoviecaptureisactive,aredcircle(avirtualLED)appearsinthe notificationareaofthetaskbar.
5 6
Playthemoviebackinanycompatiblemediaplayer.
VIXAPIforwritingprogramstoautomatevirtualmachineoperations TheAPI ishighlevel,easytouse,andpracticalforbothscriptwritersandapplication programmers.APIfunctionsallowyoutoregister,poweronoroffvirtual machines,andrunprogramsintheguestoperatingsystems.Additionallanguage bindingsareavailableforPerl,COM,andshellscripts(vmrun).Formore information,seetheVMwareVIXAPIReleaseNotes. VAssertAPIforinsertingreplayonlycodetodebugapplications The experimentalVAssertfeatureenablesyoutousevirtualassertionsasyouwould regularassertionsintheapplicationsyoudevelop.VAssertsappearonlywhenyou replayarecordingofusingtheapplicationandsoareoverheadfree.ThisAPIis currentlyavailableonlyforWindowsguests.SeetheVAssertProgrammingGuide. VProbestoolforinvestigatingguestbehavior YoucanwriteVProbesscripts thatinspectandrecordactivitiesintheguest,VMM,VMX,andvirtualdevicestate, withoutmodifyingthatstate.Forexample,VProbescantrackwhichapplications arerunningorindicatewhichprocessesarecausingpagefaults.SeetheVProbes ProgrammingReference. VMCISocketsinterface ThisfeatureisasocketsinterfacefortheVirtual MachineCommunicationInterface,whichprovidesafastermeansof communicationamongapplicationsrunningonthehostandinvirtualmachines. Thisfeatureiswellsuitedfordeveloperswhowanttowriteclientserver applications.SeetheVMCISocketsProgrammingGuide.
181
VMware, Inc.
182
VMware, Inc.
Thischapterdiscusseshowtotransferfilesbetweenthehostandguest.Thischapter includesthefollowingtopics:
VMware, Inc.
183
Whenyoudragafileorfolderfromhosttovirtualmachineorthereverse,Workstation copiesthefileorfoldertothelocationwhereyoudropit.Forexample,ifyoudropafile onthedesktopiconofawordprocessor,thewordprocessoropenswithacopyofthe originalfile.Theoriginalfiledoesnotreflectanychangesyoumaketothecopy. Initially,theapplicationopensusingacopyofthefilethatisstoredinyourtemp directory.OnWindows,thisisthedirectoryspecifiedinthe%TEMP%environment variable,andonLinuxandSolaris,itisthe/tmp/VMwareDnDdirectory.Toprotectany changesyoumake,selectFile>SaveAsfromtheapplicationmenuandsavethefilein adifferentdirectory. YoucandragimagesbetweenapplicationsonWindowshostsandapplicationsonlyon Windowsguests,ineitherdirection.Youcanalsodragplaintext,formattedtext,and emailattachmentsbetweenapplicationsonWindowsandLinuxhostsandguestsin anycombination,ineitherdirection.Draggingemailattachmentsisespeciallyusefulin Unitymode. Thedraganddropfeaturehasthefollowingrestrictions:
Draggingemailattachmentsisrestrictedtoimagesorfilessmallerthan4MB. Draggingplaintextandformattedtext(includingtheformatting)isrestrictedto amountslessthan4MB. DraggingtextisrestrictedtotextinlanguagesthatcanberepresentedbyUnicode characters. WorkstationusesthePNGformattoencodeimagesthataredragged.Dragging imagesisrestrictedtoimagessmallerthan4MBafterconversiontoPNGformat. DraggingimagesisnotsupportedforLinuxhostsorguests. OnWindows95andWindows98guests,thedraganddropfeatureissupported onlyforfilesanddirectories.
184
VMware, Inc.
Chapter 8 Transferring Files and Text Between the Host and Guest
SelectordeselecttheEnabledraganddropcheckboxandclickOK.
Copyingandpastingemailattachmentsisrestrictedtoimagesorfilessmallerthan 4MB. Copyingandpastingplaintextandformattedtext(includingtheformatting)is restrictedtoamountslessthan4MB. Copyingandpastingtextisrestrictedtotextinlanguagesthatcanberepresented byUnicodecharacters. WorkstationusesthePNGformattoencodeimagesthatarecopiedandpasted. Copyingandpastingimagesisrestrictedtoimagessmallerthan4MBafter conversiontoPNGformat. Youcannotcopyandpastefilesbetweenvirtualmachines. OnWindows95andWindows98guests,copyingandpastingisrestrictedtoplain textinamountslessthan64KB.
VMware, Inc.
185
3 4
ClicktheOptionstabandselectGuestIsolation. SelectordeselecttheEnablecopyandpastecheckboxandclickOK.
186
VMware, Inc.
Chapter 8 Transferring Files and Text Between the Host and Guest
Tosetupafolderforsharingbetweenvirtualmachines,configureeachvirtualmachine tousethesamedirectoryonthehostsystem(oronthenetwork). To set up shared folders 1 2 3 4 StartWorkstationandselectavirtualmachine. ChooseVM>Settings. ClicktheOptionstabandselectSharedFolders. SelectAlwaysenabledorEnableduntilnextpowerofforsuspend. YoucanselectEnableduntilnextpowerofforsuspendonlywhenthevirtual machineispoweredon.Thissettingenablesfoldersharingtemporarily,untilyou shutdown,suspend,orrestartthevirtualmachine.Youmustselectthisoptionor AlwaysenabledtoenableordisablespecificfoldersintheFolderssection. 5 (Optional)Foreasyaccess,selecttheMapasanetworkdriveinWindowsguests checkboxtomapadrivetotheShared Foldersdirectory. Thisdirectorycontainsallthesharedfoldersyouenable.Thedriveletterisselected automatically. 6 ClickAdd. OnWindows,clickingAddstartstheAddSharedFolderwizard.OnLinux,it openstheSharedFolderPropertiesdialogbox. 7 UsethefollowinginformationtocompletethewizardorPropertiesdialogbox:
VMware, Inc.
187
SelectAlwaysenabledtoenableordisablespecificfoldersintheFolders section.
Accesstheenabledsharedfolder:
188
VMware, Inc.
Chapter 8 Transferring Files and Text Between the Host and Guest
VMware, Inc.
189
Afteryouenablefoldersharingforavirtualmachine,specifywhichfolderscanbe shared.
190
VMware, Inc.
Chapter 8 Transferring Files and Text Between the Host and Guest
Toviewaspecificsharedfolder,dooneofthefollowing:
OnaLinuxvirtualmachine,sharedfoldersappearunder/mnt/hgfs. OnaSolarisvirtualmachine,sharedfoldersappearunder/hgfs.
Performance Improvements
Hostguestfilesharingisintegratedwiththeguestpagecache.Filesinsharedfolders arecachedforreadingandcanbewrittentoasynchronously.However,youdonot experiencethereadcachingbenefitsonfilesthatarebeingactivelywrittentofromthe guest. Tospeedperformance,usethettl(timetolive)optiontothemountcommand.Usethis optiontospecifytheintervalusedbythehgfs(hostguestfilesystem)driverfor validatingfileattributes.Forexample,ifyouusethefollowingcommand,attributesare validatedevery3secondsinsteadofevery1second,whichisthedefault:
VMware, Inc. 191
Folder Mounting
Thismechanismallowsyoutomountoneormoredirectoriesorsubdirectoriesina sharedfoldertoanylocationinyourfilesysteminadditiontothedefaultlocationof /mnt/hgfs.Youcanusethemountprogramtomountallshares,oneshare,ora subdirectorywithinasharetoanylocationinyourfilesystem.Thefollowingtable providesexamples.
Command mount -t vmhgfs .host:/ /home/user1/shares mount -t vmhgfs .host:/foo /tmp/foo mount -t vmhgfs .host:/foo/bar /var/lib/bar Description Mountsallsharesto /home/user1/shares Mountsthesharenamedfooto /tmp/foo Mountsthesubdirectorybarwithin thesharefooto/var/lib/bar
NOTEWhenyouinstallVMwareTools,anentryismadetoetc/fstabtospecifythe locationofsharedfolders.Youcaneditthisfiletochangeoraddentries. Tousemountinthisway,youmustusethevirtualmachinesettingseditorin Workstationtosetupandenableasharedfolder.Aftertheshareexists,youcanmount thesharedfoldertootherlocationsbesidesthedefault. InpreviousversionsofVMwareTools,whenaLinuxguestattemptedtomounta sharedfolder,thevmware-guestdprogramattemptedtoperformthemount.Ifit failed,theonlyevidenceofthefailurewasanemptyfolder. WiththenewversionofVMwareTools,theToolsservicesscriptloadsadriverthat performsthemount.Ifthemountfails,amessageappearsregardingmountingHGFS shares.
192
VMware, Inc.
Chapter 8 Transferring Files and Text Between the Host and Guest
IfyouuseaWindowshostandcreatefilesthatyouwanttosharewithaLinux guest,readonlyfilesaredisplayedashavingreadandexecutepermissionfor everyone,andotherfilesareshownasfullywritablebyeveryone. IfyouuseaLinuxguesttocreatefilesforwhichyouwanttorestrictpermissions, usethemountprogramwiththefollowingoptionsintheguest:uid,gid,fmask, dmask,ro(readonly),andrw(readwrite).Notethatrwisthedefault. IfyouareusingavirtualmachinecreatedwiththeWindowsversionof WorkstationorapreviousreleaseoftheLinuxversionofWorkstation,youcan changeonlytheownerpermissions.Thisbehavioristhesameasinprevious releases.
VMware, Inc.
193
YoucanmountvolumesformattedwithFAT(12/16/32)orNTFSonly.Ifthevirtual diskhasamixofpartitions(volumes)where,forexample,apartitionis unformattedorisformattedwithaLinuxoperatingsystemandanotherpartition isformattedwithaWindowsoperatingsystem,youcanmounttheWindows partitiononly. Youcanmountavirtualdiskthathasasnapshot,butifyouwritetothedisk,you canirreparablydamageasnapshotorlinkedclonepreviouslycreatedfromthe virtualmachine. Youcannotmountavirtualdiskifanyofits.vmdkfilesarecompressedorhave readonlypermissions.Changetheseattributesbeforemountingthevirtualdisk. Youcannotmapormountavirtualdiskthatisencrypted. CAUTIONVMwarerecommendsthatyouleavethecheckboxcalledOpenfilein readonlymodeselectedintheMapaVirtualDiskdialogbox.Thissetting preventsyoufromaccidentallywritingdatatoavirtualdiskthatmightbethe parentofasnapshotorlinkedclone.Writingtosuchadiskmightmakethe snapshotorcloneunusable.
OnWindows,selectFile>MaporDisconnectVirtualDisks. OnLinux,selectFile>MountorUnmountVirtualDisks.
Mapormountavirtualdisk.
3 4 5
(Optional)Toviewamappeddrive,chooseVM>Settings>Hardware,select HardDiskandclickUtilities>MaporMountDisk.
VMware, Inc.
194
Chapter 8 Transferring Files and Text Between the Host and Guest
Youcannowpoweronanyvirtualmachinethatusesthisdisk.
VMware, Inc.
195
196
VMware, Inc.
Beforeyoubegin,makesureVMwareToolsisinstalledintheguestoperatingsystem. SeeInstallingVMwareToolsonpage 102. OnWindowsguests,whenyoudoasoftsuspend,ascriptreleasestheIPaddressifthe guestoperatingsystemisusingDHCP.OnLinux,FreeBSD,andSolarisguests,the scriptstopsnetworkingforthevirtualmachine.WhenyouusetheResumecommand onWindowsguests,ascriptgetsanewIPaddressfromDHCP.OnLinux,FreeBSD,and Solarisguests,networkingrestarts. To use hard suspend or soft suspend 1 2 3 4 5 Selectthevirtualmachine. ChooseVM>Settings. ClicktheOptionstab,andselectPower. InthePowercontrolssection,specifyahardsuspend(Suspend)orasoftsuspend (SuspendGuest)operation. ClickOK.
198
VMware, Inc.
Using Snapshots
Takingsnapshotsletsyoupreservethestateofthevirtualmachinesothatyoucan returntothesamestaterepeatedly.
lesson 1
lesson 2
lesson 3
lesson 4
lesson 5
Workstationsupportsmorethan100snapshotsforeachlinearprocess. Usesnapshotsinalinearprocessforthefollowingsituations:
Youplantomakeriskychangesinavirtualmachine,suchasbytestingnew softwareorexaminingavirus.Beforeaddingnew,untestedcodetoaproject,take asnapshot. Youcanalwaysreverttoapreviousknownworkingstateoftheprojectifthenew codedoesnotworkasexpected.Ifthenewcodecausesnoproblems,youcantake anothersnapshotofthevirtualmachineinitsnewstate. NOTEYoucanconfigureavirtualmachinetotakeasnapshotanytimeitis poweredoff,preservingavirtualaudittrailasworkprogresses.SeeTakeor ReverttoaSnapshotatPowerOffonpage 208.
VMware, Inc.
199
baseline
IE base
Firefox base
SP1
IE base1
Firefox base1
SP2
IE base2
Firefox base2
Snapshot Relationships
Therelationshipbetweensnapshotsislikeaparentchildrelationship:
200
VMware, Inc.
Theparentsnapshotofavirtualmachineisthesnapshotonwhichthecurrentstate(the YouAreHerepositioninFigure 93)isbased.Afteryoutakeasnapshot,thatstored stateistheparentsnapshotofthevirtualmachine.Ifyourevertorgotoanearlier snapshot,theearliersnapshotbecomestheparentsnapshotofthevirtualmachine. Figure 9-3. Parent-Child Relationship Between Snapshots
Snapshots 2, 3, and 4 are all children of Snapshot1.
Snapshot 4 is the parent of the You Are Here position and therefore the parent of the virtual machine.
Thestateofaphysicaldiskisnotpreservedwhenyoutakeasnapshot.However,the stateofanindependentdiskisnotaffectedbysnapshots. Snapshotsoperateonindividualvirtualmachines.Ifyouselectateamofvirtual machinesandtakeasnapshot,onlythestateoftheactivevirtualmachineispreserved. SeeSummaryandConsoleViewsforTeamsandTheirVirtualMachinesonpage 271. Whenyoureverttoasnapshot,youreturnthememory,settings,andvirtualdisksof thevirtualmachinetothestatetheywereinwhenyoutookthesnapshot.Tosuspend, poweron,orpoweroffthevirtualmachinewhenyoulaunchit,besureitisinthatstate whenyoutakethesnapshot.
Snapshot Conflicts
Avoidtakingasnapshotwhenapplicationsinthevirtualmachinearecommunicating withothercomputers,especiallyinproductionenvironments.
VMware, Inc.
201
202
VMware, Inc.
VMware, Inc.
203
Snapshotofavirtualmachinethatispoweredoff
Snapshotofavirtualmachinethatispoweredon
Snapshotusedtocreatealinkedclone
Recordingofavirtualmachine
AutoProtectsnapshot
YouAreHereicon
RenamingasnapshotTheNametextboxiseditable.Ifyourenameasnapshot foraclonedvirtualmachine,usetheDescriptionfieldforfutureidentification.
VMware, Inc.
204
Take a Snapshot
Youcanusuallytakeasnapshotwhileavirtualmachineispoweredon,poweredoff, orsuspended. Followingaretheprerequisitesfortakingasnapshot:
Anysuspendoperationsmustbecomplete. Thevirtualmachineisnotcommunicatingwithanothercomputer.SeeSnapshot Conflictsonpage 201. Ifyouruseofvirtualmachinesisstronglyperformanceoriented,theguest operatingsystemsdrivesaredefragmented.SeeDefragmentVirtualDiskson page 235. Ifthevirtualmachinehasmultipledisksindifferentdiskmodes,thevirtual machineispoweredoff.Forexample,ifaspecialpurposeconfigurationrequires youtouseanindependentdisk,youmustpoweroffthevirtualmachinebefore takingasnapshot.
205
VMware, Inc.
206
VMware, Inc.
CAUTIONIfyouaddanindependentdisktoavirtualmachineandtakeasnapshot, revertingtothesnapshotwillnotaffectthestateoftheindependentdisk. Butifyoutakeasnapshotofavirtualmachineandthenaddanykindofdisk,reverting tothesnapshotwillremovethediskfromthevirtualmachine.Ifassociateddisk (.vmdk)filesarenotusedbyanothersnapshot,thediskfilesaredeleted. To restore an earlier state from a snapshot Dooneofthefollowing:
Toreverttotheparentsnapshot,chooseVM>Snapshot>ReverttoSnapshot. Toreverttoasnapshotthatisnottheparent,chooseVM>Snapshotandselectthe snapshotname. Tosetthevirtualmachinetoreverttotheparentsnapshoteverytimethevirtual machineispoweredoff,seeRevertatPowerOffonpage 207. NOTEThelistofsnapshotsinVM>SnapshotdoesnotshowanAutoProtect snapshotuntilyourestorethatsnapshotinthesnapshotmanager.Usethe snapshotmanager(VM>Snapshot>SnapshotManager)todisplayandrestore AutoProtectsnapshots.
VMware, Inc.
207
CAUTIONIfasnapshotisusedtocreateaclone,thesnapshotbecomeslocked.Ifyou deletealockedsnapshot,theclonescreatedfromthatsnapshotnolongeroperate. Youcannotdeleteasnapshotiftheassociatedvirtualmachineisdesignatedasa templateforcloning.SeeEnableTemplateModeforaParentVirtualMachineof LinkedClonesonpage 217. To delete a snapshot or recording 1 2 3 SelectVM>Snapshot>SnapshotManager. (Optional)TodeleteAutoProtectsnapshots,makesurethatShowAutoProtect snapshotsisselected. Selectanoptiontodeleteasnapshotorrecording:
Todeleteallsnapshotsandrecordings,rightclickasnapshotorrecording, selectSelectAll,andclickDelete.
Whenpromptedtoconfirmthedeletion,clickOK,andclickCloseinthesnapshot manager.
JustpoweroffPowersoffwithoutmakinganychangestosnapshots.
208
VMware, Inc.
ClickOK.
VMware, Inc.
209
AutoProtect Restrictions
TheAutoProtectfeaturehasthefollowingrestrictions:
210
VMware, Inc.
SelectKeep.
VMware, Inc.
211
212
VMware, Inc.
10
10
TheVirtualMachinesUniversalUniqueIdentifieronpage 213 CloningaVirtualMachineonpage 215 MovingaVirtualMachineonpage 219 MovinganOlderVirtualMachineonpage 222 MovingLinkedClonesonpage 222 SharingVirtualMachineswithOtherUsersonpage 222 UsingVNCforRemoteConnectionstoaVirtualMachineonpage 223 MakeVirtualMachinesAvailableforStreamingfromaWebServeronpage 225 SharingVirtualMachineswithVMwarePlayeronpage 226
VMware, Inc.
213
Thevaluefor<action>canbeeithercreate,toalwaysgenerateanewUUID,or keep,toalwaysretaintheUUID.
214
VMware, Inc.
To specify a UUID for a virtual machine 1 2 3 Poweroffthevirtualmachine. Opentheconfiguration(.vmx)filewithatexteditor. Searchforthelinethatcontainsuuid.bios. Theformatofthelineisuuid.bios = "<uuid_value>",withquotationmarks aroundtheparametervalue.Followingisanexampleoftheconfigurationsetting:
uuid.bios = "00 11 22 33 44 55 66 77-88 99 aa bb cc dd ee ff"
4 5 6
ThenewUUIDisusedwhenthevirtualmachineboots.
AnMISdepartmentcancloneavirtualmachineforeachemployee,withasuiteof preconfiguredofficeapplications. Avirtualmachinecanbeconfiguredwithacompletedevelopmentenvironment andthenclonedrepeatedlyasabaselineconfigurationforsoftwaretesting. Ateachercancloneavirtualmachineforeachstudent,withallthelessonsandlabs requiredfortheterm. Withclonesyoucanmakecopiesofavirtualmachinewithoutbrowsingahostfile systemorworryingifyouhavelocatedalltheconfigurationfiles.Theexisting virtualmachineiscalledtheparentoftheclone.Whenthecloningoperationis complete,theclonebecomesaseparatevirtualmachine.Thesearethemain characteristicsofaclone: Changesmadetoaclonedonotaffecttheparentvirtualmachine.Changesmade totheparentvirtualmachinedonotappearinaclone. AclonesMACaddressandUUIDaredifferentfromtheparentvirtualmachine.
VMware, Inc.
215
Types of Clones
Twotypesofclonesareavailable:fullandlinked.
Full Clones
Afullcloneisacompleteandindependentcopyofavirtualmachine.Itsharesnothing withtheparentvirtualmachineafterthecloningoperation.Ongoingoperationofafull cloneisentirelyseparatefromtheparentvirtualmachine. Becauseafullclonedoesnotsharevirtualdiskswiththeparentvirtualmachine,full clonesgenerallyperformbetterthanlinkedclones.However,fullclonestakelongerto createthanlinkedclones.Creatingafullclonecantakeseveralminutesifthefiles involvedarelarge. Thefullcloneduplicatesonlythestateofthevirtualmachineattheinstantofthe cloningoperation.Thusthefullclonedoesnothaveaccesstoanysnapshotsthatmight existoftheparentvirtualmachine.
Linked Clones
Alinkedcloneisacopyofavirtualmachinethatsharesvirtualdiskswiththeparent virtualmachineinanongoingmanner.Alinkedcloneismadefromasnapshotofthe parent.SeeScenariosforUsingMultipleSnapshotsonpage 199.Thisconservesdisk spaceandallowsmultiplevirtualmachinestousethesamesoftwareinstallation. CAUTIONYoucannotdeletethelinkedclonesnapshotwithoutdestroyingthelinked clone.Youcansafelydeletethissnapshotonlyifyoualsodeletetheclonethatdepends onit. Allfilesavailableontheparentatthemomentyoutakethesnapshotcontinuetoremain availabletothelinkedclone.Ongoingchangestothevirtualdiskoftheparentdonot affectthelinkedclone,andchangestothediskofthelinkedclonedonotaffectthe parent. Alinkedclonemusthaveaccesstotheparent.Withoutaccesstotheparent,youcannot usealinkedclone.Youcanmakealinkedclonefromalinkedclone,butkeepinmind thattheperformanceofthelinkedclonedegrades.Whenpossible,makealinkedclone oftheparentvirtualmachine. Ifyoumakeafullclonefromalinkedclone,however,thefullcloneisanindependent virtualmachinethatdoesnotrequireaccesstothelinkedcloneoritsparent.
216 VMware, Inc.
Creating Clones
Ifyoudecidetocreatealinkedcloneandyouwanttopreventtheparentvirtual machinefrombeingaccidentallydeleted,enabletemplatemodebeforeusingtheClone VirtualMachinewizard.
VMware, Inc.
217
Forinformationaboutpreventingalinkedclonesparentvirtualmachinefrombeing deleted,seeEnableTemplateModeforaParentVirtualMachineofLinkedCloneson page 217. NOTEWorkstation4virtualmachines,andvirtualmachinescreatedwithother VMwareproductsthatarecompatiblewithWorkstation4,mustbeupgradedtoatleast Workstation5.xvirtualmachinesbeforeyoucanclonethem.SeeChangetheVersion ofaVirtualMachineonpage 93. To use the Clone Virtual Machine wizard 1 2 3 4 5 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>ClonetoopentheCloneVirtualMachinewizard. OntheWelcomepage,clickNext. OntheCloneSourcepage,selectthestateoftheparentfromwhichyouwantto createacloneandclickNext. Youcanchoosetocreateaclonefromtheparentscurrentstateorfromanyexisting snapshotoftheparent.Ifyouselectthecurrentstate,Workstationcreatesa snapshotofthevirtualmachinebeforecloningit. Thewizarddoesnotallowyoutoclonefromthecurrentstatewhentemplatemode isenabled. 6 7 OntheCloneTypepage,specifywhethertocreatealinkedcloneorafullcloneand clickNext. OntheNameoftheNewVirtualMachinepage,enteranameandapathforthe clonedvirtualmachineandclickFinish. Afullclonecantakemanyminutestocreate,dependingonthesizeofthevirtual diskthatisbeingduplicated. 8 ClickClosetoexittheCloneVirtualMachinewizard. TheCloneVirtualMachinewizardautomaticallycreatesanewMACaddressand UUIDfortheclone.Otherconfigurationinformationisidenticaltothatofthe parentvirtualmachine.Forexample,amachinesnameandstaticIPaddress configurationarenotalteredbytheCloneVirtualMachinewizard. 9 TopreventconflictwithstaticIPaddressing,changetheclonesstaticIPaddress beforethecloneconnectstothenetwork.
218
VMware, Inc.
VMware, Inc.
219
Open a Virtual Machine Created in ESX Server That Has More Than Two Processors
YoucanuseWorkstation5.5orhigher,runningonamultiprocessorhostmachine,to openavirtualmachinecreatedinVMwareESXServerthathasoneormorevirtual processors.However,inWorkstationyoucannotpoweronorresumeavirtualmachine thathasmorethantwovirtualprocessorsassigned,evenifmoreprocessorswere assignedwhenthevirtualmachinewascreatedinESXServer. Youcanseethissettinginthevirtualmachinessummaryvieworbyusingthevirtual machinesettingseditor. To open a virtual machine created in ESX Server that has more than two processors 1 2 SelectthevirtualmachineandchooseVM>Settings>Hardware>Processors. NotethatNumberofProcessorsissettoOther(x),wherexisthenumberof processorsoriginallyassignedinESXServer. Workstationpreservesthisoriginalconfigurationsettingforthenumberof processors,eventhoughtwoisthemaximumnumberofprocessorssupported. 3 Changethissettingtotwoprocessorssothatyoucanpoweronthevirtualmachine inWorkstation. Afteryoucommitachangetothissetting,theoriginalsettingfornumberof processorsisdiscarded,andnolongerappearsasanoptioninthevirtualmachine settingseditor.
220
VMware, Inc.
222
VMware, Inc.
VMware, Inc.
223
ClickOK.
224
VMware, Inc.
To use a VNC client to connect to a virtual machine 1 Onalocalorremotecomputer,startaVNCclient. YoucanuseanyVNCclient,butnotaJavaviewerinabrowser.Todownloadand installaVNCclient,checkoneofthemanyWebsiteswhereyoucanbuyorgetone forfree. 2 Makesuretheclientissetforhextileencoding. Forexample,ifyouuseRealVNCViewer,underthePreferredEncodingoption, selectHextile. 3 Settheclienttouseallcolors. Forexample,ifyouuseRealVNCViewer,undertheColourLeveloption,select Full(allavailablecolours). 4 WhenpromptedfortheVNCservername,enterthenameorIPaddressofthehost computerandtheportnumber. Usetheformat:
<machine_name>:<port_number>
Enterapasswordifyouarepromptedtodoso.
VMware, Inc.
225
DependingonthetypeofWebserver,usethefollowingkeepalivesettings:
4 5
Onproxyservers,settheproxyconnectiontoKeepalive. UploadthevirtualmachinedirectorytotheWebserver.
226
VMware, Inc.
Fromthecommandline,openacommandprompt,andenteroneofthe followingcommands:
OnWindows,enter<path>vmplayer.exe The<path>valueisthepathonyoursystemtotheapplicationfile.
FromtheWelcomepage,youcan:
ToexitVMwarePlayer,dooneofthefollowing:
Shutdowntheguestoperatingsysteminthevirtualmachine. VMwarePlayerclosesaftertheguestoperatingsystemshutsdown.
InVMwarePlayer,chooseFile>Exit(Windows)orFile>Quit(Linux).
VMwarePlayereithersuspendsorpowersoffthevirtualmachine,dependingon thepreferenceyousetforexitbehaviorinFile>Preferences.
VMware, Inc.
227
Determinewhichvirtualdevicesareactuallyrequired,anddonotincludeanythat arenotneededorusefulforthesoftwareyouaredistributingwiththevirtual machineandVMwarePlayer.Forexample,genericSCSIdevicesareextremely unlikelytobeappropriate. Toconnectaphysicaldevicetoavirtualdevice,usetheAutodetectoptionswhen configuringthevirtualmachine.TheAutodetectoptionsallowthevirtual machinetoadapttotheuserssystem,andtheyworkwhetherthehostoperating systemisWindowsorLinux.Userswhohavenophysicaldevicereceiveawarning message. ToconnectaCDROMorfloppytoanimagefilethatyoushipwiththevirtual machine,makesuretheimagefileisinthesamedirectoryasthevirtualmachine. Thisway,arelativepath,ratherthananabsolutepath,isused. ForbothaphysicalCDROMandanimage,providetwovirtualCDROMdevices inthevirtualmachine.VMwarePlayerdoesnotprovideawayintheuserinterface toswitchasingleCDROMdevicebetweenaphysicalCDROMandanimage. Thisalsomeansthatifyouwanttoshipmultipleimages,theusercannotswitch betweenthem. Chooseareasonableamountofmemorytoallocatetothevirtualmachine.Ifthe usershostmachinedoesnothaveenoughphysicalmemorytosupportthe memoryallocation,VMwarePlayercannotpoweronthevirtualmachine. InstallVMwareToolsinthevirtualmachine.VMwareToolssignificantlyimproves theusersexperienceworkingwiththevirtualmachine. Chooseareasonablescreenresolutionfortheguest.Auserislikelytofinditeasier toincreasetheresolutionmanuallythantodealwithadisplaythatexceedsthe usersphysicalscreensize.
VMware, Inc.
228
SomehostoperatingsystemsdonotsupportCDROMsinnonlegacymode.To ensurethatCDROMsworkproperlyinvirtualmachinesthatyouintendtobe distributedandplayedonVMwarePlayer,configureCDROMdevicesinlegacy mode.SeeLegacyEmulationforDVDandCDDrivesonpage 248. SelectanappropriatesettinginVM>Settings>Options>Snapshots>When poweringoff.SetthisoptiontoJustpowerofforReverttosnapshot.VMware Playerdoesnotallowtakingsnapshots. TheoptionReverttosnapshotisusefulifyouwanttodistributeademothatresets itselftoacleanstatewhenpoweredoff.
VMware, Inc.
229
230
VMware, Inc.
11
11
Thischapterprovidesinformationabouthowtoconfigurevirtualharddiskstorageto bestmeetyourneeds.Thischapterincludesthefollowingtopics:
VirtualMachineDiskStorageonpage 231 VirtualDiskMaintenanceTasksonpage 234 AddingVirtualandPhysicalDiskstoaVirtualMachineonpage 237 AddingDVD/CDROMandFloppyDrivestoaVirtualMachineonpage 246 UsingVMwareVirtualDiskManageronpage 250 UsingDualBootComputerswithVirtualMachinesonpage 250 LegacyVirtualDisksonpage 250
VMware, Inc.
231
Portability
Akeyadvantageofvirtualdisksistheirportability.Becausethevirtualdisksarestored asfilesonthehostmachineoraremotecomputer,youcanmovethemeasilytoanew locationonthesamecomputerortoadifferentcomputer.YoucanalsouseWorkstation onaWindowshosttocreatevirtualdisks,movethemtoaLinuxcomputer,anduse themwithWorkstationforLinux,andthereverse.SeeMovingaVirtualMachineon page 219.
Lock Files
Arunningvirtualmachinecreateslockfilestopreventconsistencyproblemsonvirtual disks.Withoutlocks,multiplevirtualmachinesmightreadandwritetothedisk, causingdatacorruption.
232
VMware, Inc.
Lockfilesarecreatedinsubdirectorieswitha.lcksuffix.Thelockingsubdirectories resideinthesamedirectoryasthevirtualmachines.vmdkfiles.Alockingsubdirectory andlockfilearecreatedfor.vmdkfiles,.vmxfiles,and.vmemfiles. AsoftheWorkstation6.0release,aunifiedlockingmethodisusedonallhostoperating systems,sofilessharedbetweenthemarefullyprotected.Forexample,ifoneuseron aLinuxhosttriestopoweronavirtualmachinethatisalreadypoweredonbyanother userwithaWindowshost,thelockfilespreventtheseconduserfrompoweringonthe virtualmachine. Whenavirtualmachinepowersoff,itremovesthelockingsubdirectoriesandtheirlock files.Ifitcannotremovetheselockingcontrols,oneormorestalelockfilesmight remain.Forexample,ifthehostmachinefailsbeforethevirtualmachineremovesits lockingcontrols,stalelockfilesremain. Whenthevirtualmachinerestarts,itscansanylockingsubdirectoriesforstalelockfiles and,whenpossible,removesthem.Alockfileisconsideredstaleifbothofthe followingconditionsaretrue:
Thelockfilewascreatedonthesamehostthatisnowrunningthevirtualmachine. Theprocessthatcreatedthelockisnolongerrunning.
Physical Disks
Insomecircumstances,youmightneedtogiveyourvirtualmachinedirectaccesstoa physicalharddriveonthehostcomputer.Aphysicaldiskdirectlyaccessesanexisting localdiskorpartition.Youcanusephysicaldiskstorunoneormoreguestoperating systemsfromexistingdiskpartitions. CAUTIONDonotattemptphysicaldiskconfigurationsunlessyouareanexpertuser.
Althoughvirtualdisksarelimitedto950GB,physicaldiskscanbesetuponbothIDE andSCSIdevicesofupto2TBcapacity.Bootingfromanoperatingsystemalreadyset uponanexistingSCSIdiskorpartitioniscurrentlynotsupported. CAUTIONRunninganoperatingsystemnativelyonthehostcomputerandswitching torunningitinsideavirtualmachineislikepullingtheharddriveoutofonecomputer andinstallingitinasecondcomputerwithadifferentmotherboardandhardware.The stepsyoutakedependontheoperatingsystemyouwanttouseinsidethevirtual machine.SeetheVMwaretechnicalnoteDualBootComputersandVirtualMachines. Youcanalsocreateanewvirtualmachinethatusesaphysicaldisk.SeeUsingPhysical DisksinaVirtualMachineonpage 240.Inmostcases,however,itisbettertousea virtualdisk.Ifyouuseaphysicaldisk,the.vmdkfilestoresinformationaboutthe physicaldiskorpartitionthatthevirtualmachineuses. Afteryouconfigureavirtualmachinetouseoneormorepartitionsonaphysicaldisk, donotmodifythepartitiontablesbyrunningfdiskorasimilarutilityintheguest operatingsystem. Ifyouusefdiskorasimilarutilityonthehostoperatingsystemtomodifythepartition tableofthephysicaldisk,youmustrecreatethevirtualmachinesphysicaldisk.All filesthatwereonthephysicaldiskarelostwhenyoumodifythepartitiontable.
234
VMware, Inc.
OnLinuxhosts,clickDefragment. OnWindowshosts,clickUtilitiesandchooseDefragment.
e 3
Whentheprocessisfinished,clickOK.
Runadiskdefragmentationutilityonthehostcomputer. Defragmentingdiskscantakeconsiderabletime.
VMware, Inc.
235
Thevirtualmachineispoweredoff. Thevirtualdiskisnotmapped(onWindowsguests)ormounted(onLinux guests). Youcannotcompactavirtualdiskwhileitismappedormounted. Thediskspaceisnotpreallocatedforthevirtualharddisk.Usethevirtualmachine settingseditortoviewthediskinformationforthisvirtualharddisk.Ifthedisk spacewaspreallocated,youcannotcompactthedisk. Ifthevirtualharddiskisanindependentdisk,itisinpersistentmode. Tochangethemode,seeExcludeaVirtualDiskfromSnapshotsonpage 203for adescriptionofindependentdisks.
236
VMware, Inc.
Todeterminewhetherthevirtualmachinehassnapshots,isalinkedclone,oristhe parentofalinkedclone,checktheinformationatthetopoftheSummarytabforthe virtualmachine. To expand a virtual disk 1 2 3 4 5 SelectVM>Settings. OntheHardwaretab,selectHardDiskforthevirtualharddisktoexpand. SelectUtilities>Expand. Setthenewmaximumsizeforthevirtualdisk. SelectExpand.
Afteryouexpandthevirtualdisk,youmustuseadiskmanagementtooltoincreasethe diskpartitionsizetomatchtheexpandedvirtualdisksize.
To add a new virtual disk to a virtual machine 1 2 3 4 5 SelectthevirtualmachineandchooseVM>Settings. OntheHardwaretab,clickAddtostarttheAddHardwarewizard. OntheHardwareTypepage,selectHardDiskandclickNext. OntheSelectaDiskpage,selectCreateanewvirtualdiskandclickNext. OntheSelectaDiskTypepage,chooseIDEdiskorSCSI. SeeIDEandSCSIDiskTypesonpage 233. Workstation6.xvirtualmachinescanuseupto4IDEdevicesandupto60SCSI devices.AnyofthesedevicescanbeavirtualorphysicalharddiskorDVDor CDROMdrive. 6 (Optional)Toexcludedisksfromsnapshots,intheModesection,select Independentforthemodeandchooseoneofthefollowingoptions:
SeeInformationCapturedbySnapshotsonpage 201. 7 OntheSpecifyDiskCapacitypage,setthecapacityforthenewvirtualdisk. Youcansetasizebetween0.1GBand950GBforavirtualdisk.SeeDiskSizeand Filesonpage 232. 8 OntheSpecifyDiskFilepage,acceptthedefaultfilenameandlocationorbrowse toandselectadifferentlocationandclickFinish. Thewizardcreatesthenewvirtualdisk.Itappearstoyourguestoperatingsystem asanew,blankharddisk. 9 10 Inthevirtualmachinesettingseditor,clickOK. Usetheguestoperatingsystemtoolstopartitionandformatthenewdriveforuse.
238
VMware, Inc.
Afteryouremovethediskfromthevirtualmachine,youcandoeitherofthefollowing:
VMware, Inc.
239
Checktheguestoperatingsystemdocumentationregardingthetypeofpartition onwhichtheoperatingsystemcanbeinstalled.
240
VMware, Inc.
IfyouuseaWindowshostsIDEdiskinaphysicaldiskconfiguration,make sureitisnotconfiguredastheslaveonthesecondaryIDEchannelifthe masteronthatchannelisaCDROMdrive. IfyourhostisrunningWindowsXPorWindowsServer2003,donotusea dynamicdiskasaphysicaldiskinavirtualmachine.Usethedisk managementtooltocheckthedisktypeandchangeadynamicdisktoabasic disk,whichdestroysalldata.SeeChangeaWindowsDiskTypefrom DynamictoBasiconpage 241. Makesurethepartitionyouwanttouseisunmapped.SeeUnmapaPartition ThatIsMappedtoaWindowsNTHostonpage 242.
Afteryoudeterminethatthephysicaldiskmeetstheseprerequisites,useeitherofthe followingstrategiestousethephysicaldiskinavirtualmachine:
Change a Windows Disk Type from Dynamic to Basic TouseaharddiskinavirtualmachinewhosehostisrunningWindowsXPorWindows Server2003,thevirtualmachinemustuseabasicdisk. To change a Windows disk type from dynamic to basic 1 Onthehost,chooseStart>Settings>ControlPanel>AdministrativeTools> ComputerManagement>DiskManagement. Thediskmanagementtoolopens. 2 Deletealllogicalvolumesonthedisk. Thisactiondestroysalldataonthedisk. 3 4 RightclickthediskiconandselectReverttoBasicDisk. Partitionthedisk.
VMware, Inc.
241
Unmap a Partition That Is Mapped to a Windows NT Host Corruptioncanoccurifyouallowthevirtualmachinetomodifyaphysicaldisk partitionthatissimultaneouslyusedasamappeddriveonthehost. To unmap a partition that is mapped to a Windows NT host 1 2 3 ChooseStart>Programs>AdministrativeTools. Highlightthepartitiononwhichyouplantoinstalltheguestoperatingsystem, andchooseTools>AssignDriveLetter. ChooseDonotassignadriveletterforthepartitionandclickOK.
Unmap a Partition That Is Mapped to a Windows Server 2003 or Windows XP Host Corruptioncanoccurifyouallowthevirtualmachinetomodifyaphysicaldisk partitionthatissimultaneouslyusedasamappeddriveonthehost. To unmap a partition that is mapped to a Windows Server 2003 or Windows XP host 1 2 3 ChooseStart>Settings>ControlPanel>AdministrativeTools>Computer Management>Storage>DiskManagement. SelectapartitionandchooseAction>AllTasks>ChangeDriveLetterandPaths. ClickRemove.
Unmap a Partition That Is Mapped to a Windows Vista Host Corruptioncanoccurifyouallowthevirtualmachinetomodifyaphysicaldisk partitionthatissimultaneouslyusedasamappeddriveonthehost. To unmap a partition that is mapped to a Windows Vista host 1 2 3 SelectStart>ControlPanel(ClassicView)>AdministrativeTools>Computer Management>Storage>DiskManagement. RightclickapartitionandchooseChangeDriveLetterandPaths. ClickRemoveandOK.
242
VMware, Inc.
To unmap a partition that is mapped to a Windows 7 host 1 2 3 4 5 SelectStart>ControlPanel. Inthemenubar,clickthearrownexttoControlPanel. Fromthedropdownmenu,selectAllControlPanelItems>Administrative Tools>ComputerManagement>Storage>DiskManagement(Local). RightclickapartitionandchooseChangeDriveLetterandPaths. ClickRemoveandOK.
Set Permissions on Linux Hosts Ifpermissionsaresetcorrectly,thephysicaldiskconfigurationfilesinWorkstation guardaccess.Thisreliabilityprovidesbootmanagersaccesstoconfigurationfilesand otherfilestheymightneedtobootoperatingsystems.Forexample,LILOneedstoread /bootonaLinuxpartitiontobootanonLinuxoperatingsystemthatmightbeon anotherdrive. To set permissions on Linux hosts 1 Makesurethemasterphysicaldiskdeviceordevicesarereadableandwritableby theuserwhorunsWorkstation.
GrantVMwareWorkstationusersaccesstoall/dev/hd[abcd]physicaldevices thatcontainoperatingsystemsorbootmanagers.
VMware, Inc.
243
To create a virtual machine that uses a physical disk 1 2 UsetheCustomsetupintheNewVirtualMachinewizardtocreateavirtual machinethatusesaphysicaldisk. OntheSelectaDiskpageofthewizard,selectUseaphysicaldisk,andchooseto useindividualpartitionsortheentiredisk. Ifyouuseindividualpartitions,onlythepartitionsyouselectareaccessibletothe virtualmachine.Theotherpartitionsmightbevisibletotheguestoperating system,butyoucannotmount,access,orformatthem. 3 (Optional)Tospecifyadevicenodeforthevirtualdiskorexcludedisksfrom snapshots,dothefollowing: a b c d
SelectthevirtualmachineandchooseVM>Settings. OntheHardwaretab,selectthephysicaldiskandclickAdvanced. Tochangethedevicenode,selectfromtheVirtualdevicenodelist. Toexcludedisksfromsnapshots,selectIndependentforthemodeandchoose oneofthefollowingoptions: PersistentDisksinpersistentmodebehavelikeconventionaldisksona physicalcomputer.Alldatawrittentoadiskinpersistentmodeiswritten permanentlytothedisk. NonpersistentChangestodisksinnonpersistentmodearediscardedwhen youpowerofforresetthevirtualmachine.Nonpersistentmodeenablesyou torestartthevirtualmachinewithavirtualdiskinthesamestateeverytime. Changestothediskarewrittentoandreadfromaredologfilethatisdeleted whenyoupowerofforresetthevirtualmachine. SeeInformationCapturedbySnapshotsonpage 201.
244
VMware, Inc.
Beforeyoubegin,completethetasksdescribedinPrerequisitesforUsingaPhysical Diskonpage 240. CAUTIONAfteryouaddavirtualmachinediskbyusingoneormorepartitionsona physicaldisk,nevermodifythepartitiontablesbyrunningfdiskorasimilarutilityin theguestoperatingsystem.Ifyoudoso,youmustrecreatethevirtualmachines physicaldisk. To add a physical disk to an existing virtual machine 1 2 3 4 5 6 7 8 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>Settings. OntheHardwaretab,clickAdd. OntheHardwareTypepage,selectHardDiskandclickNext. OntheSelectaDiskpage,selectUseaphysicaldiskandclickNext. Ifawarningappears,clickOK. OntheSelectaPhysicalDiskpage,dothefollowing: a Choosethephysicalharddisktousefromthedropdownlist. Workstationsupportsphysicaldisksupto2TB. b 9 Selectwhetheryouwanttousetheentirediskoronlyindividualpartitionson thediskandclickNext.
10 11
VMware, Inc.
245
Toexcludedisksfromsnapshots,selectIndependentforthemodeandchoose oneofthefollowingoptions: PersistentDisksinpersistentmodebehavelikeconventionaldisksona physicalcomputer.Alldatawrittentoadiskinpersistentmodeiswritten permanentlytothedisk. NonpersistentChangestodisksinnonpersistentmodearediscardedwhen youpowerofforresetthevirtualmachine.Nonpersistentmodeenablesyou torestartthevirtualmachinewithavirtualdiskinthesamestateeverytime. Changestothediskarewrittentoandreadfromaredologfilethatisdeleted whenyoupowerofforresetthevirtualmachine. SeeInformationCapturedbySnapshotsonpage 201.
12 13
246
VMware, Inc.
To add a DVD or CD drive to a virtual machine 1 2 3 4 5 6 Selectthevirtualmachine. ChooseVM>Settings. OntheHardwaretab,clickAdd. OntheHardwareTypepage,selectDVD/CDROMDriveandclickNext. MakeaselectionontheSelectaDriveConnectionpageandclickNext. (Optional)IfyouselectUsephysicaldrive: a b c ChooseadrivefromthedropdownlistorchooseAutodetect. ToavoidconnectingtheCDdrivewhenthevirtualmachinestarts,deselect Connectatpoweron. Tospecifywhichdevicenodethedriveusesinthevirtualmachine,click Advanced. SelectLegacyemulationonlyifyouexperiencedproblemsusingnormal mode.SeeLegacyEmulationforDVDandCDDrivesonpage 248. d 7 ClickFinish.
VMware, Inc.
247
248
VMware, Inc.
7 8
5 6
(Optional)Tomakethefilereadonly,selecttheReadOnlycheckbox. ClickOK.
VMware, Inc.
249
250
VMware, Inc.
YoucanuseWorkstation7.0topoweronvirtualmachinescreatedwitholderversions ofWorkstationorotherVMwareproducts.However,manynewfeaturesof Workstationarenotavailableinoldervirtualmachines.Toupgradeyourvirtual machinestoWorkstation7.0,seeChangetheVersionofaVirtualMachineonpage 93. Ifyoudecidenottoupgradeavirtualmachine,VMwarerecommendsthatyouupgrade VMwareToolstothelatestversion.SeeVMwareToolsUpdateProcessonpage 112. DonotremovetheolderversionofVMwareToolsbeforeinstallingthenewversion. YoucanalsouseWorkstationtocreateaversion4,5.x,or6.xvirtualmachine.SeeUse theNewVirtualMachineWizardonpage 87.UsetheCustomsetupinthewizard. NOTEIfyouhaveWorkstation 2or3virtualmachinesthatyouwanttousewith Workstation 7.0,upgradethevirtualmachinestoatleastWorkstationversion 4before youattempttopowerthemonwithWorkstation 7.0.
VMware, Inc.
251
252
VMware, Inc.
12
12
Therecord/replayfeatureallowsyoutorecordallofaWorkstation5.x,6.x,or7.0virtual machinesactivityoveraperiodoftime.Thischapterincludesthefollowingtopics:
UsesoftheRecord/ReplayFeatureonpage 253 PhysicalandVirtualHardwareRequirementsonpage 254 ConfigureRecord/ReplayforaVirtualMachineonpage 255 CreateaRecordingonpage 260 ReplayaRecordingonpage 261 UsinganExecutionTraceFileofaRecordingonpage 262 MaintenanceTasksforUsingRecordingsonpage 264
VMware, Inc.
253
HostCPUsRecord/replaysupportislimitedtocertainprocessorsonthehost. If youusetherecord/replayfeatureonahostcomputerthatdoesnothavethe supportedprocessor,whenyouenabletherecord/replayfeatureandtrytocreate arecording,amessageappears,informingyouthatrecordingisnotsupportedon yourprocessor. SupportedprocessorsincludeIntelPentium4,IntelCore2andlaterversions, NextGenerationIntelMicroarchitectureNehalem,andPenryn/Harpertown,and AMDBarcelonaandlaterversions.Otherprocessorsmightoperatemoreslowly duringrecordingandreplaying. NOTEIftherecord/replayfeatureisunstableonyourP4system,disable hyperthreadingandlogicalprocessorsintheBIOS. WhenthesefeaturesareenabledinBIOS,otherapplicationsusingperformance countersmayinterferewiththevirtualmachinerunningintherecord/replay mode.Anexampleofanapplicationusingperformancecountersisthe performanceprofilingtool. Toensurethattheprocessorconfigurationiscompatiblewithrecord/replayyou mustconfigureyourvirtualmachine.SeeConfigureRecord/ReplayforaVirtual Machineonpage 255.
Windows2000,XP,2003,Vista,7
254
VMware, Inc.
UnsupportedoperatingsystemsWindows2000isanunsupportedhost operatingsystem.Ifyouattempttoenabletherecord/replayfeatureonan unsupportedoperatingsystem,thevirtualmachinedoesnotpoweronuntilyou disablerecord/replay. UnsupportedvirtualhardwareSMPandparavirtualizationonVMIarenot supportedwithrecord/replay. DiskspaceHowmuchdiskspacearecordingusesdependsonthetypeof activitythatoccursonthevirtualmachineandthedurationoftherecording session.Bydefault,ascreenshotiscreatedevery15seconds.Therefore,assume thatyouwillneedseveralmegabytesofdiskspaceforoneminuteofrecording. NOTEHavinganumberofvirtualmachineswithhighresolutiondisplaysettings openonthescreenconsumesmorediskspace.
VMware, Inc.
255
ClickOK.
256
VMware, Inc.
StopStopstherecordingthatisinprogress. AddSnapshotTakesareplaysnapshotatthecurrentlocationwithinthe recording.Youcanusethissnapshotduringreplaytoskipaheadinarecording. AddMarkerAddsamarkerintherecordingwithouttakingareplaysnapshot. Youcanaddandlabelamarkerasareminderofapointofinterestintherecording. MinimizeOnWindowsandLinuxhosts,the()buttonminimizestherecord controldialogboxtothelowerleftsideofthestatusbar.Theminimizedmode allowsyoutoworkonthevirtualmachineandusethecontrolsinthestatusbarto eitherstoparecordingoraddamarker. NOTEYoucannotclosetherecordcontroldialogbox.
MaximumdiskspaceShowsthemaximumdiskspacequotaallocatedforthe recording. SavingthelastDisplaystheapproximatedurationoftimewheretheendofa recordingissaved.Forexample,ifyouaresavingthelast30minutesofthe recording,astherecordingcontinues,onlythelast30minutesofthevirtual machineactivityissavedatanygiventime. SnapshotFrequencyShowsthefrequencywhenanautomaticreplaysnapshot isaddedtotherecording. NextautosnapshotDisplayswhenthenextautomaticreplaysnapshotisgoing tobeaddedtotherecording. LastsnapshotIndicateswhenthelastreplaysnapshotwasaddedtothe recording.
VMware, Inc.
257
zoom controls
Go to Beginning
Go to Previous Snapshot
Go to Next Snapshot
pause
replay snapshots
Thereplaycontroldialogboxcontainsthefollowingbuttons:
258
VMware, Inc.
AddMarkerAddsamarkerintherecordingwithouttakingareplaysnapshot. Youcanaddandlabelamarkerasareminderofapointofinterestintherecording. GotoBeginningReturnstothebeginningoftherecording. GotoPreviousSnapshotReplaystherecordingtothepointwheretheprevious replaysnapshotislocatedandpausestheplayback. GotoNextSnapshotReplaystherecordingtothepointwherethenextreplay snapshotislocatedandpausestheplayback. GotoThisSnapshotReplaystherecordingfromtheselectedreplaysnapshot. Rightclickthereplaysnapshoticontousethisoption. RenameThisSnapshotRenamestheselectedreplaysnapshot.Rightclickthe replaysnapshoticontousethisoption. DeleteUptoThisSnapshotDeletestheportionoftherecordinguptothe selectedreplaysnapshot.Allthemarkersandreplaysnapshotsuptotheselected replaysnapshotaredeletedandcannotberecovered.Rightclickthereplay snapshoticontousethisoption. DeleteAfterThisSnapshotDeletestheremainingportionoftherecordingafter theselectedreplaysnapshot.Allthemarkersandreplaysnapshotsafterthe selectedreplaysnapshotaredeletedandcannotberecovered.Rightclickthe replaysnapshoticontousethisoption. RenameThisMarkerRenamestheselectedmarker.Rightclickthemarkericon tousethisoption. DeleteThisMarkerDeletestheselectedmarker.Rightclickthemarkericonto usethisoption. CurrentReplayPositionSliderAllowsyoutopreviewareplay.Youcandragthe slidertothenearestpreviousmarkerorreplaysnapshotandstartreplaying.On Linux,theautoscrollfunctionofthezoomedinportionisenabled.TheCurrent ReplayPositionSliderisaredarrowlocatedintheprogresstimeline. ZoomcontrolControlsthezoominandoutfunctionduringreplay. MinimizeThe()buttonminimizesthedialogboxtothebottomlefthandside ofthestatusbar.Theminimizedmodeallowsyoutoviewtherecordinginthe virtualmachineandusethecontrolsinthestatusbar.Theprogressindicatorinthe statusbarshowsthetimelineoftherecording. NOTEYoucannotclosethereplaycontroldialogbox.
VMware, Inc.
259
Create a Recording
Whilecreatingarecordingyoucannotpauseorreverseit.Formoreinformationabout enablingrecord/replayseeConfigureRecord/ReplayforaVirtualMachineon page 255. Beforeyoubegin,verifythescreenresolutionsettings.Theexistingscreenresolutionis usedinthevirtualmachinewhilereplayingarecording.Theresolutioncannotbe changedduringreplay. NOTEIfyouhotremoveavirtualdevicefromtheguestbyusingtheWindowsSafely RemoveHardwareoptionwhilecreatingarecording,therecordingterminates unexpectedly. To create a recording 1 2 Poweronthevirtualmachine. TobeginrecordingselectVM>Replay>Record. Arecordingspecificsnapshotistaken,andtherecordingdialogboxindicatesthat recordingisinprogress. IftheRecordcommandisunavailable,thefeaturemightnotbeenabledorthehard diskmightbesettoindependentmode. 3 (Optional)Toaddareplaysnapshotduringrecording,clickAddSnapshotand labelthereplaysnapshotintheAddReplaySnapshotdialogbox. Takingasnapshotpausestheexecutionofthevirtualmachineforafewseconds. Asidefromthereplaysnapshotsyouadd,replaysnapshotsareautomatically addedaccordingtothefrequencyyousetbyusingthevirtualmachinesettings editor. 4 (Optional)Toaddamarkerduringrecording,clickAddMarkerandlabelthe markerintheAddMarkerdialogbox. Addingmarkersdoesnotpausetheexecutionofthevirtualmachine.
260 VMware, Inc.
6 7
Replay a Recording
Ifyouchangefromwindowedmodetofullscreenmodeduringreplay,theautofit featuredoesnotwork. To replay a recording 1 2 Selectthevirtualmachine. Ifitispoweredonandyoudonotwanttolosethecurrentstateofthevirtual machine,takeasnapshotofit. Forinstructions,seeTakeaSnapshotonpage 205. 3 ToplaythelatestrecordingofthevirtualmachineselectVM>Replay>Replay <name_of_recording>. OnWindows,whilereplayingarecordingyoucanusethecontrolsinthe minimizedreplaycontrol. 4 Toplayanearlierrecording,usethesnapshotmanager,asfollows: a b SelectVM>Snapshot>SnapshotManager. SelecttherecordingsnapshottoplayandclickReplay. IfyoustoptherecordingbeforeitisfinishedreplayingbyclickingtheGoLive buttonandreplaytherecordingagain,therecordingstartsfromthe beginning,notfromthepointwhereyouclickedGoLive. AsnapshotofarecordingisshowninFigure ,SnapshotManagerOverview, onpage 203. 5 6 Inthedialogboxthatappears,confirmthatyouwanttostartreplayingthe recording. Tosuspendthereplay,clickthePausebuttoninthereplaycontroldialogbox.The buttontogglestoaPlaybuttonsothatyoucanclickitagaintoresumeplayingthe recording.
261
VMware, Inc.
7 8
Browse a Recording
Thelengthofarecordingcanvaryfromafewminutestoseveralhours.Whenthe recordingisseveralhourslong,usethepositionslidertoaccesstherecordingat randomintervals.OnWindowsandLinuxhosts,zoominandoutoftherecordingby usingthezoomcontrols.Usethezoomedinautoscrollfunctiontobrowsethe recording. To browse a recording 1 2 Openarecording. Dragthesliderfromthecurrentpositionintherecordingtoanotherspecific position. Thenewsliderpositionmusthavea16secondsintervalfromtheprevious position. 3 (Optional)Intheconfirmationdialogbox,selectthecheckboxNevershowthis again. Thedialogboxstopsreappearingeverytimeyoubrowsearecording. 4 ClickOK. Thevirtualmachinerevertstothenearestpreviousreplaysnapshotandstarts replayinguntilitreachesthetargetlocation.Duringthereplay,thesliderremains atthesamepointandtheremainingplaybacktimeappearsinredabovetheslider. Formoreinformation,seeFigure 121.Whentherecordingreachesthesliders position,therecordingispaused.
262
VMware, Inc.
OnWindowsServer2003andWindowsXPhosts,C:\Documents and Settings\<username>\Application Data\VMware OnWindowsVistaandWindows7hosts, C:\Users\<username>\Application Data\VMware OnLinuxhosts,<homedir>/<username>/.vmware/ Here <homedir>isthehomedirectoryoftheuserwhoisloggedinatthetime thevirtualmachineiscreated.
Towritetracefilestothevmware.log,addthefollowinglinetothepreferences file.
pref.replay.enableTrace = "TRUE"
3 4 5 6 7
VMware, Inc.
263
To create an execution trace file of a recording 1 2 Replayarecording. Inthereplaydialogbox,clickTracetostartthetracefile. Theplaybackspeedoftherecordingslowsconsiderablywhilethetracefileis created. 3 Toendthetracefile,clickTraceagain. Otherwise,thetracefileendswhentherecordingfinishesreplaying.
Delete a Recording
Deleterecordingsthatyoudonotneedtofreediskspace. To delete a recording 1 2 3 4 Selectthevirtualmachine. SelectVM>Snapshot>SnapshotManager. IntheSnapshotManagerwindow,selecttherecordingtodelete. RightclickandselectDeleteRecordingandChildren. IfyouselectarecordingandclicktheDeletebutton,theselectedrecordingis removedandthecorrespondingsnapshotsintherecordingremainintact.
2 3
Todisableperiodicscreenshots,changethevalueofXto0. Saveandclosetheconfigurationfile.
VMware, Inc.
265
266
VMware, Inc.
13
Configuring Teams
13
Thischapterdescribeswhatvirtualmachineteamsareusedfor,howtocreatethem, andhowtoconfigurethem.Thischapterincludesthefollowingtopics:
BenefitsofUsingTeamsonpage 267 ManagingTeamsonpage 268 SummaryandConsoleViewsforTeamsandTheirVirtualMachinesonpage 271 ManagingtheMembersofaTeamonpage 272 PowerOperationsforTeamsandTheirMembersonpage 274 WorkingwithTeamNetworksonpage 276 CloningandTakingSnapshotsofTeamVirtualMachinesonpage 278
VMware, Inc.
267
Youcontrolalltrafficallowedbetweenthehostnetworkandteamvirtual machines.
MonitormultiplevirtualmachinesUsethumbnailviewsofthevirtualmachine displaystoreviewactivityonteamvirtualmachinessimultaneously.
Managing Teams
Managingteamsrequirescreating,deleting,opening,closing,andchangingthenames ofteams.
Create a Team
UsetheNewTeamwizardtocreateateamandaddvirtualmachines. Beforecreatingateam,ifyouplantoaddvirtualmachinestotheteamwhile completingtheNewTeamwizard,taketheseactions:
268
VMware, Inc.
To create a team 1 2 FromtheWorkstationmenubar,chooseFile>New>Team. IntheNewTeamwizard,supplythefollowinginformation: a Enteranamefortheteamandspecifythelocationofthevirtualteamfiles. Bydefault,theteamfilesarestoredinthesamedirectoryasvirtualmachines. SeeVirtualMachineLocationonpage 83. b Specifywhethertoaddvirtualmachinestotheteamnoworlater. Ifyouwanttoaddvirtualmachinesnow,youhavethefollowingoptions:
Aftertheteamiscreated,youcanaddittotheFavoriteslist.UsetheTeammenuto configuretheteamfurther,ortoaddandremovevirtualmachines.
VMware, Inc.
269
3 4
Rename a Team
Whenyoucreateateam,thenameofthedirectorywheretheteam(.vmtm)fileisstored isbasedonthenameyouoriginallygivetheteam.Althoughyoucanchangethename oftheteam,thenameofthisfiledoesnotchange. To rename a team Dooneofthefollowing:
Toclosetheteam,selectitandchooseFile>Close.
270
VMware, Inc.
Delete a Team
Beforeyoucandeleteateam,youmustpoweroffallvirtualmachinesthataremembers oftheteam.SeePowerOfforCloseaTeamonpage 270. Whenyoudeleteateam,youcanchoosetodelete:
Onlytheteam(retainingthevirtualmachinesintheteam) Theteamandthevirtualmachinesintheteam
ToremoveateamfromtheWorkstationwindowratherthandeletingit,seeRemovea VirtualMachinefromaTeamonpage 273. CAUTIONDeletingateampermanentlyremovestheteamfilesfromthehostfilesystem andremovesassociatedLANsegmentsfromallvirtualmachines.Deletingtheteams virtualmachinesalongwiththeteamremovesthevirtualmachinefilespermanently. To delete a team 1 2 SelecttheteamandchooseTeam>Delete from Disk. Completethedialogboxthatappears:
Summary and Console Views for Teams and Their Virtual Machines
Workstationdisplaysteamsinasummaryvieworconsoleview:
Thesummaryviewisavailableatanytime.SeeSummaryViewonpage 56.
VMware, Inc.
271
Iftheteamcontainsmanyvirtualmachines,youmightneedtoscrollthethumbnailsto viewallthevirtualmachines.Thethumbnailsaredisplayedinthesameorderasthe teamsstartupsequence.Theleftmostvirtualmachineisthefirstoneinthesequence. Workstationupdatesthumbnailsinrealtime,todisplaytheactualcontentofthevirtual machinescreens.Theactivevirtualmachineistheoneyouselectorswitchtobyusing theTeam>SwitchTomenu.Itappearsinthelowerpaneoftheconsole.Itsthumbnail isrepresentedbytheVMwareicon. Workstationmenusandcommandsdirectlyaffectonlytheactivevirtualmachine,and youcanusethemouseandkeyboardtointeractdirectlywiththeactivevirtual machine. Infullscreenmode,Workstationdisplaysonlytheactivevirtualmachine.SeeUseFull ScreenModeonpage 159.
272
VMware, Inc.
VMware, Inc.
273
Poweronandresumeoperationsoccurintheorderofthesequenceshownintheteam settingslist.Poweroffoperationsoccurinreverseorder.Thedefaultsequenceisthe orderinwhichyouaddedthevirtualmachinestotheteam.Thedefaultdelayis 10 seconds. Settingastartupsequenceisuseful,forexample,ifyouhaveavirtualmachinethatruns anapplicationtobetestedandyouwantittostartbeforethevirtualmachinesrunning anautomatedtestingscript. SettingadelayavoidsoverloadingtheCPUwhenmultiplevirtualmachinesstartand allowsapplicationsonavirtualmachinetolaunchbeforeanotherteamvirtualmachine attemptstoconnect. To specify a startup sequence for a team 1 2 SelecttheteamandchooseTeam>SettingsandclicktheVirtualMachinestab. Usetheupanddownarrowbuttonstoarrangethevirtualmachinesinthelist. Thevirtualmachineatthetopofthelististhefirstinthestartupsequence. 3 Selecteachvirtualmachineandspecifyhowmanysecondsyouwantittowait beforestartingthenextvirtualmachine. Ifthevirtualmachineteamdependsonprecisestartuptiming,experimentto determinehowmuchtimethehostandguestoperatingenvironmentsand applicationsneedtolaunch. 4 ClickOKtosaveyourchanges.
Power On a Team
Whenyoupoweronateam,thevirtualmachinesintheteampoweroninthestartup sequencespecifiedintheteamsettingseditor.SeeSpecifytheStartupSequencefora Teamonpage 273.
274
VMware, Inc.
Thetimetocompletetheoperationvarieswiththesizeofthevirtualmachines.
VMware, Inc.
275
276
VMware, Inc.
NameNameoftheLANsegment.Tochangethename,typeanewnamein theNamefield. BandwidthDropdownmenuofbandwidthsfortypicalnetworklinks.To changethebandwidth,chooseanotherconnectiontypefromthedropdown menu. KbpsFieldtosetacustombandwidth,inkilobitspersecond.Changeshere areoverwrittenwhenyoumakeaselectionfromtheBandwidthmenu.To changethebandwidth,typeanumberintothefield. PacketLossSpecificationoftheefficiencyorfaultinessofthelink,measured inthepercentageofpacketslostfromthetotalnumberofpacketstransmitted. Tochangethepacketlosssetting,typeanumberintothefield.
4 5
VMware, Inc.
277
ToconnectavirtualmachinetomultipleLANsegmentssimultaneously,youmust configurethatvirtualmachinewithmultiplenetworkadapters. To add or remove network adapters 1 2 3 Poweroffthevirtualmachinethatyouwanttoaddanetworkadaptertoorremove anadapterfrom. SelecttheteamandchooseTeam>Settings. OntheConnectionstab,selectthevirtualmachineanddooneofthefollowing:
Toremoveanadapter,selecttheadapteryouwanttoremoveandclick RemoveAdapter.
ClickOK.
278
VMware, Inc.
VMware, Inc.
279
280
VMware, Inc.
14
14
ComponentsoftheVirtualNetworkonpage 281 CommonNetworkingConfigurationsonpage 282 ExampleofaCustomNetworkingConfigurationonpage 287 ChangingaNetworkingConfigurationonpage 290 ConfiguringBridgedNetworkingonpage 292 ChangingtheSubnetorDHCPSettingsforaVirtualNetworkonpage 295 ConfiguringHostVirtualNetworkAdaptersonpage 297
Virtual Switch
Likeaphysicalswitch,avirtualswitchletsyouconnectothernetworkingcomponents together.VirtualswitchesarecreatedasneededbyWorkstation,uptoatotalof10 virtualswitchesonWindowsand255onLinux.Youcanconnectoneormorevirtual machinestoaswitch.Bydefault,afewofthevirtualswitchesaremappedtospecific networks.
VMware, Inc.
281
TheotheravailablenetworksarenamedVMnet2,VMnet3,VMnet4,andsoon.
DHCP Server
Thedynamichostconfigurationprotocol(DHCP)serverprovidesIPnetwork addressestovirtualmachinesinconfigurationsthatarenotbridgedtoanexternal network.Forexample,hostonlyandNATconfigurationsusetheDHCPserver.
Network Adapter
Avirtualnetworkadapterissetupforyourvirtualmachinewhenyouuseanytypeof networkingtocreateitwiththeNewVirtualMachinewizard.Itappearsintheguest operatingsystemasanAMDPCNETPCIadapterorasanIntelPro/1000MTServer Adapter.OnWindowsVistaandWindows7guests,itisanIntelPro/1000MTServer Adapter. Usethevirtualmachinesettingseditortocreateandconfigureupto10virtualnetwork adaptersineachWorkstation6.0andhighervirtualmachine.Thelimitisthreeadapters forWorkstation4or5.xvirtualmachines.Formoreinformation,seeChanginga NetworkingConfigurationonpage 290.
282
VMware, Inc.
Youcansetupmorespecializedconfigurationsbychoosingtheappropriatesettingsin thevirtualmachinesettingseditor,inthevirtualnetworkeditor(onWindowsand Linuxhosts),andonyourhostcomputer.Onallhosts,thesoftwareneededforall networkingconfigurationsisinstalledwhenyouinstallWorkstation. YoucanconnectmultiplevirtualmachinestothesamevirtualEthernetswitch.Ona Windowshost,youcanconnectanunlimitednumberofvirtualnetworkdevicestoa virtualswitch.OnaLinuxhost,youcanconnectupto32devices. IfyouhavesetyourvirtualnetworksettingsonapreviousversionofWorkstationand upgradetoanewversion,yourpreviousnetworksettingsmightbefullyorpartially preserved.
Bridged Networking
Bridgednetworkingconnectsavirtualmachinetoanetworkbyusingthehost computersnetworkadapter.Ifyourhostcomputerisonanetwork,thisisoftenthe easiestwaytogiveyourvirtualmachineaccesstothatnetwork.Thevirtualnetwork adapterinthevirtualmachineconnectstothephysicalnetworkadapterinyourhost computer,allowingittoconnecttotheLANthehostcomputeruses. Bridgednetworkingconfiguresyourvirtualmachineasauniqueidentityonthe network,separatefromandunrelatedtoitshost.Itmakesthevirtualmachinevisible toothercomputersonthenetwork,andtheycancommunicatedirectlywiththevirtual machine.Bridgednetworkingworkswithbothwiredandwirelessphysicalhost networkcards. Figure 14-1. Bridged Networking Setup
virtual network adapter
virtual machine
VMware, Inc.
283
Foranewvirtualmachine,chooseFile>New>VirtualMachine>Custom (advanced)andselectUsebridgednetworkingintheNewVirtualMachine wizard. Foranexistingvirtualmachine,chooseVM>Settings. a b c OntheHardwaretabselectNetworkAdapter. IntheNetworkconnectionsectionselectBridged:Connecteddirectlytothe physicalnetwork. (Optional)SelectReplicatephysicalnetworkconnectionstateifyouusethe virtualmachineonalaptoporothermobiledevice. Asyoumovefromonewiredorwirelessnetworktoanother,theIPaddressis automaticallyrenewed.
284
VMware, Inc.
virtual machine
DHCP server
NAT device
network
IfyouselectNAT,thevirtualmachinecanusemanystandardTCP/IPprotocolsto connecttoothermachinesontheexternalnetwork.Forexample,youcanuseHTTPto browseWebsites,FTPtotransferfiles,andTelnettologontoothercomputers. NAT alsoletsyoutoconnecttoaTCP/IPnetworkbyusingaTokenRingadapteronthe hostcomputer. Inthedefaultconfiguration,computersontheexternalnetworkcannotinitiate connectionstothevirtualmachine.Thatmeans,forexample,thatthedefault configurationdoesnotletyouusethevirtualmachineasaWebservertosendWeb pagestocomputersontheexternalnetwork.Thisconfigurationprotectstheguest operatingsystemfrombeingcompromisedbeforeyouhaveachancetoinstallsecurity software.FormoreinformationonNAT,seeUsingNATonpage 312.
Setting Up NAT
Bydefault,NATisusedwhenyouusetheTypicalsetuptocreateavirtualmachinein theNewVirtualMachinewizard.
VMware, Inc.
285
Host-Only Networking
Hostonlynetworkingcreatesanetworkthatiscompletelycontainedwithinthehost computer.Hostonlynetworkingprovidesanetworkconnectionbetweenthevirtual machineandthehostcomputer,usingavirtualnetworkadapterthatisvisibletothe hostoperatingsystem.Thisapproachcanbeusefulifyouneedtosetupanisolated virtualnetwork.Inthisconfiguration,thevirtualmachinecannotconnecttothe Internet.Formoreinformationonhostonlynetworking,seeSelectingIPAddresses onaHostOnlyNetworkorNATConfigurationonpage 299. Figure 14-3. Host-Only Networking Setup
virtual network adapter
virtual machine
DHCP server
286
VMware, Inc.
VMware, Inc.
287
288
VMware, Inc.
DeterminethenetworkaddressesusedforVMnet2andVMnet3:
OnWindowshosts,openacommandpromptandrunthefollowing command:
ipconfig /all
Notethenetworkaddressesthateachvirtualadapteruses.
OnLinuxhosts,openaterminalandrunthefollowingcommand:
ifconfig
Notethenetworkaddressesthateachvirtualswitchuses.
VMware, Inc.
289
7 8
Poweroneachvirtualmachineinturnandinstalltheappropriateguestoperating system. OnaWindowsandLinuxhosts,toconfigurenetworkaddressesusingtheDHCP server,dothefollowing: a ChooseEdit>VirtualNetworkEditor>DHCP. OnLinux,chooseApplications>SystemTools>VirtualNetworkEditor,or theequivalentmenupathforyourversionofLinux. b AddVMnet2andVMnet3tothelistofvirtualnetworksthatthevirtualDHCP serverserves. Formoreinformationonchangingsubnets,seeChangeSubnetorDHCP SettingsonaWindowsHostonpage 296andChangeSubnetorDHCP SettingsonaLinuxHostonpage 296.
Configurethenetworkingineachguestoperatingsystem:
10
Installthenecessaryapplicationsoftwareineachvirtualmachine.
290
VMware, Inc.
VMware, Inc.
291
ClickOKtosaveyourconfiguration.
292
VMware, Inc.
To configure VMnet0 bridged networking on a Windows host 1 ChooseEdit>VirtualNetworkEditor. Bydefault,VMnet0issettouseautomaticbridgingmodeandbridgestoallofthe activenetworkadaptersonthehostcomputer. 2 ClicktheAutomaticSettings,andselectthecheckboxfortheavailablephysical networkadaptertobridgetoVMnet0. Toplacerestrictionsonanetworkadapter,seeAddorRemoveaHostNetwork AdapterfromtheListofExcludedAdapters. 3 ClickOK.
Add or Remove a Host Network Adapter from the List of Excluded Adapters
Onhostsystemswithmultiplephysicalnetworkadapters,thechoiceofwhichadapter Workstationusesisarbitrary.Therefore,youcanplaceorremoverestrictionsona networkadapterofyourchoice. To add or remove a host network adapter from the list of excluded adapters 1 2 3 ChooseEdit>VirtualNetworkEditor. ClickAutomaticSettings. IntheIncludeadapterssection,dooneofthefollowing:
Toremoveanadapter,unchecktheadapter. Toaddanadapter,selecttheadapter.
ClickOK.
VMware, Inc.
293
CAUTIONIfyoureassignaphysicalnetworkadaptertoadifferentvirtualnetwork,any virtualmachinethatisusingtheoriginalnetworklosesitsnetworkconnectivity throughthatnetwork.Youmustthenchangethesettingforeachaffectedvirtual machinesnetworkadapterindividually. Thiscanbeespeciallytroublesomeifyourhosthasonlyonephysicalnetworkadapter andyoureassignittoaVMnetotherthanVMnet0.Inthiscase,eventhoughtheVMnet stillappearstobebridgedtoanautomaticallychosenadapter,theonlyadapteritcan usewasassignedtoanotherVMnet. To designate a physical network adapter to bridge to custom virtual switches 1 2 ChooseEdit>VirtualNetworkEditor. ChooseanadapterfromtheBridgedtodropdownmenu. YoucancreateacustombridgednetworkonvirtualswitchesVMnet2toVMnet7. OnWindows,youcanalsouseVMnet9.OnLinux,youcanalsousevmnet10 throughvmnet255. 3 ClickOK.
Fromthedesktop, Openaterminalwindowandenterthefollowingcommand:
/usr/bin/vmware-netcfg
2 3 4 5
Touseautomaticbridging,clickAutomaticSettingsandcompletethedialog box.
VMware, Inc.
294
Tospecifyonehostnetworkadapter,usetheBridgetolistbox.
ClickSave.
VMware, Inc.
295
Whenprompted,entertheadministratorpassword.
296
VMware, Inc.
4 5 6
TypethesubnetIPyouwanttouseintheSubnetIPtextbox.
ClickSave.
VMware, Inc.
297
298
VMware, Inc.
15
15
SelectingIPAddressesonaHostOnlyNetworkorNATConfigurationon page 299 AvoidingIPPacketLeakageinaHostOnlyNetworkonpage 302 MaintainingandChangingtheMACAddressofaVirtualMachineonpage 304 ControllingRoutingInformationforaHostOnlyNetworkonLinuxonpage 306 PotentialIssueswithHostOnlyNetworkingonLinuxonpage 306 ConfiguringHostOnlyVirtualMachinesonpage 307 SetUpRoutingBetweenTwoHostOnlyNetworksonpage 309 UsingVirtualNetworkAdaptersinPromiscuousModeonaLinuxHoston page 311 UsingNATonpage 312 AdvancedNATConfigurationonpage 314 UsingSambawithWorkstationonpage 324
VMware, Inc.
299
300
VMware, Inc.
VMware, Inc.
301
To configure the DHCP server on a Windows host 1 2 3 4 ChooseEdit>VirtualNetworkEditor. ClicktheDHCPtab. Selectthevirtualnetworkforwhichyouwanttochangesettingsandclick Properties. IntheDHCPSettingsdialogboxthatappears,makechangesandclickOK.
302
VMware, Inc.
Disableforwardingbywritinga0(zero)tothespecialfile /proc/sys/net/ipv4/ip_forward.Asroot(su-),enterthefollowingcommand:
echo "0" > /proc/sys/net/ipv4/ip_forward
VMware, Inc.
303
However,WorkstationcannotguaranteetoautomaticallyassignuniqueMAC addressesforvirtualmachinesthatrunonmultiplehostsystems.
Intheseoptions,[n]isthenumberofthevirtualnetworkadapter,forexample0.
304
VMware, Inc.
To assign the same MAC address to any virtual machine manually 1 Useatexteditortoremovefromtheconfiguration(.vmx)filethethreelinesthat beginwiththefollowing:
ethernet[n].generatedAddress ethernet[n].addressType ethernet[n].generatedAddressOffset
VMware, Inc.
305
DHCPD on the Linux Host Does Not Work After Installing Workstation
IfyouwererunningtheDHCPserverdhcpdutilityonyourmachinebeforeyou installedWorkstation,itprobablywasconfiguredtorespondtoDHCPrequestsfrom clientsonanynetworkinterfacepresentonthemachine.Whenhostonlynetworking isconfigured,anadditionalnetworkinterface,vmnet1,ismarkedupandavailablefor use,anddhcpdmightnoticethis. Insuchcases,somedhcpdimplementationsabortiftheirconfigurationfilesdonot includeasubnetspecificationfortheinterface.Thiscanhappenevenifdhcpdisnot supposedtorespondtomessagesthatarrivethroughtheinterface.
306
VMware, Inc.
Thebestsolutionistoaddalinetothedhcpdconfigurationfileinthefollowingformat:
subnet <net>.0 netmask 255.255.255.0 {}
VMware, Inc.
307
Configuration1Thevirtualmachineisconfiguredwithonevirtualnetwork adapter,andthatvirtualadapterisconnectedtothedefaulthostonlyinterface (VMnet1).Tousethisconfiguration,seeSetUpUsingConfiguration1or2on page 308. Configuration2Thevirtualmachineisconfiguredwithonevirtualnetwork adapter,andthatvirtualadapterisconnectedtothenewlycreatedhostonly interface(VMnet2).Tousethisconfiguration,seeSetUpUsingConfiguration1 or2onpage 308. Configuration3Thevirtualmachineisconfiguredwithtwovirtualnetwork adapters.Onevirtualadapterisconnectedtothedefaulthostonlyinterface (VMnet1)andtheothervirtualadapterisconnectedtothenewlycreatedhostonly interface(VMnet2).Tousethisconfiguration,seeSetUpUsingConfiguration3 onpage 308.
308
VMware, Inc.
To set up using configuration 3 1 2 3 4 5 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>Settings. OntheHardwaretab,selectthefirstNetworkAdapter. IntheNetworkConnectionsection,selectHostonly. Thisadapterisconnectedtothedefaulthostonlyinterface(VMnet1). 6 Selectthesecondnetworkadapterinthelist,andintheNetworkConnection section,selectCustomandchooseVMnet2fromthedropdownmenu.
OnWindowshosts,openacommandpromptandrunthefollowing command:
ipconfig /all
OnLinuxhosts,openaterminalandrunthefollowingcommand:
ifconfig
Theroutersoftwarerunsonthehostcomputer.
VMware, Inc.
309
Theroutersoftwarerunsonitsownvirtualmachine.
Theexamplesdescribedhereoutlinethesimplestcase,withonevirtualmachineon eachofthehostonlynetworks.Formorecomplexconfigurations,youcanaddmore virtualmachinesandhostonlynetworks,asappropriate. To set up routing between two host-only networks 1 2 3 Setuptheconnectiontothefirst(default)hostonlyinterface,asdescribedinSet UpUsingConfiguration1or2onpage 308. Setuptheconnectiontothesecond(VMnet2)hostonlyinterface,asdescribedin SetUpUsingConfiguration1or2onpage 308. (Optional)Toruntheroutersoftwareonavirtualmachine,setupathirdvirtual machinewithconnectionstothetwohostonlyinterfaces,asdescribedinSetUp UsingConfiguration3onpage 308. Toruntheroutersoftwareonyourhostcomputer,skipthisstep. 4 StoptheVMnetDHCPserverservice:
5 6 7
AssignIPaddressesbydoingoneofthefollowing:
310
VMware, Inc.
VMware, Inc.
311
Using NAT
NATprovidesawayforvirtualmachinestousemostclientapplicationsoveralmost anytypeofnetworkconnectionavailabletothehost.Theonlyrequirementisthatthe networkconnectionmustsupportTCP/IP. NATisusefulwhenyouhavealimitedsupplyofIPaddressesorareconnectedtothe networkthroughanonEthernetnetworkadapter.NATworksbytranslatingaddresses ofvirtualmachinesinaprivateVMnetnetworktotheaddressofthehostmachine. Whenavirtualmachinesendsarequesttoaccessanetworkresource,itappearstothe networkresourceasiftherequestiscomingfromthehostmachine. ThehostcomputerhasahostvirtualadapterontheNATnetwork(identicaltothehost virtualadapteronthehostonlynetwork).Thisadapterallowsthehostandthevirtual machinestocommunicatewitheachotherforsuchpurposesasfilesharing.TheNAT deviceneverforwardstrafficfromthehostvirtualadapter.
312
VMware, Inc.
VMware, Inc.
313
314
VMware, Inc.
3 4
VMware, Inc.
315
port = <n>
316
VMware, Inc.
OnaWindowshost:
C:\Documents and Settings\All Users\Application Data\VMware\vmnetnat.conf
Ifyoueditthisfileandthenusethevirtualnetworkeditor(Edit>VirtualNetwork Editor)youreditsmightbelost.
OnaLinuxhost:
/etc/vmware/vmnet8/nat/nat.conf
TheNATconfigurationfileisdividedintosections.Eachsectionconfiguresapartofthe NATdevice.Textsurroundedbysquarebracketssuchas[dns]marksthe beginningofasection.Ineachsectionisaconfigurationparameterthatcanbeset. The configurationparameterstaketheformip = 192.168.27.1/24.TheNAT configurationfilecontainsthefollowingsections. The [host] Section The[host]sectionincludesparameterstoconfiguretheNATconnection.
ipTheIPaddressthattheNATdeviceshoulduse.Itcanbefollowedbyaslash andthenumberofbitsinthesubnet. netmaskThesubnetmasktousefortheNATnetwork.DHCPaddressesare allocatedfromthisrangeofaddresses. configportAportthatcanbeusedtoaccessstatusinformationabouttheNAT device. deviceTheVMnetdevicetouse.Windowsdevicesareoftheformvmnet<x> where<x>isthenumberoftheVMnet.Linuxdevicesareoftheform /dev/vmnet<x>. activeFTPFlagtoindicateifactiveFTPistobeallowed.ActiveFTPallows incomingconnectionstobeopenedbytheremoteFTPserver.Turningthisoff meansthatonlypassivemodeFTPworks.Setthisflagto0toturnitoff.
policyPolicytouseforDNSforwarding.Acceptedvaluesinclude:
orderSendoneDNSrequestatatimeintheorderofthenameservers. rotateSendoneDNSrequestatatimeandrotatethroughtheDNSservers.
VMware, Inc.
317
burstSendtothreeserversandwaitforthefirstonetorespond.
timeoutTimeinsecondsbeforeretryingaDNSrequest. retriesNumberofretriesbeforetheNATdevicestopstryingtorespondtoa DNSrequest. autodetectFlagtoindicatewhethertheNATdeviceshoulddetecttheDNS serversavailabletothehost. nameserver1IPaddressofaDNSservertouse. nameserver2IPaddressofaDNSservertouse. nameserver3IPaddressofaDNSservertouse. Ifautodetectisonandsomenameserversarespecified,theDNSserversspecified innameserver1,nameserver2,andnameserver3areaddedbeforethelistof detectedDNSservers.
Thisexamplecreatesamapfromport8887onthehosttotheIPaddress192.168.27.128 andport21.Whenthismapissetandanexternalmachineconnectstothehostatport 8887,thenetworkpacketsareforwardedtoport21(thestandardportforFTP)onthe virtualmachinewithIPaddress192.168.27.128. The [incomingudp] Section Usethe[incomingudp]sectiontoconfigureUDPportforwardingforNAT.Inthis section,youcanassignaportnumbertoanIPaddressandportnumberonavirtual machine.
318
VMware, Inc.
Thefollowinglineshowstheformatusedinthissection.Itillustratesawaytoforward Xservertrafficfromthehostport6000tothevirtualmachinesport6001:
6000 = 192.168.27.128:6001
VMware, Inc.
319
IntheNetworkConnectionswindow,rightclickthevirtualnetworkadapterand chooseProperties.
3 4 5 6
320
VMware, Inc.
IntheNetworkConnectionswindow,rightclickthevirtualnetworkadapterand chooseProperties.
3 4 5 6
7 8
VMware, Inc.
321
322
VMware, Inc.
# Automatically detect the DNS servers (not supported in Windows NT) autodetect = 1 # List of DNS servers to use. Up to three may be specified #nameserver1 = 208.23.14.2 #nameserver2 = 63.93.12.3 #nameserver3 = 208.23.14.4 [netbios] # This section applies only to Windows. # Timeout for NBNS queries. nbnsTimeout = 2 # Number of retries for each NBNS query. nbnsRetries = 3 # Timeout for NBDS queries. nbdsTimeout = 3 [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.
323
RuntheSambapasswordcommand:
smbpasswd -a <username>
324
VMware, Inc.
RestartSamba.
VMware, Inc.
325
326
VMware, Inc.
16w
Connecting Devices
16
Thischapterdescribeshowtousevariousdeviceswithavirtualmachine. Thischapterincludesthefollowingtopics:
UsingParallelPortsonpage 327 UsingSerialPortsonpage 330 ConfiguringKeyboardFeaturesonpage 335 UsingUSBDevicesinaVirtualMachineonpage 346 UseSmartCardswithVirtualMachinesonpage 353 SupportforGenericSCSIDevicesonpage 356 UseFourWayVirtualSymmetricMultiprocessingonpage 361
VMware, Inc.
327
7 8 9
328
VMware, Inc.
To troubleshoot ECR errors for parallel ports 1 2 3 Rebootthehost. Earlyinthebootprocess,pressandholddowntheDeletekeytoenterthehost computersBIOSconfigurationeditor. FindtheparallelportfieldandenableExtendedCapabilityPort(ECP)modeora combinationofmodesthatincludesECP. MostmoderncomputerssupportECPmode.
Ifthelpmoduleisloaded,runthefollowingcommandasroottoremoveit:
rmmod lp
Toensurethatthepropermodulesfortheparallelportareloadedatboottime,add thefollowinglinetothe/etc/modules.confor/etc/conf.modulesfile:
alias parport_lowlevel parport_pc
Thenexttimetheuserlogsontothehost,thechangestakeeffect.
330
VMware, Inc.
PhysicalserialportEnablesyoutouseadevicesuchasanexternalmodemor handhelddeviceinavirtualmachine.Workstationcreatesavirtualserialport automaticallywhenyouenablethevirtualprinterfeature. OutputfileonthehostCapturesthedatathataprogramrunninginthevirtual machinesendstothevirtualserialport. AnapplicationonthehostEnablesyoutouseanapplicationonthehostto capturedebugginginformationsentfromthevirtualmachinesserialport. AnothervirtualmachineEnablesyoutouseanapplicationinonevirtual machine(theclient)tocapturedebugginginformationsentfromtheother (the server)virtualmachinesserialport.
To add a virtual serial port to a virtual machine 1 2 3 4 5 6 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>Settings. OntheHardwaretab,clickAdd. IntheAddHardwarewizard,selectSerialPortandclickNext. OntheSerialPortTypepage,dooneofthefollowing:
VMware, Inc.
331
IfyouselectedOutputtoNamedPipe,dooneofthefollowing:
ForaLinuxhost,inthePathfield,enter/tmp/<socket>oranotherUNIX socketname.
AlsoifyouselectedOutputtoNamedPipe,dooneofthefollowing:
9 10 11
332
VMware, Inc.
<n>isthenumberoftheserialport,startingfrom0.Thefirstserialportisserial0. The<x>valueisapositiveintegerthatspecifiesthetimetakentotransmita character,expressedasapercentageofthedefaultspeedsetfortheserialportin theguest.Forexample,asettingof200forcestheporttotaketwiceaslongforeach character,orsenddataathalfthedefaultspeed.Asettingof50forcestheportto takeonlyhalfaslongforeachcharacter,orsenddataattwicethedefaultspeed. Assumingthattheserialportspeedissetappropriatelyintheguestoperating system,experimentwiththissetting.Startwithavalueof100andgradually decreaseituntilyoufindthehighestspeedatwhichyourconnectionworks reliably.
VMware, Inc.
333
PressEntertostartdebugging.
Inthedebuggervirtualmachine,startdebuggingwithWinDbgorKD.
Switchbetweenvirtualmachines
VMware, Inc.
335
Thedefaultsettingsforhotkeysarelistedinthepreferenceseditor(chooseEdit> Preferences>HotKeys).Usethepreferenceseditortochangethem.
Ifthekeymapfileyouwanttouseisinanotherlocation,determinethepathtothefile. Alsodeterminethelanguagecode.Usethefollowinglist:
336
VMware, Inc.
fi:Finnish fr:French fr-be:French(Belgium) fr-ch:French(Switzerland) is:Icelandic it:Italian jp:Japanses nl-be:Dutch(Belgium) no:Norwegian pt:Polish uk:UKEnglish us:USEnglish
To specify a language keyboard map for VNC clients 1 Useatexteditortoopentheconfigurationfile(.vmxfile)forthevirtualmachine andaddthefollowinglines,where<port number>istheportnumbertouse:
Addoneofthefollowingpropertiestotheconfigurationfile,where<xx>isthe codeforthelanguagetouse,suchasjpforJapanese:
TousethedefaultkeymapfileincludedintheWorkstationinstallation directory,setthefollowingproperty:
RemoteDisplay.vnc.keyMap = "<xx>"
Touseakeyboardmapfileinanotherlocation,setthefollowingpropertyto anabsolutefilepath:
RemoteDisplay.vnc.keyMapFile
VMware, Inc.
337
IfyouuseanXFree86basedserverthatWorkstationdoesnotrecognizeasan XFree86server,usethefollowingproperty:
xkeymap.usekeycodeMap = "TRUE"
ThispropertytellsWorkstationtoalwaysusekeycodemappingregardlessof servertype.
IfWorkstationdoesrecognizetheremoteserverasanXFree86server,usethe followingproperty:
xkeymap.usekeycodeMapIfXFree86 = "TRUE"
338
VMware, Inc.
VerifythattheXserverisanXFree86serverrunningonaPC.IftheXserveris remote,configureittousekeycodemapping.SeeConfigureKeyboardMapping foraRemoteXServeronpage 338.Foradescriptionofkeycodemapping,seeX KeyCodesComparedtoKeysymsonpage 339. DeterminetheXkeycodeandthecorrespondingvscancodeforthekey.Tofind theXkeycodeforakey,runxevorxmodmap -pk.Mostvscancodesarelistedin VScanCodeTableonpage 342.
Saveandclosethefile.
VMware, Inc.
339
AnXFree86serveronaPChasaonetoonemappingfromXkeycodestoPCscan codes,orvscancodes,whichiswhatWorkstationuses.WhenWorkstationishostedon anXFree86serverandrunsalocalvirtualmachine,itusesthebuiltinmappingfromX keycodestovscancodes.Thismappingiskeyboardindependentandshouldbe correctformostlanguages.Inothercases(notanXFree86serverornotalocalserver), Workstationmustmapkeysymstovscancodesbyusingasetofkeyboardspecific tables. AnXserverusesatwolevelencodingofkeys,whichincludestheXkeycodeandthe keysym.AnXkeycodeisaonebytevalue.Theassignmentofkeycodestokeys dependsontheXserverimplementationandthephysicalkeyboard.Asaresult,anX applicationnormallycannotusekeycodesdirectly.Instead,thekeycodesaremapped intokeysymsthathavenameslikespace,escape,xand2.YoucanuseanXapplication tocontrolthemappingbyusingthefunctionXChangeKeyboardMapping()orbythe programxmodmap.Toexplorekeyboardmappings,youcanusethexevcommand, whichshowsthekeycodesandkeysymsforkeystypedintoitswindow. Akeycodecorrespondsroughlytoaphysicalkey,whereasakeysymcorrespondsto thesymbolonthekeytop.Forexample,withanXFree86serverrunningonaPC,theZ keyontheGermankeyboardhasthesamekeycodeastheYkeyonanEnglish keyboard.TheGermanZkeysym,however,isthesameastheEnglishZkeysym,and differentfromtheEnglishYkeysym.
Touseadifferentkeysymtable,determinewhichmappingtabletouse.
340
VMware, Inc.
Ifnoneofthemappingtablesiscompletelycorrect,findonethatworksbest,copy ittoanewlocation,andchangetheindividualkeysymmappings.
WorkstationdetermineswhichtabletousebyexaminingthecurrentXkeymap. However,itsdecisionmakingprocesscansometimesfail.Inaddition,eachmappingis fixedandmightnotbecompletelycorrectforanygivenkeyboardandXkey codetokeysymmapping.Forexample,ausermighthaveswappedCtrlandCaps Lockusingxmodmap.Thismeansthekeysareswappedinthevirtualmachinewhen usingaremoteserver(keysymmapping)butareunswappedwhenusingalocalserver (keycodemapping).Tocorrectthissituation,useconfigurationsettings. To configure how keysyms are mapped 1 2 PoweroffthevirtualmachineandclosetheWorkstationwindow. Onthemachinethathoststhevirtualmachine,addoneormoreofthefollowing linestothevirtualmachineconfiguration(.vmx)fileorto~/.vmware/config:
TodisableXkeycodemappingtomapkeysymsratherthankeycodesto vscancodes,setthefollowingproperty:
xkeymap.nokeycodeMap = "TRUE"
Formoreinformation,seeXKeyCodesComparedtoKeysymsonpage 339.
IfWorkstationhasatableinthexkeymapdirectoryforyourkeyboardbut cannotdetectit,setthefollowingproperty:
xkeymap.language = "<keyboard_type>"
Touseadifferentkeysymmappingtablethatisnotinthexkeymapdirectory, setthefollowingproperty,where<file_path>isthepathtothetable:
xkeymap.fileName = "<file_path>"
Thetablemustlistakeysymforeachkeybyusingthefollowingform:
<sym> = "<v-scan_code>"
VMware, Inc. 341
Tochangethekeysymmappingofafewkeys,setthefollowingpropertyfor eachkey,onseparatelines:
xkeymap.keysym.<sym> = "<v-scan_code>"
342
VMware, Inc.
Table 16-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol Q W E R T Y U I O P [ ] Enter Ctrl A S D F G H J K L ; ` Shift \ Z | left left { } Shifted Symbol Location V-Scan Code 0x010 0x011 0x012 0x013 0x014 0x015 0x016 0x017 0x018 0x019 0x01a 0x01b 0x01c 0x01d 0x01e 0x01f 0x020 0x021 0x022 0x023 0x024 0x025 0x026 0x027 0x028 0x029 0x02a 0x02b 0x02c
VMware, Inc.
343
Table 16-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol X C V B N M , . / Shift * Alt Spacebar CapsLock F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 NumLock ScrollLock Home Uparrow PgUp 7 8 9 numericpad numericpad numericpad numericpad < > ? right numericpad left Shifted Symbol Location V-Scan Code 0x02d 0x02e 0x02f 0x030 0x031 0x032 0x033 0x034 0x035 0x036 0x037 0x038 0x039 0x03a 0x03b 0x03c 0x03d 0x03e 0x03f 0x040 0x041 0x042 0x043 0x044 0x045 0x046 0x047 0x048 0x049
344
VMware, Inc.
Table 16-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol Leftarrow 5 Rightarrow + End Downarrow PgDn Ins Del F11 F12 Break Enter Ctrl / SysRq Alt Home Uparrow PageUp Leftarrow Rightarrow End Downarrow PageDown Insert Delete Windows PrintScrn right functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad functionpad left Pause numericpad right numericpad 1 2 3 0 6 4 Shifted Symbol Location numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad numericpad V-Scan Code 0x04a 0x04b 0x04c 0x04d 0x04e 0x04f 0x050 0x051 0x052 0x053 0x057 0x058 0x100 0x11c 0x11d 0x135 0x137 0x138 0x147 0x148 0x149 0x14b 0x14d 0x14f 0x150 0x151 0x152 0x153 0x15b
VMware, Inc.
345
Table 16-1. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol Windows Menu Shifted Symbol Location right V-Scan Code 0x15c 0x15d
346
VMware, Inc.
IfyoudonotplantouseUSBdevicesinavirtualmachine,youcanusethevirtual machinesettingseditortodisableUSB2.0support. To enable the USB 2.0 Controller for a virtual machine 1 2 3 4 Selectthevirtualmachine. ChooseVM>Settings. OntheHardwaretab,selectUSBController. SelecttheEnablehighspeedsupportforUSB2.0devicescheckboxandclick OK.
VMware, Inc.
347
Thiscontrollerisrequiredtouseasmartcardinavirtualmachineregardlessof whetherthesmartcardreaderisaUSBdevice. To add a USB controller to a virtual machine 1 2 3 4 5 6 7 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>Settings. OntheHardwaretab,clickAddtostarttheAddHardwarewizard. OntheHardwareTypepage,selectUSBControllerandclickNext. OntheUSBpage,clickFinish. Inthevirtualmachinesettingseditor,clickOK.
YoucannowstartthevirtualmachineandautomaticallyormanuallyconnectUSB devicesandsmartcardreaders.
348
VMware, Inc.
To enable or disable automatic connection of USB devices 1 Selectthevirtualmachine. Thevirtualmachinecanbepoweredonoroffunlessyouplantochangethesetting forconnectingtoUSBmouseandkeyboarddevices.Inthiscase,thevirtual machinemustbepoweredoff. 2 3 4 ChooseVM>Settings. OntheHardwaretab,selectUSBController. SelectordeselecttheAutomaticallyconnectnewUSBdevicescheckboxtoenable ordisablethesettingandclickOK.
VMware, Inc.
349
Also,whenyouareusingavirtualmachine,ifyouplugadeviceintothehost,the autoconnectfeatureusuallyconnectsthedevicetothevirtualmachine.Ifthisaction doesnotoccur,youcanconnectthedevicemanually. To connect a USB device manually 1 2 3 Selectthevirtualmachine. Makesurethevirtualmachineispoweredon. ChooseVM>RemovableDevices><device_name>. Here<device_name>specifiestheUSBdevicethatispluggedintothehost. A checkmarkappearsnexttothedevicesname,indicatingthatitisconnected. IfthephysicalUSBdevicesareconnectedtothehostthroughahub,thevirtual machineseesonlytheUSBdevices,notthehub.
350
VMware, Inc.
Thissecondattemptusuallysucceeds.
ConnecttheUSBdevicetothehostandbeginusingit.
VMware, Inc.
351
352
VMware, Inc.
Virtualmode(Recommended)Thesmartcardreaderdeviceisavailableas Virtual<smart_card_reader_model>underRemovableDevices.Afterthe virtualreaderisconnectedtothevirtualmachine,itisvisibleasUSBSmartCard ReaderonWindowsXPguestsandonWindowsVistaandWindows7gueststhe genericsmartcardreaderdevicenameappearsundertheWindowsDevice Managerlist.Invirtualmode,thesmartcardreadercanbesharedamong applicationsonthehostandamongapplicationswithindifferentguestsonthe host. USBpassthroughmodeThesmartcardreaderdeviceisavailableas <smart_card_reader_model> underRemovableDevices.InUSBpassthrough mode,asinglevirtualmachinedirectlycontrolsthephysicalsmartcardreader.A USBpassthroughsmartcardreadercannotbeusedbyapplicationsonthehostor
VMware, Inc.
353
byapplicationswithinothervirtualmachines.YoushoulduseUSBpassthrough modeonlyifconnectioninvirtualmodedoesnotworkwellforyourscenario.If youareusingtheUSBpassthroughmodeyoumayneedtoinstallthedriver providedbythemanufacturer. SmartcardscanbeusedwithmanyLinuxdistributions.VMwareprovidesfullsmart cardsupportforWindowsguestsrunningonLinuxhosts.However,usingsmartcards withinLinux,typicallyrequiresathirdpartysoftwaretoeffectivelyauthenticatetoa domainorenablesecurecommunications.Smartcardsshouldworkwithcommon Linuxbrowsers,emailapplications,anddirectoryserviceshowever,theseproducts havenotbeentestedorcertifiedbyVMware. Touseahostssmartcardreaderinavirtualmachine,makesurethefollowing prerequisitesaresatisfied:
OnWindowshosts,starttheservicecalledSCardSvr.exeifitisnotalready running. OnLinuxhosts,makesurethelibpcsclitelibraryisinstalled.MostrecentLinux distributionsincludethislibrary.Alsomakesurethepcscddaemonisrunning. MakesurethevirtualmachinehasaUSBcontroller. AUSBcontrollerisrequiredregardlessofwhetherthesmartcardreaderitselfisa USBdevice.Bydefault,USBcontrollersareincludedwhenyoucreateavirtual machine.IfyouremovedtheUSBcontroller,youmustadditback.SeeAddaUSB ControllertoaVirtualMachineonpage 347.
To use smart cards with virtual machines 1 2 3 Connectthesmartcardreadertothehostmachine. Startthevirtualmachine. Toconnectthesmartcardreadertoavirtualmachine,chooseVM>Removable Devices>Virtual<smart_card_reader_model>>Connect. IfthesmartcardreaderisaUSBsmartcardreader,twoitemsappearforitinthe RemovableDevicesmenu.Bothitemsusethemodelnameofthereader,butone itemnamebeginswithVirtual. OnLinuxhosts,ifyouselectthewrongitemandthenwanttoselecttheVirtual smartcarditem,seeSwitchtoUsingtheVirtualSmartCardReaderonLinux Hostsonpage 355. 4 Todisconnectthesmartcardreaderfromthevirtualmachine,chooseVM> RemovableDevices>Virtual<smart_card_reader_model>>Disconnect.
354
VMware, Inc.
VMware, Inc.
355
OnmostWindowshosts:
C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\config.ini
OnWindowsVistaandWindows7hosts:
C:\ProgramData\VMware\VMware Workstation\config.ini
OnLinuxhosts:
/etc/vmware/config
3 4
Saveandclosethefile. Setpermissionsonthisfilesothatotheruserscannotchangeit.
VMware, Inc.
357
To add a generic SCSI device to a virtual machine 1 2 3 4 Selectthevirtualmachine. ChooseVM>Settings. OntheHardwaretab,clickAddtostarttheAddHardwarewizard. OntheHardwareTypepage,selectGenericSCSIDeviceandclickNext.
358
VMware, Inc.
6 7
TherootcausesorreasonsWorkstationcannotdetectadeviceincludethefollowing:
Adriverforthatdeviceisnotinstalledonthehost. Adriveronthehostpreventsthedevicefrombeingdetected.
VMware, Inc.
359
To troubleshoot problems detecting generic SCSI devices 1 2 Findoutwhetherthedevicedriverforthisdeviceisinstalledonthehost. Ifthedevicedriverisnotinstalledandyouwanttoinstallit,dosoandseeifthe deviceappearscorrectlyinthevirtualmachinesettingseditor. Youmightnotwanttoinstallthedriveronthehostifyouwanttoavoida deviceinuseconflictbetweenthehostandguest. Ifadriverisinstalledbutdoesnotappearcorrectly,ifyoucannotinstallthedriver onthehost,orifyoudonotwanttoinstallthedriveronthehost,continuewiththe restofthisprocedure. 3 IfanoriginalSCSIdevicedriverisalreadyinstalledonthehost,disableit. SomeWindowsoperatingsystemsdonotprocessthesendcommandfromthe adapterifthedevicedriverownsthedevice. 4 5 Poweroffthevirtualmachineandopenthevirtualmachinesconfiguration(.vmx) fileinatexteditor. Addorchangethefollowinglineinthe.vmxfile,whereXistheSCSIbusnumber thedeviceusesonthehostsystem,andYisthetargetIDthedeviceusesbothin thevirtualmachineandonthehost:
scsiZ:Y.fileName = "<deviceName>"
For"<deviceName>"use:
"scsiX:Y"
Thefollowingisanexampleofhowtosettheoption.Theproblematicdeviceisa CDROMdrive,andtheexistingentryintheconfigurationfileis:
scsi0:4.fileName = "CdRom0"
Ifthedeviceonthehostislocatedonbus2withtargetID4,changethislineto:
scsi0:4.fileName = "scsi2:4"
360
VMware, Inc.
Ifthevirtualmachinesettingseditorstilldoesnotincludethisdeviceinthelistof availableSCSIdevicesforthisvirtualmachine,contactVMwaretechnicalsupport.
NOTEOnhyperthreadeduniprocessorhosts,performanceofvirtualmachineswith VirtualSMPmightbebelownormal.Evenonmultiprocessorhosts,performanceis affectedifyouovercommitbyrunningmultipleworkloadsthatrequiremoretotalCPU resourcesthanarephysicallyavailable. Youcanpoweronandrunmultipledualprocessorvirtualmachinesconcurrently. Thenumberofprocessorsforagivenvirtualmachineappearsinthesummaryviewof thevirtualmachine. To use four-way virtual symmetric multiprocessing Dooneofthefollowing:
Foranewvirtualmachine,choosethecustomconfigurationintheNewVirtual Machinewizard.OntheProcessorConfigurationpage,specifythenumber.
VMware, Inc.
361
Foranexistingvirtualmachine,chooseVM>SettingsandontheHardwaretab, selectProcessorsandspecifythenumber.
Use a Virtual Machine That Originally Had More Than Two Virtual Processors
YoucanuseWorkstation7.0,runningonamultiprocessorhostmachine,toopena virtualmachinecreatedinESXServerthathasoneormorevirtualprocessors.You cannotuseWorkstation,however,topoweronavirtualmachinethathasmorethan twovirtualprocessorsassigned,evenifmoreprocessorswereassignedwhenthe virtualmachinewascreatedinESXServer. Youcanseethenumberofprocessorsinthevirtualmachinessummaryvieworby usingthevirtualmachinesettingseditor.Touseavirtualmachinethathasmorethan twovirtualprocessorsassigned,youmustchangethenumberofprocessorsbefore poweringiton. To use a virtual machine that originally had more than two virtual processors 1 2 3 4 Selectthevirtualmachine. Makesurethevirtualmachineispoweredoff. ChooseVM>Settings. OntheHardwaretab,selectProcessors,andnotethatNumberofProcessorsisset toOther(x),wherexisthenumberofprocessorsoriginallyassignedinESXServer. Workstationpreservesthisoriginalconfigurationsettingforthenumberof processors,eventhoughtwoisthemaximumnumberofprocessorssupported. Afteryoucommitachangetothissetting,theoriginalsettingforthenumberof processorsisdiscardedandnolongerappearsasanoptioninthevirtualmachine settingseditor. 5 ChangetheNumberofprocessorssettingtoOneorTwoandclickOK.
362
VMware, Inc.
17
17
VMware, Inc.
363
4 5
364
VMware, Inc.
5 6 7
3 4
VMware, Inc.
365
366
VMware, Inc.
OnmostWindowshosts:
C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\config.ini
OnWindowsVistaandWindows7hosts:
C:\Users\All Users\VMware\VMware Workstation\config.ini
To specify global configuration settings for full screen switch mode 1 2 Iftheconfig.inifiledoesnotyetexistonyourhostcomputer,chooseEdit> Preferencesandchangeatleastoneofthesettingsinthepreferenceeditor. Opentheconfig.inifilewithatexteditorandaddatleastoneofthefollowing lines:
FullScreenSwitch.hostDirectKey = "<value>"
VMware, Inc.
367
4 5 6
OnmostWindowshosts,thisfileislocatedin:
%USERPROFILE%\Application Data\VMware\preferences.ini
OnWindowsVistaandWindows7hosts,thisfileislocatedin:
%USERPROFILE%\AppData\Roaming\VMware\preferences.ini
Keepthefollowinglimitationsinmindwhendefiningcyclekeysandswitchkeys:
Hot Key for Cycling Through Virtual Machines and the Host Computer
Youcanspecifyahotkeyorhotkeycombinationforcyclingthroughtheavailable virtualmachinesonahostcomputerwhenrunningWorkstationinfullscreenswitch mode.Hotkeysbehaveinthefollowingmanner:
VMware, Inc.
369
Thehotkeyforcyclingthroughvirtualmachinesisdefinedintheglobalconfiguration file(config.ini).Twooptionscontrolcycling:
Hot Keys for Switching Directly to Virtual Machines and the Host Computer
Youcanspecifyahotkeyorcombinationofhotkeysforswitchingdirectlytoany availablevirtualmachineonahostcomputerwhenrunningWorkstationinfullscreen switchmode.Eachtimeyoupressthespecifiedhotkey,thescreendisplayswitchesto thatofthespecifiedvirtualmachine.Youcanalsospecifyahotkeyforswitching directlytothehostoperatingsystem. Virtual Machine Hot Key Youdefinethehotkeyusedtoswitchtoavirtualmachinebyaddingalocal configurationsettinginthevirtualmachines.vmxfile. Usethefollowingformat:
<option> = "<value>"
Entriesintheconfigurationfilescanappearinanyorder.Thevalueofthisoption definesthehotkey.Itisspecifiedas<key>,<modifier>.Ithasnodefault.
370
VMware, Inc.
Ifanyparticularvirtualmachineisnotrunning,pressingthehotkeyforthatvirtual machinehasnoeffect. Host Operating System Hot Key Youdefinethehotkeyusedtoswitchtothehostoperatingsystembyaddingalineto theglobalconfigurationfile(config.ini).Thevalueofthisoptiondefinesthehotkey. Itisspecifiedas<key>,<modifier>.Ithasnodefault. Forexample,touseCtrl+Shift+F9toswitchtothehostoperatingsystem,addthe followinglinetotheconfig.inifile,ormodifyitsvalueiftheoptionisalreadylisted:
FullScreenSwitch.hostDirectKey = "0x78,0x6"
Isolation.tools.paste.disable
TRUE
Isolation.tools.HGFS.disable
TRUE
VMware, Inc.
371
mks.fullscreen.allScreenSaver
msg.autoAnswer
372
VMware, Inc.
-name=<alias>
-directkey=<keyspec>
VMware, Inc.
373
-listvms
Theadministratorcanspecifyadifferentlocationforthislogfilebyaddingthe followinglinetotheWorkstationglobalconfigurationfile(config.ini):
fullScreenSwitch.log.filename="<path>"
374
VMware, Inc.
Theguestoperatingsystemisnotfullypowereddown.Youcanawakenthevirtual machineinthefollowingways:
Thisfeaturecanbeusefulfortestanddevelopmentscenarios.
VMware, Inc.
375
376
VMware, Inc.
18
18
BenefitsofUsingVMwareACEonpage 377 NetworkandDiskSpaceRequirementsfortheAdministrativeWorkstationon page 379 OverviewofCreatingandDeployingACEPackagesonpage 380 OverviewoftheACEUserInterfaceonpage 382 TroubleshootingUsersProblemsonpage 382
VMware, Inc.
377
Manageability
Security
Rulesbasednetworkaccessletsyouidentifyandquarantineunauthorizedor outofdateACEinstances.EnableaccesstothenetworkoncetheACEinstance complieswithITpolicies. TamperresistantcomputingenvironmentprotectstheentireACEinstanceand package,includingdataandsystemconfiguration,withseamlessencryption. Copyprotectedcomputingenvironmentpreventsusersfromcopyingenterprise information. RolesbasedSSLcommunicationprovidesasecureprotocolbetweentheACE ManagementServerandclient. ResourcesigningletsyouspecifythatACEResourcefilesbeprotectedfromall tampering.
Usability
Thecustomizableinterfaceletsyoucustomizethebehaviorandlookandfeelfor users.
378
VMware, Inc.
ACEenabledvirtualmachineAvirtualmachinetemplatethattheACE administratorcreates.TheACEenabledvirtualmachinecanbeconfiguredwith variouspolicies,devices,anddeploymentsettingsandthenusedasthebasisfor creatinganynumberofpackagestobesenttoACEusers. ACEinstanceThevirtualmachinethatACEadministratorscreate,associatewith policies,andactivateonenduserscomputers.AnACEinstancethatismanaged byACEManagementServerisamanagedACEinstance.AnACEinstancethatis notmanagedbyACEManagementServerisastandaloneACEinstance. (Optional)ACEManagementServerTheACEManagementServerenablesyou tomanageACEinstances,topublishpolicychangestodynamicallyupdatethose instances,andtotestanddeploypackagesmoreeasily.ACEManagementServer addsnewintegrationwithActiveDirectorysetupsandprovidessecureActive DirectoryandLDAPintegration,withrolebasedsecureSSLcommunication. Formoreinformation,seetheVMwareACEManagementServerAdministrators Guide.
Ifyourcompanyalreadyhasalibraryofstandardvirtualmachines,youneed networkaccesstothatlibraryfromyourhostcomputer.
VMware, Inc.
379
Youneedtoprovideadequatediskspaceforvirtualmachinefilesandpackage files.Thefilesforeachvirtualmachinecanbeaslargeasseveralgigabytes.The packagefilescanalsobelarge.Thedefaultlocationforthepackagefilesisthe Packages folderinsidethevirtualmachinesfolder. Workstationneedsasubstantialamountoftemporaryworkingspacewhenit createsapackage.Thetotaldiskspacerequiredisabouttwicethecombinedsizes ofallthecomponentsofthepackage.TheNewPackagewizarddisplays informationabouttheamountofspaceneededandthelocationswherethespace isneeded. WorkstationmustbeinstalledonaWindowshost.
380
VMware, Inc.
BecausemanagedACEinstancescheckperiodicallyforupdates,theupdatesare dynamic.Youdonotneedtocreateanddeploynewupdatepackages.Seethe VMwareACEManagementServerAdministratorsGuide. 4 Installaguestoperatingsystem,VMwareTools,andothersoftwareinthevirtual machine. Theproceduresarethesameasforanyvirtualmachine.Forguestoperating systemsupport,knownissues,andinstallationinstructions,seetheonlineVMware CompatibilityGuide.GototheVMwareWebsiteandselectResources> CompatibilityGuides,andclicktheViewtheGuest/HostOStabontheVMware CompatibilityGuideWebsitelink 5 SetpoliciesfortheACEinstance. PoliciescontrolsuchthingsaswhatnetworkaccessendusershavefromACE instancesandwhatdevicesontheirhostcomputerstheymayuseintheinstances. SeeChapter 19,SettingandUsingPoliciesandCustomizingVMwarePlayer,on page 385. 6 SpecifydeploymentsettingsfortheACEinstance. Deploymentsettingscontrolsuchthingsasencryption,packagelifetime,and securityIDs.SeeChapter 20,DeployingACEPackages,onpage 429. 7 Createpackagestodeploytoendusers. Workstationguidesyouthroughtheprocess.SeeCreatingaPackageon page 443orChapter 21,PocketACE,onpage 451. 8 Distributepackagestoendusers. DistributethepackagesonCD,DVD,orportablemedia,ormakethemavailable onanetwork.SeeDeployPackagesonpage 449orDeployingtheACEPackage onaPortableDeviceonpage 455. 9 InstallACEinstancesonendusersmachines. SeeInstallingACEPackagesonpage 459orRunthePocketACEInstanceon page 457. YoucaninstallmultipleACEinstancesonthesamemachine.Theycanbefrom differentvendorsandbegovernedbydifferentpolicies.Youcanalsouninstall individualACEinstancesorWorkstationwhileleavingotherACEinstances installed. 10 Keepusersuptodate.
VMware, Inc.
381
ACEManagementServerhastwointerfaces:
382
VMware, Inc.
ManagedACEinstancesUseACEManagementServer.SeetheVMwareACE ManagementServerAdministratorsGuide. StandaloneACEinstancesUsethevmware-acetoolcommandlineprogramto fixthoseproblemsdirectlyontheusersmachines.SeeUsingthevmwareacetool CommandLineToolonpage 472. Youcanalsousethehotfixfeaturetorespondtotheseproblems.SeeSetting HotFixPoliciesforStandaloneACEInstancesonpage 414andRespondtoHot FixRequestsonpage 474.
VMware, Inc.
383
384
VMware, Inc.
19ZXZ
19
BenefitsofUsingPoliciesonpage 386 SetPoliciesforACEInstancesonpage 386 SettingAccessControlPoliciesonpage 387 SettingHosttoGuestDataScriptPoliciesonpage 393 SettingExpirationPoliciesonpage 395 SettingCopyProtectionPoliciesonpage 396 SettingResourceSigningPoliciesonpage 396 SettingNetworkAccessPoliciesonpage 397 SettingRemovableDevicesPoliciesonpage 406 SettingUSBDevicePoliciesonpage 406 SettingVirtualPrinterPoliciesonpage 408 SettingRuntimePreferencesPoliciesonpage 409 SettingSnapshotPoliciesonpage 411 SettingAdministratorModePoliciesonpage 412 SettingKioskModePoliciesonpage 413 SettingHotFixPoliciesforStandaloneACEInstancesonpage 414 SettingthePolicyUpdateFrequencyforManagedACEInstancesonpage 415 ControlWhichACEInstancesRunonaHostonpage 415 WritingPlugInPolicyScriptsonpage 417 CustomizingtheVMwarePlayerInterfaceonWindowsHostsOnlyonpage 422
VMware, Inc.
385
386
VMware, Inc.
IfyouuseACEManagementServer,theserveralsoverifiesthefollowingitemsbefore theinstanceisallowedtorun:
To create or edit an access control policy 1 2 3 4 SelecttheACEenabledvirtualmachineandchooseVM>ACE>Policies. Inthepolicyeditor,selectAccessControlandcompletethefieldsinthesettings panel. ClickOK. VerifythatthenewsettingsappearcorrectlyontheACEtabinthevirtual machinessummaryview. Ifyouchangeanactivationsetting,thepolicytakeseffectwhenanewinstance fromthispackageisinstalledandactivated.Youcanalsoeditanimported keywordlist. 5 (Optional)Tochangetheauthenticationsettingfromonetypetoanother,createa policyupdatepackageanddistributeittotheuser.
Activation Settings
UseactivationsettingstocontrolwhichuserscanactivateanACEinstanceafteritis installed.Theactivationdateisusedfortheexpirationpolicy. IfyouuseACEManagementServerwithActiveDirectory,thecontrolsinthe ActivationsectionenableyoutoopentheActiveDirectoryUsersandGroupsdialog box.ThemachineonwhichWorkstationrunsmustbeinthesamedomainthatwhich ACEManagementServerisconfiguredfor.Userlistchangesareeffectiveatthenext startupoftheinstance. IfyoudonotuseActiveDirectoryorifyouarecreatingstandaloneACEinstances,the settingspanelincludesthefollowingoptionsforactivationpasswordsorkeys:
388
VMware, Inc.
Authentication Settings
Theauthenticationstepisperformedwhenevertheuserrunstheinstance,unless AuthenticationissettoNone. IfyouuseACEManagementServerwithActiveDirectory,thecontrolsinthe AuthenticationsectionenableyoutoopentheActiveDirectoryUsersandGroups dialogbox.ThemachineonwhichWorkstationrunsmustbeinthesamedomainthat whichACEManagementServerisconfiguredfor. IfyoudonotuseActiveDirectoryorifyouarecreatingstandaloneACEinstances,the settingspanelincludesthefollowingoptionsforauthenticationcontrol:
VMware, Inc.
389
390
VMware, Inc.
# # # #
my @white_list = ("alan", "bob", "mary", "sonia", "chris"); my $username = $ENV{TEST_USERNAME}; if (! defined $username) { print "FALSE"; exit(0); } my @grepNames = grep(/$username/, @white_list); if (@grepNames == 1) { print "TRUE"; exit(0); } print "FALSE"; exit(0);
Scriptscanbeinanylanguage.Forexample,youcanusea.batfileonWindows operatingsystemsorperlorshonLinuxoperatingsystems.Ascriptprovides WorkstationwithacommandlineexecutablefileorascriptfileintheACE Resources directory.Theguidelinesascriptmustfollowdependonwhichpolicythescriptis implementing. Thescriptmustexitwitha0(zero)valuetobeconsideredasuccess.Anyotheroutput resultsinfailure.Uponsuccess,thestdoutoutputofthescriptisexamined.Foragiven policy,thisshouldbeaspecificvaluesuchasTRUEorFALSE.Forapoweronscript, outputshouldbeTRUEorFALSE.Theauthenticationscriptoutputisusedasa password.Thehosttoguestdatascriptisastringinaparticularformatsuchas guestinfo.var1="value1"\nguestinof.var2="value2".
VMware, Inc.
391
Recordtheprivatekeypasswordandlocationoftheprivatekeyfilesothatyoucan supplyitifyouneedtoresetapassword.
392
VMware, Inc.
FromaWindowsguest,enterthefollowingatacommandprompt: cd "C:\Program Files\VMware\VMware ["Tools"]" VMwareService -cmd machine.id.get VMwareService -cmd "info-get guestinfo.<key_to_query>" VMwareService -cmd "info-get guestinfo.script_status" FromaLinuxguest,enterthefollowingatacommandprompt: vmware-guestd --cmd "machine.id.get" vmware-guestd --cmd "info-get guestinfo.<key_to_query>" vmware-guestd --cmd "info-get guestinfo.script_status"
VMware, Inc.
393
HostguestdatascriptScriptforsharinghostinformationsuchasthehost machineIDandIPaddresswithapplicationsthatrunontheguest.
To specify a script and a command to run it 1 2 3 CreatethescriptandsaveitintheACE Resourcesdirectoryinsidethevirtual machinesdirectory. InWorkstation,selecttheACEenabledvirtualmachineandchooseVM>ACE> Policies. Inthepolicyeditor,dooneofthefollowing:
ClickOK.
394
VMware, Inc.
IfyouareenablingthisscriptforanACEenabledvirtualmachinethatyoualready deployed,dooneofthefollowing:
VMware, Inc.
395
VMware, Inc.
397
Anyrestrictionsonthehostsnetworkaccessalsorestrictnetworkaccessforan ACEinstancethatusesNATnetworking,becausetheNATconnectionisaffected byallthepoliciesyouapplytothehost.Ifyousetuprestrictedhostaccessbyusing theACEruleseteditorandruleseditorratherthantheNetworkAccesswizard, configuretheACEenabledvirtualmachinesvirtualNICstousebridged networking. IfyouaresettingupamanagedACEenabledvirtualmachine,youmustallowthe hosttoaccessACEManagementServer,communicatingthroughTCPoverthe appropriateportthatyouconfigure. HostpoliciesdonotapplytoPocketACEinstances.Ifyouspecifyarestrictedhost policyforanACEenabledvirtualmachineandthencreateaPocketACEpackage withthatACEenabledvirtualmachine,thepackageiscreatedbutthehostpolicy isnotincludedinthepackage. Youcannotviewchangestohostpoliciesinthepreviewmode.Ifyouwanttotest theeffectsofsuchchanges,youmustperformatestdeployment.SeeChapter 20, DeployingACEPackages,onpage 429.
IfyouchoosetheDesktopConfigurationoption,thewizardcreatesanewguest accessrulesetfortheEverywherezone.ThisrulesetrestrictsACEinstanceaccess toyourVPNorotherspecifiednetworkhosts. IfyouchoosetheLaptopConfigurationoption,thewizardcreatesanewinternal zonethatrestrictsthenetworkaddressand,optionally,thedomainonwhichthe ACEinstancecanrun.Itcanalsocreateanewhostaccessrulesetforthiszoneto restrictaccesstotheinternalnetwork.Forexample,youcanspecifyaproxyserver. Finally,youcanconfigurethesameremoteaccessasfortheDesktop Configurationoption. Ifyouusethisoptionandyoudonotmodifyanyofthedefaultsettingsthatthe wizardprovides,thehostisstillallowedtocommunicatewithDNSandDHCP serverssothatthezonedetectionmechanismcanfunctionproperly.
398
VMware, Inc.
To use the Network Access wizard to configure network access 1 2 3 Inthepolicyeditor,selectNetworkAccess. SelectRestrictnetworkaccessoftheACEinstanceand/oritshostandclick Quick Setup. Completethewizard. Dependingonwhichconfigurationtypeyouchoose,anewzonemightbeadded totheNetworkAccesssettingspanel,andnewrulesetsmightappearinthe Host NetworkAccessandGuestNetworkAccesscolumnsinthetable. 4 (Optional)Tovieworeditthezonesorrulsetsyoucreatedwiththewizard,click thezoneorrulesetnameinthetableontheNetworkAccesssettingspanel.
Youcanspecifyazonebyusinguptosixconditions:
Foramatchtooccur,allspecifiedconditionsmustbemet.
VMware, Inc.
399
Whenthehostconnectstoanetwork,acheckisperformedtodeterminewhetherthe networkmatchestheconditionsforazone.Thecheckingstartswiththetopmostzone inthetableandcontinuesdownthetableuntilamatchismadeortheEverywhereElse zoneisreached.Whenamatchismade,thezonecheckingstopsandfilterrulesforthat zoneareapplied. Therearetradeoffsbetweenusingshorterandlongerlistsofconditions.Ifyouusea longerlist,youminimizethechancesofafalsepositiveresultoramisidentification. Minimizingthechanceofafalsepositiveresultoramisidentificationcanbeimportant ifyouareprovidinganACEpackagetosomeonewhoconnectsahostcomputerto multiplenetworksatdifferenttimes.Ifoneoftheothernetworksmatchesthe characteristicsyoudefineinthezonedefinition,thehostandinstanceaccesspolicies areapplied,evenifthehostisnotconnectedtoyournetwork. Insomecases,however,usingalongerlistmightalsoincreasethelikelihoodthatauser couldcircumventthedetectionmechanism.Forexample,suchanerrormightbemade ifyouswitchthehosttouseastaticIPaddressinsteadofDHCPandconfigurethehost withonlyasubsetofthecharacteristicsdefinedforyourzone,suchasonlynetwork address,ornetworkaddressandDNSserverinformation. Alsoconsiderthattheaddressesornamesofcertainserverscanchangeovertime. Such changescanalsointroducedetectionissues. Usingasmallersetofinformationinazonedescription,suchasonlythenetwork addressandthesubnetmask,issafer.Thedisadvantageisthatitincreasesthechance thatafalsepositiveormisidentificationcanoccur.Suchfalsepositivesareespecially likelyifyournetworkisusingacommonnetblock,suchas10/8,172.16/12,or 192.168/16,thatisalsousedbyothernetworks.
DomainSpecifiesthedomainnameofthenetwork,suchasmycompany.com. Enteronlyonedomainname.ThevalueofAllowsubdomainsofthisdomain governstheinterpretationofthisoption. AllowsubdomainsofthisdomainModifiestheDomainoption.Itspecifies whether,fortheDomainzoneconditiontobemet,adomainnamemustexactly matchthedomainnamespecifiedintheDomainboxorwhetheramatchofthe domainnameismadeanytimethestringcontains<domain_name>.Forexample, ifthisoptionisselected,corp.mycompany.comisconsideredamatchfor mycompany.com.Ifthisoptionisnotselected,corp.mycompany.comisnot consideredamatchformycompany.com.
400
VMware, Inc.
NetworkaddressSpecifiesanIPaddressorsubnetrangethatthenetworkuses. Thevalueof<subnet>,ifyouincludeasubnetrange,mustbethenumberofbits inthenetmask.Anetworkadaptermatchesthisconditionifitisusingan IP addressthatlieswithinanyofthespecifiedranges. DNSserversSpecifiesoneormoreIPaddressesorhostnamesforDNSservers onthenetwork.Anetworkadaptermatchesthisconditionifitisusingatleastone oftheseservers. IfthevalueoftheMatchatleastoptionisgreaterthan1,thehostmustbeusing thespecifiednumberofDNSserversonthelistbeforeanetworkadapteris consideredtobeonthedefinednetwork. BecausemultiplemethodsexistforassigningDNSdomainnamestoaLinuxhost, usingjusttheDNSdomainnametodefineazonecanbeerrorprone.Todefinea zoneforaLinuxhost,usecriteriainadditiontotheDNSdomainnames. ForWebsites,aDNSdomainnamemightresolvetomorethanoneaddress.To ensurethatthezoneisdefinedexactlyasyouintend,entereachIPaddress,rather thanjusttheDNSdomainname.
DHCPserversSpecifiesoneormoreIPaddressesorhostnamesforDHCP serversonthenetwork.Anetworkadaptermatchesthisconditionifitisusingat leastoneoftheseservers. GatewayserversSpecifiesoneormoreIPaddressesorhostnamesfordefault gatewaysonthenetwork.Anetworkadaptermatchesthisconditionifitisusing atleastoneofthesegateways. WINSserversSpecifiesoneormoreIPaddressesorhostnamesforWINSservers onthenetwork.Anetworkadaptermatchesthisconditionifitisusingatleastone oftheseservers.LinuxhostsignoreWINSserversettingsduringzonedetection. IfthevalueoftheMatchatleastoptionisgreaterthan1,thehostmustbeusing thespecifiednumberofWINSserversonthelistbeforeanetworkadapteris consideredtobeonthedefinednetwork.
VMware, Inc.
401
CompletethefieldsinthezoneeditorthatappearsandclickOK.
TounderstandtheparticularsofhowtrafficisbeingblockedorallowedforDNS, DHCP,andICMPprotocolsandports,seetherulesdisplayedintheruleseteditor.
Sourceaddressforincomingpackets Destinationaddressforoutgoingpackets,protocol,andports
402
VMware, Inc.
Thepacketiscomparedtoeachruleinorderuntilitmatchesaruleoritwascompared withalloftherules.Whenamatchismade,thepackettorulecomparisonends. The packetisnotcomparedtosubsequentrulesintheorderedlist.Ifitwascompared toallruleswithoutamatch,thedefaultruleactionisapplied. To add and edit rulesets and rules for network access 1 Inthepolicyeditor,selectNetworkAccessandclickthelinkinthetablecolumn thatappliestotheaccesssettingtoedit. TheZoneandAccessTypeinformationjustbelowtheRulesetNametextbox showsthenameofthezoneandwhethertheaccesssettingappliestohostnetwork accessortothenetworkaccessforACEinstances(guestaccess). 2 Usetheruleseteditortochangetheorderofrulesintheset,editrules,andspecify whetherthehostorguestisallowedtouseDNS,DHCP,orICMP. Bydefault,DNS,DHCP,andICMPareincludedinthenetworkaccesssetupfor bothhostandinstanceaccess.VMwarerecommendsthatyoukeepDHCPand DNSselectedbecausetheyareimportantforzonedetection. WhetherthefollowingsettingsapplytothehostortotheACEinstance(guest access)dependsonwhetheryouareeditingahostnetworkaccessrulesetora guestnetworkaccessruleset:
DNSAllowstheguestorhosttouseaDNSservertoresolveIPaddresses. SelectthisoptioniftheDNSserverisnotincludedinanyothernetworkaccess settingforthishostorACEinstance. DHCPAllowsthehostorguesttoobtainitsIPaddressfromaDHCPserver. SelectthisoptioniftheDHCPserverisnotincludedinanyothernetwork accesssettingforthehostorACEinstance. ICMPEnablesyoutousethepingcommand.Forguests,pingenablesyou tochecknetworkconnectivitytoandfromtheACEinstance.Forhosts,it enablesyoutochecknetworkconnectivitywithotherhostsinthenetwork andwiththeACEinstance.
(Optional)Toaddoreditarule,dooneofthefollowing:
VMware, Inc.
403
AddressesToeditanexistinghostnameoraddress,doubleclickthatitem andeditit.ThewildcardsettingforallIPaddressesis0.0.0.0/0. ProtocolToalloworblockcommunicationforaspecificprotocol,select CustomfromtheProtocollist.Theprotocolnumberisinthepacket.Ifthat numbermatchesthenumbersuppliedintheCustomfield,thepacketis allowedorblockedastherulespecifies.Theprotocolnumberisusedinthe protocolfieldofIPv4packets. Foralistofprotocolnumbers,seetheInternetAssignedNumbers Authority (IANA)organizationsWebsite.Mostprotocolnumbersare permanentlyassigned.
RemotePortsandLocalPortsIfyouareusingeitherTCPorUDPandwant toqualifytherulewithspecificportnumbersforthistypeoftraffic,typethe portnumbersorportnumberranges. Thewildcardportsettingis(doublequotationmarks). Usuallyyouspecifyfilteringoneitherlocalorremoteports,notboth,because bothspecificationshavetomatchfortheruletobeapplied.(DHCPrepresents anexceptiontothisgeneralrule.) Thelocalportisthesourceportforoutgoingpacketsandthedestinationport forincomingpackets.Typicallyyouspecifyalocalportwhenthehostorguest isbeingusedasaserverobtainingremoteconnectionsonsomeport. Theremoteportisthesourceportforincomingpacketsandthedestination portforoutgoingpackets.Typicallyyouspecifyaremoteportwhenthehost orguestisaclientandiscontactingaremoteserveronsomeport.
4 5
Understanding the Interaction of Host and Guest Access Filters with Tunneling Protocols
Hostandguestaccessfilterscandifferintheirinteractionswithtunnelingprotocols.
VMware, Inc. 405
406
VMware, Inc.
AllUSBdevicesAllowordenyaccesstoallconnectedUSBdevices.Deviceclass rulesandspecificdevicerulesoverridegeneralaccessrules.
VMware, Inc.
407
b c 5
ClickOKinthepolicyeditor.
408
VMware, Inc.
NOTEIftheACEenabledvirtualmachinealreadyhasfourserialports,youcannot addanotherserialportforthevirtualprinter.Toenablethevirtualprinter,deletean existingserialport. AfterendusersinstalltheACEinstance,theycanusetheVM>VirtualPrintersmenu commandtospecifywhichprintersfromthehostareavailabletotheguest.Ifendusers onWindowshostshaveproblems,makesuretheTPAutoConnectServiceWindows serviceisstarted. NOTEWhentheACEVirtualPrinterpolicyisenabled,VirtualPrinterisavailablein VM>Settings>Hardware,andcannotbedeselecteduntiltheACEVirtualPrinter policyisdisabled.
AllowuserstomodifythememoryallocationTheChangeMemoryAllocation commandappearsintheVMmenuofVMwarePlayer.
VMware, Inc.
409
RequireenhancedvirtualkeyboardforsecureinputThissettingappliesonlyto WindowshostsrunningWindowsguests.Thisfeatureprovidesbetterhandlingof internationalkeyboardsandkeyboardswithextrakeys.Italsoprovidessecurity improvementsbecauseitprocessesrawkeyboardinputassoonaspossible, bypassingWindowskeystrokeprocessingandanymalwarethatisnotalreadyat alowerlayer. IfanACEinstanceusesthisfeature,whenenduserspressCtrl+Alt+Delete,the guestsystemonly,ratherthanbothguestandhost,respondstothecommand. Beforeyoucreatearuntimepolicyforthisfeature,turnontheenhancedkeyboard filterwiththevirtualmachinesettingseditor.SeeUsetheEnhancedVirtual KeyboardforWindowsHostsonpage 335. WhentheACEinstanceisinstalledandtheguestoperatingsystemstartsforthe firsttime,aspecialkeyboardfilterdriverisinstalledonthehost.Afterinstallation, theendusermustrestartthehostcomputer.Keyboardfilteringisthenenabled.
410
VMware, Inc.
411
NOTEManuallydisabletheautomaticreimagesnapshotbyeditingthe ACEenabledvirtualmachinesaceMaster.datfile.Editthe packaging.takeReimageSnapshot option. ReimagesnapshotsallowtheACEadministrator,ortheuseriftheadministrator enablesreimagesnapshotoptionsfortheuser,toreverttheACEinstancetoits knowngoodstartingstateortotheknowngoodupdatedreimagestate. Ifyouenablereimagesnapshotoptions,commandsfortheoptionsappearinthe VM>Snapshotmenu. Ifyouchoosenottoenablethereimagesnapshotoptionsfortheuser,youcan replacethereimagesnapshotorreverttoitontheusersmachinebyproviding administratormodeaccessthroughtheAdministratorModepolicy.SeeSetting AdministratorModePoliciesonpage 412.
412
Whenyoufinishchangingvirtualmachinesettingsorusingthesnapshot commands,chooseVM>ACE>ExitAdministratorMode.
VMware, Inc.
413
Whenauserexitskioskmode,thevirtualmachineispoweredofforsuspended, accordingtotheruntimepreferencepolicyforexitbehavior.PocketACEinstancesare poweredoffandsynchronized.Whenthevirtualmachineispoweredoff,theACE Playerpromptstheusertoexitkioskmode. OnLinuxhosts,youmustsetsomeadditionalpropertiesafterinstallingtheACE instance.SeePrepareaLinuxHostforRunninginKioskModeonpage 465. Forinformationaboutstartupoptionsforkioskmode,seeChangeDefaultKiosk ModeStartupBehavioronpage 468andUseMultipleVirtualMachinesinKiosk Modeonpage 470.
414
VMware, Inc.
YoucancontrolwhichvirtualmachinesandACEinstancescanberunonahostby editingtheaceMaster.datfileinthevirtualmachinedirectory.
VMware, Inc.
415
Beforeyoubegin,ifyouplantorunmultipleACEinstancesontheendusersmachine, determinewhichACEenabledvirtualmachineyouwanttouseforsettinghostwide policies. To control which ACE instances run on a host 1 2 OntheadministratormachinewhereWorkstationisinstalled,poweroffandclose theACEenabledvirtualmachine. UseatexteditortoopentheaceMaster.datfilefortheACEenabledvirtual machine. Thisfileislocatedinthesamedirectoryastheconfigurationfile(.vmxfile)forthe ACEenabledvirtualmachine. 3 4 (Optional)TospecifythatnonACEvirtualmachinescannotrunonthehost,find theallowVMspropertyandchangeitfrom1to0. FindtherequiredCreatorIDpropertyandsetittoanidentifier. Forexample,tosettherequiredcreatorIDtocreator1,editthelineasfollows:
requiredCreatorID = "creator1"
IfyouarecreatinganewACEinstance,createapackageforthisACEenabled virtualmachineandinstallitontheendusershost.
416
VMware, Inc.
ChangestotheallowVMspropertyortherequiredCreatorIDpropertyrepresent changestohostwidepolicies.Packagesthatincludethesehostpoliciesrequire administratorprivilegestoinstall. 7 (Optional)IfyouplantorunmultipleACEinstancesontheendusersmachine,do thefollowing: a EdittheaceMaster.datfilefortheotherACEenabledvirtualmachinesand setthecreatorIDpropertytothesamevaluethatyouusedinStep 5. SetonlythecreatorIDpropertyandnottherequiredCreatorIDproperty fortheseothervirtualmachines. b RepeatStep 6.
VMware, Inc.
417
Thetopicsthatfollowshowtheformatfortheoutputthatyourscriptsmustwritetothe StdOutfiletocontrolvariouspolicies.
418
VMware, Inc.
Theoutputofthescriptishashedtocreateakeytoencryptanddecryptvirtualmachine files.Thefirsttimethisscriptisrun,theoutputishashedtoencryptthevirtualmachine. Whenavirtualmachineisdecrypted,thescriptmustreturnthesamevalue.Ifthescript returnsadifferentvalue,thevirtualmachineisnotdecryptedandtheuserseesanerror message. Thescriptmayreturnanyvalue.Toensurebestsecurity,avaluethatincludesonly printablecharactersshouldbeatleast32byteslong.Forbinarydata,thevalueshould beatleast16byteslongtoensureproperentropy.TheoutputissenttotheStdOutfile. ThefollowingexampleiswritteninPerl.ItisinstalledbyWorkstationas sample_auth.pl.CompileitwithaPerlinterpretertorunit.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # VMware Sample Script Sample script for ACE script authentication Description: This sample script looks up the user as defined in the environment variable TEST_USERNAME and returns seed data that is used to make a key for authenticationpurposes. It assumes that the username is defined in the environment variable TEST_USERNAME (a ficticious environment variable used for this sample) and returns the seed data from a harcoded map of username to seed data. Input to script: None. Returns: 0 if successful (user is correctly authenticated). -1 if TEST_USERNAME is not set, or the user is unrecognized. Expected output: Seed data for creating script authentication key on stdout. Notes: If the script returns success, its output will be used to create a key. Therefore, it is important that the output of this script be unique for each user, and that there is enough data to make a meaningful key (at least 16 bytes).
VMware, Inc.
419
'bert' );
=> '"172B1619B2EFBE0E4F381AA1C428F049'
my $username = $ENV{TEST_USERNAME}; if (! defined $username) { print "You should set the TEST_USERNAME environment variable.\n"; exit(-1); }
my $key_seed = $user_map{$username}; if (! defined $key_seed) { print "Unrecognized username.\n"; exit(-1); } print $key_seed; exit(0);
420
VMware, Inc.
if (defined $machine_name) { print "machine.id = " . $machine_name . "\n"; } if (defined $asset_tag) { print "guestinfo.assetTag = " . $asset_tag . "\n"; } if (defined $host_mac) { printf "guestinfo.mac = " . $host_mac . "\n"; } exit(0);
my @white_list = ("alan", "bob", "mary", "sonia", "chris"); my $username = $ENV{TEST_USERNAME}; if (! defined $username) { print "FALSE";
VMware, Inc.
421
exit(0); } my @grepNames = grep(/$username/, @white_list); if (@grepNames == 1) { print "TRUE"; exit(0); } print "FALSE"; exit(0);
Foralistofvaluestouseinparameters,seeTable 192,Table 193,andTable 194. Tocommentoutalineintheskinfile,beginthelinewiththepound(#)sign. 2 Savetheskinfilewiththefilenameskin.txtintheACE Resourcesdirectoryin thevirtualmachinedirectoryfortheACEenabledvirtualmachine. Thefilenamemustbeskin.txt. 3 (Optional)TodisplayapplicationiconsotherthantheVMwarePlayericon,place thenew.icoiconfilesintheACE Resourcesdirectory. Foriconssizesandskinfileparameters,seeCustomizingtheVMwarePlayer Iconsonpage 423.
422 VMware, Inc.
4 5
VMware, Inc.
423
424
VMware, Inc.
Followingarethedevicenamesyoucanusefor<deviceName>intheparametername:
VMware, Inc.
425
Modifier key Nomodifier Alt Ctrl Shift Ctrl+Alt Alt+Shift Ctrl+Shift Ctrl+Alt+Shift
426
VMware, Inc.
VMware, Inc.
427
428
VMware, Inc.
20
20
EditDeploymentSettingsonpage 429 ACEResourcesDirectoryonpage 439 ReviewtheConfigurationofanACEEnabledVirtualMachineonpage 440 UsePreviewModetoTestPolicyandDeploymentSettingsonpage 441 CreatingaPackageonpage 443 PerformanEndtoEndDeploymentTestonpage 448 DeployPackagesonpage 449
VMware, Inc.
429
Encryption Settings
Encryptionsettingsareoftwotypes:
Theactivationandauthenticationpoliciesyouchoosedeterminewhichdefault encryptionsettingsareappliedtothepackageandfiles.SeeSettingAccessControl Policiesonpage 387.VMwarerecommendsthesedefaultsettingsforproduction environments.Thefilesdonotneedtobeencryptedwhenyoudeployapackageina testenvironment. NOTEIfyousettheencryptionsettingstoNone,anyverificationspecifiedinthe resourcesigningpolicyisnotperformed.Theencryptionpackagesettingoverridesthe resourcesigningpolicysetting.SeeSettingResourceSigningPoliciesonpage 396.
430
VMware, Inc.
TochangethepackagelifetimesettingschooseProperties>Settings. TodeactivatethepackageimmediatelychooseDeactivate.
AutomatestheSysprepprocess(theuseoftheMicrosoftSysprepdeployment tools).ItgivesyoubettercontrolofsomeSysprepparameters,suchascomputer name. AutomatesjoiningACEinstancestoadomainfromaremotesite.SeeSetUpa RemoteDomainJoinonpage 437. FormanagedACEinstances,theinstancecustomizationprocessontheusers machinereportsthesuccessorfailureoftheprocesstotheserver.Theinformation isavailableintheinstanceviewofWorkstation.Besidesstatus,theprocessalso reportstheMACaddressandthenewcomputername.
VMware, Inc.
431
432
VMware, Inc.
Formanagedinstances,instancecustomizationisreportedtotheserverifitis successful.
VMware, Inc.
433
SystemoptionsYoucanuseplaceholdervariablesforthesystemname, organizationname,andcomputername.Fordetailsontheplaceholder variables,includinganexample,seePlaceholderValuestoUseinInstance Customizationonpage 435. CAUTIONTheMiniSetupprocessfailsifyouenteradministratorinthe NamefieldortheComputerNamefieldorforWindowsVistaandWindows 7guests,ifthecomputernameismorethan15characters. Ifyousetthe%logon_user%placeholderinthosefieldsandtheplaceholder variableresolvestoadministrator,thesoftwareautomaticallychangesthe valuetoarandomalphanumericstringof10characters.
SecurityIDAnewSIDisalwaysgeneratedforWindowsVistaand Windows7guests,regardlessofthesettingyouchoosehere.
434
SpecifyothertypesofdeploymentsettingsorclickOK.
Tocreateapackagewiththesesettings,seeCreatingaPackageonpage 443.
%logon_user%or%logon_user(n)% Theuserloggedintothehostmachineat thetimetheMicrosoftMiniSetupprocessbegins. Youcanuse%logon_user(n)%,where<n>isthemaximumnumberofcharacters obtainedfromtheactualloggedinuserwhenthenameisresolved.Use<n>ifyou theusernamemustberesolvedtonomorethanacertainnumberofcharacters. Forexample,ifyouspecifythat3randomcharactersaretobeaddedtotheactual usernameandyouwanttolimittheresolvednameto15characters,set<n>to12. YourentryintheNamefieldintheSystemOptionspanelis %logon_user(12)%%random_alpha_digit(3)%. Including(n)intheplaceholderisoptional.Ifyouuseonly%logon_user% orif youset<n>tozero(0),theplaceholderresolvestothefullloggedinusername.
VMware, Inc.
435
ForWindowsVistaandWindows7guests,ifthecomputernameismorethan15 characters,theMiniSetupprocessfailsontheusermachine.
Saveandclosethefile.
Formoreinformation,gototheMicrosoftTechNetWebsiteandintheWindowsServer Library,searchfor[LicenseFilePrintData](Sysprep).
436
VMware, Inc.
DeterminewhichVPNclienttodownload.TheVPNclientmustsupporta commandlineinterfacesothatascriptcanbeusedforloggingintotheVPN server.YoumightneedtocontacttheVPNproductstechnicalsupporttofindout whethertheVPNclientsupportsacommandlineinterface. ObtainaVPNaccountforloggingintotheserver.Credentialsincludeausername andpassword.Randomlygeneratedsecuritytokenscannotbeusedaspasswords. Forexample,youcannotuseanRSAsecuritytoken. DeterminethefollowinginformationtousefortheVPNclientprofile:the companysgroupandpasswordinformationandthenameoftheVPNserverto contacttoestablishasecureconnection. DeterminethenameofthedomainthatyouplantoaddtheACEinstanceto. Determinetheusernameandpasswordforanaccountthathaspermissiontoadd computerstothedomain.
To set up a remote domain join 1 2 IntheguestoperatingsystemoftheACEenabledvirtualmachine,installaVPN clientthatsupportsacommandlineinterface. UsetheVPNclientsoftwaretoconfigureaprofileforthisclient. TheprofileintheVPNclientcontainsacompanysgroupandpassword informationanddetermineswhichservertocontacttoestablishasecure connection.
VMware, Inc.
437
Thisexampleconsistsoftwolines.ThecommandinthefirstlinestartstheCisco VPNclientsbackgroundservice.Thecommandinthesecondlineconnectstothe CiscoVPNusingacommandlineinterface.ItsuppliesthenameoftheVPNprofile andthecredentialsforloggingintotheVPNserver.Theexampleusesthe passwordplaceholdervariable,butyoucouldalsouseastaticpasswordforthe VPNaccount.Astaticpasswordincludedinascriptissentincleartext. 4 5 6 7 Savethe.batfileontheC:driveoftheguestsfilesystem. InWorkstation,selecttheACEenabledvirtualmachineandchooseVM>ACE> DeploymentSettings. SelectWorkgrouporDomain. Inthesettingspanel,selectDomainandspecifyanorganizationalunitanduser nameforanaccountthathaspermissiontoaddcomputerstothedomain. AnexampleofanentryintheOUfullpathfileis OU=orgunits,DC=dpt,DC=domain,DC=com. IftheACEenabledvirtualmachineismanaged,passwordsandcommandsare storedonACEManagementServer. IftheACEenabledvirtualmachineisstandalone,passwordsandcommandsare storedwiththepackage.Besuretouseencryptionforthepackage. 8 9 SelectEnableRemoteDomainJoin. SpecifythepasswordforloggingintotheVPNserver. Youcanthenusethe%password%placeholdervariableintheCommandtextbox torefertothispassword. 10 Enterthecommandthatexecutesthescript. Forexample,ifyounamethe.batscriptvpn.batandwanttousethepassword placeholdervariable,enterthefollowingcommand:
C:\vpn.bat%password%
438
VMware, Inc.
Tocreateapackagewiththesesettings,seeCreatingaPackageonpage 443.
TospecifywhethertodeploytoWindowshosts,Linuxhosts,orboth,usethe DeploymentPlatformsettinginthedeploymentsettingseditor.
VMware, Inc.
Otherresourcefilesthatauthentication,poweron,orpoweroffscriptscall
439
DonotplacefilesinasubdirectoryoftheACE Resourcesdirectory.Ifscriptsor skinfilesreferenceotherfiles,placethoseotherfilesinthemainACE Resources directory.Makesurethescriptusesrelativepathstoreferencethoseresources. AresourceisconsideredanyfileintheACE Resourcesdirectory.Youcanspecify whethertoverifyallfilesintheACE Resourcesdirectoryorjustthepolicyscripts inthatdirectory.Formoreinformation,seeSettingResourceSigningPolicieson page 396.
440
VMware, Inc.
To review the configuration of an ACE-enabled virtual machine 1 VerifythattheACEenabledvirtualmachinehasthenecessaryoperatingsystem, applicationsoftware,andVMwareToolsinstalled. SeeInstallingVMwareToolsonpage 102.Forguestoperatingsystemsupport, knownissues,andinstallationinstructions,seetheonlineVMwareCompatibility Guide.GototheVMwareWebsiteandselectResources>CompatibilityGuides, andclicktheViewtheGuest/HostOStabontheVMwareCompatibilityGuide Websitelink. 2 3 4 5 6 7 Toreviewconfigurationsettings,selecttheACEenabledvirtualmachineand chooseView>CurrentView>Summary. Toreviewvirtualmachinedevicesandvirtualhardware,clicktheDevicestabin thesummaryview. Toreviewvirtualmachineconfigurationoptions,clicktheOptionstab. Tomakechangestodevicesoroptions,clickEditvirtualmachinesettingsinthe Commandslist. Toreviewpoliciesanddeploymentsettings,clicktheACEtab. Tomakechangestopoliciesordeploymentsettings,clickEditpoliciesorEdit deploymentsettingsintheCommandslist.
VMware, Inc.
441
NOTEYoucanrunanyACEenabledvirtualmachinedirectlyinWorkstationtobesure thattheguestoperatingsystemandapplicationsperformasexpected.However,an ACEenabledvirtualmachinerunninginWorkstationdoesnotrespectanypoliciesthat restrictitsfunctionality. To use preview mode to test policy and deployment settings 1 2 3 4 OpentheACEenabledvirtualmachinetotest. Inthesummaryview,clickEditpoliciesintheCommandslist. InthePolicylist,selectthepolicytochange,completethesettingspanelforthat policy,andclickOK. Inthesummaryview,clickthePreviewinPlayerintheCommandslist. Apackagebasedonalinkedcloneiscreatedinanewdirectory,Preview Deployment,insidetheACEenabledvirtualmachinesdirectory.Thelinkedclone iscreatedfromasnapshotofthevirtualmachinescurrentstate.Unlikeapackage thatisdeployedtoanACEusersmachine,thispackageisnotinstalled. VMwarePlayerallowsyoutoactivateandauthenticatetheACEinstance(ifthose policiesareset).Ifconfigured,instancecustomizationisalsoperformed.Theguest operatingsystemstarts. 5 TestthepolicychangeintherunningACEinstancetoensurethatitistheoneyou wanttomake. PreviewmodeenablesVMwarePlayertoruninteractivelysothatyoucanseeany instancecustomizationerrorsandmakecorrectionsasneeded. 6 (Optional)Tomakeadditionalchangestopoliciesordeploymentsettings,shut downthevirtualmachineandrepeatthisprocedure. YoucanhaveonlyonepreviewinstanceperACEenabledvirtualmachine.When youclickPreviewinPlayerasecondorsubsequenttime,amessageasksifyou wanttoreplacethecurrentpreviewinstancewithanewdeploymentorusethe existingdeployment. Tochangeonlypoliciesandnotrepeattheactivationandinstancecustomization steps,usetheexistingdeployment. 7 IfACEManagementServerismanagingthevirtualmachine,clickPublish PoliciestoServer.
442
VMware, Inc.
Creating a Package
AfteryoucreateanACEenabledvirtualmachineandconfigurepolicies,devices,and deploymentsettings,usetheNewPackagewizardtocreateapackagethatyoucan deploytousers. NOTETocreateaPocketACEpackagefordistributiononportabledevices,usethe PocketACEPackagewizardratherthantheNewPackagewizard.SeeCreateaPocket ACEPackageonpage 454. ForpackagesthatyouplantodeploytoWindowshosts,youcanspecifythatthe packageistobedistributedthroughanetworkimageorthroughDVDsorCDs.For DVDandCDdistribution,thepackageisdividedintofilesthatfitonstandarddiscs.
PolicyUpdateorServerUpdateIncludesjustthepolicyrelatedfiles.
PackagevalidationoccursafteryoucompletetheNewPackagewizard.Package validationdoesthefollowing:
ChecksthatallfilesthattheACEenabledvirtualmachinerequiresarepresent. Thosefilesinclude:
Diskandsnapshotfiles Scriptfiles(ifanypolicyisusingscripts)
Addthefollowinglinetothefile:
444
VMware, Inc.
pref.ignoreToolsPkgCheck = "TRUE"
Beforeyoucreatepackagesthatyouplantodeployinproductionenvironments, reinstatetheVMwareToolscheck.
EnsurethattheguestoperatingsystemandthemostrecentversionofVMware ToolsareinstalledintheACEenabledvirtualmachine.SeeInstallingVMware Toolsonpage 102. Defragmentvirtualdiskstoensurethatthepackageisascompactaspossible.See DefragmentVirtualDisksonpage 235. PreviewtheACEinstancetoverifythatallsettingsareworkingcorrectly.SeeUse PreviewModetoTestPolicyandDeploymentSettingsonpage 441. Determinethepasswordsusedforthepoliciesanddeploymentsettings.Thesecan includethefollowing:
ActivationpasswordAccesscontrolpolicyissettoPassword. DomainjoincredentialsAccesscontrolpolicyfortheACEinstanceissetto Password,andtheInstanceCustomizationdeploymentsettingforDomain isenabled.Thispasswordisfortheuseraccountthathaspermissiontoadd computerstothisdomain. RemotedomainjoincredentialsandVPNcredentialsTheInstance CustomizationdeploymentsettingsforDomainandEnableremotedomain joinareenabled.Thedomainpasswordisfortheuseraccountthathas permissiontoaddcomputerstothisdomain.ThepasswordintheRemote domainjoinsectionisfortheuseraccountthathaspermissiontoaccessthe VPNserver.
VMware, Inc.
445
Touseinstancecustomization,verifythatthefollowingprerequisitesaresatisfied:
446
VMware, Inc.
Whenyouexitpreviewmode,bydefaultVMwarePlayersuspendsthevirtual machine.Ifnecessary,useWorkstationtopoweroffthevirtualmachine. 3 4 5 ChooseVM>ACE>NewPackage. CompletetheNewPackagewizard. (Optional)Ifyouarepromptedtoselectapackagedistributionformatandyou selectMultiplefoldersforcreatingDVDsorCDs,writedownthedisclabelprefix youspecify. Whenyoulaterusediscburningsoftwaretocreatethediscs,thenameyouenter foreachdiscmustbethesameasthenameofthefolderthewizardcreatestohold thatdiscscontents(forexample,DISC1,DISC2). 6 Tobeginthepackagingprocess,clickNextonthePackageSummarypage. Packagecreationtakesasubstantialamountoftime,especiallyforpackagesthat includelargevirtualmachinesorinstancecustomizationsettings. Duringtheinstancecustomizationstage,iftheguestoperatingsystemdoesnot shutdownafterapproximately10minutes,theproblemmightbethattheSysprep toolswerenotinplace.Theoperationiscancelledandanerrormessagetellsyou thatinstancecustomizationfailed. ThePackageCreationCompletepageappearswhentheprocessiscomplete.Itlists thelocationofthenewlycreatedpackageandprovidesalinktothepackage directory. 7 Dependingonwhichdistributionmethodyouchose,dooneofthefollowing:
Thedisclabelyouenterinyourdiscburningsoftwareforeachdiscmust bethesameasthenameofthefolderthewizardcreatestoholdthatdiscs contents. Burnthecontentsofeachdiscontothetoplevelofthedisc. Thepackageinstallerexpectstofindonlythecontentsofthefolder,and notthefolderitself,attherootlevelonthedisc.Ifyouburnthefolder itselfontothedisc,whenyouattempttoinstallthecontentsofthesecond orsubsequentdiscsontheusersmachine,theerror1309,Error reading from file <filename>,appears.
VMware, Inc.
447
448
VMware, Inc.
4 5 6
7 8
Deploy Packages
DeployingpackagesmeansmakingtheACEpackageavailabletoendusers.You specifythedistributionmethodwhenyoucreatethepackage. To deploy packages Dependingonthetypeofpackage,dooneofthefollowing:
VMware, Inc.
449
450
VMware, Inc.
21
Pocket ACE
21
ThePocketACEfeatureenablesyoutostoreACEinstancesonportabledevicessuchas USBkeys(flashmemorydrives),AppleiPodmobiledigitaldevices,andportablehard drives.ACEusersattachtheseportabledevicestox86hostcomputers,runtheirACE instanceswithVMwarePlayer,andthendetachtheportabledevices.Thenexttime theyneedaccesstotheirACEinstances,theycanattachthedevicestothesamehost computersortodifferentcomputers. UsePocketACEtopackageadailycomputingenvironmentandallowenduserstotake thatenvironmentincludingdocuments,settings,applications,andVPN accesswherevertheyneedtogo. Thischapterincludesthefollowingtopics:
UseCasesforPocketACEonpage 451 PortableDeviceRequirementsonpage 453 PoliciesandDeploymentSettingsforPocketACEonpage 453 CreateaPocketACEPackageonpage 454 DeployingtheACEPackageonaPortableDeviceonpage 455 RunthePocketACEInstanceonpage 457
VMware, Inc.
451
ProvidingaccesstoemployeesworkingremotelyEmployeesoftenusetheir ownhomecomputerforaccessingenterpriseresourcesremotely.Unmanaged clientscanbeinfectedbymalwareorspyware.Inaddition,thereisariskoflost dataifaremoteuserdownloadssensitivedatatoapersonalcomputer.Thereis alsotheaddedburdenofdeployingandmanagingthesoftwareneededbyremote users. UsingPocketACE,ITadministratorscandeployatrusted,managed,andmore securevirtualdesktopinstancetoremoteusers.ThevirtualdiskofthePocketACE canbeencryptedtominimizetheriskoflostdata.Bysettingspecificnetwork quarantinepolicies,administratorscanstrictlycontroltrafficbetweenthe untrustedclientandPocketACEinstance,protectingtheenterprisefromcreating acompromisedhost.
452
VMware, Inc.
ProvidingdisasterrecoveryUsingPocketACE,organizationscaneasilypackage desktopinstanceswithallthenecessaryenterpriseapplicationsforuseinthecase ofadisaster.Theseinstancescanbedeployedtoportablemediadevicesandstored safelyinasecureoffsitefacility.Ifadisasteroccurs,thePocketACEinstancescan bequicklydistributedandused. DistributingbetaortrialsoftwareUsingPocketACE,ISVscandistribute softwarepreinstalledasavirtualapplianceeitherbydownloadoronaportable mediadevice.AnISVcanprovideacompleteworkingenvironment,ensuringno compatibilityissues.CustomEULAscanbecreatedandusedtoensurethatauser acceptstheagreementpriortousinganACEinstance.Inaddition,anexpiration periodcanbesetthatdisablesanACEinstanceafteranallottedperiodoftime.
VMware, Inc.
453
Makesuretheportabledevicemeetsthehardwareanddiskspacerequirementsfor PocketACE.SeePortableDeviceRequirementsonpage 453. DeterminewhetheryouwanttodeploythePocketACEtoWindowsmachines, 32bitLinuxmachines,64bitLinuxmachines,orsomecombination.Yourchoices affectthediskspacerequirements. Determinethepasswordyouwanttouseforanyonewhoattemptstodeploythe packagetoaportabledevice. Ifyoudonotwanttorequireapassword,makesuretheaccesscontrolpolicys authenticationtypeissettoNone.Makesuretheencryptiondeploymentsetting forpackageprotectionissettoNone.
Inaddition,completethetaskslistedinPrerequisitesforUsingthePackaging Wizardsonpage 445. To create a Pocket ACE package 1 2 OpentheACEenabledvirtualmachinetouseasthebasisforthepackage. Makesurethevirtualmachineispoweredoffratherthansuspended. Whenyouexitpreviewmode,bydefaultVMwarePlayersuspendsthevirtual machine.Ifnecessary,useWorkstationtopoweroffthevirtualmachine. 3 4 TocreateanewPocketACEoranupdatepackage,chooseVM>ACE>New PocketACEPackage. Completethewizard. WhenyouspecifyalocationontheNamethePackagepage,choosealocationon theadministratormachine.Donotspecifyalocationontheportabledevice.You deploythepackagetothedeviceafterthepackageiscreated.
454
VMware, Inc.
Ifyoudonotdeploythepackageimmediately,seeDeployingtheACEPackageona PortableDevice.
WhenyoudistributethePocketACE,giveitdirectlytotheuserandtelltheusertokeep thePocketACEsecureuntiltheuserrunstheACEandchangestheuserpassword.
VMware, Inc.
455
Enterthefollowingbulkdeploymentcommandandspecifythenecessary parameters:
bulkDeploy.exe <deployment_directory> <parameters>
-q -t
Forexample,
456
VMware, Inc.
OnWindowshosts,navigatetotheremovabledeviceandrunthePocketACE.
VMware, Inc.
457
458
VMware, Inc.
22
22
Thischapterincludesthefollowingtopics:
InstallinganACEPackageonaWindowsHostonpage 459 InstallinganACEPackageonaLinuxHostonpage 463 UpgradingACEInstancestoACE2.6onpage 467 StartandUseanACEInstanceonpage 467 InstallanACEClientLicenseonpage 471 QuitVMwarePlayeronpage 472 TroubleshootingToolsonpage 472
MakesurethehostcomputerhasenoughdiskspacefortheACEinstance.
VMware, Inc.
459
IfthisisthefirstinstallationofanACEinstanceontheusersmachine,auserwith administrativeprivilegesmustruntheinstallation.Onlyauserwith administrativeprivilegescaninstallanduninstallVMwarePlayer. IftheACEinstanceincludesahostpolicy,auserwithadministrativeprivileges mustruntheinstallation.Ahostpolicyisahostnetworkaccesspolicyorapolicy thatrestrictswhichvirtualmachinescanrunonahost.SeeSettingNetwork AccessPoliciesonpage 397andControlWhichACEInstancesRunonaHost onpage 415. Onlyonesetofhostpoliciescanbedeployedtoaparticularhost.Ifapackage containshostpoliciesandthehostalreadycontainshostpoliciesfromanother package,installationofthesecondpackagefails.
To install an ACE instance on a single Windows host 1 IfVMwarePlayerisnotyetinstalledontheusersmachine,logintothehost computerastheAdministratoruserorasauserwhoisamemberoftheWindows Administratorsgroup. DependingonwhetheryouareinstallingfromaCD,DVD,ornetworklocation,do oneofthefollowing:
ForCDsandDVDs,insertthefirstdisc. Foranetworklocation,navigatetothelocationoftheinstaller.
3 4
Findthesetup.exefileanddoubleclickit. Followtheprompts.
460
VMware, Inc.
To install the MSI 2.0 runtime engine from an ACE package 1 2 Onthehostcomputer,openacommandprompt. Enterthefollowingcommand:
instmsiw.exe /Q
ForadditionaldetailsonhowtousetheMicrosoftWindowsInstaller,seetheMicrosoft Website.
Youcanalsoinstallanupgradesilently.Anupgradeisalwaysinstalledinthesame directoryordirectoriesasthepreviouspackage. To install the ACE instance on multiple hosts 1 2 Onthehostcomputer,openacommandprompt. Enterthefollowingcommand:
setup.exe /s/v"/qn"
ThiscommandinstallsthepackageandVMwarePlayer(ifincluded)intothe defaultlocationsandcreatesashortcutfortheACEinstanceonthedesktop.The defaultlocationfortheVMwarePlayerapplicationisC:\Program Files\VMware\VMware Player. ThedefaultlocationforthevirtualmachinefilesonaWindowsXPsystemis C:\Documents and Settings\All Users\Application Data\VMware\VMware ACE\<ACE_name>. 3 Tocustomizethepackage,enterthefollowingcommand:
VMware, Inc.
461
Thefollowingexamplecommandillustratestheoptionsandtheirusage:
msiexec -i package.msi DESKTOP_SHORTCUTS=0 INSTALLDIR="G:\packages" PLAYER_INSTALLDIR="C:\VMware\VMware Player" /qn
Inthispath,<user>representsauserspecificdirectory.Ifmorethanoneuserused PocketACEonthehost,youmustremovethedirectoryforeachuser.
462 VMware, Inc.
VMware-Player-i386.bundle VMware-Player-x86_64.bundle
Enterthefollowingcommandtochangetothedirectorytowhichyoucopiedthe file:
cd /tmp
Enterthefollowingcommandtoruntheinstallationprogram:
sh VMware-Player-<architecture>.bundle
VMware, Inc.
463
MakesurethehostcomputerhasenoughdiskspacefortheACEinstance. TheACEpackagemustbeaccessibletotheLinuxusermachinesforinstallation. IfthisisthefirstinstallationofanACEinstanceontheusermachine,arootuser mustruntheinstallation.OnlyarootusercaninstallanduninstallVMwarePlayer. IftheACEinstanceincludesahostpolicy,arootusermustruntheinstallation.A hostpolicyisahostnetworkaccesspolicyorapolicythatrestrictswhichvirtual machinescanrunonahost.SeeSettingNetworkAccessPoliciesonpage 397and ControlWhichACEInstancesRunonaHostonpage 415. Onlyonesetofhostpoliciescanbedeployedtoaparticularhost.Ifapackage containshostpoliciesandthehostalreadycontainshostpoliciesfromanother package,installationofthesecondpackagefails.
464
VMware, Inc.
AddthefollowinglinestocreateaServerFlagssectioninthe /etc/X11/xorg.conffile:
VMware, Inc.
465
Section "ServerFlags" Option "DontZoom" "true" Option "DontZap" "true" Option "DontVTSwitch" "true" EndSection
3 4 5
TouninstallanACEinstance,enterthefollowingcommand:
<path_to_instance_directory>./vmware-uninstall-ace.pl
TouninstallVMwarePlayer,enterthefollowingcommand:
/usr/bin/vmware-uninstall
466
VMware, Inc.
(Optional)IfyouusedPocketACEonthishostandwanttoremovethePocketACE cachetoconservediskspace,deletethefollowingdirectory:
/home/<user>/.vmware/roamcache
Inthispath,<user>representsauserspecificdirectory.Ifmorethanoneuserused PocketACEonthehost,youmustremovethedirectoryforeachuser.
VMware, Inc.
467
2 3
Ifpromptedtoenterorcreateapassword,doso. IftheEnterSerialNumberdialogboxappears,dooneofthefollowing:
Ifyouradministratorprovidedaserialnumber,enterit. Ifyouneedtopurchasealicense,clickGetSerialNumber.
5 6
YoucanalsostarttheACEinstancesothatitisnotinkioskmode.Youcanthenusethe VMwarePlayermenustochangepreferencesettingsorenteradministratormodeifthe ACEinstanceisconfiguredforthatmode. To change default kiosk mode startup behavior 1 2 OpenacommandpromptonWindowshostsoraterminalwindowonLinuxhosts. Tosuppressthedialogboxusuallyshownatstartup,dooneofthefollowing:
OnWindows,enterthefollowingcommand:
<path>\vmplayer.exe -k "<config-file>"
OnLinux,enteroneofthefollowingcommands:
OnWindows,enterthefollowingcommand:
<path>\vmplayer.exe -K "<config-file>"
OnLinux,enteroneofthefollowingcommands:
Linuxscriptfile:
#!/bin/bash vmplayer -k ~/vmware-ace/ace1/ace1.vmx & sleep 20 vmplayer -k ~/vmware-ace/ace2/ace2.vmx & sleep 20 vmplayer -k ~/vmware-ace/ace3/ace3.vmx &
Runthebatchfileorscripttostartthevirtualmachinesinkioskmode.
VMware, Inc.
Entertheserialnumberinthedialogbox.
471
VMware, Inc.
Ifyouneedtopurchasealicense,clickGetSerialNumber.
ClickOK.
Troubleshooting Tools
VMwareACEincludessometroubleshootingtoolsthatallowadministratorsandhelp deskassistantstofixsomecommonproblemsthatusershavewithACEinstances,such asforgottenuserpasswords.Thetoolsare:
ForstandaloneACEinstances:
FormanagedACEinstances,seetheVMwareACEManagementServer AdministratorsGuide.
Settheuserspassword,sotheusercanruntheACEinstance. Setcopyprotection,sotheusercanruntheACEinstanceinanewlocation.
472
VMware, Inc.
Settheexpirationdate,sotheusercancontinuetouseanACEinstancethatispast itsscheduledexpirationdate.
Theconfigurationfile(.vmxfile)fortheACEinstancemustbeontheACEusers machine.Thatis,youcannotusevmware-acetooltomakefixestofilesassociatedwith theinstanceunlesstheconfigurationfileisonthesamemachineasthosefiles. Youcanactuallyusethevmware-acetoolprogramtoresetpasswordsandfix expirationdatesonanothermachine,butyoumusthavethe.vmx,.vmpl,andace.dat filesfromtheuserallsetupinthesamedirectory.Thefollowingisanexampleofa vmware-acetoolcommand: vmware-acetool <command> <ACEconfigurationfile> <parameters> Table 22-2. Commands and Parameters for vmware-acetool
Command setPassword setExpirationDate allowCopy updateCurrentTime Parameters Pathtorecoverykeyfile Newexpirationdate Description SettheACEinstances password. SettheACEinstances expirationdate. AllowtheACEinstanceto runfromitscurrentlocation. Updatetheinternalpolicy clockofanACEinstanceto thecurrenttime. Netcloneconfigurationfile Pathtorecoverykeyfile Clonearegularvirtual machinefroman ACEenabledvirtual machine.
cloneToVM
Password Prompts
Allcommandspromptfortheadministrativetoolspassword.SeeSetting AdministratorModePoliciesonpage 412. ThesetPasswordcommandalsopromptsfortherecoverykeypasswordforthe privaterecoverykeyfile,anewACEinstancepassword,andconfirmationofthatnew password.SeeSetaRecoveryKeyforEncryptedACEInstancesonpage 391. Followingisanexampleofthecommand: vmware-acetool setPassword myACE.vmx recKey.priv
Expiration Dates
Thenewexpirationdatecanbepassedasoneofthefollowing:
VMware, Inc. 473
Followingareexamplesofthecommand: vmware-acetool setExpirationDate myACE.vmx 30 vmware-acetool setExpirationDate myACE.vmx 2007-06-16 vmware-acetool setExpirationDate myACE.vmx "never" vmware-acetool allowCopy myACE.vmx 30
Forinformationaboutenablingthehotfixfeature,seeSettingHotFixPoliciesfor StandaloneACEInstancesonpage 414.Forinformationaboutsettingarecoverykey, whichyoumusthavetosendahotfixforalostorforgottenuserpassword,seeSeta RecoveryKeyforEncryptedACEInstancesonpage 391. Whenthehotfixfeatureisenabled,ifanenduserseesanotificationthattheACE instanceisexpiredorcopyprotected,aRequestHotFixbuttonappearsinthedialog box.Theuserclicksthisbutton,whichlaunchestheHotFixRequestwizard.This wizardgeneratesahotfixrequestfile.Theusercansubmitthisfiletotheadministrator asanemailattachmentorinsomeotherway. To respond to a hot fix request 1 2 3 Whenyoureceivethehotfixrequestfile,saveittoalocationthatyoucanaccess fromtheadministratormachinewhereWorkstationisinstalled. OpentheACEenabledvirtualmachinefortheinstancethatrequiresthehotfix. ChooseFile>Open.
474
VMware, Inc.
5 6 7
VMware, Inc.
475
PDCSecurityPoliciesGototheMicrosoftTechNetWebsiteandenterDomain controller:Refusemachineaccountpasswordchanges,inthesearchcriteria.
Issues with Domain Joins for Windows Vista and Windows 7 Guests
Problem:TheWindowsVistaandWindows7ACEinstancescannotjointhelocal domainandinstancecustomizationfailedwiththemessageNetDomainJoin function Error 1722: Could not join domain. Description:WindowsVistaandWindows7ACEinstancesmighthavethisproblem. Solution:Telltheusertopowerofftheinstanceandpoweritonagaintoretryinstance customization.Theproblemisintermittentandrestartingmightsolvetheproblem.
476
VMware, Inc.
OnaLinuxhostoperatingsystem:
/usr/bin/vmware [-n] [-x] [-X] [-m] [-t] [-q] [-s <variablename>=<value>] [-v] [/<path_to_virtual_machine>/<virtual_machine_name>.vmx] [X toolkit options]
OnaWindowshostoperatingsystem:
C:\Program Files\VMware\VMware Workstation\vmware.exe [-B] [-n] [-x] [-X] [-t] [-q] [-s <variablename>=<value>] [-v] [<path_to_virtual_machine>\<virtual_machine_name>.vmx]
VMware, Inc.
477
-t -x
-X -m -q
-s
-v <path_to_VM_or_team>
478
VMware, Inc.
Enclosetheentirecommandstringinquotationmarks.Theconfigurationfilehasa .vmxextensionbydefault.
VMware, Inc.
479
480
VMware, Inc.
Glossary
bridgednetworking Atypeofnetworkconnectionbetweenavirtualmachineandthehostsphysical network.Withbridgednetworking,avirtualmachineappearsasanadditional computeronthesamephysicalnetworkasthehost.Seealsohostonlynetworking. clone Aduplicateofavirtualmachine.Seealsofullclone,linkedclone. customnetworking Anytypeofnetworkconnectionbetweenvirtualmachinesandthehostthatdoes notusethedefaultbridged,hostonly,ornetworkaddresstranslation(NAT) networkingconfigurations.Forinstance,differentvirtualmachinescanbe connectedtothehostbyseparatenetworksorconnectedtoeachotherandnotto thehost.Anynetworktopologyispossible.
DE
diskmode Apropertyofavirtualdiskthatdefinesitsexternalbehavior(howthe virtualizationlayertreatsitsdata)butiscompletelyinvisibletotheguestoperating system.Availablemodesincludepersistentmode(changestothediskarealways preservedacrosssessions),nonpersistentmode(changesareneverpreserved),and undoablemode(changesarepreservedattheusersdiscretion). Favoriteslist AlistintheleftpanelofthemainWorkstationwindowthatshowsthenamesof virtualmachinesthatauserhasadded.YoucanusetheFavoriteslisttolauncha virtualmachineortoconnecttothevirtualmachinesconfigurationfileandmake changesinthevirtualmachinesettings.
VMware, Inc.
481
fullclone Acompletecopyoftheoriginalvirtualmachine,includingallassociatedvirtual disks.Seealsolinkedclone. fullscreenmode Adisplaymodeinwhichthevirtualmachinesdisplayfillstheentirescreen.See alsofullscreenswitchmode. fullscreenswitchmode Adisplaymodeinwhichthevirtualmachinesdisplayfillstheentirescreen,and theuserhasnoaccesstotheWorkstationuserinterface.Theusercannotcreate, reconfigure,orlaunchvirtualmachines.Asystemadministratorperformsthose functions.Seealsofullscreenmode.
HK
hostonlynetworking Atypeofnetworkconnectionbetweenavirtualmachineandthehost.With hostonlynetworking,avirtualmachineisconnectedtothehostonaprivate network,whichnormallyisnotvisibleoutsidethehost.Multiplevirtualmachines configuredwithhostonlynetworkingonthesamehostareonthesamenetwork. Seealsobridgednetworking,customnetworking. host ThephysicalcomputeronwhichtheVMwareWorkstationsoftwareisinstalled. hostoperatingsystem Anoperatingsystemthatrunsonthehostmachine.Seealsoguestoperating system. independentdisk Atypeofvirtualdiskthatisnotaffectedbysnapshots.Youcanconfigure independentdisksinpersistentandnonpersistentmodes.Seealsononpersistent mode,persistentmode,snapshot.
482
VMware, Inc.
Glossary
LM
NO
nonpersistentmode Adiskmodeinwhichalldiskwritesissuedbysoftwarerunninginsideavirtual machineappeartobewrittentotheindependentdiskbutareinfactdiscarded afterthevirtualmachineispoweredoff.Asaresult,avirtualdiskorphysicaldisk inindependentnonpersistentmodeisnotmodifiedbyactivityinthevirtual machine.Seealsodiskmode,persistentmode. parent Thesourcevirtualmachinefromwhichyoutakeasnapshotormakeaclone.Afull clonehasnocontinuedlinktoitsparent,butalinkedcloneandasnapshotmust haveaccesstotheparentsvirtualdiskfiles.Ifyoudeletetheparentvirtual machine,anylinkedcloneorsnapshotbecomespermanentlydisabled.Toprevent deletion,youcanmaketheparentatemplatevirtualmachine.Seealsofullclone, linkedclone,snapshot. persistentmode Adiskmodeinwhichalldiskwritesissuedbysoftwarerunninginsideavirtual machineareimmediatelyandpermanentlywrittentoavirtualdiskthathasbeen configuredasanindependentdisk.Asaresult,avirtualdiskorphysicaldiskin independentpersistentmodebehaveslikeaconventionaldiskdriveonaphysical computer.Seealsodiskmode,nonpersistentmode. physicaldisk Aharddiskinavirtualmachinethatismappedtoaphysicaldiskdriveorpartition onthehostmachine.Aphysicaldiskisalsoreferredtoasarawdisk.Avirtual machinesdiskcanbestoredasafileonthehostfilesystemoronalocalharddisk. Whenavirtualmachineisconfiguredtouseaphysicaldisk,Workstationdirectly accessesthelocaldiskorpartitionasaphysicaldevice(notasafileonafile system).Seealsovirtualdisk.
VMware, Inc.
483
quickswitchmode Adisplaymodeinwhichthevirtualmachinesdisplayfillsmostofthescreen.In thismode,tabsatthetopofthescreenallowyoutoswitchquicklyfromone runningvirtualmachinetoanother.Seealsofullscreenmode. rawdisk Seephysicaldisk. record/replayfeature ThisfeatureletsyourecordallofaWorkstation5.xor6.xvirtualmachinesactivity overaperiodoftime.UnlikeWorkstationsmoviecapturefeature,the record/replayfeatureletsyouexactlyduplicatetheoperationsandstateofthe virtualmachinethroughoutthetimeoftherecording. redolog Thefilethatstoreschangesmadetoadiskinallmodesexceptthepersistentand independentpersistentmodes.Foradiskinnonpersistentmode,theredologfile isdeletedwhenyoupowerofforresetthevirtualmachinewithoutwritingany changestothedisk.Youcanpermanentlyapplythechangessavedintheredolog toadiskinundoablemodesothattheybecomepartofthemaindiskfiles.Seealso diskmode. ReverttoSnapshot Acommandthatrestoresthestatusoftheactivevirtualmachinetoitsimmediate parentsnapshot.Thisparentisrepresentedinthesnapshotmanagerbythe snapshotappearingtotheimmediateleftoftheYouAreHereicon.SeealsoGoto Snapshot,snapshotmanager.
sharedfolder Afolderonahostcomputeroronanetworkdriveaccessiblefromthehostthat canbeusedbyboththehostandoneormorevirtualmachines.Itprovidesaway ofsharingfilesbetweenhostandguestoramongvirtualmachines.InaWindows virtualmachine,sharedfoldersappearasfoldersonadriveletter.InaLinuxor Solarisvirtualmachine,sharedfoldersappearunderaspecifiedmountpoint. snapshot Areproductionofthevirtualmachinejustasitwaswhenyoutookthesnapshot, includingthevirtualmachinespowerstate(on,off,orsuspended).Ifthevirtual harddisksarenotsettoindependentmode,asnapshotalsoincludesthestateof thedataonallthevirtualmachinesdisks.Youcantakeasnapshotwhenavirtual machineispoweredon,poweredoff,orsuspended.Seealsoindependentdisk.
484
VMware, Inc.
Glossary
TU
team Agroupofvirtualmachinesthatareconfiguredtooperateasoneobject.Youcan poweron,poweroff,andsuspendateamwithonecommand.Youcanconfigure ateamtocommunicateindependentlyofanyothervirtualorrealnetworkby settingupaLANsegment.SeealsoLANsegment,virtualnetwork. Unitymode Adisplaymodeinwhichavirtualmachinesapplicationsaredisplayedin applicationwindowsdirectlyonthehostsdesktop.Thevirtualmachineconsole viewishidden,andyoucanminimizetheWorkstationwindow.Inthismode,a virtualmachinesapplicationslookjustlikeotherapplicationwindowsonthehost.
VX
virtualdisk Afileorsetoffilesthatappearsasaphysicaldiskdrivetoaguestoperating system.Thesefilescanbeonthehostmachineoronaremotefilesystem.Seealso physicaldisk. virtualhardware Thedevicesthatmakeupavirtualmachine.Thevirtualhardwareincludesthe virtualdisk,removabledevicessuchastheDVDROM/CDROMandfloppy drives,andthevirtualEthernetadapter.Youconfigurethesedeviceswiththe virtualmachinesettingseditor.Seealsovirtualmachinesettingseditor. virtualmachine Avirtualizedx86PCenvironmentinwhichaguestoperatingsystemand associatedapplicationsoftwarecanrun.Multiplevirtualmachinescanoperateon thesamehostmachineconcurrently. virtualmachineconfiguration Thespecificationofwhichvirtualdevices,suchasdisksandmemory,arepresent inavirtualmachineandhowtheyaremappedtohostfilesanddevices. virtualmachineconfigurationfile Afilecontainingavirtualmachineconfiguration.This.vmxfileiscreatedwhen youcreatethevirtualmachine.Itisusedtoidentifyandrunaspecificvirtual machine.
VMware, Inc.
485
virtualmachinesettingseditor Apointandclickcontrolpanelusedtoviewandmodifyavirtualmachines settings. virtualnetwork Anetworkconnectingvirtualmachinesthatdoesnotdependonphysical hardwareconnections.Forexample,youcancreateavirtualnetworkbetweena virtualmachineandahostthathasnoexternalnetworkconnections.Youcanalso createaLANsegmentforcommunicationbetweenvirtualmachinesonateam.See alsoLANsegment,team. virtualnetworkeditor Apointandclickeditorusedtoviewandmodifythenetworkingsettingsforthe virtualnetworkscreatedbyWorkstation. VMwarePlayer FreesoftwarethatenablesPCuserstocreateandrunanyvirtualmachineona WindowsorLinuxPC.VMwarePlayerrunsvirtualmachinescreatedbyVMware Workstation,VMwareServer,orESXServerandalsosupportsMicrosoftvirtual machinesandSymantecBackupExecSystemRecoverydiskformats. VMwareTools Asuiteofutilitiesanddriversthatenhancestheperformanceandfunctionalityof yourguestoperatingsystem.KeyfeaturesofVMwareToolsincludesomeorallof thefollowing,dependingonyourguestoperatingsystem:anSVGAdriver,a mousedriver,theVMwareToolscontrolpanelandsupportforsuchfeaturesas sharedfolders,draganddropinWindowsandLinuxguests,shrinkingvirtual disks,timesynchronizationwiththehost,VMwareToolsscripts,andconnecting anddisconnectingdeviceswhilethevirtualmachineisrunning.Seealsoshared folder.
486
VMware, Inc.
Index
Numerics
3D support 169
A
About tab VMware Tools 120 access control policies, ACE 387, 392 ACE instance defined 379 installing on a Linux host 464 installing on a Windows host 459 offline usage 415 removable device policy 406 running a Pocket ACE 457 setting policies for 386 uninstalling from a Linux host 466 uninstalling from a Windows host 462 upgrading 467 ACE Management Server and Active Directory 392 defined 379 ACE New Package wizard 443 ACE Resources directory 439 ACE tools, using 472 ACE-enabled virtual machine configuring 440 creating packages for 443 defined 379 deployment platform 439 ACPI S1 sleep feature 374 activation policy, ACE 387 Active Directory
password change proxying 392 adapter host virtual adapters 297, 405 in promiscuous mode on a Linux host 311 specifying physical, for ACE 405 virtual Ethernet 291 Add Hardware wizard 328, 358 Add Shared Folder wizard 186 address assigning IP 301 assigning MAC manually 305 IP on virtual network 299 MAC 304 network address translation 312 using DHCP to assign 300 administrative tools policy, ACE 412 Advanced Linux Sound Architecture, using 172 ALSA See Advanced Linux Sound Architecture AMD Athlon 64 processor 36 AMD Opteron processor 36 AMD Sempron processor 36 AMD Turion 64 processor 36 appliance view for virtual machines 178 policy for ACE instances 409 assign IP address 299 network port number in NAT 318 Athlon 64 processor 36 audio 31, 171, 172
487
VMware, Inc.
AudioPCI 172 authentication policy, ACE 387 autofit settings 160 automatic bridging 293, 405 AutoProtect restrictions 210 setting up 210 AutoProtect feature See also snapshot, AutoProtect 209
C
capacity, disk 232, 244 capture screenshot 179 snapshot of virtual machine 199 virtual machine activity 253 CD adding drive to virtual machine 246 CD-ROM image file 30 legacy emulation mode for 248 package delivery for ACE 446 .cfg file 95 change hot-key combinations 73 team name 270 virtual machine name 64 Change Version wizard 93 clock real-time on Linux host 44 synchronize guest and host 117 clone template 217 Clone Virtual Machine wizard 217 clones creating, for teams 268, 272, 278 creating, in Clone Virtual Machine wizard 217 enable template mode 217 full 216 IP address 217 linked 216, 222 MAC address and UUID of 215 network identity of 217 overview 215 static IP address 217 color display on VNC clients 223 screen, in a virtual machine 168 comm port See serial connection, serial port
VMware, Inc.
B
background, running virtual machines in 70, 260 bandwidth controlling, in team networks 267 LAN segment 277 battery information, reporting in guest 176 BIOS file in virtual machine 95 provided in virtual machine 30 setup, entering 146 .bmp files for screen captures 179 bridged networking ACE policy for network adapters 405 and Samba servers 324 configuring options 292 browser and appliance views 178 configuring on Linux host 44 BSD supported 32-bit guest operating systems 36 supported 64-bit guest operating systems 36 BT/KT-958 drivers 85, 86 bulkDeploy.exe program 456 bundle installer for Workstation 45 BusLogic 30, 357
488
Index
command-line interface for VMware Tools 128 for Workstation 477 commands keyboard shortcuts 71 startup, on the command line 372, 477 startup, on Windows hosts 478 compacting virtual disks 236 configure record/replay 255 connect CD/DVDs and floppies to ISO images 249 USB devices 348 Conversion wizard 131, 140, 141 converting virtual machines 131 copy and paste feature 185 copy protection policy for ACE instances 396 copy virtual machine 221 CPU host requirement 23 provided in virtual machine 29 creating ACE packages 443 policies for an ACE instance 386 virtual disks 237 Creative Labs 172 Creative Labs Sound Blaster 32 Ctrl+Alt hot-key combination 335 custom EULA ACE package setting 439
D
DDNS (dynamic domain name service) 307 debugging using serial connection 333 default scripts for VMware Tools 122 defragmenting virtual disks 235 deleting recordings of virtual machine activity 207, 264
snapshots 203, 207 virtual machines 155 deploy.exe program 455 deployment settings, ACE deployment platform 439 encryption 430 EULA 439 instance customization 431 package lifetime 430 destinations for imported virtual machines 138 device connection policy 406 device drivers for generic SCSI devices 358 VMware Tools 100 devices ACE policies for USB 406 adding a generic SCSI device 358, 359 connecting and disconnecting 119, 177 disconnecting from USB controller 352 processor 29 removable, ACE policies for 406 USB 346 Devices tab in Preferences dialog box 66 VMware Tools 119 DHCP assigning IP addresses on a virtual network 300 changing settings 296 configuring on a Linux host 302 configuring on a Windows host 301 DHCPD 306 lease 296 on a virtual network with NAT 313 server 282, 296 server on virtual network 286, 287 stopping 310 dial-up connection 302
VMware, Inc.
489
directories, shared 190, 191 disable acceleration 175 copying and pasting text and files 185 drag-and-drop of files and folders 184 folder sharing 188 interface features 363 disc labels for packages 446 disk See also virtual disk IDE drive supported in host 24 IDE drives in virtual machine 30 independent 203 mapping to a drive 193 optical drives supported in host 24 SCSI drive supported in host 24 size 232, 244 space required on host computer 24 .vmdk virtual disk file 95 display autofit settings for 160 color depth 168 fitting window to virtual machine 166 full screen 159, 160 multiple monitor 163, 165 requirements on hosts 23 switching virtual machines 161 Display tab in preferences editor 166 distributing ACE packages 443 DMZ 267 DNS on a NAT network 313 setup issues, troubleshooting 475 domain join, remote 437 domain problems 475 domain setting, in ACE instance customization 434 downgrading virtual machines 93 download components 150
490
drag-and-drop feature 183 dragging and dropping images, text, and file contents between host and guest 184 drivers SCSI 357 sound 172 video, in older versions of Windows 103 drives CD/DVD-ROM 30, 246 floppy 30, 246 IDE 30 tape 356 virtual IDE 237 virtual SCSI 237 dual-boot computers and virtual machines 250 dual-monitor display 163, 165 DVD adding drive to virtual machine 246 legacy emulation mode for 248 optical, supported 24 package delivery for ACE 446 dynamic domain name service 307
E
Eclipse installing the Workstation plug-in for 41 EHCI controller 31 EM64T processor 36 encrypt restrictions 153 encrypting a virtual machine 152 encryption for ACE packages and instances 430 enhanced virtual keyboard 335, 410 Ethernet adapter adding to virtual machine 291 for teams 277
VMware, Inc.
Index
promiscuous mode 311 virtual network adapters 282 Ethernet controller 25 Ethernet switches 32 exclusive mode 162 expand virtual disk 236 expiration policy for ACE instances 395
full screen mode 159 full screen settings 160 full screen switch mode 366, 374 full screen toolbar 160, 409
G
gated host network 306 global configuration file 367 graphics See also display support in virtual machine 30, 168 guest autofit 166 defined 22 fit command 166 guest network access policies, ACE 397, 405 guest operating system for ACE instance customization 433 installing 90 support for 64-bit 36 supported 32 supported FreeBSD 32-bit 36 supported FreeBSD 64-bit 36 supported Linux 32-bit 35 supported Linux 64-bit 35, 36 supported MS-DOS 33 supported Solaris 32-bit 36 supported Solaris 64-bit 36 upgrades 92 Windows 32-bit 33 Windows 64-bit 34 GUID Partition Table (GPT) disks 137
F
Favorites list creating folders in 63 overview 62 removing virtual machines from 64 files BIOS in virtual machine 95 redo log 95 Samba and file sharing on a Linux host 324 sharing among virtual machines and host 183 snapshot 95 suspended state 95 used by a virtual machine 95 used by snapshot 95 virtual machine 148 firewall 319 fit to guest and fit to window 166 floppy drives in virtual machine 30, 248 image file 30, 249 folders in the Favorites list 63 shared, See shared folder FreeBSD supported 32-bit guests 36 supported 64-bit guests 36 VMware Tools for 109 FTP 314
H
Hardware tab in virtual machine settings editor 68 headless virtual machines (run in the background) 70, 260 HIDs (human interface devices) 348
VMware, Inc.
491
host defined 22 hard disk space required 24 network access policies, ACE 405 optical drives supported 24 policies, ACE 397, 459 system requirements 22 virtual adapters 297 host-guest data script policies 393 host-only networking basic configuration 286 selecting IP addresses 299 hot fix, ACE policies 414 responding 474 hot keys for full screen switch mode 368, 369, 370 hexadecimal values for 368 in Workstation preferences 335 setting 73 using Ctrl+Alt+Insert and Ctrl+Alt+Delete 71 Hot Keys tab 66
I
ICMP 314 IDE drive supported in host 24 drives in virtual machine 30 optical drive supported in host 24 IDESCSI, setting up virtual disk as 233 image file floppy 30, 249 ISO 30, 246, 249 importing virtual machines 131, 133 independent disk 203 initialization scripts for instance customization 434
install components 150 install ESX 4.0 and ESXi 4.0 on Workstation 88 installation requirement ESX 4.0 and ESXi 4.0 88 installing ACE instance on a Linux host 464 ACE instance on a Windows host 459 guest operating systems 90 Pocket ACE on portable device 455 software in a virtual machine 175 VMware Player on a Linux host 463 VMware Tools silently on Windows guests 104 Workstation on Linux host 44 Workstation on Windows host 41 Workstation silently on Windows hosts 42 instance customization, ACE deployment settings for 434 guest operating systems for 433 initialization scripts 434 Microsoft Sysprep deployment tools for 433 package settings, overview 431 packages with 446 placeholder values 435 specifying license information for Windows servers 436 workgroup or domain setting 434 Intel EM64T processor 36 IP address assigning 301 clone 217 static 300 IP packet forwarding 302, 303 ISO image file 30, 246, 249
K
Kbps, for LAN segment 277
VMware, Inc.
492
Index
kernel paravirtual, support for 91 key code mapping 340 keyboard enhanced virtual, ACE policy 410 enhanced virtual, on Windows 335 language keymaps for VNC clients 336 mapping on a Linux host 337 shortcuts 71, 156 USB 346 keyloggers 410 keysym defined 339 mapping 340 kiosk mode, ACE policies 413 preparing Linux hosts for 465 starting multiple virtual machines in 470 startup behavior 468
supported 32-bit guest operating systems 35 supported 64-bit guest operating systems 35, 36 supported host operating systems 26 uninstalling Workstation on Linux host 46 upgrading on Linux host 50 LiveState system image, importing 133 local area networking 25 location of virtual machine files 83, 148 lock files 232 log files 95, 374 LSI Logic 30 lSI Logic 85, 86, 357
M
MAC address and clones 215 assigning manually 305 of virtual Ethernet adapter 304 map key code 340 keyboard 337 keysym 340 mapped drives, for virtual disks 193 mapping virtual disks to a drive 193 master boot record (MBR) disks 137 memory amount required on host 23 settings 409 Microsoft Sysprep deployment tools 433 MIDI 171 mode exclusive 162 full screen 159 preview 441 promiscuous 311 quick switch 161
L
LAN segments and teams 276 changing name 277 configuring connections to 277 deleting 278 setting bandwidth 277 setting Kbps 277 setting packet loss 277 leaks, IP packet 302 legacy emulation for DVD/CD-ROM drives 248 licensing, serial number and 467 linked clones 222 Linux 32-bit host 27 64-bit host 27 installing on Linux host 44
VMware, Inc.
493
Unity 156 modifier keys 368 monitors specifying the number of 163, 165 using multiple 163, 165 mouse driver, installed by VMware Tools 100 USB 346 movie capture 180 moving a virtual machine 219 MP3 171 MS-DOS 33 multiple monitors, using 163, 165 Mylex 30, 85, 86, 357
N
name changing team name 270 changing virtual machine name 64 NAT ACE policies for 404 advanced configuration 314 and DHCP 313 and DNS 313 and the host computer 313 external access from a NAT network 314 on virtual network 285, 312 port forwarding 318, 323 sample configuration file for Linux host 322 selecting IP addresses 299 specifying connection from port below 1024 316 NAT.conf file 316, 322 NetLogon 319 NetWare, Novell 36, 110, 120 network adding and modifying virtual Ethernet adapters 291
automatic bridging 293 automatic bridging for ACE instances 405 changing DHCP settings 296 changing subnet settings 296 changing the configuration 290 components 281 configuring bridged networking options 292 DHCP 300 DHCP server 282 dial-up connection 302 dynamic domain name service 307 hardware address 304 host-only 286 host-only subnet 300 identity, clone 217 IP forwarding 302 IP packet leaks 302 MAC address 304 NAT 285, 312 NAT as firewall 319 NAT subnet 300 packet filtering 302 promiscuous mode on a Linux host 311 routing between two host-only networks 309 Samba 324 second bridged network on a Linux host 295 switch 281 token ring 285 two host-only networks 298 virtual DHCP server 286, 287 virtual Ethernet adapter 282 virtual network editor 293, 297, 301 virtual switch 281 virtualizing in a team 267 network access policies, ACE 397, 405
494
VMware, Inc.
Index
network adapters creating, for team networks 277 virtual, adding 291 virtual, overview of 282 network image package delivery for ACE 446 New Package wizard 443 New Virtual Machine wizard 65, 80, 87, 231 NFS ports 316 Novell NetWare supported guests 36 VMware Tools for 110 Novell Open Enterprise Server supported guests 36 NVRAM 95
virtual machine settings editor 69 VMware Tools 117 .ovf and .ova files 135
P
P2V (physical-to-virtual) conversion 131 Package Properties dialog box 448 package settings, ACE custom EULA 439 deployment platform 439 encryption 430 instance customization 431 package lifetime 430 placeholder values in instance customization 435 remote domain join 437 workgroup or domain in instance customization 434 Packages tab 448 packages, ACE burning files onto discs 446 changing lifetime setting 430 creating 443 creation progress 446 deployment for Pocket ACE 455 deployment platform for 439 disc labels for 446 disk space required for 445 distribution format 446 Pocket ACE installation 455 pre-deployment test for 448 previewing before deployment 448 registration 446 testing before deployment 448 viewing history of 448 packet filtering 302 leaks 302
O
offline usage of ACE instances, policy 415 Open Enterprise Server 36 open virtual machine format (.ovf and .ova files) 135 operating system 32-bit Windows host 25 64-bit Windows host 26 FreeBSD 32-bit guest 36 FreeBSD 64-bit guest 36 installing guest 90 Linux 32-bit guest 35 Linux 32-bit host 27 Linux 64-bit guest 35, 36 Linux 64-bit host 28 MS-DOS guest 33 Solaris 32-bit guest 36 Solaris 64-bit guest 36 support for 64-bit guest 36 Windows 32-bit guest 33 Windows 64-bit 34 Opteron processor 36 optical drive supported in host 24 Options tab
VMware, Inc.
495
packet loss, configuring, for LAN segments 277 parallel ports configuring on a Linux host 329 in a virtual machine 327 installing in virtual machines 328 paravirtualized kernels in Linux guests 91 parent snapshot 200 pause restrictions 151 pause feature 151 physical disk adding physical disks 240 capacity 234 storing virtual disks on 233 using in a virtual machine 234 ping 314 placeholder values in instance customization 435 platform deployment settings, ACE 439 Player policy, ACE 409 plug-ins writing, for ACE instances 417 .png files for screen captures 179 Pocket ACE deleting the cache 462, 466 deploying 455 description 87, 451 Disk Size Calculator 87 installing on portable device 455 instructions for running 457 portable device requirements 453 Pocket ACE Deploy Utility dialog box 455 policies, ACE access control 387 activation 387 administrative tools 412 authentication 387 copy protection 396
device connection 406 expiration 395 host 397, 459 host-guest data script 393 hot fix 414 kiosk mode 413 network access 397 Player runtime 409 removable device 406 resource signing 396 runtime preferences 409 setting for an ACE instance 386 snapshot 411 update frequency 415 USB device 406 using scripts 417 virtual printer policy 408 policy editor, using 386 policy update frequency, ACE 415 port TCP and UDP below 1024 316 VNC 223 port forwarding 318, 323 Power menu disable functions 363 using, for teams 275 power off snapshot options 208 team 274 Power Off button 149 power on a virtual machine 146 team 274 to BIOS 146 Powered On list 64 power-on script for ACE instances 390 preferences display 166 hot keys 335
VMware, Inc.
496
Index
setting, for Workstation 66 VMware Tools upgrade options 112 workspace 66 Preview in Player icon 441 preview mode, ACE 441, 448 previewing ACE packages 448 printers ACE virtual printer policy 408 using host printers in a virtual machine 176 processor host requirement 23 provided in virtual machine 29 supported for 64-bit guest 23, 36 promiscuous mode 311 publishing ACE policy changes 448
Q
quick switch mode 161 quiet mode, install VMware Tools 104 quitting ACE Player 472
R
RAM amount required on host 23 raw disk 234 Real Media 171 real-time clock requirement on Linux host 44 record/replay feature 253, 255 recordings of virtual machine execution deleting 207 renaming 206 .REDO file 95 registration of ACE packages 446 of VMware Workstation 74 reimage snapshots 411 remote connections to a virtual machine 223 remote domain join 437
RemoteDisplay.vnc.keyMap property 336 removable devices ACE policies for 406 deploying Pocket ACE packages to 455 disconnecting 352 removable drive for Pocket ACE 455 removing a virtual disk 239 devices from a virtual machine 177 Repair option for VMware Tools installations 103 repairing VMware Tools installations 111, 115 Replay toolbar 257, 258 reporting problems to VMware 75 Reset button 149 resizing Linux guests 166 Solaris guests 167 resolution, screen 160 resource signing policy for ACE instances 396 restricted user interface 363 resume team 275 virtual machine 197 reverting to snapshot 206, 207 routing between host-only networks 309 host only 306 runtime preferences policy, ACE 409
S
Samba and file sharing on a Linux host 324 modifying configuration for Workstation 324 on both bridged and host-only networks 325
VMware, Inc.
497
scan code 339 scanner 356 screen captures 179 screen colors for VNC clients 223 setting, for virtual machines 168 screen modes full screen 159 quick switch 161 screen resolution 167 screenshot capture 179 screenshots 179 scripts creating custom VMware Tools 123 enabling, disabling, and running 119 for ACE instance customization 434 power on, for ACE instances 390 running and disabling 124 running during power state changes 122 startup, for ACE kiosk mode 470 writing, for ACE instances 417 Scripts tab in VMware Tools 119 SCSI adding a generic SCSI device 358, 359 avoiding concurrent access on a Linux host 358 connecting to generic 356 devices in virtual machine 30 drive supported in host 24 driver for Windows NT guest 357 driver for Windows Server 2003 guest 357 driver for Windows XP guest 357 drivers 85, 86, 357 generic SCSI on a Linux host 358 generic SCSI on a Windows host 356 optical drives 24 permissions for a generic SCSI device on a Linux host 356
setting up virtual disk as 233 Sempron processor 36 serial connection between host application and virtual machine 331 between two virtual machines 331 for debugging 333 to a serial port on the host 331 serial number for ACE instances 467 serial port, installing and using 330 server DHCP 282, 302, 313, 320 DNS 307, 313, 315 WINS 314 setting up AutoProtect 210 share files on a Linux host with Samba 324 shared folder enable and disable 188 mounting, on Linux 191 on Linux and Solaris guests 191 permissions on Linux 191 using 186 viewing 190 sharing virtual machines 222 shortcuts, keyboard 66, 71, 335 shrink virtual disks 119, 236 virtual disks in Netware 120 Shrink tab, VMware Tools 119 sidebar panel 62 size disk 232, 244 virtual disk 30 sleep, ACPI 374 smart cards in virtual machines 353 SMP See virtual SMP
VMware, Inc.
498
Index
snapshot 210 and Workstation 4 virtual machines 211 as background activity 202 AutoProtect 209 deleting 203, 207 disabling menu functions 363 excluding virtual disks from 203 files 95 linear process 199 parent 200 policies 411 power-off options 208 preserving AutoProtect 210 process tree 200 renaming 203, 206 restoring 206 reverting to 206 reverting to at power off 207 taking 205 team 278 using 199 snapshot manager 203 Solaris resizing guests 167 supported 32-bit guest operating systems 36 supported 64-bit guest operating systems 36 VMware Tools for 108 sound configuring 171 drivers for Windows 9x and NT guests 172 Sound Blaster 172 support in guest 31 .spf file, importing 133 starting ACE Player 467, 468 Workstation 53
startup commands used by VMware Tools 126 startup scripts for ACE kiosk mode 470 using VMware Tools 125 static IP addresses clone 217 range of 313 .std file 95 stopping ACE Player 472 recording virtual machine activity 260 StorageCraft images, importing 133 streaming virtual machines 147, 225 stretch guest display setting 160 subnet changing settings 296 in NAT configuration 300 on host-only network 300 substring matching, for configuring which physical network adapter to use 405 Sun Solaris supported 32-bit guest operating systems 36 supported 64-bit guest operating systems 36 support scripts, running 75 suspend files 95 team 275 virtual machine 197 .sv2i file, importing 133 SVGA drivers installing, in older Windows guests 103 switch virtual network 281 workspaces in Linux guest 335 symmetric multiprocessing See virtual SMP
VMware, Inc.
499
T
tabs in Preferences dialog box 66 in VMware Tools control panel 116 virtual machine 54 tape drive 356 .tar file for installing VMware Tools 106 team adding virtual machine to 272 and LAN segments 276 cloning virtual machine from 278 closing 270 creating clone in New Team wizard 268, 272 deleting 271 Ethernet adapters for 277 name change 270 network 267 new 268 no clone template 217 opening 269 overview 267 power off 274 powering on 274 removing virtual machine from 273 resume 275 snapshot 278 suspend 275 Telnet 314 template mode for clones 217 3D support 169 time, synchronizing, between guest and host 117 time.synchronize options for VMware Tools 118
token ring 285 toolbar customizing 61 hide 363 Tools panel in the virtual machine settings editor 114 Tools upgrade options 112 troubleshooting responding to ACE hot fix requests 474 with vmware-acetool 472 Turion 64 processor 36 two-way virtual SMP 361
U
UHCI controller 31 uninstalling an ACE instance from a Linux host 466 an ACE instance from a Windows host 462 host virtual adapters 297 VMware Tools 115 Workstation on Linux host 46 Workstation on Windows host 44 Unity mode 156 update frequency 415 updates, checking for Workstation 65 updating VMware Tools 114 upgrade ACE instances 467 guest operating systems 92 on Linux host 50 on Windows host 48 on Windows Vista host 49 removing snapshots before virtual machine upgrades 47 virtual machines 93, 94 VMware Tools 112, 114 USB connecting devices 348
500
VMware, Inc.
Index
control of devices by host and guest 351 controller, enabling and disabling 347 device policies, ACE 406 devices in a virtual machine 346 disconnecting devices 352 keyboard and mouse 346 on a Linux host 351 on a Windows host 350 port specifications 31 supported device types 346 user interface overview 54 restricted 363 UUID (universal unique identifier) and clones 215 location 213 options for when you move a virtual machine 214 specifying 214
V
VAssert API 181 version, changing virtual machine 93 VGA 167 virtual adapters host virtual adapters 297 specifications for 32 virtual appliances open virtual machine format (OVF) 135 virtual disk See also disk adding to virtual machine 237, 239 allocating disk space 87 compacting 236 defined 232 defragmenting 235 expanding 236 IDE, size 30 legacy 250
mapping, to a Windows drive 193 setting up as IDE or SCSI 233 shrinking 119, 120, 236 shrinking in Netware 120 size 30 storing on physical disks 233 using in a new virtual machine 81 Virtual Disk Manager 250 .vmdk file 95 Virtual Disk Manager 250 virtual hardware CPU issues 141 disk device issues 141 Ethernet adapter issues 141 graphics card issues 141 virtual keyboard 335 virtual machine adding a virtual disk 237, 239 adding floppy drive 248 adding or modifying an Ethernet adapter 291 adding physical disk 240 adding to team 272 and SMP 361 cloning from team 278 constituent files 95 conversion 131 creating 79, 131 creating a clone 217 default location of 83 delete 155 encrypting 152 files 148 IDE drives in 30 installing software in 175 migrating 222 moving 213, 219 moving SMP virtual machines 362 name change 64
501
VMware, Inc.
pausing 151 platform specifications 29 portability 232 power off vs. shut down 149 removing from Favorites list 64 removing from team 273 reset vs. restart 149 resuming 197 running in the background 70, 260 settings 68 shutting down 148 starting 145 starting in full screen mode 372 suspending 197 upgrade or downgrade 93 upgrading procedure 94 using snapshots 199 Virtual Machine Communication Interface (VMCI) 100 virtual machine settings editor restricting access 363 VMware Tools panel 114 Virtual PC, importing 133 virtual printer feature 176 virtual printer policy, ACE 408 virtual SMP 361, 362 virtual switch 281 virtual symmetric multiprocessing See virtual SMP Visual Studio installing the Workstation plug-in for 41 VIX API 181 VM streaming 147, 225 .vmc file, importing 133 VMCI Sockets interface 181 .vmdk file 95 .vmem file 95 VMI (Virtual Machine Interface) enabled kernels 91
VMnet1 307 VMnet8 312 .vmsd file 95 .vmsn file 95 .vmss file 95 .vmtm file 95 vmtoolsd program 100, 123, 127, 128 VMware ACE, key features of 378 vmware command for VM streaming 147, 225 vmware command-line program 477 VMware Converter 131, 133 VMware Player installing on a Linux host 463 quitting ACE 472 running 226 sharing virtual machines with 226 starting ACE 467 VMware Tools About tab 120 automated install 104 command-line interface 128 configuring 116 configuring in a Netware virtual machine 120 control panel 116 device drivers 100 Devices tab 119 for FreeBSD guests 109 for NetWare guests 110 for Solaris guests 108 installing from the command line with the RPM installer 106 installing from the command line with the tar installer 106 installing on Windows guests 102 modifying installation 115 Options tab 117
502
VMware, Inc.
Index
running scripts during power state changes 122 Scripts tab 119 Shrink tab 119 silent install 104 taskbar icon, displaying 116 uninstalling 115 updating 112, 114 using from command line 120 VMware user process 101 vmwtool commands 120 VMware Tools service executing commands on halt or reboot 125 overview of 100 passing strings from the host 125 VMware user process, in VMware Tools 101 vmware-user, starting manually 111 vmware-acetool, using 472 vmware-fullscreen log file 374 vmwtool program 120 .vmx file 95 .vmxf file 95 VNC setting a keyboard map for 336 setting a virtual machine to act as a VNC server 223 VProbes 181 v-scan code defined 339 table of codes 342
upgrading to Windows Vista 49 VMware Tools for 102 Windows 95 sound driver 172 Windows 98 sound driver 172 Windows NT SCSI driver for guest 357 sound driver 172 Windows Server 2003 SCSI driver for guest 357 Windows XP SCSI driver for guest 357 wizard Add Hardware 328, 358 Add Shared Folder 186 Change Version 93 Clone Virtual Machine 217 Conversion 131 New Package 443 New Team 268 New Virtual Machine 65, 80, 87 Workspace tab in preferences editor 66 workspaces location of 66 switching in Linux guest 335 Workstation checking for updates for 65 starting 53
X
X server and keyboard mapping 338 X toolkit options 478 xFree86 and keyboard mapping 338
W
.wav file 171 Windows 32-bit guest operating systems 33 64-bit guest operating systems 34 uninstalling on Windows host 44 upgrading on Windows host 48
Z
zip drives 352
VMware, Inc.
503
504
VMware, Inc.