Ws1001 Using
Ws1001 Using
VMware Workstation 10
This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
EN-001200-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: [email protected]
Copyright 2013 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 other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc.
Contents
Understanding Virtual Machines 7 Preparing to Create a New Virtual Machine 8 Create a New Virtual Machine on the Local Host Cloning Virtual Machines 22 Virtualize a Physical Machine 25 Importing Virtual Machines 27 Installing and Upgrading VMware Tools 29 Virtual Machine Files 40
18
Starting Virtual Machines 43 Stopping Virtual Machines 47 Transferring Files and Text 51 Add a Host Printer to a Virtual Machine 60 Using Removable Devices in Virtual Machines 61 Changing the Virtual Machine Display 68 Using Folders to Manage Virtual Machines 74 Taking Snapshots of Virtual Machines 77 Install New Software in a Virtual Machine 84 Share Tablet Sensor Data with Windows 8 Guests 84 Take a Screenshot of a Virtual Machine 85 Delete a Virtual Machine 85
Configure Power Options and Power Control Settings 87 Set Workstation Display Preferences 89 Configure Display Settings for a Virtual Machine 90 Set Preferences for Unity Mode 92 Setting Screen Color Depth 92 Using Advanced Linux Sound Architecture 93 Encrypting and Restricting Virtual Machines 94 Moving Virtual Machines 98 Configure a Virtual Machine as a VNC Server 103 Change the Hardware Compatibility of a Virtual Machine 106 Clean Up a Virtual Hard Disk on Windows Hosts 107 Export a Virtual Machine to OVF Format 108 Writing and Debugging Applications That Run In Virtual Machines
109
VMware, Inc.
Configuring DVD, CD-ROM, and Floppy Drives 111 Configuring a USB Controller 113 Configuring and Maintaining Virtual Hard Disks 116 Adding a Physical Disk to a Virtual Machine 122 Configuring Virtual Ports 125 Configuring Generic SCSI Devices 129 Configuring Eight-Way Virtual Symmetric Multiprocessing Configuring Keyboard Features 134 Modify Hardware Settings for a Virtual Machine 143
133
Understanding Virtual Networking Components 145 Understanding Common Networking Configurations 146 Changing the Default Networking Configuration 147 Configuring Bridged Networking 151 Configuring Network Address Translation 154 Configuring Host-Only Networking 163 Assigning IP Addresses in Host-Only Networks and NAT Configurations 169 Configuring LAN Segments 172 Configuring Samba for Workstation 174 Using Virtual Network Adapters in Promiscuous Mode on Linux Hosts 175 Maintaining and Changing MAC Addresses for Virtual Machines 175 Sample Custom Networking Configuration 176
190
Run the vmware Command 199 Incorporate Workstation Startup Options in a Windows Shortcut
200
Index
201
VMware, Inc.
Using VMware Workstation describes how to use VMware Workstation and create, configure, and manage virtual machines.
Intended Audience
This information is intended for anyone who wants to use Workstation and create and manage virtual machines.
Getting Started with VMware Workstation describes how to install and upgrade Workstation, create a typical virtual machine, and perform common virtual machine operations. Installing and Configuring VMware Tools contains complete information on using VMware Tools. The VMware Guest Operating System Installation Guide contains information about installing specific guest operating systems. The online VMware Compatibility Guide lists the supported host and guest operating systems for Workstation.
n n
The Workstation online help provides quick reference information about Workstation settings and common tasks. It is available from the Workstation Help menu and when you click Help on a Workstation dialog box.
VMware, Inc.
VMware, Inc.
You can create a new virtual machine in Workstation by using the New Virtual Machine wizard, clone an existing Workstation virtual machine or virtual machine template, import third-party and Open Virtualization Format (OVF) virtual machines, and create a virtual machine from a physical machine. You can also create shared virtual machines, which can be used by remote users, and virtual machines that run on remote hosts. See Chapter 6, Using Remote Connections and Sharing Virtual Machines, on page 179. This chapter includes the following topics:
n n n n n n n n
Understanding Virtual Machines, on page 7 Preparing to Create a New Virtual Machine, on page 8 Create a New Virtual Machine on the Local Host, on page 18 Cloning Virtual Machines, on page 22 Virtualize a Physical Machine, on page 25 Importing Virtual Machines, on page 27 Installing and Upgrading VMware Tools, on page 29 Virtual Machine Files, on page 40
VMware, Inc.
Typical Configuration
If you select a typical configuration, you must specify or accept defaults for a few basic virtual machine settings.
n n n n
How you want to install the guest operating system. A name for the virtual machine and a location for the virtual machine files. The size of the virtual disk and whether to split the disk into multiple virtual disk files. Whether to customize specific hardware settings, including memory allocation, number of virtual processors, and network connection type.
Custom Configuration
You must select a custom configuration if you need to perform any of the following hardware customizations.
n
Create a virtual machine that has a different Workstation version than the default hardware compatibility setting. Select the I/O controller type for the SCSI controller. Select the virtual disk device type. Configure a physical disk or an existing virtual disk instead of create a new virtual disk. Allocate all virtual disk space rather than let disk space gradually grow to the maximum disk size.
n n n n
VMware, Inc.
Password
For Linux guest operating systems, you must provide the following Easy Install information.
VMware, Inc.
User name
Password
10
VMware, Inc.
/var/lib/vmware/Shared VMs
In some circumstances, adding additional processors can decrease the overall perfomance of the virtual machine and your computer. This can occur if the operating system or application is not using the processors efficiently. In this case, reducing the number of processors is recommended. Assigning all processors on your computer to the virtual machine results in extremely poor performance. The host operating system must continue to perform background tasks even if no applications are running. If you assign all processors to a virtual machine, this prevents important tasks from being completed.
VMware, Inc.
11
The total amount of memory that you can assign to all virtual machines running on a single host machine is limited only by the amount of RAM on the host machine. You can change the amount of memory available to all virtual machines by modifying Workstation memory settings.
Do not use a network connection Custom (Windows host) or Named Network (Linux host)
See Chapter 5, Configuring Network Connections, on page 145 for information about virtual switches, virtual network adapters, the virtual DHCP server, and the NAT device.
12
VMware, Inc.
PVSCSI adapters are high-performance storage adapters that can provide greater throughput and lower CPU utilization. They are best suited for environments where hardware or applications drive a very high amount of I/O throughput, such as SAN environments. PVSCSI adapters are not suited for DAS environments. NOTE The choice of SCSI controller does not affect whether the virtual disk can be an IDE, SCSI, or SATA disk. Some guest operating systems, such as Windows XP, do not include a driver for the LSI Logic or LSI Logic SAS adapter. You must download the driver from the LSI Logic Web site. Drivers for a Mylex (BusLogic) compatible host bus adapter are not obvious on the LSI Logic Web site. Search the support area for the numeric string in the model number, for example, search for 958 for BT/KT-958 drivers. See the VMware Guest Operating System Installation Guide for driver support information. For guest operating system support information and known issues, as well as SATA support, see the online Compatibility Guide on the VMware Web site.
Selecting the Virtual Hard Disk Type for a Virtual Machine on page 14 If you instruct the New Virtual Machine wizard to create a new virtual disk during a custom configuration, the wizard prompts you to select the virtual hard disk type for the virtual machine.
Selecting the Disk Mode on page 14 When you select a custom configuration on a Linux host, you can use the New Virtual Machine wizard to configure normal or independent mode for a disk.
Prepare to Use a Physical Disk or Unused Partition on page 14 You must perform certain tasks before you configure a virtual machine to use a physical disk or unused partition on the host system.
Specifying Disk Capacity for a Virtual Machine on page 15 If you instruct the New Virtual Machine wizard to create a new virtual disk during a custom configuration, the wizard prompts you to set the size of the virtual disk and specify whether to split the disk into multiple virtual disk (.vmdk) files.
Specifying the Name and Location of Virtual Disk Files on page 17 During a custom configuration, if you instruct the New Virtual Machine wizard to create a new virtual disk, use an existing virtual disk, or use a physical disk, the wizard prompts you for the name and location of a virtual disk (.vmdk) file.
VMware, Inc.
13
14
VMware, Inc.
Check the guest operating system documentation regarding the type of partition on which the guest operating system can be installed. On Windows Vista and Windows 7 hosts, you cannot use the system partition, or the physical disk that contains it, in a virtual machine. DOS, Windows 95, and Windows 98 operating systems must be installed on the first primary partition. Other operating systems, such as Linux, can be installed on a primary or an extended partition on any part of the drive.
3 4 5
If the physical partition or disk contains data that you need in the future, back up the data. If you use a Windows host IDE disk in a physical disk configuration, verify that it is not configured as the slave on the secondary IDE channel if the master on that channel is a CD-ROM drive. On a Windows XP or Windows Server 2003 host, if the host is using a dynamic disk, use the disk management tool to change the dynamic disk to a basic disk. You cannot use a dynamic disk as a physical disk in a virtual machine. a b On the host, select Start > Settings > Control Panel > Administrative Tools > Computer Management > Disk Management. Delete all logical volumes on the disk. This action destroys all data on the disk. c d Right-click the disk icon and select Revert to Basic Disk. Partition the disk.
On a Linux host, set the device group membership or device ownership appropriately. a Verify that the master physical disk device or devices are readable and writable by the user who runs Workstation. Physical devices, such as /dev/hda (IDE physical disk) and /dev/sdb (SCSI physical disk), belong to group-id disk on most distributions. If this is the case, you can add VMware Workstation users to the disk group. Another option is to change the owner of the device. Consider all the security issues involved in this option. b Grant VMware Workstation users access to all /dev/hd[abcd] physical devices that contain operating systems or boot managers. When permissions are set correctly, the physical disk configuration files in Workstation control access. This reliability provides boot managers access to configuration files and other files they might need to boot operating systems. For example, LILO needs to read /boot on a Linux partition to boot a non-Linux operating system that might be on another drive.
VMware, Inc.
15
Select Split virtual disk into multiple files if the virtual disk is stored on a file system that has a file size limitation. When you split a virtual disk less than 950GB, a series of 2GB virtual disk files are created. When you split a virtual disk greater than 950GB, two virtual disk files are created. The maximum size of the first virtual disk file is 1.9TB and the second virtual disk file stores the rest of the data. For custom configurations, you can select Allocate all disk space now to allocate all disk space immediately rather than allow the disk space to gradually grow to the maximum amount. Allocating all the disk space immediately might provide better performance, but it is a time-consuming operation that requires as much physical disk space as you specify for the virtual disk. If you allocate all the disk space immediately, you cannot use the shrink disk feature. After you create a virtual machine, you can edit virtual disk settings and add additional virtual disks. Disk Size Compatibility The size of a virtual disk is limited to 8TBs. However, your hardware version, bus type, and controller type also impact the size of your virtual disks.
Workstation Hardware Version 10 10 10 10 10 9, 8, 7, 6.5 6.0, 5 Bus Type IDE SCSI SCSI SCSI SATA All All Controller Type ATAPI BusLogic LSI Logic LSI Logic SAS AHCI All All Maximum Disk Size 8192GB (8TB) 2040GB (2TB) 8192GB (8TB) 8192GB (8TB) 8192GB (8TB) 2040GB (2TB) 950 GB
To discover your controller type, open the virtual machine .vmx file. The value of the setting scsi0.virtualDev determines your controller type.
Value Blank or not present lsilogic lsisas1068 Controller Type BusLogic LSI Logic LSI Logic SAS
16
VMware, Inc.
NOTE Earlier VMware products use the .dsk extension for virtual disk files.
VMware, Inc.
17
Verify that you have the information the New Virtual Machine wizard requires to create a virtual machine. See Preparing to Create a New Virtual Machine, on page 8. Verify that the guest operating system you plan to install is supported. See the online VMware Compatibility Guide on the VMware Web site. See the VMware Guest Operating System Installation Guide for information about the guest operating system that you plan to install. If you are installing the guest operating system from an installer disc, insert the installer disc in the CDROM drive in the host system. If you are installing the guest operating system from an ISO image file, verify that the ISO image file is in a directory that is accessible to the host system. If the virtual machine will use a physical disk or unused partition on the host system, perform the appropriate preparation tasks. See Prepare to Use a Physical Disk or Unused Partition, on page 14.
18
VMware, Inc.
If the host is not connected to a remote server, select File > New Virtual Machine. If the host is connected to a remote server, select File > New Virtual Machine > On this Computer.
Linux host
Custom
If you selected the Custom option, select a hardware compatibility setting. The hardware compatibility setting determines the hardware features of the virtual machine.
6 7
Type a virtual machine name and type or browse to the directory for the virtual machine files. Follow the prompts to configure the virtual machine. If you selected a typical configuration, the wizard prompts you to configure the virtual disk size and specify whether the disk should be split into multiple files. If you selected a custom configuration, the wizard prompts you to configure the virtual machine processors, memory allocation, networking configuration, I/O controller types, virtual disk type and mode, and virtual disk.
(Optional) Click Customize Hardware to customize the hardware configuration. You can also modify virtual hardware settings after you create the virtual machine.
VMware, Inc.
19
(Optional) Select Power on this virtual machine after creation to power on the virtual machine after you create it. This option is not available if you are installing the guest operating system manually.
10
If you are using Easy Install, guest operating system installation begins when the virtual machine powers on. The guest operating system installation is automated and typically runs without requiring any input from you. After the guest operating system is installed, Easy Install installs VMware Tools. If you are not using Easy Install, the virtual machine appears in the library. What to do next If you used Easy Install and the virtual machine did not power on when you finished the New Virtual Machine wizard, power on the virtual machine to start the guest operating system installation. See Use Easy Install to Install a Guest Operating System, on page 20. If you did not use Easy Install, install the guest operating system manually. See Install a Guest Operating System Manually, on page 21.
If the installer prompts you for a product key, username, or password, click in the virtual machine window and type the required information. Mouse and keyboard input are captured by the virtual machine.
If you are using physical discs and the installer prompts you for the next disk, use the CD-ROM or DVD drive on the host system. If you are using multiple ISO image files and the installer prompts you for the next disk, select the next ISO image file.
Option Windows host Linux host Description Click Change Disk and browse to the next ISO image file. a b c Select VM > Removable Devices > CD/DVD > Settings and browse to the next ISO image file. Select Connected. Click Save.
20
VMware, Inc.
Verify that the operating system is supported. See the online VMware Compatibility Guide on the VMware Web site. See the VMware Guest Operating System Installation Guide for information on the guest operating system that you are installing.
Procedure 1 If you are installing the guest operating system from an installer disc, configure the virtual machine to use a physical CD-ROM or DVD drive and configure the drive to connect at power on. a b c d e f 2 Select the virtual machine and select VM > Settings. On the Hardware tab, select CD/DVD drive. Select Connect at power on. (Remote virtual machine only) Select the location of the CD-ROM or DVD drive. Select Use physical drive and select a the drive. Click OK to save your changes.
If you are installing the guest operating system from an ISO image file, configure the CD/DVD drive in the virtual machine to point to the ISO image file and configure the drive to connect at power on. a b c d e f Select the virtual machine and select VM > Settings. On the Hardware tab, select CD/DVD drive. Select Connect at power on. (Remote virtual machine only) Select the location of the ISO image file. Select Use ISO image file and browse to the location of the ISO image file. Click OK to save your changes.
3 4 5 6
If you are installing the guest operating system from an installer disc, insert the disc in the CD-ROM or DVD drive. Power on the virtual machine. Follow the installation instructions provided by the operating system vendor. If the operating system consists of multiple installer discs and you are prompted to insert the next disc, insert the next disc in the physical drive.
VMware, Inc.
21
If the operating system consists of multiple ISO image files, select the image file for the next CD. a b c Select VM > Removable Devices > CD/DVD > Disconnect and disconnect from the current ISO image file. Select VM > Removable Devices > CD/DVD > Settings and select the next ISO image file. Select Connected and click OK.
Use the standard tools in the operating system to configure its settings.
What to do next Install VMware Tools. You should install VMware Tools before you activate the license for the operating system. See Installing VMware Tools, on page 30.
22
VMware, Inc.
Changes made to a clone do not affect the parent virtual machine, and changes made to the parent virtual machine do not appear in a clone. The MAC address and UUID for a clone are different from the parent virtual machine.
n
Using Linked Clones on page 23 A linked clone is a copy of a virtual machine that shares virtual disks with the parent virtual machine in an ongoing manner.
Using Full Clones on page 24 A full clone is a complete and independent copy of a virtual machine. It shares nothing with the parent virtual machine after the cloning operation. Ongoing operation of a full clone is entirely separate from the parent virtual machine.
Enable Template Mode for a Parent Virtual Machine of Linked Clones on page 24 To prevent the parent virtual machine for a linked clone from being deleted, you can designate the parent as a template. When template mode is enabled, the virtual machine, and snapshots of the virtual machine, cannot be deleted.
Clone a Virtual Machine on page 24 The Clone Virtual Machine wizard guides you through the process of cloning a virtual machine. You do not need to locate and manually copy the parent virtual machine files.
VMware, Inc.
23
Familiarize yourself with the different types of clones. See Using Full Clones, on page 24 and Using Linked Clones, on page 23. Run a defragmentation utility in the guest operating system to defragment the drives on the parent virtual machine. If the parent virtual machine is a Workstation 4.x and Workstation 4.x-compatible virtual machine, upgrade it to Workstation 5.x or later. If you are creating a linked clone, enable template mode for the parent virtual machine. See Enable Template Mode for a Parent Virtual Machine of Linked Clones, on page 24. Power off the parent virtual machine.
Procedure 1 Select the parent virtual machine and select VM > Manage > Clone.
24
VMware, Inc.
Select the state of the parent from which you want to create a clone. You can create a clone from the current state of the parent virtual machine or from an existing snapshot. If you select the current state, Workstation creates a snapshot of the parent virtual machine before cloning it. NOTE You cannot clone from the current state if template mode is enabled for the parent virtual machine.
3 4 5
Specify whether to create a linked clone or a full clone. Type a name and a location for the cloned virtual machine. Click Finish to create the clone and Close to exit the wizard. A full clone can take several minutes to create, depending on the size of the virtual disk that is being duplicated.
If the parent virtual machine uses a static IP address, change the static IP address of the clone before the clone connects to the network to prevent IP address conflicts. Although the wizard creates a new MAC address and UUID for the clone, other configuration information, such as the virtual machine name and static IP address configuration, is identical to that of the parent virtual machine.
The summary view for a linked clone shows the path to the virtual machine configuration (.vmx) file of the parent virtual machine.
Verify that the physical machine that you want to virtualize is running Windows. You cannot create a virtual machine from a non-Windows physical machine in Workstation. Verify that you have administrative access on the physical machine that you want to virtualize and on the Workstation host system. Verify that the Workstation host system has network access to the physical machine that you want to virtualize. Verify that on the Workstation host system you have disabled User Account Control (UAC). For instructions, see Prepare a Windows Physical Machine for Virtualization, on page 26. Turn off firewall applications running on the physical machine that you want to virtualize. Prepare the physical machine for virtualization. See Prepare a Windows Physical Machine for Virtualization, on page 26.
n n
Procedure 1 2 Power on the physical machine that you want to virtualize. On the Windows host system, in Workstation, select File > Virtualize a Physical Machine. If you have never virtualized a physical machine or imported a third-party virtual machine in Workstation, Workstation installs VMware vCenter Converter Standalone. After the installation is finished, you must restart the virtualization wizard.
VMware, Inc.
25
Type the hostname or IP address, user name, and password for the physical machine that you want to virtualize. You must use the Administrator account or a user account that is a member of the local Administrators group.
4 5 6
Type a name for the new virtual machine and specify a location on the host system in which to store the virtual machine files. Type the user name and password for your user account on the host system. Click Finish to create a virtual machine from the physical machine. The amount of time required to create the virtual machine depends on the size of the hard disk on the physical machine.
VMware Tools installation begins the first time you power on the new virtual machine.
If the physical machine is running Windows Vista or Windows 7, disable User Account Control (UAC).
n
On Windows Vista, open the User Accounts control panel, select Turn User Account Control On or Off, and deselect Use User Account Control (UAC) to help protect your computer. On Windows 7, open the Change User Account Control Settings control panel and drag the slider to Never notify.
26
VMware, Inc.
Solution Perform the steps in Prepare a Windows Physical Machine for Virtualization, on page 26 and rerun the Virtualize a Physical Machine wizard.
VMware, Inc.
27
Prerequisites
n
Verify that the Windows 7 Professional, Enterprise, or Ultimate edition operating system is running on the host system. Importing Windows XP Mode virtual machines is not supported on Linux host systems or on host systems that are running other versions of Windows. Download and install the Windows XP Mode virtual machine on the host system.
Procedure 1 Select File > Import Windows XP Mode VM, or select File > Open and browse to the virtual machine configuration (.vmc) file. If you have never imported a third-party virtual machine or virtualized a physical machine in Workstation, Workstation installs VMware vCenter Converter Standalone. After the installation is finished, you must restart the import. 2 Type a name for the new virtual machine, type or browse to the directory for the virtual machine files, and click Import. Workstation begins importing the Windows XP Mode virtual machine. After Workstation successfully imports the Windows XP Mode virtual machine, a new virtual machine appears in the virtual machine library.
28
VMware, Inc.
After Workstation successfully imports the Virtual PC virtual machine, the virtual machine appears in the virtual machine library.
Installing VMware Tools on page 30 VMware Tools is a suite of utilities that enhances the performance of the virtual machines guest operating system and improves management of the virtual machine.
Upgrading VMware Tools on page 30 You can upgrade VMware Tools manually, or you can configure virtual machines to check for and install newer versions of VMware Tools.
Configure Automatic Software Updates on page 31 You can configure Workstation to automatically download software updates, including new versions of VMware Tools. When automatic software updates are enabled, Workstation always includes the latest support for guest operating systems and virtual machines always have the latest version of VMware Tools.
Configure VMware Tools Updates for a Specific Virtual Machine on page 32 You can configure virtual machines that have Windows or Linux guest operating systems to update VMware Tools automatically. For other guest operating systems, you must manually update VMware Tools.
Manually Installing and Upgrading VMware Tools on page 33 You can manually install or upgrade VMware Tools on Windows, Linux, NetWare, Solaris, and FreeBSD virtual machines.
VMware, Inc.
29
Start the VMware User Process Manually If You Do Not Use a Session Manager on page 39 VMware Tools in Linux, Solaris, and FreeBSD guest operating systems uses the VMware User process executable file. This program implements the fit-guest-to-window feature and Unity mode, among other features.
Uninstall VMware Tools on page 39 Occasionally, an upgrade of VMware Tools is incomplete. You can usually solve the problem by uninstalling VMware Tools and then reinstalling.
30
VMware, Inc.
For Windows and Linux guest operating systems, you can configure the virtual machine to automatically upgrade VMware Tools. Although the version check is performed when you power on the virtual machine, on Windows guest operating systems, the automatic upgrade occurs when you power off or restart the virtual machine. The status bar displays the message Installing VMware Tools ... when an upgrade is in progress. IMPORTANT When you upgrade VMware Tools on Linux guest operating systems, new network modules are available but are not used until you either restart the guest operating system or stop networking, unload and reload the VMware networking kernel modules, and restart networking. This behavior means that even if VMware Tools is set to automatically upgrade, you must restart or reload network modules to make new features available. This strategy avoids network interruptions and allows you to install VMware Tools over SSH.
On a Linux host, become root. On Linux systems, non-root users are not allowed to modify the preference setting for VMware Tools updates. Verify that the host system is connected to the Internet.
Procedure 1 2 Select Edit > Preferences and select Updates. Select a software update download option. If you deselect all of the software update options, automatic software updates are disabled.
Option Check for product updates on startup Check for software components as needed Download All Components Now Description When Workstation starts, it checks for new versions of the application and installed software components. When a software component is needed, for example, when you install or upgrade VMware Tools on a virtual machine, Workstation checks for a new version of the component. Click this button to download all software updates immediately. This option is useful if you are planning to use a virtual machine at a later time when you do not have access to the Internet.
VMware, Inc.
31
If you use a proxy server to connect to the Internet, click Connection Settings and select a proxy setting.
Option No proxy Windows proxy settings Description Select this option if you do not use a proxy server. This is the default setting. (Windows hosts only) Workstation uses the host proxy settings from the Connections tab in the Internet Options control panel to access the VMware Update Server. Click Internet Options to set the guest connection options. Type a username and password to use for proxy server authentication. If you leave either the Username or Password text box blank, Workstation does not use either value. Select an HTTP or SOCKS proxy, specify the proxy server address and designate a port number to access the VMware Update Server. Type a username and password to use for proxy server authentication. If you leave either the Username or Password text box blank, Workstation does not use either value (Windows hosts) or it uses the username and password set in the gnome settings (Linux hosts).
To update VMware Tools when you power on a virtual machine or shut down the guest operating system, select Automatically update VMware Tools on a virtual machine. You can override this setting for a specific virtual machine by modifying virtual machine settings. When you power on a virtual machine, you are prompted to download VMware Tools if a new version is available.
What to do next To override the VMware Tools update setting for a specific virtual machine, edit the virtual machine settings. See Configure VMware Tools Updates for a Specific Virtual Machine, on page 32.
32
VMware, Inc.
Manually Install or Upgrade VMware Tools in a Windows Virtual Machine on page 33 All supported Windows guest operating systems support VMware Tools. Manually Install or Upgrade VMware Tools in a Linux Virtual Machine on page 34 For Linux virtual machines, you manually install or upgrade VMware Tools by using the command line.
Manually Install or Upgrade VMware Tools in a NetWare Virtual Machine on page 36 For NetWare virtual machines, you manually install or upgrade VMware Tools by using the command line.
Manually Install or Upgrade VMware Tools in a Solaris Virtual Machine on page 37 For Solaris virtual machines, you manually install or upgrade VMware Tools by using the command line.
Manually Install or Upgrade VMware Tools in a FreeBSD Virtual Machine on page 38 For FreeBSD virtual machines, you manually install or upgrade VMware Tools by using the command line.
VMware, Inc.
33
For Windows 2000 and later, VMware Tools installs a virtual machine upgrade helper tool. This tool restores the network configuration if you upgrade the virtual machine compatibility from ESX/ESXi 3.5 to ESX/ESXi 4.0 and later or from Workstation 5.5 to Workstation 6.0 and later. Prerequisites
n n n
Power on the virtual machine. Verify that the guest operating system is running. If you connected the virtual machines virtual CD/DVD drive to an ISO image file when you installed the operating system, change the setting so that the virtual CD/DVD drive is configured to autodetect a physical drive. The autodetect setting enables the virtual machine's first virtual CD/DVD drive to detect and connect to the VMware Tools ISO file for a VMware Tools installation. This ISO file looks like a physical CD to your guest operating system. Use the virtual machine settings editor to set the CD/DVD drive to autodetect a physical drive.
Log in as an administrator unless you are using an older Windows operating system. Any user can install VMware Tools in a Windows 95, Windows 98, or Windows ME guest operating system. For operating systems newer than these, you must log in as an administrator.
Procedure 1 On the host, from the Workstation menu bar, select VM > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. 2 If you are installing VMware Tools for the first time, click OK on the Install VMware Tools information page. If autorun is enabled for the CD-ROM drive in the guest operating system, the VMware Tools installation wizard starts. 3 4 5 6 7 If autorun is not enabled, to manually launch the wizard, click Start > Run and enter D:\setup.exe, where D: is your first virtual CD-ROM drive. Follow the on-screen instructions. If the New Hardware wizard appears, follow the prompts and accept the defaults. If you are installing a beta or RC version of VMware Tools and you see a warning that a package or driver is not signed, click Install Anyway to complete the installation. When prompted, reboot the virtual machine.
What to do next If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
34
VMware, Inc.
n n
Verify that the guest operating system is running. Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.
Procedure 1 On the host, from the Workstation menu bar, select VM > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. 2 3 In the virtual machine, log in to the guest operating system as root and open a terminal window. Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image. If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed as something like this:
/dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)
If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive. a If a mount point directory does not already exist, create it.
mkdir /mnt/cdrom
Some Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom. Modify the command to reflect the conventions that your distribution uses. b Mount the CD-ROM drive.
mount /dev/cdrom /mnt/cdrom
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the command to reflect the conventions that your distribution uses. 5 Change to a working directory, for example, /tmp.
cd /tmp
Delete any previous vmware-tools-distrib directory before you install VMware Tools. The location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib.
List the contents of the mount point directory and note the filename of the VMware Tools tar installer.
ls mount-point
The value x.x.x is the product version number, and yyyy is the build number of the product release. If you attempt to install a tar installation over an RPM installation, or the reverse, the installer detects the previous installation and must convert the installer database format before continuing. 9 If necessary, unmount the CD-ROM image.
umount /dev/cdrom
If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.
VMware, Inc.
35
10
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running. 11 12 Follow the prompts to accept the default values, if appropriate for your configuration. Follow the instructions at the end of the script. Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks. What to do next If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
Power on the virtual machine. Verify that the guest operating system is running. Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.
Procedure 1 On the host, from the Workstation menu bar, select VM > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. 2 Load the CD-ROM driver so that the virtual CD-ROM device mounts the ISO image as a volume.
Operating System NetWare 6.5 NetWare 6.0 or NetWare 5.1 NetWare 4.2 (not available in vSphere) Command LOAD CDDVD LOAD CD9660.NSS load cdrom
When the installation finishes, the message VMware Tools for NetWare are now running appears in the Logger Screen for NetWare 6.5 and NetWare 6.0 guest operating systems and in the Console Screen for NetWare 4.2 and 5.1 operating systems. 3 If the VMware Tools virtual disc (netware.iso) is attached to the virtual machine, right-click the CDROM icon in the status bar of the console window and select Disconnect to disconnect it.
What to do next If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
36
VMware, Inc.
Power on the virtual machine. Verify that the guest operating system is running. Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.
Procedure 1 On the host, from the Workstation menu bar, select VM > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. 2 3 In the virtual machine, log in to the guest operating system as root and open a terminal window. If the Solaris volume manager does not mount the CD-ROM under /cdrom/vmwaretools, restart the volume manager.
/etc/init.d/volmgt stop /etc/init.d/volmgt start
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running. 7 8 Follow the prompts to accept the default values, if appropriate for your configuration. Follow the instructions at the end of the script. Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks. What to do next If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
VMware, Inc.
37
Power on the virtual machine. Verify that the guest operating system is running. Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.
Procedure 1 On the host, from the Workstation menu bar, select VM > Install VMware Tools. If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools. 2 3 In the virtual machine, log in to the guest operating system as root and open a terminal window. If the distribution does not automatically mount CD-ROMs, mount the VMware Tools virtual CD-ROM image. For example, type mount /cdrom. 4 Change to a working directory, for example, /tmp.
cd /tmp
If the distribution does not use automounting, unmount the VMware Tools virtual CD-ROM image.
umount /cdrom
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running. 8 9 Follow the prompts to accept the default values, if appropriate for your configuration. Follow the instructions at the end of the script. Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks. What to do next If a new virtual hardware version is available for the virtual machine, upgrade the virtual hardware.
38
VMware, Inc.
Start the VMware User Process Manually If You Do Not Use a Session Manager
VMware Tools in Linux, Solaris, and FreeBSD guest operating systems uses the VMware User process executable file. This program implements the fit-guest-to-window feature and Unity mode, among other features. Normally, this process starts after you configure VMware Tools, log out of the desktop environment, and log back in. The vmware-user program is located in the directory in which you selected to install binary programs, which defaults to /usr/bin. The startup script that you need to modify depends on your system. You must start the process manually in the following environments:
n
If you run an X session without a session manager. For example, if you use startx to start a desktop session and do not use xdm, kdm, or gdm. If you are using an older version of GNOME without gdm or xdm. If you are using a session manager or environment that does not support the Desktop Application Autostart Specification, available from http://standards.freedesktop.org. If you upgrade VMware Tools.
n n
Procedure
u
Procedure
u
VMware, Inc.
39
.log
.nvram
.vmdk
vmname-f###.vmdk vmname-disk-###.vmdk
.vmem
uuid.vmem
snapshot_name_number.vmem
.vmsd
vmname.vmsd
40
VMware, Inc.
Other files, such as lock files, might also be present in the virtual machines directory. Some files are present only while a virtual machine is running.
VMware, Inc.
41
42
VMware, Inc.
When you use virtual machines in Workstation, you can transfer files and text between virtual machines and the host system, print to host printers, connect removable devices, and change display settings. You can use folders to manage multiple virtual machines, take snapshots to preserve virtual machine states, and create screenshots and movies of virtual machines. You can also use Workstation to interact with remote virtual machines. See Chapter 6, Using Remote Connections and Sharing Virtual Machines, on page 179 for more information. This chapter includes the following topics:
n n n n n n n n n n n n
Starting Virtual Machines, on page 43 Stopping Virtual Machines, on page 47 Transferring Files and Text, on page 51 Add a Host Printer to a Virtual Machine, on page 60 Using Removable Devices in Virtual Machines, on page 61 Changing the Virtual Machine Display, on page 68 Using Folders to Manage Virtual Machines, on page 74 Taking Snapshots of Virtual Machines, on page 77 Install New Software in a Virtual Machine, on page 84 Share Tablet Sensor Data with Windows 8 Guests, on page 84 Take a Screenshot of a Virtual Machine, on page 85 Delete a Virtual Machine, on page 85
Start a Virtual Machine on page 44 You can start a virtual machine from the VM menu or from the toolbar. When you use the VM menu, you can select a soft or hard power option or start the virtual machine in BIOS setup mode.
VMware, Inc.
43
Start a Virtual Machine That Is Running in the Background on page 45 You can start a virtual machine that is running in the background when Workstation is not started. Stream a Virtual Machine from a Web Server on page 45 When you stream a virtual machine, you can start the virtual machine as soon as the download process begins. When you power off a streamed virtual machine, you are prompted to save or discard changes. If you discard changes, the directory that was created on the local computer and all the virtual machine data are deleted.
Enable Autologon in a Windows Virtual Machine on page 46 With Autologon, you can save your login credentials and bypass the login dialog box when you power on a Windows virtual machine. The guest operating system securely stores the password.
If the virtual machine is on the local host, select File > Open and browse to the virtual machine configuration (.vmx) file. If the virtual machine is on a remote host, connect to the remote server. See Connect to a Remote Server, on page 182.
Procedure
n
To select a power option when you start the virtual machine, select the virtual machine and select VM > Power.
Option Power On Start Up Guest Description (Hard option) Workstation starts the virtual machine. (Soft option) Workstation starts the virtual machine and VMware Tools runs a script in the guest operating system. On Windows guests, if the virtual machine is configured to use DHCP, the script renews the IP address of the virtual machine. On a Linux, FreeBSD, or Solaris guest, the script starts networking for the virtual machine. Workstation starts the virtual machine in BIOS setup mode.
Power On to BIOS n
To start the virtual machine from the toolbar, select the virtual machine and click the start button. The start power control setting that is configured for the virtual machine determines whether Workstation performs a hard or soft power on operation. The configured behavior appears in a tooltip when you mouse over the button.
What to do next Click anywhere inside the virtual machine console to give the virtual machine control of the mouse and keyboard on the host system.
44
VMware, Inc.
Make the virtual machine available for streaming. See Make a Virtual Machine Available for Streaming, on page 46. Determine the URL of the virtual machine.
Procedure 1 Run the vmware command and specify the URL of the virtual machine. Both HTTP and HTTPS are supported.
Option Windows host Linux host Description vmware.exe http://path_to_vm.vmx vmware http://path_to_vm.vmx
A tab for the virtual machine opens in the Workstation window. 2 Select the virtual machine and select VM > Power > Power On. Workstation fetches virtual disk data on demand so that you can start using the virtual machine before it finishes downloading. The status bar indicates the progress of the download. When you point to the VM streaming icon on the status bar, a tooltip indicates whether streaming is active and provides the URL of the Web server. 3 (Optional) To save the virtual machine so that you can use it when you do not have access to the Web server, select VM > Save for Offline Use. Using this setting also allows you to pause downloading by powering off the virtual machine before streaming is finished, restart it later by powering on the virtual machine, and open the virtual machine in Workstation after you close it.
VMware, Inc.
45
(Optional) To improve streaming performance, use Virtual Disk Manager (vmware-diskmanager) to compress the virtual disk (.vmdk) files for the virtual machine. See the Virtual Disk Manager Users Guide for more information. This guide is available on the VMware Web site. If the virtual machine has any snapshots, delete them.
2 3
If you use a proxy server, set the proxy connection to Keep-alive. Upload the virtual machines directory to the Web server. Do not compress the directory. Depending on the size of the virtual machine, downloading a virtual machine in a .zip or .tar file from a Web server can take a considerable amount of time.
After it is uploaded to the Web server, users can use a URL to stream the virtual machine and start it in Workstation.
Verify that the guest operating system is Windows 2000 or later. Verify that you have an existing user account to enable Autologon. The account must be a local machine account, not a domain account. Verify that the latest version of VMware Tools is running in the guest operating system. Power on the virtual machine.
n n
Procedure 1 2 3 Select the virtual machine, select VM > Settings. On the Options tab, select Autologon. Click Enable, type your login credentials, and click OK. If you type an incorrect or expired password, you must type your login credentials when you power on the virtual machine.
46
VMware, Inc.
Click OK to save your changes. When you enable Autologon or change your login credentials, the Autologon settings are saved immediately. Clicking Cancel in the Virtual Machine Settings dialog box does not affect the changes applied to the Autologon settings.
Shut Down a Virtual Machine on page 47 You can shut down a virtual machine from the VM menu or from the toolbar. When you use the VM menu, you can select a hard or soft power option.
Closing Virtual Machines and Exiting Workstation on page 48 You can close a virtual machine that is running on the local host system without powering it off. By default, Workstation prompts you to select an action when you close a powered-on virtual machine and when you exit Workstation while virtual machines are running on the local host system.
Pause and Unpause a Virtual Machine on page 48 You can pause a virtual machine multiple times for a few seconds, or up to several minutes. The pause feature is useful when a virtual machine is engaged in an lengthy, processor-intensive activity that prevents you from using the host system to do a more immediate task.
Suspend and Resume a Virtual Machine on page 49 You suspend a virtual machine when you want to save its current state. When you resume the virtual machine, applications that were running before the virtual machine was suspended resume in their running state and their content is unchanged.
To select a power option when you shut down the virtual machine, select the virtual machine and select VM > Power.
Option Power Off Shut Down Guest Description (Hard option) Workstation powers off the virtual machine abruptly with no consideration for work in progress. (Soft option) Workstation sends a shut down signal to the guest operating system. An operating system that recognizes the signal shuts down gracefully. Not all guest operating systems respond to a shutdown signal from Workstation. If the guest operating system does not respond to the signal, shut down from the guest operating system as you would a physical machine.
VMware, Inc.
47
To shut down the virtual machine from the toolbar, select the virtual machine and click the stop button. The stop power control setting that is configured for the virtual machine determines whether Workstation performs a hard or soft power off operation. The configured behavior appears in a tooltip when you mouse over the button.
To shut down a virtual machine that is suspended, select the virtual machine and click VM > Power > Power Off.
You can configure Workstation preference settings so that virtual machines always run in the background and you are not prompted to select an action. You can also configure virtual machine option settings to control power off behavior.
48
VMware, Inc.
Prerequisites Familiarize yourself with the restrictions and limitations of the pause feature. See Pause Feature Restrictions and Limitations, on page 49. Procedure
n
To pause a virtual machine, select the virtual machine and select VM > Pause. The virtual machine display dims and a play button appears over the display. Paused virtual machines that are configured to display on more than one monitor have a play button on each monitor.
To pause all of the powered-on virtual machines without interacting with the Workstation user interface, right-click the virtual machine status icon located in the notification area on the task bar of the host computer and select Pause All Virtual Machines. To unpause a virtual machine, click the play button on the virtual machine display or deselect VM > Pause.
You cannot switch to Unity mode when a virtual machine is paused. When paused, a virtual machine does not send or receive network packets. If a virtual machine is paused for more than a few minutes, some network connections might be interrupted. If you take a snapshot when the virtual machine is paused, the virtual machine is not paused when you restore that snapshot. Similarly, if you suspend a virtual machine while it is paused, it is not paused when you resume the virtual machine. If you initiate soft power operations when a virtual machine is paused, those operations do not take effect until the virtual machine is unpaused. While a virtual machine is paused, LEDs and devices remain enabled, but device connection changes do not take effect until the virtual machine is unpaused. You cannot pause a remote virtual machine.
VMware, Inc.
49
Procedure
n
To select a suspend option when you suspend a virtual machine, select the virtual machine and select VM > Power.
Option Suspend Suspend Guest Description (Hard option) Workstation suspends the virtual machine and leaves it connected to the network. (Soft option) Workstation suspends the virtual machine and disconnects it from the network. VMware Tools runs a script in the guest operating system. On Windows guests, if the virtual machine is configured to use DHCP, the script releases the IP address of the virtual machine. On Linux, FreeBSD, and Solaris guests, the script stops networking for the virtual machine.
To suspend a virtual machine from the toolbar, select the virtual machine and click the suspend button. The suspend power control setting that is configured for the virtual machine determines whether Workstation performs a hard or soft suspend operation. The configured behavior appears in a tooltip when you mouse over the button.
To select a resume option when you resume a suspended virtual machine, select the virtual machine and select VM > Power.
Option Resume Resume Guest Description (Hard option) Workstation resumes the virtual machine from the suspended state. (Soft option) Workstation resumes the virtual machine from the suspended state and reconnects it to the network.
To resume a virtual machine from the toolbar, select the virtual machine and click the resume button. The suspend power control setting that is configured for the virtual machine determines whether Workstation performs a hard or soft resume operation. The configured behavior appears in a tooltip when you mouse over the button.
To power off a suspended virtual machine, select the virtual machine and click VM > Power > Power Off.
50
VMware, Inc.
Using the Drag-and-Drop Feature on page 51 You can use the drag-and-drop feature to move files and directories, email attachments, plain text, formatted text, and images between the host system and virtual machines. Dragging email attachments is especially useful in Unity mode.
Using the Copy and Paste Feature on page 52 You can cut, copy, and paste text between virtual machines and between applications running in virtual machines.
Using Shared Folders on page 53 You can use shared folders to share files among virtual machines and between virtual machines and the host system. The directories that you add as shared folders can be on the host system, or they can be network directories that are accessible from the host computer.
Mapping a Virtual Disk to the Host System on page 59 Instead of using shared folders or copying data between a virtual machine and the host system, you can map a virtual disk to the host system. In this case, you map a virtual disk in the host file system as a separate mapped drive. Using a mapped drive lets you connect to the virtual disk without going into a virtual machine.
File managers, such as Windows Explorer, on the host system and virtual machines. A file manager to an application that supports drag-and-drop. Applications, such as zip file managers, which support drag-and-drop extraction of individual files. Different virtual machines.
When you drag a file or folder between the host and a virtual machine, Workstation copies the file or folder to the location where you drop it. For example, if you drop a file on the desktop icon of a word processor, the word processor opens a copy of the original file. The original file does not include changes that you make to the copy. Initially, the application opens a copy of the file that is stored in the temp directory. On Windows, the temp directory is specified in the %TEMP% environment variable. On Linux and Solaris, the temp directory is /tmp/VMwareDnD. Save the file in a different directory to protect changes that you make.
You must install VMware Tools in a virtual machine to use the drag-and-drop feature. The drag-and-drop feature requires Linux hosts and guests to run X Windows and Solaris 10 guests to run an Xorg X server and JDS/Gnome. You can drag images between applications on Windows hosts and applications on Windows guests only. Dragging images is not supported for Linux hosts or guests.
VMware, Inc.
51
You can drag files and directories, email attachments, plain text, and formatted text between Linux and Windows hosts and Linux, Windows, and Solaris 10 guests only. Dragging email attachments is restricted to images or files smaller than 4MB. Dragging plain text and formatted text (including the formatting) is restricted to amounts less than 4MB. Dragging text is restricted to text in languages that can be represented by Unicode characters. Workstation uses the PNG format to encode images that are dragged. Dragging images is restricted to images smaller than 4MB after conversion to PNG format. On Windows 95 and Windows 98 guests, the drag-and-drop feature is supported only for files and directories.
n n
n n
You must install VMware Tools in a virtual machine to use the copy and paste feature. The copy and paste feature works with Linux and Windows hosts and Linux, Windows, and Solaris 10 guests only. The copy and paste feature requires Linux hosts and guests to run X Windows and Solaris 10 guests to run an Xorg X server and JDS/Gnome. Copying and pasting email attachments is restricted to images or files smaller than 4MB. Copying and pasting plain text and formatted text (including the formatting) is restricted to amounts less than 4MB. Copying and pasting text is restricted to text in languages that can be represented by Unicode characters.
n n
52
VMware, Inc.
Workstation uses the PNG format to encode images that are copied and pasted. Copying and pasting images is restricted to images smaller than 4MB after conversion to PNG format. You cannot copy and paste files between virtual machines. On Windows 95 and Windows 98 guests, copying and pasting is restricted to plain text in amounts less than 64KB.
n n
Guest Operating Systems that Support Shared Folders on page 54 To use shared folders, a virtual machine must have a supported guest operating system. Enable a Shared Folder for a Virtual Machine on page 54 You can enable folder sharing for a specific virtual machine. To set up a folder for sharing between virtual machines, you must configure each virtual machine to use the same directory on the host system or network share.
Enable Shared Folders for Virtual Machines Created By Other Users on page 55 If a shared folder is not created by the user who powers on the virtual machine, it is disabled by default. This is a security precaution.
View Shared Folders in a Windows Guest on page 56 In a Windows guest operating system, you can view shared folders by using desktop icons. Mounting Shared Folders in a Linux Guest on page 56 After you have enabled a shared folder, you can mount one or more directories or subdirectories in the shared folder to any location in the file system in addition to the default location of /mnt/hgfs.
Change Shared Folder Properties on page 57 After you create a shared folder, you can change the folder name, the host path, and other attributes. Change the Folders That a Virtual Machine Can Share on page 58 You can change the folders that a specific virtual machine is allowed to share.
VMware, Inc.
53
Disable Folder Sharing for a Virtual Machine on page 58 You can disable folder sharing for a specific virtual machine.
Windows Server 2003 Windows XP Windows 2000 Windows NT 4.0 Windows Vista Windows 7 Linux with a kernel version of 2.6 or later Solaris x86 10 Solaris x86 10 Update 1 and later
Verify that the virtual machines use a guest operating system that supports shared folders. See Guest Operating Systems that Support Shared Folders, on page 54. Verify that the latest version of VMware Tools is installed in the guest operating system. Verify that permission settings on the host system allow access to files in the shared folders. For example, if you are running Workstation as a user named User, the virtual machine can read and write files in the shared folder only if User has permission to read and write them.
n n
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Options tab, select Shared Folders. Select a folder sharing option.
Option Always enabled Enabled until next power off or suspend Description Keep folder sharing enabled, even when the virtual machine is shut down, suspended, or powered off. Enable folder sharing temporarily, until you power off, suspend, or shut down the virtual machine. If you restart the virtual machine, shared folders remain enabled. This setting is available only when the virtual machine is powered on.
54
VMware, Inc.
(Optional) To map a drive to the Shared Folders directory, select Map as a network drive in Windows guests. This directory contains all of the shared folders that you enable. Workstation selects the drive letter.
Click Add to add a shared folder. On Windows hosts, the Add Shared Folder wizard starts. On Linux hosts, the Shared Folder Properties dialog box opens.
Type the path on the host system to the directory to share. If you specify a directory on a network share, such as D:\share, Workstation always attempts to use that path. If the directory is later connected to the host on a different drive letter, Workstation cannot locate the shared folder.
Specify the name of the shared folder as it should appear inside the virtual machine. Characters that the guest operating system considers illegal in a share name appear differently when viewed inside the guest. For example, if you use an asterisk in a share name, you see %002A instead of * in the share name on the guest. Illegal characters are converted to their ASCII hexadecimal value.
Click Finish to add the shared folder. The shared folder appears in the Folders list. The check box next to folder name indicates that the folder is being shared. You can deselect this check box to disable sharing for the folder.
10
What to do next View the shared folder. On Linux guests, shared folders appear under /mnt/hgfs. On Solaris guests, shared folders appear under /hgfs. To view shared folders on a Windows guest, see View Shared Folders in a Windows Guest, on page 56.
VMware, Inc.
55
Select Workspace and select Enable all shared folders by default. This setting applies to shared folders on all virtual machines that are created by other users.
Depending on the Windows operating system version, look for VMware Shared Folders in My Network Places, Network Neighborhood, or Network. If you mapped the shared folder as a network drive, open My Computer and look for Shared Folders on 'vmware-host' under Network Drives.
host\Shared Folders\shared_folder_name.
To view a specific shared folder, go directly to the folder by using the UNC path \\vmware-
You can use VMware-specific options in addition to the standard mount syntax. For usage information for the host-guest file system options, type the command /sbin/mount.vmhgfs -h. When you install VMware Tools, an entry is made to etc/fstab to specify the location of shared folders. You can edit this file to change or add entries. For example, to auto-mount at startup, edit /etc/fstab and add the line:
.host:/ /mnt/hgfs vmhgfs defaults 0 0
The VMware Tools services script loads a driver that performs the mount. If the mount fails, a message appears regarding mounting HGFS shares. NOTE The mount can fail if shared folders are disabled or if the share does not exist. You are not prompted to run the VMware Tools vmware-config-tools.pl configuration program again. Optimizing Read and Write Access to Shared Files on Linux Host-guest file sharing is integrated with the guest page cache. Files in shared folders are cached for reading and can be written to asynchronously. Files that are being actively written to from the guest do not experience read caching benefits. To improve performance, you can use the mount command time-to-live (ttl) option to specify the interval that the hostguest file system (hgfs) driver uses for validating file attributes.
56
VMware, Inc.
For example, to validate attributes every 3 seconds instead of every 1 second, which is the default, use the following command.
mount -o ttl=3 -t vmhgfs .host:/sharemountpoint
NOTE Lengthening the interval involves some risk. If a process in the host modifies file attributes, the guest operating system might not get the modifications as quickly and the file can become corrupted. Using Permissions to Restrict Access to Shared Files in a Linux Guest You can use permissions to restrict access to the files in a shared folder on a Linux guest operating system. On a Linux host, if you create files that you want to share with a Linux guest operating system, the file permissions shown on the guest operating system are the same as the permissions on the host system. You can use the fmask and dmask commands to mask permissions bits for files and directories. If you create files on a Windows host system that you want to share with a Linux guest operating system, read-only files are displayed as having read and execute permission for everyone and other files are shown as fully writable by everyone. If you use a Linux guest operating system to create files for which you want to restrict permissions, use the mount program with the following options in the guest operating system.
n n n n n n uid gid fmask dmask ro (read only) rw (read-write)
rw is the default.
If you are using a virtual machine that was created with the Windows version of Workstation, or a previous release of the Linux version of Workstation, you can change the owner permissions only.
VMware, Inc.
57
To change the host path for the shared folder, browse to or type the new path in the Host path text box. If you specify a directory on a network share, such as D:\share, Workstation always attempts to use that path. If the directory is later connected to the host on a different drive letter, Workstation cannot locate the shared folder.
To change an attribute for the shared folder, select or deselect the attribute.
Option Enabled Read-only Description Enable the shared folder. Deselect this option to disable a shared folder without deleting it from the virtual machine configuration. Make the shared folder read-only. When this property is selected, the virtual machine can view and copy files from the shared folder, but it cannot add, change, or remove files. Access to files in the shared folder is also governed by permission settings on the host computer.
58
VMware, Inc.
Power off all virtual machines that use the virtual disk. Verify that the virtual disk (.vmdk) files on the virtual disk are not compressed and do not have readonly permissions. On a Windows host, verify that the volume is formatted with FAT (12/16/32) or NTFS. Only FAT (12/16/32) and NTFS formatting is supported. If the virtual disk has mixed partitions, for example, one partition is formatted with a Linux operating system and another partition is formatted with a Windows operating system, you can map the Windows partition only. Verify that the virtual disk is unencrypted. You cannot map or mount encrypted disks.
(Optional) You can also map a virtual disk from Windows Explorer. a b Open Explorer and browse to the .vmdk file you want to map. Right-click the .vmdk file and select Map Virtual Disk. The menu also allows you to map the first volume of the .vmdk file to a drive immediately. If you select that option, no further configurations are needed.
VMware, Inc.
59
On a Windows host, leave the check box Open file in read-only mode selected in the Map Virtual Disk dialog box. This setting prevents you from accidentally writing data to a virtual disk that might be the parent of a snapshot or linked clone. Writing to such a disk might make the snapshot or linked clone unusable.
On a Linux host, select the Mount in read-only mode check box in the Mount Disk dialog box. This setting prevents you from accidentally writing data to a virtual disk that might be the parent of a snapshot or linked clone. Writing to such a disk might make the snapshot or linked clone unusable.
6 7 8 9
Browse to a virtual disk (.vmdk) file, select it, and click Open. Select the volume to map or mount and select an unused drive letter on the host system. (Optional) On a Windows host, if you do not want the drive to open in Windows Explorer after it is mapped, deselect the Open drive in Windows Explorer after mapping check box. Click OK or Mount. The drive appears on the host system. You can read from or write to files on the mapped virtual disk on the host system.
10
You can now power on any virtual machine that uses this disk.
60
VMware, Inc.
In the Add Hardware wizard, select Printer and Finish. The default device setting is to connect the virtual machine printer when the virtual machine is powered on.
What to do next In a Print window, when you attempt to select a printer in Windows 7 virtual machines, you might see only the default printer, even though other printers are available. To see the other printers, right-click the default printer and point to Printer properties.
Power on the virtual machine. If you are connecting or disconnecting a USB device, familiarize yourself with the way Workstation handles USB devices. See Connecting USB Devices to Virtual Machines, on page 62. If you are connecting or disconnecting a USB device on a Linux host and the USB device file system is not located in /proc/bus/usb, mount the USB file system to that location. See Mount the USB File System on a Linux Host, on page 63.
Procedure
n
To connect a removable device, select the virtual machine, select VM > Removable Devices, select the device, and select Connect. If the device is connected to the host system through a USB hub, the virtual machine sees only the USB device, not the hub. A check mark appears next to the name of the device when the device is connected to the virtual machine and a device icon appears on the virtual machine taskbar.
To change the settings for a removable device, select VM > Removable Devices, select the device, and select Settings. To disconnect a removable device, select the virtual machine, select VM > Removable Devices, select the device, and select Disconnect. You can also disconnect the device by clicking or right-clicking the device icon on the virtual machine taskbar. Using the taskbar icon is especially useful if you run the virtual machine in full screen mode.
VMware, Inc.
61
Installing USB Drivers on Windows Hosts on page 62 When a particular USB device is connected to a virtual machine for the first time, the host detects it as a new device named VMware USB Device and installs the appropriate VMware driver.
Disable Automatic Connection of USB Devices on page 63 You can disable the autoconnect feature if you do not want USB devices to connect to a virtual machine when you power it on.
Mount the USB File System on a Linux Host on page 63 On Linux hosts, Workstation uses the USB device file system to connect to USB devices. If the USB device file system is not located in /proc/bus/usb, you must mount the USB file system to that location.
Connect USB HIDs to a Virtual Machine on page 63 To connect USB human interface devices (HIDs) to a virtual machine, you must configure the virtual machine to show all USB input devices in the Removable Devices menu.
Install a PDA Driver and Synchronize With a Virtual Machine on page 64 To install a PDA driver in a virtual machine, you must synchronize the PDA with the virtual machine.
62
VMware, Inc.
Power off the virtual machine. If you are using a KVM switch for a mouse or keyboard, disable automatic connection of USB devices. See Disable Automatic Connection of USB Devices, on page 63.
Procedure 1 2 Select the virtual machine and select VM > Settings. On the Hardware tab, select USB Controller.
VMware, Inc.
63
Select Show all USB input devices. This option allows users to use special USB HIDs inside the virtual machine.
4 5
Click OK to save your changes. Power on the virtual machine. HIDs appear in the Removable Devices menu.
64
VMware, Inc.
Cause On Linux host systems, guest operating systems can use devices that are not claimed by a host operating system driver. A related issue sometimes affects devices that rely on automatic connection, such as PDAs. Occasionally, even if you successfully use autoconnection to connect the device to the virtual machine, you might experience problems with the connection to the device. Solution 1 If you have problems with autoconnection, perform these steps. a b c Select the virtual machine and select VM > Removable Devices to disconnect and reconnect the device. If the problem persists, unplug the device and plug it in again. If a warning message indicates that the device is in use, disable the device in the hotplug configuration files in the /etc/hotplug directory. The documentation for the Linux distribution contains information on editing these configuration files. 2 If disconnection fails, either disable the driver or unload the driver manually.
Option Disable the driver Description If the driver was automatically loaded by hotplug, disable it in the hotplug configuration files in the /etc/hotplug directory. See the documentation for your Linux distribution for information on editing these configuration files. Become root (su -) and use the rmmod command.
VMware, Inc.
65
Windows 7 guest operating systems, the generic smart card reader device name appears under the Windows Device Manager list. The smart card reader can be shared among applications on the host system and among applications in different guest operating systems. USB passthrough mode The smart card reader device is available as smart_card_reader_model in the Removable Devices menu. In USB passthrough mode, a single virtual machine directly controls the physical smart card reader. A USB passthrough smart card reader cannot be used by applications on the host system or by applications in other virtual machines. You should use USB passthrough mode only if connection in shared mode does not work well for your scenario. You might need to install the driver provided by the manufacturer to use USB passthrough mode.
You can use smart cards with Windows operating systems and most Linux distributions. VMware provides full smart card support for Windows virtual machines running on Linux hosts. Using smart cards in Linux typically requires third-party software to effectively authenticate to a domain or enable secure communications. NOTE Although smart cards should work with common Linux browsers, email applications, and directory services, these products have not been tested or certified by VMware.
On a Windows host, start the SCardSvr.exe service. On a Linux host, verify that the libpcsclite library is installed and that the pcscd daemon is running. Verify that the virtual machine has a USB controller. A USB controller is required, regardless of whether the smart card reader is a USB device. A USB controller is added by default when you create a virtual machine. Connect the smart card reader to the host system. Start the virtual machine
n n
Procedure
n
To connect the smart card reader to the virtual machine, select the virtual machine and select VM > Removable Devices > Shared <smart_card_reader_model> > Connect. If the smart card reader is a USB device, two items appear for it in the menu. Both items use the model name of the reader, but one item name begins with Shared.
To disconnect the smart card reader from the virtual machine, select VM > Removable Devices > Shared <smart_card_reader_model> > Disconnect. To remove the smart card from the virtual machine, select VM > Removable Devices > Shared <smart_card_reader_model> > Remove Smart Card. The smart card is removed from the virtual machine, but it remains connected on the host system. If the smart card is physically removed from the smart card reader, this option is disabled.
To insert the smart card to the virtual machine, select VM > Removable Devices > Shared <smart_card_reader_model> > Insert Smart Card. If the smart card is physically inserted in the smart card reader, the smart card is also inserted in the virtual machine.
66
VMware, Inc.
If the global configuration file does not yet exist on the host system, select Edit > Preferences and change at least one Workstation preference settings. Workstation creates the global configuration file when you change Workstation preference settings.
Open the global configuration file in a text editor and set the usb.ccid.useSharedMode property to FALSE. For example: usb.ccid.useSharedMode = "FALSE"
4 5
Save and close the global configuration file. Set permissions on the global configuration file so that other users cannot change it.
VMware, Inc.
67
Use Full Screen Mode on page 68 In full screen mode, the virtual machine display fills the screen and you cannot see the borders of the Workstation window.
Use Exclusive Mode on page 69 Like full screen mode, exclusive mode causes the Workstation virtual machine display to fill the screen. You might want to use exclusive mode to run graphics-intensive applications, such as games, in full screen mode.
Use Unity Mode on page 70 You can switch virtual machines that have Linux or Windows 2000 or later guest operating systems to Unity mode to display applications directly on the host system desktop.
Use Multiple Monitors for One Virtual Machine on page 71 If the host system has multiple monitors, you can configure a virtual machine to use multiple monitors. You can use the multiple-monitor feature when the virtual machine is in full screen mode.
Use Multiple Monitors for Multiple Virtual Machines on page 72 If the host system has multiple monitors, you can run a different virtual machine on each monitor. Fit the Workstation Console to the Guest Operating System Display on page 73 You can control the size of the virtual machine display and match the Workstation console with the display size of the guest operating system for an active virtual machine.
Verify that the latest version of VMware Tools is installed in the guest operating system. Verify that the guest operating system display mode is larger than the host system display mode. If the guest operating system display mode is smaller than the host system display mode, you might not be able to enter full screen mode. If you cannot enter full screen mode, add the line mks.maxRefreshRate=1000 to the virtual machine configuration (.vmx) file. Power on the virtual machine. If you have multiple monitors, move the Workstation window onto the monitor to use for full screen mode.
n n
Procedure
n
To enter full screen mode, select the virtual machine and select View > Full Screen.
68
VMware, Inc.
Press Ctrl+Alt+right arrow to switch to the next powered-on virtual machine and Ctrl+Alt+left arrow to switch to the previous powered-on virtual machine. When in full screen mode, you can also use the tabs on the full screen toolbar to switch between powered-on virtual machines. To hide the full screen toolbar while you are using full screen mode, click the push pin icon on the full screen toolbar and move the mouse pointer off of the toolbar. The toolbar is unpinned and slides up to the top of the monitor and disappears.
To show the full screen toolbar after it has been hidden, point to the top of the screen until the toolbar appears and click the push pin icon. To exit full screen mode, on the full screen toolbar select View > Full Screen, and deselect Full Screen.
The full screen toolbar is not engaged when you move the mouse to the top of the screen. To configure virtual machine settings, you must exit exclusive mode. When input is grabbed by the virtual machine, only the ungrab shortcut is respected. You can change the ungrab shortcut to reduce the chance of unintentionally pressing it. On a Windows host, exclusive mode does not use multiple monitors.
Prerequisites
n n n
Verify that the latest version of VMware Tools is installed in the guest operating system. Power on the virtual machine. If you have multiple monitors, move the Workstation window onto the monitor to use for exclusive mode. Enter full screen mode. See Use Full Screen Mode, on page 68.
Procedure 1 2 Enter full screen mode. Select View > Exclusive Mode from the full screen toolbar.
VMware, Inc.
69
What to do next To exit exclusive mode, press Ctrl+Alt. On a Windows or Linux host, pressing Ctrl+Alt returns you to full screen mode.
Verify that the virtual machine is a Workstation 6.x or later virtual machine. Verify that the latest version of VMware Tools is installed in the guest operating system. Verify that the guest operating system is Linux or Windows 2000 or later. For Linux guests and hosts, verify that a modern version of Metacity or KDE is installed. Performance on Linux depends on a combination of variables such as the system, the applications that are running, and the amount of RAM. Power on the virtual machine. If you are entering Unity mode, open applications in the virtual machine to use in Unity mode.
n n
Procedure
n
To enter Unity mode, select the virtual machine and select View > Unity. The console view in the Workstation window is hidden, and open applications appear in application windows on the host system desktop. A check mark appears next to Unity in the View menu.
To display the virtual machine Start menu on a Windows host system, point to the Start menu on a Windows host system. To display the virtual machine Applications menu on a Linux host system, point to the upper-left corner of the primary monitor on the Linux host system. To navigate between multiple Start or Applications menus when multiple virtual machines are in Unity mode, press the arrow keys, Tab, or Shift+Tab to cycle through the virtual machine menus and press Enter and the spacebar to select a virtual machine.
70
VMware, Inc.
To exit Unity mode, select View > Unity and deselect Unity.
Verify that the virtual machine is configured to display the virtual machine Start or Application menu on the host system desktop. See Set Preferences for Unity Mode, on page 92. Verify that the latest version of VMware Tools is running in the guest operating system. Power on the virtual machine.
n n
Procedure 1 2 Select the virtual machine and select View > Unity. Select a virtual machine application.
Option Windows host Linux host Action Point to the Start button to display the virtual machine Start menu on the host system desktop, click the Start menu, and select the application. Point to the upper-left corner of the primary monitor to display the virtual machine Applications menu on the host system desktop, click Applications menu, and select the application.
Verify that the virtual machine is a Workstation 6.x or later virtual machine. Verify that the latest version of VMware Tools is installed in the guest operating system. Verify that the guest operating system is Windows XP or higher, or Linux. Power off the virtual machine.
VMware, Inc.
71
Select Display, select Autofit guest, and click OK. This setting causes the virtual machine display settings to match the application window when the application window is resized.
If the virtual machine is set to be restored from a snapshot and background snapshots are enabled, select Edit > Preferences > Priority. Deselect Take snapshots in the background when possible and Restore snapshots in the background when possibleand click OK. Displaying the virtual machine on two monitors might not work correctly if these setting are enabled.
4 5
Power on the virtual machine and select View > Full Screen. On the full screen toolbar, click the Choose a Monitor Layout button. If the host system has more than two monitors, the Choose a Monitor Layout button provides a dropdown menu of monitor layouts. The monitors that are part of each layout are marked with a Workstation icon. The Choose a Monitor Layout button is available when the guest is Linux, or Windows Vista or later. For other guests, or if the host has two monitors, use the Cycle Multiple Monitors button to change the monitor layout. On a Windows host, you can mouse over a button on the toolbar to see its name. The guest operating system desktop extends to the additional monitor or monitors.
(Optional) If the virtual machine display does not resize correctly, select View > Autosize > Autofit Guest.
If you attempt to use more than two monitors with a virtual machine, your virtual machine must support more than two monitors for this feature to function. More than two monitors is supported on Windows and Linux host and guest operating systems. Windows XP guests support more than three monitors. However, only three monitors can be in use by a Windows XP guest at one time. If more than three monitors are connected to a Windows XP guest, use the Cycle multiple monitors button to cycle through the monitors to the configuration you want to use.
n n
72
VMware, Inc.
Drag each Workstation window to the monitor on which you want to use it. If a virtual machine is running in one Workstation window and you want to run that virtual machine in another Workstation window, you must close the virtual machine in the first window before you attempt to open it in the other window.
To switch mouse and keyboard input from the virtual machine on the first monitor to the virtual machine on the second monitor, move the mouse pointer from one screen to the other screen and click inside the second monitor.
For a Linux virtual machine, familiarize yourself with the considerations for resizing displays. See Considerations for Resizing Displays in Linux Virtual Machines, on page 73. For a Solaris virtual machine, familiarize yourself with the considerations for resizing displays. See Considerations for Resizing Displays in Solaris Virtual Machines, on page 74.
Procedure
n
To configure a display size option, select View > Autosize and select an Autofit option.
Option Autofit Guest Stretch Guest Center Guest Autofit Window Description The virtual machine resizes the guest display resolution to match the size of the Workstation console. The virtual machine changes the guest display to fit the full screen. The guest display resolution is not changed. The virtual machine centers the guest display in the full screen. The guest display resolution is not changed. The Workstation console maintains the size of the virtual machine display resolution. If the guest operating system changes its resolution, the Workstation console resizes to match the new resolution.
If you have virtual machines that were suspended under a version of VMware Tools earlier than version 5.5, display resizing does not work until the virtual machines are powered off and powered on again. Rebooting the guest operating system is not sufficient. To use the resizing options, you must update VMware Tools to the latest version in the guest operating system.
VMware, Inc.
73
You cannot use the Autofit Guest and Fit Guest Now options unless VMware Tools is running in the guest operating system. The resizing restrictions that the X11 Windows system imposes on physical host systems also apply to guest operating systems.
n
You cannot resize to a mode that is not defined. The VMware Tools configuration script can add a large number of mode lines, but you cannot resize in 1-pixel increments as you can in Windows. VMware Tools adds modelines in 100-pixel increments. This means that you cannot resize a guest larger than the largest mode defined in the X11 configuration file. If you attempt to resize larger than that mode, a black border appears and the guest operating system size stops increasing. The X server always starts up in the largest defined resolution. The XDM/KDM/GDM login screen always appears at the largest size. Because Gnome and KDE allow you to specify your preferred resolution, you can reduce the guest display size after you log in.
To use the display resizing options, you must update VMware Tools to the latest version in the guest operating system. You cannot use the Autofit Guest and Fit Guest Now options unless VMware Tools is running in the guest operating system. Solaris 10 guests must be running an Xorg X server and JDS/Gnome.
Add a Virtual Machine to a Folder on page 75 When you add a virtual machine to a folder, it remains an independent entity, but you can also perform batch power operations. For example you can power on, suspend, and resume each virtual machine in a folder separately, or you can power on, suspend, and resume all of the virtual machines in a folder at the same time.
Remove a Virtual Machine from a Folder on page 75 You can remove a virtual machine from a folder or move it to a different folder or subfolder. Manage Virtual Machines in a Folder on page 75 When virtual machines are in a folder, you can manage them as a unit. For example, you can select multiple virtual machines on the folder tab and perform power operations on several virtual machines at the same time.
74
VMware, Inc.
Change the Power On Delay on page 76 By default, when you power on several virtual machines in a folder, Workstation delays 10 seconds before powering on the next virtual machine. The power on delay avoids overloading the CPU on the host system when you power on multiple virtual machines. You can change the default power on delay setting by modifying a Workstation preference.
Convert a Team on page 76 If you created a team in an earlier version of Workstation, you must convert the team before you can use the virtual machines in the current version of Workstation.
You can create an unlimited number of folders or subfolders. 2 To add a virtual machine to a folder, select the virtual machine in the library and drag it to the folder. The virtual machine appears under the folder in the library. You can add an unlimited number of virtual machines to a folder.
To remove a virtual machine from a folder, select the virtual machine in the library and drag it to My Computer. The virtual machine appears under My Computer in the library.
To move a virtual machine to a different folder or subfolder, select the virtual machine in the library and drag it to the folder or subfolder. The virtual machine appears under the folder or subfolder in the library.
VMware, Inc.
75
You can change the default power on delay setting by modifying a Workstation preference. See Change the Power On Delay, on page 76. Procedure
n
To perform a power operation on several virtual machines at the same time, use Ctrl-Click to select the virtual machines on the folder tab and select the power operation from the toolbar or from the VM menu. All of the virtual machines that you select must be in the same power state.
To perform a power operation on all of the virtual machines at the same time, select the folder in the library and select the power operation from the toolbar or from the VM menu. All of the virtual machines in the folder must be in the same power state.
To display thumbnails for virtual machines on the folder tab, select a thumbnail size from the dropdown menu on the folder tab. When a virtual machine is powered on, Workstation updates the thumbnail in real time to show the actual content of the virtual machine. When a virtual machine is suspended, the thumbnail shows a screenshot of the virtual machine at the time that it was suspended.
To display virtual machine names on the folder tab, select Details from the drop-down menu on the folder tab. To open the tab for a virtual machine, double-click the virtual machine on the folder tab.
Convert a Team
If you created a team in an earlier version of Workstation, you must convert the team before you can use the virtual machines in the current version of Workstation. Procedure 1 Open the team in Workstation or browse to the location of the virtual machine team configuration (.vmtm) file and drag it to the library. A dialog box appears that prompts you to convert the team. 2 Click Convert Team to convert the team.
After the team is converted, the .vmtm file is deleted and the virtual machines are added to a new folder in the library. After you convert a team, the virtual machines keep their packet loss and bandwidth settings. LAN segment information appears in the network adapter settings for each virtual machine, where you can modify it.
76
VMware, Inc.
Using Snapshots to Preserve Virtual Machine States on page 78 A snapshot includes the contents of the virtual machine memory, virtual machine settings, and the state of all the virtual disks. When you revert to a snapshot, you return the memory, settings, and virtual disks of the virtual machine to the state they were in when you took the snapshot.
Using the Snapshot Manager on page 78 You can review all snapshots for a virtual machine and act on them directly in the snapshot manager. Take a Snapshot of a Virtual Machine on page 79 When you take a snapshot, you preserve the state of a virtual machine at a specific moment in time and the virtual machine continues to run. Taking a snapshot enables you to return to the same state repeatedly. You can take a snapshot while a virtual machine is powered on, powered off, or suspended.
Revert to a Snapshot on page 80 You can restore a virtual machine to a previous state by reverting to a snapshot. Take or Revert to a Snapshot at Power Off on page 80 You can configure a virtual machine to revert to a snapshot or take a new snapshot when you power off the virtual machine. This feature is useful if you need to discard changes when a virtual machine is powered off.
Enable AutoProtect Snapshots on page 80 The AutoProtect feature preserves the state of a virtual machine by taking snapshots at regular intervals that you specify. This process is in addition to manual snapshots, which you can take at any time.
Enable Background Snapshots on page 81 When you enable background snapshots, you can continue working while Workstation preserves the state of a virtual machine. A progress indicator for the background snapshot appears in a corner of the Workstation window.
Exclude a Virtual Disk from Snapshots on page 82 You can configure snapshots so that Workstation preserves states only for certain virtual disks. Delete a Snapshot on page 82 When you delete a snapshot, you delete the state of the virtual machine that you preserved and you can never return to that state again. Deleting a snapshot does not affect the current state of the virtual machine.
Troubleshooting Snapshot Problems on page 83 You can use a variety of procedures for diagnosing and fixing problems with snapshots.
VMware, Inc.
77
baseline
IE base
Firefox base
SP1
IE base1
Firefox base1
SP2
IE base2
Firefox base2
Multiple snapshots have a parent-child relationship. The parent snapshot of a virtual machine is the snapshot on which the current state is based. After you take a snapshot, that stored state is the parent snapshot of the virtual machine. If you revert to an earlier snapshot, the earlier snapshot becomes the parent snapshot of the virtual machine. In a linear process, each snapshot has one parent and one child, except for the last snapshot, which has no children. In a process tree, each snapshot has one parent, one snapshot can have more than one child, and many snapshots have no children.
Show AutoProtect snapshots in the Snapshot menu. Prevent an AutoProtect snapshot from being deleted.
78
VMware, Inc.
n n
All other snapshot actions are available as menu items in the Snapshot menu under the VM menu. When you open the snapshot manager for a virtual machine, the snapshot tree appears. The snapshot tree shows all of the snapshots for the virtual machine and the relationships between the snapshots. The You Are Here icon in the snapshot tree shows the current state of the virtual machine. The other icons that appear in the snapshot tree represent AutoProtect snapshots, snapshots of powered-on virtual machines, snapshots of powered-off virtual machines, and snapshots that are used to create linked clones. The snapshot manager is available as a menu item in the Snapshot menu under the VM menu.
Verify that the virtual is not configured to use a physical disk. You cannot take a snapshot of a virtual machine that uses a physical disk. To have the virtual machine revert to suspend, power on, or power off when you start it, be sure it is in that state before you take the snapshot. When you revert to a snapshot, you return the memory, settings, and virtual disks of the virtual machine to the state they were in when you took the snapshot. Complete any suspend operations. Verify that the virtual machine is not communicating with another computer. For better performance, defragment the guest operating system drives. If the virtual machine has multiple disks in different disk modes, power off the virtual machine. For example, if a configuration requires you to use an independent disk, you must power off the virtual machine before you take a snapshot. If the virtual machine was created with Workstation 4, delete any existing snapshots or upgrade the virtual machine to Workstation 5.x or later.
n n n n
Procedure 1 2 3 Select the virtual machine and select VM > Snapshot > Take Snapshot. Type a unique name for the snapshot. (Optional) Type a description for the snapshot. The description is useful for recording notes about the virtual machine state captured in the snapshot. 4 Click OK to take the snapshot.
VMware, Inc.
79
Revert to a Snapshot
You can restore a virtual machine to a previous state by reverting to a snapshot. If you take a snapshot of a virtual machine and add any kind of disk, reverting to the snapshot removes the disk from the virtual machine. If associated disk (.vmdk) files are not used by another snapshot, the disk files are deleted. IMPORTANT If you add an independent disk to a virtual machine and take a snapshot, reverting to the snapshot does not affect the state of the independent disk. Procedure
n
To revert to the parent snapshot, select the virtual machine and select VM > Snapshot > Revert to Snapshot. To revert to any snapshot, select the virtual machine, select VM > Snapshot, select the snapshot, and click Go To.
Ask me
80
VMware, Inc.
Because AutoProtect takes snapshots only while a virtual machine is powered on, AutoProtect snapshots cannot be cloned. You can clone a virtual machine only if it is powered off. AutoProtect snapshots are not taken in VMware Player, even if AutoProtect is enabled for the virtual machine in Workstation. You cannot configure the AutoProtect feature for a shared or remote virtual machine.
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Options tab, select AutoProtect and select Enable AutoProtect. Select the interval between snapshots.
Option Half-Hourly Hourly Daily Description Snapshots are taken every half hour. Snapshots are taken every hour. Snapshots are taken daily.
The interval is measured only when the virtual machine is powered on. For example, if you set AutoProtect to take snapshots hourly and then power off the virtual machine five minutes later, the next AutoProtect snapshot takes place 55 minutes after you power on the virtual machine again, regardless of the length of time the virtual machine was powered off. Workstation saves only one snapshot per tier, even if a snapshot matches more than one tier. 4 Select the maximum number of AutoProtect snapshots to retain. After the maximum number of AutoProtect snapshots is reached, Workstation deletes the oldest AutoProtect snapshot each time a new AutoProtect snapshot is taken. This setting does not affect the number of manual snapshots that you can take and keep. 5 Select OK to save your changes.
VMware, Inc.
81
Restart the virtual machines. Virtual machines must be powered off and then powered on, rather than restarted, for background snapshot changes to take effect.
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Hardware tab, select the drive to exclude and click Advanced. Select Independent and select the disk mode.
Option Persistent Nonpersistent Description Changes are immediately and permanently written to the disk. Disks in persistent mode behave like conventional disks on a physical computer. Changes to the disk are discarded when you power off or restore a snapshot. In nonpersistent mode, a virtual disk is in the same state every time you restart the virtual machine. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset the virtual machine.
Delete a Snapshot
When you delete a snapshot, you delete the state of the virtual machine that you preserved and you can never return to that state again. Deleting a snapshot does not affect the current state of the virtual machine. If a snapshot is used to create a clone, the snapshot becomes locked. If you delete a locked snapshot, the clones created from the snapshot no longer operate. You cannot delete a snapshot if the associated virtual machine is designated as a template for cloning. Procedure 1 2 3 4 Select the virtual machine and select VM > Snapshot > Snapshot Manager. If you are deleting an AutoProtect snapshot, select Show AutoProtect snapshots. Select the snapshot. Select an option to delete the snapshot.
Option Delete a single snapshot Delete the snapshot and all of its children Delete all snapshots Action Click Delete. Right-click and select Delete Snapshot and Children. Right-click, select Select All, and click Delete.
82
VMware, Inc.
VMware, Inc.
83
Verify that VMware Tools is installed in the guest operating system. Installing VMware Tools before installing the software minimizes the likelihood that you will have to reactivate the software if the virtual machine configuration changes. Verify that the virtual machine has access to the CD-ROM drive, ISO image file, or floppy drive where the installation software is located.
Procedure 1 2 Select the virtual machine and select VM > Settings. On the Hardware tab, select Memory, set the final memory size for the virtual machine, and click OK. Some applications use a product activation feature that creates a key based on the virtual hardware in the virtual machine where it is installed. Changes in the configuration of the virtual machine might require you to reactivate the software. Setting the memory size minimizes the number of significant changes. 3 Install the new software according to the manufacturers instructions.
What to do next After you pass the point where the program encountered problems, re-enable acceleration. Because disabling acceleration slows down virtual machine performance, you should use it only for getting past the problem with running the program
NOTE Tablet data is only available on guest operating systems and hosts running Windows 8 or higher.
84
VMware, Inc.
Procedure 1 2 Select the Windows 8 virtual machine and click VM > Settings > Options > Guest Isolation Select the tablet sensor data to be shared with the Windows 8 host from the Share sensor input section.
Option Location Orientation Motion Ambient light Description Location information. Detects the orientation of the device. For example in landscape or portrait mode. Detects changes in physical speed. Checks the available light.
Click OK.
Save screenshots to a file. You can select: Always ask for location n Save to Desktop n Browse for custom location
n
By default, Workstation saves screenshots to .png files on the Desktop of the host computer. If you save the file to the desktop, the filename is generated from the virtual machine name and the time at which the screenshot is taken. To save screenshots to .bmp files on Windows hosts, select Always ask for location and specify the file type when you save the screenshot.
3 4
Click OK to save your changes. To take the screenshot, select the virtual machine, select VM > Capture Screen.
VMware, Inc.
85
Select the virtual machine and select VM > Manage > Delete from Disk.
86
VMware, Inc.
You can configure virtual machine power, display, video, and sound card settings, encrypt a virtual machine to secure it from unauthorized use, and restrict the Workstation user interface to limit virtual machine operations. You can also move a virtual machine to another host system or to a different location on the same host system, configure a virtual machine as a VNC server, change the hardware compatibility of a virtual machine, and export a virtual machine to Open Virtualization Format (OVF). This chapter includes the following topics:
n n n n n n n n n n n n n
Configure Power Options and Power Control Settings, on page 87 Set Workstation Display Preferences, on page 89 Configure Display Settings for a Virtual Machine, on page 90 Set Preferences for Unity Mode, on page 92 Setting Screen Color Depth, on page 92 Using Advanced Linux Sound Architecture, on page 93 Encrypting and Restricting Virtual Machines, on page 94 Moving Virtual Machines, on page 98 Configure a Virtual Machine as a VNC Server, on page 103 Change the Hardware Compatibility of a Virtual Machine, on page 106 Clean Up a Virtual Hard Disk on Windows Hosts, on page 107 Export a Virtual Machine to OVF Format, on page 108 Writing and Debugging Applications That Run In Virtual Machines, on page 109
VMware, Inc.
87
Power control settings affect the behavior of the stop, suspend, start, and reset buttons. The behavior you select for a power control appears in a tooltip when you mouse over the button. Power control settings also determine which power options appear in the context menu. For example, if you select the hard setting for the start control, Power On appears in the context menu when you right-click the virtual machine in the library. If you select the soft setting, Start Up Guest appears instead. Not all guest operating systems respond to a shutdown or restart signal. If the guest operating system does not respond to the signal, shut down or restart from within the guest operating system. You can pass X toolkit options when you power on a virtual machine for a Linux guest operating system. See Chapter 7, Using the vmware Command, on page 199 for more information. Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Options tab, select Power. Select a power option. NOTE You cannot configure these options for a shared or remote virtual machine.
Option Enter full screen mode after powering on Close after powering off or suspending Report battery information to guest Description The virtual machine enters full screen mode after it is powered on. The virtual machine closes after it is powered off or suspended. Battery information is reported to the guest operating system. If you run the virtual machine on a laptop in full screen mode, this option enables you to determine when the battery is running low. This option is available only for Workstation 6.x and later virtual machines.
88
VMware, Inc.
Select a setting for the start control. NOTE You cannot configure start control settings for a shared or remote virtual machine.
Option Power On Start Up Guest Description (Hard option) Workstation starts the virtual machine. (Soft option) Workstation starts the virtual machine and VMware Tools runs a script in the guest operating system. On Windows guests, if the virtual machine is configured to use DHCP, the script renews the IP address of the virtual machine. On a Linux, FreeBSD, or Solaris guest, the script starts networking for the virtual machine.
VMware, Inc.
89
Select menu and toolbar options. You can select one or more options, or no options.
Option Use a single button for power controls Description (Windows hosts only) When this setting is selected, the start, stop, suspend, and reset power controls appear on the toolbar as a single button with a drop-down menu. When this setting is deselected, each power control has a separate button on the toolbar. Show the Workstation menus and toolbar on a single bar when Workstation is in windowed mode. Show the edge of the full screen toolbar. When this setting is deselected, the edge of the full screen toolbar is not visible. The full screen toolbar appears for a few seconds when you place your cursor near the top of the screen.
Combine toolbar with menu bar in windowed mode Show toolbar edge when unpinned
Verify that the latest version of VMware Tools is installed in the guest operating system. Verify that the guest operating system in the virtual machine is Windows XP, Windows Vista, Windows 7, or Linux. If you plan to use DirectX 9 accelerated graphics, prepare the host system. See Prepare the Host System to Use DirectX 9 Accelerated Graphics, on page 91.
Procedure 1 2 Select the virtual machine and select VM > Settings. On the Hardware tab, select Display.
90
VMware, Inc.
4 5
(Optional) To run applications that use DirectX 9 accelerated graphics, select Accelerate 3D graphics. Click OK to save your changes.
Verify that the host operating system is Windows XP, Windows Vista, Windows 7, or Linux. On a Windows host, verify that the host has a video card that supports DirectX 9 and the latest DirectX Runtime. On a Linux host, verify that the host has a video card that can run accelerated OpenGL 2.0.
Procedure 1 Upgrade the video drivers on the host system to the latest versions. ATI Graphics drivers are available from the AMD Web site. NVIDIA drivers are available from the NVIDIA Web site. 2 If you have a Windows host system, move the Hardware Acceleration slider to the Full position.
Option Windows XP Windows Vista Windows 7 Description Right-click the desktop and select Properties > Settings > Advanced > Troubleshoot. Right-click the desktop and select Personalize > Display Settings > Advanced Settings > Troubleshoot > Change settings. Right-click the desktop and select Personalize > Screen resolution > Advanced Settings > Troubleshoot > Change settings.
VMware, Inc.
91
If you have a Linux host system, run commands to test the host for compatibility. a Verify that direct rendering is enabled.
glxinfo | grep direct
4 5 6
To control whether the virtual machine Start or Application menu available on the host system desktop, select or deselect Enable applications menu. Click OK to save your changes. (Optional) To minimize the Workstation window when you enter Unity mode, edit the Workstation Unity preference setting. Workstation preference settings apply to all virtual machines. a b c Select Edit > Preferences and select Unity. Select Minimize Workstation when entering Unity . Click OK to save your changes.
92
VMware, Inc.
n n n
8-bit pseudocolor 16 bits per pixel (16 significant bits per pixel) 32 bits per pixel (24 significant bits per pixel)
If the host operating system is in 15-bit color mode, the guest operating system color setting controls offer 15-bit mode in place of 16-bit mode. If the host operating system is in 24-bit color mode, the guest operating system color setting controls offer 24-bit mode in place of 32-bit mode. If you run a guest operating system set for a greater number of colors than the host operating system, the colors in the guest operating system might not be correct or the guest operating system might not be able to use a graphical interface. If these problems occur, you can either increase the number of colors in the host operating system or decrease the number of colors in the guest operating system. To change color settings on the host operating system, power off all virtual machines and close Workstation and then follow standard procedures for changing color settings. How you change color settings in a guest operating system depends on the type of guest operating system. In a Windows guest, the Display Properties control panel offers only those settings that are supported. In a Linux or FreeBSD guest, you must change the color depth before you start the X server, or you must restart the X server after making the changes. For best performance, use the same number of colors in the host and guest operating systems.
The ALSA library version on the host system must be version 1.0.16 or later. The sound card on the host system must support ALSA. The ALSA project Web site maintains a current listing of sound cards and chipsets that support ALSA. The ALSA sound card on the host system must not be muted. The current user must have the appropriate permissions to use the ALSA sound card.
n n
VMware, Inc.
93
Use the alsamixer program to determine whether the current user has the appropriate permissions to access the ALSA sound card. If the user does not have the appropriate permissions, an error similar to alsamixer: function snd_ctl_open failed for default: No such device. appears.
If a user does not have the appropriate permissions to access the ALSA sound card, give the user read, write, and execute permissions to the directory that contains the ALSA sound card. The ALSA sound card is usually located in /dev/snd/. This location can vary depending on the Linux distribution.
audio. n n
To list the name and type of sound chipset on the host system, type the command lspci | grep -I
To list the sound cards on the host system, type the command cat /proc/asound/cards. If the ALSA sound card is muted, use the alsamixer program to unmute it.
94
VMware, Inc.
If you also enable restrictions, users are prevented from modifying the virtual machine. For example, you can enable restrictions to prevent users from removing virtual devices, changing the memory allocation, modifying removable devices, changing the network connection type, and changing the virtual hardware compatibility. A password prompt appears whenever anyone performs any of the following actions on the virtual machine:
n n n
Clicks Edit virtual machine settings or Upgrade Virtual Machine on the virtual machine summary tab Double-clicks a virtual device in the Devices list on the virtual machine summary tab Selects the virtual machine and selects VM > Settings or VM > Manage > Change Hardware Compatibility from the menu bar Clicks or right-clicks on a removable device icon to edit its settings Uses a Removable Devices > device_name menu to edit the settings for a device
n n
Besides restricting users from changing USB device settings, you can also optionally set a policy that prevents users from connecting USB devices to the guest operating system. If you set the policy to allow connecting USB devices, users are not prompted to enter the restrictions password to use the devices. An optional policy includes a setting that forces users to change the encryption password if they move or copy the virtual machine. For example, a teacher might provide a copy of the virtual machine to all students in the class and set this restriction so that all students must create their own encryption password. Another optional policy includes setting an expiration date for a virtual machine. For example, an administrator can create a virtual machine for a temporary employee and set the virtual machine to expire when the temporary employee leaves the company. IMPORTANT Make sure you record the encryption password and the restrictions password. Workstation does not provide a way to retrieve these passwords if you lose them. Encryption applies to all snapshots in a virtual machine. If you restore a snapshot in an encrypted virtual machine, the virtual machine remains encrypted whether or not it was encrypted when the snapshot was taken. If you change the password for an encrypted virtual machine, the new password applies to any snapshot you restore, regardless of the password in effect when the snapshot was taken.
n
Virtual Machine Encryption Limitations on page 95 The encryption feature has certain limitations. Encrypt and Restrict a Virtual Machine on page 96 You can encrypt a virtual machine to secure it from unauthorized use. You can also enable restrictions to prevent users from changing configuration settings.
Remove Encryption from a Virtual Machine on page 97 You can remove encryption from a virtual machine. Change the Password for an Encrypted Virtual Machine on page 98 You can change the password for an encrypted virtual machine. Changing the password does not reencrypt the virtual machine.
You must power off a virtual machine before you add or remove encryption or change the encryption password. The encryption feature supports virtual machines that have virtual hardware version 5.x or later only. You cannot create a linked clone from an encrypted virtual machine.
n n
VMware, Inc.
95
If more than one unencrypted virtual machine shares the same virtual disk and you encrypt one of the virtual machines, the virtual disk becomes unusable for the unencrypted virtual machine. You cannot encrypt a shared or remote virtual machine. You cannot upload an encrypted virtual machine to a remote server. You cannot share an encrypted virtual machine.
n n n
Power off the virtual machine. Familiarize yourself with the encryption feature limitations. See Virtual Machine Encryption Limitations, on page 95. Familiarize yourself with restricted virtual machine expirations. See Restricted Virtual Machine Expiration, on page 97.
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Options tab, select Access Control. Click Encrypt. Click Encrypt, enter an encryption password, and click Encrypt. The encryption password is required to gain access to the virtual machine. It does not prevent the user from changing the virtual machine configuration. Turn on restrictions and enter a password to prevent the user from changing the virtual machine configuration. IMPORTANT Record the encryption password you use. If you forget the password, Workstation does not provide a way to retrieve it. Workstation begins encrypting the virtual machine. After the encryption process is complete, you can optionally set a restrictions password. 5 (Optional) Select the Enable Restrictions check box to turn on restrictions.
Option Restrictions password Require the user to change the encryption password Description You can set a password that prevents the user of the virtual machine from changing the virtual machine configuration. Requires the user to change the encrypted password for the virtual machine if the virtual machine is moved or copied.
96
VMware, Inc.
Description USB device connections are allowed. Set a date and time for the virtual machine to expire by clicking the down arrow and selecting an expiration date. Click into the time field and enter the expiration time. To enter an alert message: a Click Advanced. b Enter text to be displayed when the virtual machine expires. c (Optional) Select the check box to show a message when the virtual machine is about to expire and enter message text. d (Optional) Set the number of days before expiration that the message is displayed. e Click OK.
IMPORTANT Record the restrictions password you use. If you forget the password, Workstation does not provide a way to retrieve it. 6 Click OK in the Virtual Machine Settings dialog box.
Power off the virtual machine. Remove any sensitive information from the virtual machine.
Procedure 1 2 3 4 5 Select the virtual machine and select VM > Settings. On the Options tab, select Encryption. Click Remove Encryption. Type the encryption password. Click Remove Encryption.
VMware, Inc.
97
Move a Virtual Machine to a New Location or Host on page 99 You can move a virtual machine that was created in Workstation to a different host system or to a different location on the same host system. You can also move a virtual machine to a host system that has a different operating system.
Use a Virtual Machine in VMware Player on page 100 VMware Player opens and plays virtual machines created in other VMware products. On Windows hosts, Player can also open and play Microsoft Virtual PC and Virtual Server virtual machines and Symantec LiveState Recovery and system images.
Configure a Virtual Machine for Compatibility on page 101 When you create a virtual machine that you intend to distribute to other users, you should configure the virtual machine for maximum compatibility with all expected host systems. Users might be limited in their ability to make changes in a virtual machine so that it is compatible with their host systems.
Using the Virtual Machine UUID on page 101 Each virtual machine has a universal unique identifier (UUID). The UUID is generated when you initially power on the virtual machine.
98
VMware, Inc.
Familiarize yourself with how Workstation generates UUIDs for moved virtual machines. See Using the Virtual Machine UUID, on page 101. If you are moving the virtual machine to a different host system, familiarize yourself with the limitations of moving a virtual machine to a new host. see Limitations of Moving a Virtual Machine to a Different Host, on page 99. If you are moving a linked clone or a parent virtual machine, verify that the clone can access the parent virtual machine. See Moving Linked Clones, on page 100 for more information. Make backup copies of the files in the virtual machine directory for the virtual machine that you are moving.
Procedure 1 Verify that all virtual machine files are stored in the virtual machines directory. Some files might reside outside of the virtual machines directory. 2 3 4 Shut down the guest operating system and power off the virtual machine. Copy the virtual machine files to the new location. If you moved the virtual machine to a different location on the same host system, remove the virtual machine from the library, select File > Open, and browse to the virtual machine configuration (.vmx) file in its new location. If you moved the virtual machine to a different host system, start Workstation on the new host system, select File > Open and browse to the virtual machine configuration (.vmx) file. When you are certain that the virtual machine works correctly in its new location, delete the virtual machine files from its original location. If the virtual machine does not work correctly, verify that you copied all of the virtual machine files to the new location. You can examine virtual machine device settings to determine whether any associated files point to locations that cannot be accessed from the new location.
5 6 7
The guest operating system might not work correctly if you move a virtual machine to a host system that has significantly different hardware, for example, if you move a virtual machine from a 64-bit host to a 32-bit host or from a multiprocessor host to a uniprocessor host.
VMware, Inc.
99
Workstation 7.x and later virtual machines support up to eight-way virtual symmetric multiprocessing (SMP) on multiprocessor host systems. You can assign up to eight virtual processors to virtual machines running on host systems that have at least two logical processors. If you attempt to assign two processors to a virtual machine that is running on a uniprocessor host system, a warning message appears. You can disregard this message and assign two processors to the virtual machine, but you must move it to a host that has at least two logical processors before you can power it on. You can move a virtual machine from a 32-bit host to a 64-bit host. You cannot move a virtual machine from a 64-bit host to a 32-bit host unless the 32-bit host has a supported 64-bit processor.
2 3
Select File > Open a Virtual Machine and browse to the virtual machine configuration (.vmx) file. Select the virtual machine and select Virtual Machine > Power > Play Virtual Machine to start the virtual machine in Player.
100
VMware, Inc.
Install VMware Tools in the virtual machine. VMware Tools significantly improves the users experience working with the virtual machine.
Determine which virtual devices are actually required, and do not include any that are not needed or useful for the software you are distributing with the virtual machine. Generic SCSI devices are typically not appropriate.
To connect a physical device to a virtual device, use the Auto detect options when you configure the virtual machine. The Auto detect options allow the virtual machine to adapt to the users system, and they work whether the host operating system is Windows or Linux. Users who have no physical device receive a warning message.
To connect a CD-ROM or floppy to an image file that you ship with the virtual machine, make sure the image file is in the same directory as the virtual machine. A relative path, rather than an absolute path, is used.
For both a physical CD-ROM and an image, provide two virtual CD-ROM devices in the virtual machine. For example, Player does not provide an option to switch a single CD-ROM device between a physical CD-ROM and an image, and the user cannot switch between them if you plan to ship multiple images.
Choose a reasonable amount of memory to allocate to the virtual machine. For example, if the host system does not have enough physical memory to support the memory allocation, the user cannot power on the virtual machine.
Choose a reasonable screen resolution for the guest. A user is likely to find it easier to increase the resolution manually than to deal with a display that exceeds the users physical screen size.
To ensure that CD-ROMs work properly in virtual machines that you intend to distribute and play on Player, configure CD-ROM devices in legacy mode. Some host operating systems do not support CD-ROMs in non-legacy mode.
When you configure a snapshot option for the virtual machine, select Just power off or Revert to snapshot. The Revert to snapshot option is useful if you want to distribute a demo virtual machine that resets itself to a clean state when it is powered off. Player does not allow taking snapshots.
VMware, Inc.
101
If you do not move or copy the virtual machine to another location, the UUID remains constant. When you power on a virtual machine that was moved or copied to a new location, you are prompted to specify whether you moved or copied the virtual machine. If you indicate that you copied the virtual machine, the virtual machine receives a new UUID. Suspending and resuming a virtual machine does not trigger the process that generates a UUID. The UUID in use at the time the virtual machine was suspended remains in use when the virtual machine is resumed, even if it was copied or moved. You are not prompted to specify whether you moved or copied the virtual machine until the next time you reboot the virtual machine.
102
VMware, Inc.
What to do next If you do not VNC clients use to use the US101 keyboard map (U.S. English) when they connect to the virtual machine, specify a different language. See Specify a Language Keyboard Map for VNC Clients, on page 103.
Verify that the virtual machine is set to act as a VNC server. Determine the language code to use. See Language Codes, on page 104.
VMware, Inc.
103
Procedure 1 In a text editor, open the virtual machine configuration file (.vmx) file for the virtual machine and add the RemoteDisplay.vnc.enabled and RemoteDisplay.vnc.port properties. a b Set RemoteDisplay.vnc.enabled to TRUE. Set RemoteDisplay.vnc.port to the port number to use.
For example:
RemoteDisplay.vnc.enabled = "TRUE" RemoteDisplay.vnc.port = "portnumber"
Determine the location of the keymap file to use. Default keymap files are included in the Workstation installation directory.
Host System Windows XP host Windows Vista and Windows 7 hosts Linux host Keymap File Location C:\Documents and Settings\All Users\Application Data\VMware\vnckeymap C:\ProgramData\VMware\vnckeymap C:\ProgramData\VMware\vnckeymap
In the virtual machine configuration (.vmx) file, add a property to specify the location of the keymap file.
Option To use the default keymap file included in the Workstation installation directory To use a keyboard map file in another location Description Add RemoteDisplay.vnc.keyMap = "xx", where xx is the code for the language to use, such as jp for Japanese. Add RemoteDisplay.vnc.keyMapFile = "filepath", where filepath is the absolute file path.
Language Codes
When you specify a language keyboard map for VNC clients, you must specify a language code. Table 31. Language Codes
Code de de-ch es fi fr fr-be fr-ch is it jp nl-be Language German German (Switzerland) Spanish Finnish French French (Belgium) French (Switzerland) Icelandic Italian Japanese Dutch (Belgium)
104
VMware, Inc.
You cannot take or revert to snapshots. You cannot power on, power off, suspend, or resume the virtual machine. You can shut down the guest operating system. Shutting down might power off the virtual machine. You cannot copy and paste text between the host system and the guest operating system. You cannot change virtual machine settings. Remote display does not work well if you are also using the 3D feature.
n n n
Prerequisites
n
Configure the virtual machine as a VNC server. See Configure a Virtual Machine as a VNC Server, on page 103. Determine the machine name or IP address of the host system on which the virtual machine is running and, if required, the VNC port number and password.
Procedure 1 Install a VNC client on your computer. Open-source versions of VNC are freely and publicly available. You can use any VNC client, but not a Java viewer in a browser. 2 3 Start the VNC client on your computer. Verify that the client is set for hextile encoding. For example, if you use RealVNC Viewer, select Hextile under the Preferred Encoding option. 4 Set the VNC client to use all colors. For example, if you use RealVNC Viewer, select Full (all available colours) under the Colour Level option. 5 When prompted for the VNC server name, type the name or IP address and the port number of the host system where the virtual machine is running. For example: machine_name:port_number 6 Type a password if one is required.
VMware, Inc.
105
Select the virtual machine and select VM > Manage > VNC Connections.
106
VMware, Inc.
Power on the virtual machine. If you upgrade a virtual machine that contains a Windows 98 operating system to a Workstation 6.5 or later virtual machine, you must install a PCI-PCI bridge driver when you power on the virtual machine. NOTE Because Workstation 6.5 and later versions have 32 more PCI-PCI bridges than Workstation 6, you might need to respond to the prompt 32 or 33 times.
7 8
If the NIC settings in the guest operating system have changed, use the NIC settings that you recorded to change them back to their original settings. If the virtual machine does not have the latest version of VMware Tools installed, update VMware Tools. You should update VMware Tools to the version included with the latest version of Workstation, even if you upgraded the virtual machine to an earlier version of Workstation. Do not remove the older version of VMware Tools before installing the new version. NOTE If you are upgrading a virtual machine that runs from a physical disk, you can safely ignore this message: Unable to upgrade drive_name. One of the supplied parameters is invalid.
For Workstation 5.x, 6, 6.5, 7.x, and later virtual machines, you can change the version of the original virtual machine or create a full clone so that the original virtual machine remains unaltered. For Workstation 4 virtual machines, Workstation changes the original virtual machine. If you upgrade a Workstation 4 or 5.x virtual machine that is compatible with ESX Server to Workstation 6, 6.5, 7.x, or later, you cannot use the Change Hardware Compatibility wizard to later downgrade the virtual machine to an ESX-compatible virtual machine. When you upgrade a Windows XP, Windows Server 2003, Windows Vista, or Windows 7 virtual machine, the Microsoft product activation feature might require you to reactivate the guest operating system. Using Workstation 9 or earlier, you cannot change the hardware compatibility of a shared or remote virtual machine. Using Workstation 10 and later, you can change the hardware compatibility of a shared or remote virtual machine. However, you cannot down grade a previously created virtual machine.
You can use the Clean up disks command with virtual machines that have snapshots or are linked clones or parents of a linked clone. The Clean up disks command reclaims more disk space than the Compact command.
VMware, Inc.
107
The Clean up disks command reclaims disk space from the current state of the virtual machine, from any powered-off snapshots, and from any powered-on snapshots where the guest operating system is Windows XP or later and you have installed a version of VMware Tools that is compatible with Workstation 8 or later.
n
Unlike the Defragment command and the shrink command provided by VMware Tools, the Clean up disks command does not require any extra disk space on the host. The Clean up disks command operates directly on the virtual disk (.vmdk) files.
NOTE This command is not available for shared or remote virtual machines. Prerequisites
n
Verify that you are using a Windows host and that the guest operating system uses NTFS. (NTFS is standard in Windows XP or later operating systems.) This feature works on all NTFS hard disks but reclaims more disk space if the operating system is Windows XP or later. Shut down or power off the virtual machine. You cannot use this command while the virtual machine is powered on or suspended.
Procedure 1 2 Select the virtual machine in the library. From the menu bar, select VM > Manage > Clean Up Disks. Workstation calculates how much space can be reclaimed, and either the Clean Up Now button becomes available or a message appears, explaining why the command is unavailable. 3 Click Clean Up Now to start the process. A dialog box reports the progress of the clean-up process.
Verify that the virtual machine is not encrypted. You cannot export an encrypted virtual machine to OVF format. Verify that the virtual machine is powered off.
Procedure 1 2 3 Select the virtual machine and select File > Export to OVF. Type a name for the OVF file and specify a directory in which to save it. Click Save to start the OVF export process. The export process can take several minutes. A status bar indicates the progress of the export process.
108
VMware, Inc.
VProbes Tool
Verify that Debugging Tools for Windows is installed on the host system and that it supports debugging over a pipe. It must be version 5.0.18.0 or later. Verify that a serial port is configured for the virtual machine. See Configuring Virtual Ports, on page 125.
Procedure 1 2 3 4 Configure the named pipe on the target virtual machine and select This end is the server. Power on the virtual machine. Select the virtual machine, select VM > Removable Devices, and verify that the serial port is connected. If the serial port is not reported as \\.\pipe\namedpipe, select the virtual serial port and click Connect.
VMware, Inc.
109
On the host system, type the debugger command. For example: debugger -k com:port=\\.\pipe\namedpipe,pipe The debugger value is WinDbg or KD.
Download and install WinDbg or KD in the Windows guest operating system that you plan to use as the debugger virtual machine. Verify that a serial port is configured for the virtual machine. See Configuring Virtual Ports, on page 125.
Procedure 1 2 3 4 Power on both virtual machines. Select the virtual machine and select VM > Removable Devices to verify that the serial port is connected. If the serial port is not connected, select the virtual serial port and click Connect. In the debugger virtual machine, start debugging by using WinDbg or KD.
110
VMware, Inc.
You can use Workstation to add devices to virtual machines, including DVD and CD-ROM drives, floppy drives, USB controllers, virtual and physical hard disks, parallel and serial ports, generic SCSI devices, and processors. You can also modify settings for existing devices. This chapter includes the following topics:
n n n n n n n n n
Configuring DVD, CD-ROM, and Floppy Drives, on page 111 Configuring a USB Controller, on page 113 Configuring and Maintaining Virtual Hard Disks, on page 116 Adding a Physical Disk to a Virtual Machine, on page 122 Configuring Virtual Ports, on page 125 Configuring Generic SCSI Devices, on page 129 Configuring Eight-Way Virtual Symmetric Multiprocessing, on page 133 Configuring Keyboard Features, on page 134 Modify Hardware Settings for a Virtual Machine, on page 143
VMware, Inc.
111
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, click Add. In the Add Hardware wizard, select DVD/CD Drive. Select a physical drive or ISO image file to connect to the drive.
Option Use physical drive Use ISO image Description The virtual machine uses a physical drive. The drive connects to an ISO image file.
6 7
To connect the drive or ISO image file to the virtual machine when the virtual machine powers on, select Connect at power on. Click Finish to add the drive to the virtual machine. The drive initially appears as an IDE drive to the guest operating system.
8 9
(Optional) To change which SCSI or IDE device identifier to use for the drive, select the drive and click Advanced. Click OK to save your changes.
If you selected the physical floppy drive media type, select a specific floppy drive or select Auto detect to allow Workstation to auto-detect the drive to use.
112
VMware, Inc.
6 7 8 9 10
If you selected the floppy image or blank floppy image media type, type the name or browse to the location of a floppy image (.flp) file. To connect the drive or floppy image file to the virtual machine when the virtual machine powers on, select Connect at power on. Click Finish to add the drive to the virtual machine. Click OK to save your changes. If you added a second floppy drive to the virtual machine, enable the drive in the virtual machine BIOS. a b c Select the virtual machine and select VM > Power > Power On to BIOS. Select Legacy Diskette B: and use the plus (+) and minus (-) keys on the numerical keypad to select the type of floppy drive to use. Press F10 to save the settings.
USB 1.1 UHCI (Universal Host Controller Interface) is supported for all virtual machine hardware versions. USB 2.0 EHCI (Enhanced Host Controller Interface) controllers are supported if the virtual machine hardware is compatible with Workstation 6 and later virtual machines.
VMware, Inc.
113
USB 3.0 xHCI (Extensible Host Controller Interface) support is available for Linux guests running kernel version 2.6.35 or later and for Windows 8 guests. The virtual machine hardware must be compatible with Workstation 8 or later virtual machines.
For USB 2.0 or 3.0 support, you must select USB 2.0 or 3.0 compatibility by configuring virtual machine settings for the USB controller. USB 2.0 and 3.0 devices are high-speed devices that include the latest models of USB flash drives, USB hard drives, iPods, and iPhone. If you select USB 2.0 compatibility, when a USB 2.0 device connects to a USB port on the host system, the device connects to the EHCI controller and operates in USB 2.0 mode. A USB 1.1 device connects to the UHCI controller and operates in USB 1.1 mode. If you enable USB 3.0, the xHCI controller can support all USB devices, including USB 1.1, 2.0, and 3.0 devices. Although the host operating system must support USB, you do not need to install device-specific drivers for USB devices in the host operating system to use those devices only in the virtual machine. Windows NT and Linux kernels earlier than 2.2.17 do not support USB. VMware has tested a variety of USB devices. If the guest operating system has the appropriate drivers, you can use many different USB devices, including PDAs, Smart phones, printers, storage devices, scanners, MP3 players, digital cameras, memory card readers, and isochronous transfer devices, such as webcams, speakers, and microphones. You can connect USB human interface devices (HIDs), such as the keyboard and mouse, to a virtual machine by enabling the Show all USB input devices option. If you do not select this option, these devices do not appear in the Removable Devices menu and are not available to connect to the virtual machine, even though they are plugged in to USB ports on the host system. See Connect USB HIDs to a Virtual Machine, on page 63 for information on connecting HIDs.
114
VMware, Inc.
Configure the USB connection settings. You can select multiple settings. NOTE You typically cannot configure USB connection settings for a shared or remote virtual machine.
Option USB Compatibility Automatically connect new USB devices Show all USB input devices Description Selecting USB 2.0 or 3.0 enables support for isochronous USB devices, including Web cams, speakers, and microphones. Connect new USB devices to the virtual machine. If this setting is not selected, new USB devices are connected only to the host system. Human interface devices (HIDs), such as USB 1.1 and 2.0 mouse and keyboard devices, appear in the Removable Devices menu. Icons for HIDs appear in the status bar. An HID that is connected to the guest operating system is not available to the host system. The virtual machine must be powered off when you change this setting. Enable support for Bluetooth devices.
Verify that the virtual machine is a Workstation 6.x or later virtual machine. Isochronous USB devices are supported in Workstation 6.x and later virtual machines only. Verify that the guest operating system supports USB 2.0 devices or 3.0 devices. On a Windows XP guest operating system, verify that the latest service pack is installed. If you use Windows XP with no service packs, the driver for the EHCI controller cannot be loaded.
n n
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Hardware tab, select USB Controller. From the USB Compatibility list, select USB 2.0 or USB 3.0.
Option USB 2.0 USB 3.0 Description Available if the virtual machine hardware is compatible with Workstation 6 and later virtual machines. Available for Linux guests running kernel version 2.6.35 or later and for Windows 8 guests. The virtual machine hardware must be compatible with Workstation 8 and later virtual machines.
VMware, Inc.
115
Configuring a Virtual Hard Disk on page 117 You can configure virtual hard disks as IDE or SATA disks for any guest operating system. You can also set up a virtual hard disk as a SCSI disk for any guest operating system that has a driver for the LSI Logic or BusLogic SCSI adapter. You determine which SCSI adapter to use when you create a virtual machine.
Compact a Virtual Hard Disk on page 119 Compacting a virtual hard disk reclaims unused space in the virtual disk. If a disk has empty space, this process reduces the amount of space the virtual disk occupies on the host drive.
Expand a Virtual Hard Disk on page 119 You can add storage space to a virtual machine by expanding its virtual hard disk. Defragment a Virtual Hard Disk on page 120 Like physical disk drives, virtual hard disks can become fragmented. Defragmenting disks rearranges files, programs, and unused space on the virtual hard disk so that programs run faster and files open more quickly. Defragmenting does not reclaim unused space on a virtual hard disk.
Remove a Virtual Hard Disk from a Virtual Machine on page 121 Removing a virtual hard disk disconnects it from a virtual machine. It does not delete files from the host file system.
Using Virtual Disk Manager on page 121 Virtual Disk Manager (vmware-diskmanager) is a Workstation utility that you can use to create, manage, and modify virtual disk files from the command line or in scripts.
Using Legacy Virtual Disks on page 121 You can use the current version of Workstation in a mixed environment with virtual machines that were created with earlier versions of Workstation or with other VMware products.
Using Lock Files to Prevent Consistency Problems on Virtual Hard Disks on page 122 A running virtual machine creates lock files to prevent consistency problems on virtual hard disks. Without locks, multiple virtual machines might read and write to the disk, causing data corruption.
Moving a Virtual Hard Disk to a New Location on page 122 A key advantage of virtual hard disks is their portability. Because the virtual hard disks are stored as files on the host system or a remote computer, you can move them easily to a new location on the same computer or to a different computer.
116
VMware, Inc.
VMware, Inc.
117
(Optional) To exclude the disk from snapshots, select Independent for the mode and select a persistence option.
Option Persistent Description Disks in persistent mode behave like conventional disks on a physical computer. All data written to a disk in persistent mode is written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you always restart the virtual machine with a virtual disk in the same state. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset the virtual machine.
Nonpersistent
Set the capacity for the new virtual hard disk. You can set a size between 0.001GB and 8TB for a virtual disk.
Store virtual disk as a single file Split virtual disk into multiple files
9 10
Accept the default filename and location, or browse to and select a different location. Click Finish to add the new virtual hard disk. The wizard creates the new virtual hard disk. The disk appears to the guest operating system as a new, blank hard disk.
11 12
Click OK to save your changes. Use the guest operating system tools to partition and format the new drive.
118
VMware, Inc.
Power off the virtual machine. Verify that the virtual disk is not mapped or mounted. You cannot compact a virtual disk while it is mapped or mounted. Verify that the disk space is not preallocated for the virtual hard disk. If the disk space was preallocated, you cannot compact the disk. If the virtual hard disk is an independent disk, verify that it is in persistent mode.
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, select the virtual hard disk to compact. Select Utilities > Compact. Click OK after the disk compacting process is complete.
VMware, Inc.
119
Prerequisites
n n
Power off the virtual machine. Verify that the virtual disk is not mapped or mounted. You cannot expand a virtual disk while it is mapped or mounted. Verify that the virtual machine has no snapshots. Verify that the virtual machine is not a linked clone or the parent of a linked clone.
n n
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, select the virtual hard disk to expand. Select Utilities > Expand. Set the new maximum size for the virtual disk. You can set a size between 0.001GB and 2TB for a virtual disk. 5 6 Select Expand. Click OK after the disk expansion process is complete.
What to do next Use a disk management tool to increase the disk partition size to match the expanded virtual disk size.
Verify that there is adequate free working space on the host system. For example, if the virtual hard disk is contained in a single file, there must be free space equal to the size of the virtual disk file. Other virtual hard disk configurations require less free space. Verify that the virtual disk is not mapped or mounted. You cannot defragment a virtual disk while it is mapped or mounted.
Procedure 1 2 Run a disk defragmentation utility in the guest operating system. If disk space is not preallocated for the virtual hard disk, use the Workstation defragmentation tool to defragment it. a b c d e 3 Power off the virtual machine. Select the virtual machine and select VM > Settings. On the Hardware tab, select Hard Disk. Select Utilities > Defragment. When the defragmentation process is finished, click OK.
120
VMware, Inc.
VMware, Inc.
121
122
VMware, Inc.
After you configure a virtual machine to use one or more partitions on a physical disk, do not modify the partition tables by running fdisk or a similar utility in the guest operating system. If you use fdisk or a similar utility on the host operating system to modify the partition table of the physical disk, you must recreate the virtual machine physical disk. All files that were on the physical disk are lost when you modify the partition table. IMPORTANT You cannot use a physical disk to share files between the host computer and a guest operating system. Making the same partition visible to both the host computer and a guest operating system can cause data corruption. Instead, use shared folder to share files between the host computer and a guest operating system.
Check the guest operating system documentation regarding the type of partition on which the guest operating system can be installed. On Windows Vista and Windows 7 hosts, you cannot use the system partition, or the physical disk that contains it, in a virtual machine. DOS, Windows 95, and Windows 98 operating systems must be installed on the first primary partition. Other operating systems, such as Linux, can be installed on a primary or an extended partition on any part of the drive.
3 4
If the physical partition or disk contains data that you need in the future, back up the data. If you use a Windows host IDE disk in a physical disk configuration, verify that it is not configured as the slave on the secondary IDE channel if the master on that channel is a CD-ROM drive.
VMware, Inc.
123
On a Windows XP or Windows Server 2003 host, if the host is using a dynamic disk, use the disk management tool to change the dynamic disk to a basic disk. You cannot use a dynamic disk as a physical disk in a virtual machine. a b On the host, select Start > Settings > Control Panel > Administrative Tools > Computer Management > Disk Management. Delete all logical volumes on the disk. This action destroys all data on the disk. c d Right-click the disk icon and select Revert to Basic Disk. Partition the disk.
On a Linux host, set the device group membership or device ownership appropriately. a Verify that the master physical disk device or devices are readable and writable by the user who runs Workstation. Physical devices, such as /dev/hda (IDE physical disk) and /dev/sdb (SCSI physical disk), belong to group-id disk on most distributions. If this is the case, you can add VMware Workstation users to the disk group. Another option is to change the owner of the device. Consider all the security issues involved in this option. b Grant VMware Workstation users access to all /dev/hd[abcd] physical devices that contain operating systems or boot managers. When permissions are set correctly, the physical disk configuration files in Workstation control access. This reliability provides boot managers access to configuration files and other files they might need to boot operating systems. For example, LILO needs to read /boot on a Linux partition to boot a non-Linux operating system that might be on another drive.
Perform the appropriate preparation tasks. See Prepare to Use a Physical Disk or Unused Partition, on page 14. Power off the virtual machine.
Procedure 1 2 3 4 5 6 7 Select the virtual machine and select VM > Settings. On the Hardware tab, click Add. Select Hard Disk. Select Use a physical disk. If a warning message appears, click OK. Select the physical hard disk to use from the drop-down menu. Select whether to use the entire disk or individual partitions.
124
VMware, Inc.
If you selected individual partitions, select the partitions. The virtual machine can access only the partitions that you select. The guest operating system might be able to detect other partitions, but you cannot mount, access, or format those partitions.
9 10 11
Accept the default filename and location for the virtual disk (.vmdk) file, or browse to a different location. Click Finish to add the physical disk to the virtual machine. Use the tools in the guest operating system to format any partitions on the physical disk that are not formatted for the guest operating system.
Add a Virtual Parallel Port to a Virtual Machine on page 125 You can attach up to three bidirectional parallel (LPT) ports to a virtual machine. Virtual parallel ports can output to parallel ports or to files on the host system.
Configure a Virtual Parallel Port on a Linux 2.6.x Kernel Host on page 126 Linux 2.6.x kernels that support parallel ports use the modprobe modulename and modprobe parport_pc modules. Workstation requires that the parallel port PC-style hardware option (CONFIG_PARPORT_PC) is built and loaded as a kernel module.
Configure Permissions for a Parallel Port Device on a Linux Host on page 127 Some Linux distributions do not grant a virtual machine access to the lp and parport devices by default. If this is the case on your Linux host system, you must add the VMware user to the group that has permission to access those devices.
Troubleshoot ECR Errors for Parallel Ports on page 127 A parallel port on the host system does not have an Extended Control Register (ECR). Add a Virtual Serial Port to a Virtual Machine on page 128 You can add up to four serial (COM) ports to a virtual machine. Virtual serial ports can output to physical serial ports, files, or named pipes.
Change the Input Speed of a Serial Connection on page 129 You can increase the speed of a serial connection over a pipe to a virtual machine.
VMware, Inc.
125
Prerequisites
n
If you are using a Linux host system that has a 2.6.x kernel, verify that the parallel port PC-style hardware option (CONFIG_PARPORT_PC) is built and loaded as a kernel module. See Configure a Virtual Parallel Port on a Linux 2.6.x Kernel Host, on page 126. If you are using a Linux host system that does not grant virtual machines access to the lp and parport devices by default, add the VMware user to the group that has permission to access those devices. See Configure Permissions for a Parallel Port Device on a Linux Host, on page 127. Power off the virtual machine.
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, click Add. In the New Hardware wizard, select Parallel Port. Select where the virtual parallel port sends output.
Option Use a physical parallel port Use output file Description Select a parallel port on the host system. Send output from the virtual parallel port to a file on the host system. Either locate an existing output file or browse to a directory and type a filename to create a new output file.
5 6
To connect the virtual parallel port to the virtual machine when the virtual machine powers on, select Connect at power on. Click Finish to add the virtual parallel port to the virtual machine.
When a parallel port is configured for a virtual machine, most guest operating systems detect the port at installation time and install the required drivers. Some operating systems, including Linux, Windows NT, and Windows 2000, detect the ports at boot time. What to do next If the guest operating system is Windows 95 or Windows 98, run the Add New Hardware wizard to detect and add the parallel port.
126
VMware, Inc.
If necessary, load the parallel port modules. For example: modprobe parport_pc && modprobe ppdev This command inserts the modules that are required for a parallel port.
If the lp module is loaded, run the rmmod command as root to remove it. For example: rmmod lp The virtual machine cannot use the parallel port correctly if the lp module is loaded.
Comment out the line that refers to the lp module in the /etc/modules.conf or /etc/conf.modules file. The name of the configuration file depends on the Linux distribution. When the line is commented out, the configuration file no longer starts the lp module when you reboot the host system.
To make sure that the proper modules for the parallel port are loaded at boot time, add the following line to the /etc/modules.conf or /etc/conf.modules file.
alias parport_lowlevel parport_pc
VMware, Inc.
127
Find the parallel port field and enable Extended Capability Port (ECP) mode or a combination of modes that includes ECP. Most modern computers support ECP mode.
If you selected Output to named pipe, configure the named pipe. a (Windows host) Use the default pipe name, or type another pipe name. The pipe name must begin with \\.\pipe\ and must be the same on both the server and the client. For example: \\.\pipe\namedpipe b (Linux host) Type /tmp/socket or another UNIX socket name in the first text box. The pipe name must be the same on both the server and the client. c To send debugging information to an application on the host system, select This end is the server from the first drop-down menu and select The other end is an application from the second dropdown menu. To send debugging information to another virtual machine, select This end is the server from the first drop-down menu and The other end is a virtual machine from the second drop-down menu.
d 6 7
To connect the port to the virtual machine when the virtual machine powers on, select Connect at power on. Click Finish to add the virtual serial port to the virtual machine.
128
VMware, Inc.
(Optional) On the Hardware tab, select the new serial port, select Yield CPU on poll, and click OK. This option is useful if you are using debugging tools that communicate over a serial connection. If the serial port in the guest operating system is being used in polled mode rather than interrupt mode, you might notice performance issues. This option forces the virtual machine to yield processor time if the only task it is trying to do is poll the virtual serial port.
What to do next If you set up a connection between two virtual machines, the first virtual machine is set up as the server. Repeat this procedure for the second virtual machine, but set it up as the client by selecting This end is the client when you configure the named pipe.
Use the guest operating system to configure the serial port for the highest setting supported by the application that you are running in the virtual machine. Power off the virtual machine and exit Workstation.
Procedure 1 In a text editor, add the following line to the virtual machine configuration (.vmx) file.
serialport_number.pipe.charTimePercent = "time"
port_number is the number of the serial port, starting from 0. The first serial port is serial0. time is a positive integer that specifies the time taken to transmit a character, expressed as a percentage of the default speed set for the serial port in the guest operating system. For example, a setting of 200 forces the port to take twice as long for each character, or send data at half the default speed. A setting of 50 forces the port to take only half as long for each character, or send data at twice the default speed. 2 Assuming that the serial port speed is set appropriately in the guest operating system, experiment with this setting by starting with a value of 100 and gradually decreasing it until you find the highest speed at which the connection works reliably.
VMware, Inc.
129
Add a Generic SCSI Device to a Virtual Machine on page 130 You must add a generic SCSI device to the virtual machine to map virtual SCSI devices on a virtual machine to physical generic SCSI devices on the host system. You can add up to 60 generic SCSI devices to a virtual machine.
Install the BusLogic Driver in a Windows NT 4.0 Guest on page 131 Generic SCSI devices use the virtual Mylex (BusLogic) BT/KT-958 compatible host bus adapter provided by the virtual machine. On Windows NT 4.0, you might need to install the driver manually if it is not already installed for a virtual SCSI disk. Install the driver before you add a generic SCSI device.
Avoiding Concurrent Access Problems for SCSI Devices on Linux Hosts on page 131 Workstation makes sure that multiple programs do not use the same /dev/sg entry at the same time, but it cannot always ensure that multiple programs do not use the /dev/sg entry and the traditional /dev entry at the same time.
Troubleshoot Problems Detecting Generic SCSI Devices on page 131 When you add a generic SCSI device to a virtual machine, the device does not appear in the list of available SCSI devices.
On a Windows host system, run Workstation as a user who has administrator access. On a Linux host system, log in as a user who has read and write permissions for the SCSI device. Also, verify that version 2.1.36 or later of the SCSI Generic driver (sg.o) is installed. This version of the SCSI Generic driver is included with Linux kernel 2.2.14 and later. On a Windows 95, Windows 98, or Windows Me virtual machine, install the latest Mylex (BusLogic) BT/KT-958 compatible host bus adapter. This driver overrides the driver that Windows chooses as the best driver, but it corrects known problems. You can download the driver from the LSI Web site. On a 32-bit Windows XP virtual machine, install the special SCSI driver that VMware provides. You can download the driver from the VMware Web site. On a Windows NT 4.0 virtual machine, install the BusLogic MultiMaster PCI SCSI Host Adapters driver. See Install the BusLogic Driver in a Windows NT 4.0 Guest, on page 131.
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, click Add. In the Add Hardware wizard, select Generic SCSI Device. Select the physical SCSI device to map to the virtual SCSI device. When you type the path to the SCSI device on a Linux host, do not enter /dev/st0 or /dev/sr0. 5 6 To connect the device when the virtual machine powers on, select Connect at power on. Click Finish to add the device.
130
VMware, Inc.
On the Hardware tab, select the SCSI device identifier to use for the device from the Virtual device node drop-down menu and click OK. For example, if you select SCSI 0:2, the guest operating system sees the drive as ID 2 on controller 0.
VMware, Inc.
131
Cause A driver for that device is not installed on the host system, a driver on the host system prevents the device from being detected, or the virtual machine uses a device for which there are no drivers available to the host operating system. Solution 1 Determine the SCSI bus number that the device uses on the host system. The SCSI bus is assigned a number by the host operating system after all IDE buses are assigned numbers. For example, if you have two IDE buses, they are numbered 0 and 1. The first SCSI bus is assigned bus number 2. You can use a third-party tool, such as winobj, to determine the SCSI bus number. 2 Determine the target ID that the device uses in the virtual machine and on the host system. This ID is usually set by some jumpers or switches on the device. 3 Determine whether the device driver for the device is installed on the host system. If the device driver is not installed, install it and see if the device appears. To avoid a device-in-use conflict between the host and guest, you might not want to install the driver on the host system. 4 If an original SCSI device driver is already installed on the host system, disable it. Some Windows operating systems do not process the send command from the adapter if the device driver owns the device. 5 6 Power off the virtual machine and open the virtual machine configuration (.vmx) file in a text editor. Add or change the following line in the virtual machine configuration (.vmx) file.
scsiZ:Y.fileName = "deviceName" Z is the SCSI bus number the device uses in the virtual machine. For deviceName, use scsiX:Y, where X is the SCSI bus number that the device uses on the host system and Y is the target ID that the device uses
scsi0:4.fileName = "CdRom0" and the device on the host system is located on bus 2 with target ID 4, change the line to scsi0:4.fileName = "scsi2:4".
For example, if the problematic device is a CD-ROM drive, the existing entry is
If the virtual machine does not contain any SCSI devices, to add a generic SCSI device to a new virtual SCSI adapter, or to use an existing SCSI device as a generic SCSI device, add the following line to the virtual machine configuration (.vmx) file.
scsiZ:Y.deviceType = "scsi-passthru"
If the virtual machine does not contain any SCSI devices, or to add a generic SCSI device to a new virtual SCSI adapter, add the following lines to the virtual machine configuration (.vmx) file.
scsiZ:Y.present = "true" scsiZ.present = "true"
132
VMware, Inc.
Use a Virtual Machine That Has More Than Eight Virtual Processors
If Workstation is running on a multiprocessor host system, you can open a virtual machine that has more than eight virtual processors assigned to it. You must change the number of processors before powering on the virtual machine. You can see the number of processors in the virtual machine summary view or by viewing the virtual machine hardware settings. Prerequisites Power off the virtual machine. Procedure 1 2 Select the virtual machine and select VM > Settings. On the Hardware tab, select Processors. Note that Number of processors is set to Other (x), where x is the number of processors originally assigned to it. Workstation preserves this original configuration setting for the number of processors, even though eight is the maximum number of processors supported. 3 Change the Number of processors setting to 1, 2, 4, 8, or 16. After you commit a change to this setting, the original setting for the number of processors is discarded and no longer appears as an option. 4 Click OK to save your changes.
VMware, Inc.
133
Use the Enhanced Virtual Keyboard Feature in a Virtual Machine on page 134 The enhanced virtual keyboard feature provides better handling of international keyboards and keyboards that have extra keys. This feature is available only on Windows host systems.
Change Hot-Key Combinations for Common Operations on page 136 You can change the hot-key combinations that you use to perform common virtual machine operations.
Change Hot-Key Combinations for Unity Mode on page 137 You can change the hot-key combination that you use to access the Start and Applications menus in Unity mode.
Configure Keyboard Mapping for a Remote X Server on page 137 Although the keyboard works correctly with a local X server, it might not work correctly when you run the same virtual machine with a remote X server.
Change How a Specific Key Is Mapped on page 138 If some keys on the keyboard do not work correctly in a virtual machine, you can set a property that makes a modification to the map. To change how a specific key is mapped, you add the appropriate property to the virtual machine configuration (.vmx) file or to ~/.vmware/config.
Configure How Keysyms Are Mapped on page 139 When key code mapping cannot be used or is disabled, Workstation maps keysyms to v-scan codes. If a language-specific keyboard does not appear to be supported by Workstation, you might need to set a property that tells Workstation which keysym table to use.
V-Scan Code Table on page 140 You specify v-scan codes when you change how keys or keysyms are mapped.
Power off the virtual machine. If you did not install the Enhanced Keyboard Utility feature when you initially installed or upgraded Workstation, install it by running the Workstation installer in program maintenance mode. See Install the Enhanced Keyboard Driver on a Windows Host, on page 135.
134
VMware, Inc.
2 3
On the Options tab, select General. Select an option from the Enhanced virtual keyboard drop-down menu.
Option Off Use if available (recommended) Required Description The virtual machine does not use the enhanced virtual keyboard feature. This is the default value. The virtual machine uses the enhanced virtual keyboard feature, but only if the enhanced virtual keyboard driver is installed on the host system. The virtual machine must use the enhanced the virtual keyboard feature. If you select this option and the enhanced keyboard driver is not installed on the host system, Workstation returns an error message.
4 5 6
Select Modify/Change. Select Enhanced Keyboard Utility. Follow the prompts to finish the installation.
What to do next Enable the enhanced virtual keyboard feature for the virtual machine. See Use the Enhanced Virtual Keyboard Feature in a Virtual Machine, on page 134.
VMware, Inc.
135
Ctrl+Alt+Enter Ctrl+Alt+spacebar
136
VMware, Inc.
You can change the default hot-key combinations by modifying Workstation preference settings. If you change the hot-key settings, substitute your new hot-key combination for Ctrl+Alt. For example, if you change the hot-key combination for common virtual machine operations to Ctrl+Shift, you press Ctrl+Shift instead of Ctrl+Alt to release control from the current virtual machine.
Verify that the remote X server is an XFree86 server running on a PC. Power off the virtual machine and exit Workstation.
NOTE If the keyboard does not work correctly on an XFree86 server running locally, report the problem to VMware technical support.
VMware, Inc.
137
Procedure
n xkeymap.usekeycodeMap property and set it to TRUE.
If you use an XFree86-based server that Workstation does not recognize as an XFree86 server, add the
This property tells Workstation to always use key code mapping regardless of server type. For example: xkeymap.usekeycodeMap = "TRUE"
n xkeymap.usekeycodeMapIfXFree86 property and set it to TRUE.
If Workstation does not recognize the remote server as an XFree86 server, add the
This property tells Workstation to use key code mapping if you are using an XFree86 server, even if it is remote. For example: usekeycodeMapIfXFree86 = "TRUE"
Verify that the X server is an XFree86 server running on a PC. If the X server is remote, configure it to use key code mapping. See Configure Keyboard Mapping for a Remote X Server, on page 137. Determine the X key code and the corresponding v-scan code for the key. To find the X key code for a key, run xev or xmodmap -pk. See V-Scan Code Table, on page 140 for most v-scan codes.
138
VMware, Inc.
Procedure 1 2 Open .vmx or ~/.vmware/config in a text editor. Add the xkeymap.keycode.code property and set it to the v-scan code. code must be a decimal number and the v-scan code must be a C-syntax hexadecimal number, such as 0x001. In this example, the properties swap left Ctrl and Caps Lock.
xkeymap.keycode.64 = "0x01d # X Caps_Lock -> VM left ctrl" xkeymap.keycode.37 = "0x03a # X Control_L -> VM caps lock"
To change the mapping of a few keys, determine the keysym name for each key. To find a keysym name, use the xev or xmodmap -pk command. The X header file /usr/include/X11/keysymdef.h also has a complete list of keysyms. The name of a keysym is the same as its C constant, but without the XK_ prefix. To use a different keysym table, determine which mapping table to use. The tables are located in the xkeymap directory in the Workstation installation directory, which is usually /usr/lib/vmware. The table you must use depends on the keyboard layout. The normal distribution includes tables for PC keyboards for the United States and a number of European countries and languages. For most of these, both the 101-key (or 102-key) and the 104-key (or 105-key) variants are available. If none of the mapping tables is completely correct, find one that works best, copy it to a new location, and change the individual keysym mappings.
n n
Familiarize yourself with the v-scan codes. See V-Scan Code Table, on page 140. Power off the virtual machine and exit Workstation.
Procedure
n xkeymap.nokeycodeMap property and set it to TRUE.
To disable X key code mapping to map keysyms rather than key codes to v-scan codes, add the For example: xkeymap.nokeycodeMap = "TRUE"
VMware, Inc.
139
If Workstation has a table in the xkeymap directory for your keyboard but cannot detect it, add the xkeymap.language property and set it to one of the tables in the xkeymap directory. For example: xkeymap.language = "keyboard_type" If the failure to detect the keyboard means that the table is not completely correct for you, you might need to create a modified table and use the xkeymap.fileName property instead.
To use a different keysym mapping table that is not in the xkeymap directory, add the xkeymap.fileName property and set it to the path to the table. For example: xkeymap.fileName = "file_path" The table must list a keysym for each key by using the form sym="v-scan_code", where the sym value is an X keysym name and v-scan_code is a C-syntax hexadecimal number, for example, 0x001. Use a new line for each keysym. NOTE Because compiling a complete keysym mapping is difficult, you should usually edit an existing table and make small changes.
To change the keysym mapping of a few keys, type the xkeymap.keysym property for each key, on separate lines. For example: xkeymap.keysym.sym = "v-scan_code" The value of sym must be an X keysym name and v-scan_code is a C-syntax hexadecimal number, for example, 0x001.
140
VMware, Inc.
Table 42. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol E R T Y U I O P [ ] Enter Ctrl A S D F G H J K L ; ' ` Shift \ Z X C V B N M , . / Shift * Alt < > ? right numeric pad left | left left { } Shifted Symbol Location V-Scan Code 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 0x02d 0x02e 0x02f 0x030 0x031 0x032 0x033 0x034 0x035 0x036 0x037 0x038
VMware, Inc.
141
Table 42. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol Space bar Caps Lock F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 Num Lock Scroll Lock Home Up arrow PgUp Left arrow 5 Right arrow + End Down arrow PgDn Ins Del F11 F12 Break Enter Ctrl / SysRq Alt Home Up arrow Page Up Left arrow Print Scrn right function pad function pad function pad function pad Pause numeric pad right numeric pad 1 2 3 0 6 4 7 8 9 numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad numeric pad Shifted Symbol Location V-Scan Code 0x039 0x03a 0x03b 0x03c 0x03d 0x03e 0x03f 0x040 0x041 0x042 0x043 0x044 0x045 0x046 0x047 0x048 0x049 0x04a 0x04b 0x04c 0x04d 0x04e 0x04f 0x050 0x051 0x052 0x053 0x057 0x058 0x100 0x11c 0x11d 0x135 0x137 0x138 0x147 0x148 0x149 0x14b
142
VMware, Inc.
Table 42. V-Scan Codes for the 104-Key U.S. Keyboard (Continued)
Symbol Right arrow End Down arrow Page Down Insert Delete Windows Windows Menu Shifted Symbol Location function pad function pad function pad function pad function pad function pad left right V-Scan Code 0x14d 0x14f 0x150 0x151 0x152 0x153 0x15b 0x15c 0x15d
The 84-key keyboard has a Sys Req key on the numeric pad. Its v-scan code is 0x054. Keyboards outside the U.S. usually have an extra key (often < > or < > |) next to the left Shift key. The v-scan code for this key is 0x056.
VMware, Inc.
143
144
VMware, Inc.
Workstation provides bridged networking, network address translation (NAT), host-only networking, and custom networking options to configure a virtual machine for virtual networking. The software needed for all networking configurations is installed on the host system when you install Workstation. This chapter includes the following topics:
n n n n n n n n n n n n
Understanding Virtual Networking Components, on page 145 Understanding Common Networking Configurations, on page 146 Changing the Default Networking Configuration, on page 147 Configuring Bridged Networking, on page 151 Configuring Network Address Translation, on page 154 Configuring Host-Only Networking, on page 163 Assigning IP Addresses in Host-Only Networks and NAT Configurations, on page 169 Configuring LAN Segments, on page 172 Configuring Samba for Workstation, on page 174 Using Virtual Network Adapters in Promiscuous Mode on Linux Hosts, on page 175 Maintaining and Changing MAC Addresses for Virtual Machines, on page 175 Sample Custom Networking Configuration, on page 176
Virtual Switches
Like a physical switch, a virtual switch connects networking components together. Virtual switches, which are also referred to as virtual networks, are named VMnet0, VMnet1, VMnet2, and so on. A few virtual switches are mapped to specific networks by default.
VMware, Inc.
145
Workstation creates virtual switches as needed, up to 20 virtual switches on a Windows host system and up to 255 virtual switches on a Linux host system. You can connect an unlimited number of virtual network devices to a virtual switch on a Windows host system and up to 32 virtual network devices to a virtual switch on a Linux host system. NOTE On Linux host systems, the virtual switch names are in all lowercase letters, for example, vmnet0.
NAT Device
In a NAT configuration, the NAT device passes network data between one or more virtual machines and the external network, identifies incoming data packets intended for each virtual machine, and sends them to the correct destination.
Bridged Networking
Bridged networking connects a virtual machine to a network by using the network adapter on the host system. If the host system is on a network, bridged networking is often the easiest way to give the virtual machine access to that network. When you install Workstation on a Windows or Linux host system, a bridged network (VMnet0) is set up for you.
NAT Networking
With NAT, a virtual machine does not have its own IP address on the external network. Instead, a separate private network is set up on the host system. In the default configuration, a virtual machine gets an address on this private network from the virtual DHCP server. The virtual machine and the host system share a single network identity that is not visible on the external network.
146
VMware, Inc.
When you install Workstation on a Windows or Linux host system, a NAT network (VMnet8) is set up for you. When you use the New Virtual Machine wizard to create a new virtual machine and select the typical configuration type, the wizard configures the virtual machine to use the default NAT network. You can have only one NAT network.
Host-Only Networking
Host-only networking creates a network that is completely contained within the host computer. Host-only networking provides a network connection between the virtual machine and the host system by using a virtual network adapter that is visible on the host operating system. When you install Workstation on a Windows or Linux host system, a host-only network (VMnet1) is set up for you.
Add a Virtual Network Adapter to a Virtual Machine on page 148 You can add up to 10 virtual network adapters to a virtual machine. Modify an Existing Virtual Network Adapter for a Virtual Machine on page 148 You can change the settings of a virtual network adapter that is currently used by a virtual machine. Disconnect a Host Virtual Network Adapter on page 149 When you install Workstation, two virtual network adapters, VMware Network Adapter VMnet1 and VMware Network Adapter VMnet8, are added to the configuration of the host operating system. You might want to disconnect one or both of these virtual network adapters to improve performance on the host system.
Configure Bandwidth and Packet Loss Settings for a Virtual Machine on page 150 You can use advanced virtual network adapter settings to limit the bandwidth and specify the acceptable packet loss percentage for incoming and outgoing data transfers for a virtual machine.
VMware, Inc.
147
NAT
Host-only
Custom
LAN segment
5 6 7
Click Finish to add the virtual network adapter to the virtual machine. Click OK to save your changes. Verify that the guest operating system is configured to use an appropriate IP address on the new network. a b If the virtual machine is using DHCP, release and renew the lease. If the IP address is set statically, verify that the guest operating system has an address on the correct virtual network.
148
VMware, Inc.
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Hardware tab, select the virtual network adapter. Select the virtual network adapter type. You cannot select a custom network or LAN segment for a shared virtual machine. For a remote virtual machine, you must select a custom network.
Option Bridged Description The virtual machine is connected to the network by using the network adapter on the host system. The virtual machine has a unique identity on the network, separate from and unrelated to the host system. The virtual machine and the host system share a single network identity that is not visible on the external network. When the virtual machine sends a request to access a network resource, it appears to the network resource as if the request is coming from the host system. The virtual machine and the host virtual network adapter are connected to a private Ethernet network. The network is completely contained within the host system. Select a custom network from the drop-down menu. Although VMnet0, VMnet1, and VMnet8 might be available in this list, these networks are usually used for bridged, host-only, and NAT networks. Select a LAN segment from the drop-down menu. A LAN segment is a private network that is shared by other virtual machines.
NAT
Host-only
Custom
LAN segment
4 5
Click OK to save your changes. Verify that the guest operating system is configured to use an appropriate IP address on the new network. a b If the virtual machine is using DHCP, release and renew the lease. If the IP address is set statically, verify that the guest operating system has an address on the correct virtual network.
Determine whether you are going to use the host virtual network adapter. The host system uses VMware Network Adapter VMnet1 to connect to the host-only network and it uses VMware Network Adapter VMnet8 to connect to the NAT network. On a Windows host, log in as an Administrator user. Only an Administrator user can change network settings in the virtual network editor. On a Linux host, log in as root. You must enter the root password to use the virtual network editor.
VMware, Inc.
149
2 3 4
Select the virtual network. Deselect Connect a host virtual adapter to this network to disconnect the host virtual network adapter from the virtual network. Click OK to save your changes.
Type the acceptable packet loss percentage for incoming and outgoing data transfers in the Packet Loss (%) text box. The default setting is 0.0%.
150
VMware, Inc.
virtual machine
You can view and change the settings for bridged networking on the host system, determine which network adapters to use for bridged networking, and map specific host network adapters to specific virtual switches.
n
Assigning IP Addresses in a Bridged Networking Environment on page 152 A virtual machine must have its own identity on a bridged network. For example, on a TCP/IP network, the virtual machine needs its own IP address. Your network administrator can tell you whether IP addresses are available for virtual machines and which networking settings to use in the guest operating system.
Add a Bridged Network on page 152 When you install Workstation on a Windows or Linux host system, a bridged network (VMnet0) is set up for you. If you install Workstation on a host system that has multiple network adapters, you can configure multiple bridged networks.
Configure Bridged Networking for an Existing Virtual Machine on page 152 You can configure bridged networking for an existing virtual machine. Change VMnet0 Bridged Networking Settings on page 153 By default, VMnet0 is set to use auto-bridging mode and is configured to bridge to all active network adapters on the host system. You can use the virtual network editor to change VMnet0 to bridge to one specific host network adapter, or restrict the host network adapters that VMnet0 auto-bridges to. The changes you make affect all virtual machines that use bridged networking on the host system.
VMware, Inc.
151
Verify that a network adapter is available on the host system to bridge to. If VMnet0 is bridging to all of the available host network adapters (the default setting), you can modify it to make an adapter available. See Change VMnet0 Bridged Networking Settings, on page 153. On a Windows host, log in as an Administrator user. Only an Administrator user can change network settings in the virtual network editor. On a Linux host, log in as root. You must enter the root password to access the virtual network editor.
Procedure 1 2 Select Edit > Virtual Network Editor. Click Add Network and select a network to add. You can create a custom bridged network on VMnet2 to VMnet7. On Windows hosts, you can also use VMnet9. On Linux hosts, you can also use vmnet10 through vmnet255. 3 4 5 Select the new network and select Bridged (connect VMs directly to the external network). Select a host network adapter to bridge to from the Bridged to drop-down menu. Click OK to save your changes.
152
VMware, Inc.
3 4
Select Bridged: Connected directly to the physical network. If you use the virtual machine on a laptop or other mobile device, select Replicate physical network connection state. This setting causes the IP address to be renewed when you move from one wired or wireless network to another.
On a Windows host, log in as an Administrator user. Only an Administrator user can change network settings in the virtual network editor. On a Linux host, log in as root. You must enter the root password to use the virtual network editor.
Procedure 1 2 3 Select Edit > Virtual Network Editor. Select VMnet0. Change the host network adapters that VMnet0 bridges to.
Option Prevent VMnet0 from automatically bridging to a particular host network adapter Disable automatic bridging and bridge VMnet0 to a specific host network adapter Description a b c Click Automatic Settings. Deselect the check box for the host network adapter. Click OK.
Select the host network adapter from the Bridge to drop-down menu.
VMware, Inc.
153
virtual machine
DHCP server
NAT device
network
The virtual machine and the host system share a single network identity that is not visible on the external network. NAT works by translating the IP addresses of virtual machines in the private network to the IP address of the host system. When a virtual machine sends a request to access a network resource, it appears to the network resource as if the request is coming from the host system. The host system has a virtual network adapter on the NAT network. This adapter enables the host system and virtual machines to communicate with each other. The NAT device passes network data between one or more virtual machines and the external network, identifies incoming data packets intended for each virtual machine, and sends them to the correct destination.
n
Features and Limitations of NAT Configurations on page 155 NAT is useful when the number of IP addresses is limited or the host system is connected to the network through a non-Ethernet adapter.
Change NAT Settings on a Windows Host on page 156 You can use the virtual network editor to change NAT settings. For example, you can change the gateway IP address, add a port for forwarding, and change DNS and NetBIOS settings.
Editing the NAT Configuration File on page 158 If you are an advanced user, you can edit the NAT configuration file to modify NAT settings. Using NAT with NetLogon on page 161 If you use NAT networking in a Windows virtual machine running on a Windows host system, you can use NetLogon to log in to a Windows domain from the virtual machine and access file shares that the WINS server knows.
Specifying Connections from Source Ports Below 1024 on page 162 If a virtual machine that uses NAT attempts to connect to a server that requires the client to use a source port below 1024, the NAT device must forward the request from a port below 1024. For security reasons, some servers accept connections only from source ports below 1024.
154
VMware, Inc.
NAT causes some performance loss. Because NAT requires that every packet sent to and received from a virtual machine must be in the NAT network, an unavoidable performance penalty occurs. NAT is not perfectly transparent. NAT does not usually allow connections to be initiated from outside the network, although you can manually configure the NAT device to set up server connections. The practical result is that some TCP and UDP protocols that require a connection be initiated from the server machine do not work automatically and some might not work at all. NAT provides some firewall protection. A standard NAT configuration provides basic-level firewall protection because the NAT device can initiate connections from the private NAT network, but devices on the external network usually cannot initiate connections to the private NAT network.
VMware, Inc.
155
The NAT device is a DNS proxy and forwards DNS requests from the virtual machines to a DNS server that the host system knows. Responses return to the NAT device, which then forwards them to the virtual machines. If they get their configuration information from the virtual DHCP server, the virtual machines on the NAT network use the NAT device as the DNS server. The virtual machines in the private NAT network are not accessible through DNS. To have the virtual machines running on the NAT network access each other by DNS names, you must set up a private DNS server connected to the NAT network and configure the virtual machines to use the DNS server.
Familiarize yourself with the NAT settings. See NAT Settings, on page 157. Log in as an Administrator user. Only an Administrator user can change network settings in the virtual network editor.
Procedure 1 2 3 On the Windows host system, select Edit > Virtual Network Editor. Select the NAT network and click NAT Settings and change the NAT settings. Click OK to save your changes.
156
VMware, Inc.
NAT Settings
On a Windows host, you can use the virtual network editor to change the gateway IP address, configure port forwarding, and configure advanced networking settings for a NAT network. Table 52. NAT Settings
Setting Gateway IP Port Forwarding Description Specifies the gateway IP address for the selected network. Add a port for port forwarding. With port forwarding, incoming TCP or UDP requests are sent to a specific virtual machine on the virtual network that is served by the NAT device. Host port Virtual machine IP address Virtual machine port The number of the incoming TCP or UDP port. For example, incoming HTTP requests are usually on port 80. The IP address of the virtual machine to which you want to forward the incoming requests. The port number to use for requests on the specified virtual machine. It may be the standard port, such as 80 for HTTP, or a nonstandard port if software running in the virtual machine is configured to accept requests on a nonstandard port. (Optional) You can use this text box to identify the forwarded service, for example, HTTP.
Description
To change settings for an existing port, select its name and click Properties. Allow active FTP Allow any Organizationally Unique Identifier UDP timeout (in seconds) Config port Specifies whether to allow only passive mode FTP over the NAT device. Select this setting if you change the organizationally unique identifier (OUI) portion of the MAC address for the virtual machine and subsequently cannot use NAT with the virtual machine. Select the number of minutes to keep the UDP mapping for the NAT. Select the port to use to access status information about NAT. IMPORTANT Change this value only under the direction of VMware technical support. Configure the DNS servers for the virtual NAT device to use. Auto detect available DNS servers Policy Select this option to detect the available DNS servers. To add a DNS server to the list, deselect this check box and enter the IP address of the preferred and alternate DNS servers in the Preferred DNS server text boxes. If you have multiple DNS servers, select the strategy for choosing which server to send a request to. Order sends one DNS request at a time in order of the name. Rotate sends one DNS request at a time and rotates through the DNS servers. Burst sends to three servers and waits for the first server to respond. Select the number of seconds to keep trying if the NAT device cannot connect to the DNS server. Select the number of retries.
DNS Settings
Select NBNS (NetBIOS Name Service) and NBDS (NetBIOS Datagram Service) timeouts and retry settings.
VMware, Inc.
157
The NAT configuration file is divided into sections, and each section configures a part of the NAT device. Text surrounded by square brackets, such as [dns], marks the beginning of a section. Each section contains one or more configuration parameters. The configuration parameters take the form ip = 192.168.27.1/24. On a Windows host system, you can change the NAT configuration by using the virtual network editor. You do not need to edit the NAT configuration file. On a Linux host system, you must edit the NAT configuration file to modify the NAT configuration. IMPORTANT Make a backup copy of the NAT configuration file. If you edit the NAT configuration file and then use the virtual network editor, your edits might be lost.
[udp] Section The [udp] section contains the timeout parameter, which specifies the number of seconds to keep the UDP mapping for the NAT network. [dns] Section The [dns] section is for Windows hosts only. Linux hosts do not use this section.
158
VMware, Inc.
order sends one DNS request at a time in the order of the name servers. rotate sends one DNS request at a time and rotate through the DNS servers. burst sends to three servers and wait for the first one to respond.
Time in seconds before retrying a DNS request. Number of retries before the NAT device stops trying to respond to a DNS request. Flag to indicate whether the NAT device should detect the DNS servers available to the host. IP address of a DNS server to use. IP address of a DNS server to use. IP address of a DNS server to use.
nameserver2, and nameserver3 are added before the list of detected DNS servers.
If autodetect is on and some name servers are specified, the DNS servers specified in nameserver1,
[netbios] Section The [netbios] section applies to Windows hosts only. Linux hosts do not use this section. Table 56. [netbios] Section Parameters
Parameter nbnsTimeout = 2 nbnsRetries = 3 nbdsTimeout = 3 Description Timeout, in seconds, for NBNS queries. Number of retries for each NBNS query. Timeout, in seconds, for NBDS queries.
[incomingtcp] Section The [incomingtcp] section configures TCP port forwarding for NAT. You can assign a port number to an IP address and port number on a virtual machine. This example creates a map from port 8887 on the host to the IP address 192.168.27.128 and port 21.
8887 = 192.168.27.128:21
When this map is set and an external machine connects to the host at port 8887, the network packets are forwarded to port 21 (the standard port for FTP) on the virtual machine that has IP address 192.168.27.128. [incomingudp] Section The [incomingudp] section configures UDP port forwarding for NAT. You can assign a port number to an IP address and port number on a virtual machine. This example creates a map from port 6000 on the host to the IP address 192.168.27.128 and port 6001.
6000 = 192.168.27.128:6001
When this map is set and an external machine connects to the host at port 6000, the network packets are forwarded to port 6001 on the virtual machine that has IP address 192.168.27.128.
VMware, Inc.
159
160
VMware, Inc.
#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.
161
port = n
See Editing the NAT Configuration File, on page 158 for more information.
162
VMware, Inc.
virtual machine
DHCP server
In the default configuration, a virtual machine in a host-only network cannot connect to the Internet. If you install the proper routing or proxy software on the host system, you can establish a connection between the host virtual network adapter and a physical network adapter on the host system to connect the virtual machine to a Token Ring or other non-Ethernet network. On a Windows XP or Windows Server 2003 host computer, you can use host-only networking in combination with the Internet connection sharing feature in Windows to allow a virtual machine to use the dial-up networking adapter or other connection to the Internet on the host system. See Microsoft documentation for information on configuring Internet connection sharing.
n
Add a Host-Only Network on page 164 When you install Workstation on a Windows or Linux host system, a host-only network (VMnet1) is set up for you. You might want to configure multiple host-only networks to manage network traffic between virtual machines in specific ways.
Configure Host-Only Networking for an Existing Virtual Machine on page 164 You can configure host-only networking for an existing virtual machine. You can connect a virtual network adapter to the default host-only network (VMnet1) or to a custom host-only network. If a virtual machine has two virtual network adapters, you can connect it to two host-only networks.
Set Up Routing Between Two Host-Only Networks on page 165 If you are setting up a complex test network that uses virtual machines, you might want to have two independent host-only networks with a router between them.
Avoiding IP Packet Leakage in Host-Only Networks on page 166 Each host-only network should be confined to the host system on which it is set up. Packets that virtual machines send on this network should not leak out to a physical network attached to the host system. Packet leakage can occur only if a machine actively forwards packets.
VMware, Inc.
163
Controlling Routing Information for Host-Only Networks on Linux on page 167 A host-only network has a network interface associated with it (vmnet1) that is marked up when the host operating system is booted. Routing server processes that operate on the host operating system automatically discover the host-only network and propagate information on how to reach the network, unless you explicitly configure them not to do so.
Using DHCP and DDNS with Host-Only Networking on Linux on page 168 The virtual DHCP server in Workstation cannot update a DNS server by using a Dynamic Domain Name Service (DDNS). For this reason, you should use DHCP to supply IP addresses as well as other information, such as the identity of a host running a name server and the nearest router or gateway.
On a Windows host, log in as an Administrator user. Only an Administrator user can change network settings in the virtual network editor. On a Linux host, log in as root. You must enter the root password to use the virtual network editor.
Procedure 1 2 Select Edit > Virtual Network Editor. Click Add Network and select a network to add, for example, VMnet2. You can create a custom host-only network on VMnet2 to VMnet7. On Windows hosts, you can also use VMnet9. On Linux hosts, you can also use vmnet10 through vmnet255. The new network is configured as a host-only network by default. 3 Click OK to save your changes.
After the host-only networks are set up on a Linux host system, at least four network interfaces appear: eth0, lo, vmnet1, and vmnet2. These four interfaces should have different IP addresses on separate subnets.
164
VMware, Inc.
Procedure 1 2 3 Select the virtual machine and select VM > Settings. On the Hardware tab select a virtual network adapter. Select the host-only network.
Option Use the default host-only network (VMnet1) Use a custom host-only network Action Select Host-only: A private network shared with the host. Select Custom and select the custom host-only network from the dropdown menu.
4 5
To connect the virtual machine to a second host-only network, select another virtual network adapter and select the second host-only network. Click OK to save your changes.
What to do next Assign IP addresses to the virtual network adapters. To see the IP address that a host-only network is using, use the ipconfig /all command on a Windows host or the ipconfig command on a Linux host.
Set up the connection to the second host-only network. a b c Select the virtual machine and select VM > Settings. On the Hardware tab, select Network Adapter. Select Custom and select the custom host-only network from the drop-down menu.
(Optional) To run the router software on a virtual machine, set up a third virtual machine that has connections to the two host-only networks. a b Select the virtual machine and select VM > Settings. On the Hardware tab, select Network Adapter.
VMware, Inc.
165
Select Host-only. The adapter is connected to the default host-only interface (VMnet1).
d 4
Select the second network adapter, select Custom, and select the custom host-only network from the drop-down menu.
5 6
Install the router software on the host system or in the third virtual machine, depending on the approach you are using. Configure networking in the first two virtual machines to use addresses on the appropriate host-only network.
Option Windows host Linux host Description Use the ipconfig /all command to determine which IP addresses each host-only network is using. Use the ifconfig command to determine which IP addresses each hostonly network is using.
Assign IP addresses.
Option The router software is on the host system Description Assign default router addresses based on the addresses of the host-only adapters on the host computer. In the first virtual machine, the default router address should be the IP address for the host-only adapter connected to VMnet1. In the second virtual machine, the default router address should be the IP address for the host-only adapter connected to VMnet2. Set the default router addresses in the first two virtual machines based on the addresses that the third virtual machine. In the first virtual machine, the default router address should be the IP address for the network adapter connected to VMnet1 in third virtual machine. In the second virtual machine, the default router address should be the IP address for the network adapter connected to VMnet2 in third virtual machine.
Ping the router machine from the first and second virtual machines. If the router software is set up correctly, you can communicate between the first and second virtual machines.
166
VMware, Inc.
If the host system has multiple network adapters, it might be intentionally configured to use IP forwarding. If that is the case, you do not want to disable forwarding. To avoid packet leakage, you must enable a packet filtering facility and specify that packets from the host-only network should not be sent outside the host system. See the operating system documentation for information on configuring packet filtering.
On a Windows Vista or Windows 7 host, stop the Routing and Remote Access service. a b Type services.msc to open the Services Console. Select Routing and Remote Access and click Stop.
On a Windows 2003 Server host, use Windows Administrative Tools to disable routing and remote access. a Select Start > Programs > Administrative Tools > Routing and Remote Access. An icon on the left is labeled with the host name. If a green dot appears over the icon, IP forwarding is turned on. b To turn off IP forwarding, right-click the icon and disable Routing and Remote Access. A red dot appears, indicating that IP forwarding is disabled.
VMware, Inc.
167
If you are running routing services to supply routing information, configure the services so that they do not advertise routes to the host-only network. The routed daemon version that is included with many Linux distributions does not support specifying that an interface should not be advertised. See the routed(8) manual page for your system for more information. If you are using the gated daemon, you must explicitly exclude the vmnet1 interface from any protocol activity. If you need to run virtual machines on a host-only network on a multihomed system where gated is used and you experience problems, contact VMware technical support.
This solution prevents dhcpd from searching for all available network interfaces. If these solutions do not work for your DHCP server program, it might be an older version of the program and you can try upgrading to more current version. DHCP server programs are available from the Internet Systems Consortium (ISC) Web site.
168
VMware, Inc.
Change DHCP Settings for a Host-Only or NAT Network on a Windows Host on page 169 You can use the virtual network editor to change DHCP settings for a host-only or NAT network on a Windows host system.
Change the Subnet Settings for a Host-Only or NAT Network on a Windows Host on page 170 You can use the virtual network editor to change the subnet IP address and subnet mask for a hostonly or NAT network on a Windows host system.
Change the Subnet IP Address for a Host-Only or NAT Network on a Linux Host on page 171 You can use the virtual network editor to change the subnet IP address for a host-only or NAT network on a Linux host system.
DHCP Conventions for Assigning IP Addresses in Host-Only and NAT Networks on page 172 For each host-only or NAT network, the virtual DHCP server allocates available IP addresses by using certain conventions. Workstation always uses a Class C address for host-only and NAT networks.
VMware, Inc.
169
Familiarize yourself with the DHCP conventions for assigning IP addresses. See DHCP Conventions for Assigning IP Addresses in Host-Only and NAT Networks, on page 172.
Procedure 1 Log in to the host system as an Administrator user. Only an Administrator user can change network settings in the virtual network editor. 2 3 4 5 Select Edit > Virtual Network Editor. Select the host-only or NAT network. To use the virtual DHCP server to assign IP addresses to virtual machines on the network, select Use local DHCP service to distribute IP addresses to VMs. To change additional DHCP settings, click DHCP Settings. You can change the range of IP addresses that the virtual DHCP server provides on the selected network and the duration of DHCP licenses that the DHCP server provides to clients on the virtual network. 6 Click OK to save your changes.
Change the Subnet Settings for a Host-Only or NAT Network on a Windows Host
You can use the virtual network editor to change the subnet IP address and subnet mask for a host-only or NAT network on a Windows host system. The default subnet mask is 255.255.255.0, which is a Class C address. Typically, you should modify only the third number in the IP address, for example, x in 192.168.x.0 or 198.16.x.0. In general, do not change the subnet mask. Certain virtual network services might not work as well with a customized subnet mask. When you modify the subnet mask, Workstation updates the IP address settings for other components, including DHCP, NAT, and the host virtual network adapter, if the default settings were never changed. Settings that are automatically updated include the DHCP lease range and DHCP server address, the NAT gateway address, and the host network adapter IP address. If you change any of these settings from their default values, Workstation does not update that setting automatically if the value is within the valid range. If the value exceeds the valid range, Workstation resets the settings based on the subnet range. Workstation presumes that a custom setting should not be modified, even if you later change the setting back to its default value. Prerequisites
n n
Verify that you have administrative privileges on the host system. Familiarize yourself with the DHCP conventions for assigning IP addresses. See DHCP Conventions for Assigning IP Addresses in Host-Only and NAT Networks, on page 172.
Procedure 1 Log in to the host system as an Administrator user. Only an Administrator user can change network settings in the virtual network editor on a Windows host system. 2 3 4 Select Edit > Virtual Network Editor. Select the host-only or NAT network. To change the subnet IP address, type a new value in the Subnet IP text box. The address should specify a valid network address that is suitable for use with the subnet mask.
170
VMware, Inc.
5 6
To change the subnet mask, type a new value in the Subnet mask text box. Click OK to save your changes.
Change the Subnet IP Address for a Host-Only or NAT Network on a Linux Host
You can use the virtual network editor to change the subnet IP address for a host-only or NAT network on a Linux host system. You can also use the virtual network editor to specify that a local DHCP service distributes IP addresses to virtual machines. To change DHCP settings further, you must edit the DHCP server configuration file (dhcp.conf). See Editing the DHCP Server Configuration File, on page 171. Prerequisites
n n
Verify that you have root access on the host system. Familiarize yourself with the DHCP conventions for assigning IP addresses. See DHCP Conventions for Assigning IP Addresses in Host-Only and NAT Networks, on page 172.
Procedure 1 Log in to the Linux host system as root. You must enter the root password to use the virtual network editor on a Linux host system. 2 Select Applications > System Tools > Virtual Network Editor to start the virtual network editor. The menu path might be different for your version of Linux. You can also start the network editor from the command line by using the vmware-netcfg command. 3 4 Select the virtual network. Change the subnet IP address.
Option Select an unused subnet IP address Configure a specific subnet IP address Description Leave the Subnet IP text box empty. Type the subnet IP address that you want to use in the Subnet IP text box.
5 6
To have the virtual DHCP server distribute IP addresses to virtual machines on the network, select Use local DHCP service to distribute IP addresses to VMs. Click Save to save your changes.
On a Windows host system, you can change DHCP settings by using the virtual network editor. You do not need to edit the DHCP server configuration file.
VMware, Inc.
171
On a Linux host system, you can use the virtual network editor to specify that a local DHCP service distributes IP addresses to virtual machines on the network. To change DHCP settings further, you must edit the DHCP server configuration file. Editing the DHCP server configuration file requires information that is best obtained directly from the DHCP server documentation. See the dhcpd(8) and dhcpd.conf(8) manual pages. NOTE Changes made to the read-only section of the DHCP configuration file are lost the next time you run the virtual network editor.
172
VMware, Inc.
4 5
Click Add, type a name for the LAN segment, and click OK. Click OK to save your changes.
What to do next Configure the virtual machine to use the LAN segment. See Configure a Virtual Machine to Use a LAN Segment, on page 173.
If the LAN segment does not already exist, create it. See Create a LAN Segment for a Virtual Machine, on page 172. To configure a virtual machine to use multiple LAN segments, you must configure the virtual machine to have multiple network adapters. See Add a Virtual Network Adapter to a Virtual Machine, on page 148.
Procedure 1 2 3 4 Select the virtual machine and select VM > Settings. On the Hardware tab, select Network Adapter. Select LAN segment and select the LAN segment from the drop-down menu. Click OK to save your changes.
What to do next When you add an existing virtual machine to a LAN segment, the virtual machine might be configured to expect an IP address from a DHCP server. Unlike host-only and NAT networking, Workstation does not provide a DHCP server for LAN segments. You must manually configure IP addressing for virtual machines on a LAN segment. You can either configure a DHCP server on the LAN segment to allocate IP addresses, or you can configure a fixed IP address for each virtual machine on the LAN segment.
VMware, Inc.
173
What to do next If you deleted a LAN segment that is being used by other virtual machines, select another LAN segment or change the network connection type for those virtual machines. See Modify an Existing Virtual Network Adapter for a Virtual Machine, on page 148.
174
VMware, Inc.
Restart Samba.
In the next example, all users are able to set vmnet0 to promiscuous mode.
chmod a+rw /dev/vmnet0
In these options, [n] is the number of the virtual network adapter. If you never edit the configuration file by hand and do not remove the virtual network adapter, these settings remain unchanged. Workstation cannot guarantee to automatically assign unique MAC addresses for virtual machines that run on multiple host systems. NOTE To preserve the MAC address for a virtual network adapter, you must be careful not to remove the adapter. If you remove the adapter but later recreate it, the adapter might receive a different MAC address.
VMware, Inc.
175
In these options, [n] is the number of the virtual network adapter. 2 Add the ethernet[n].address option to the .vmx file above the UUID lines in the file and set it to the MAC address. For example: ethernet[n].address = 00:50:56:XX:YY:ZZ In this line, the fourth pair of numbers, XX, must be a valid hexadecimal number between 00h and 3Fh, and YY and ZZ must be valid hexadecimal numbers between 00h and FFh. You must use this format. Workstation virtual machines do not support arbitrary MAC addresses. A value for XX:YY:ZZ that is unique among your hard-coded addresses avoids conflicts between the automatically assigned MAC addresses and the manually assigned addresses.
176
VMware, Inc.
Familiarize yourself with how to create virtual machines and configure network devices in the host and guest operating systems. Familiarize yourself with the diagram of the sample networking configuration. See Figure 5-4.
Procedure 1 Use the New Virtual Machine wizard to create four virtual machines. a b 2 Create the first virtual machine with bridged networking so that it can connect to an external network by using the host network adapter. Create the other three virtual machines without networking.
Configure network settings for the first virtual machine. a b c Open the first virtual machine, but do not power it on. Edit the virtual machine settings to add a second virtual network adapter. Connect the second network adapter to VMnet2.
VMware, Inc.
177
Configure network settings for the second virtual machine. a b c Open the virtual machine, but do not power it on. Edit the virtual machine settings to add a virtual network adapter. Connect the network adapter to VMnet2.
Configure network settings for the third virtual machine. a b c d e Open the virtual machine, but do not power it on. Edit the virtual machine settings to add a virtual network adapter. Connect the network adapter to VMnet2. Edit the virtual machine settings to add a second virtual network adapter. Connect the second network adapter to VMnet3.
Configure network settings for the fourth virtual machine. a b c Open the virtual machine, but do not power it on. Edit the virtual machine settings to add a virtual network adapter. Connect the network adapter to VMnet3.
Determine the network addresses that are used for VMnet2 and VMnet3.
Option Windows host Linux host Description Use the ipconfig /all command. Use the ifconfig command.
7 8 9
Power on each virtual machine and install the appropriate guest operating system. Use the virtual network editor to configure VMnet2 to use the virtual DHCP service to distribute IP address to virtual machines. Configure the networking in each guest operating system.
Option Virtual machine 1 Description For the bridged network adapter in virtual machine 1, use the networking settings needed for a connection to the external network. If the virtual machine receives its IP address from a DHCP server on the external network, the default settings should work. For the second network adapter in virtual machine 1, manually assign an IP address in the range you are using with VMnet2. Assign an IP address in the range you are using with VMnet2. Network adapters are connected to VMnet2 and VMnet3. Assign an IP address in the virtual network's range it is connected to. Assign an IP address in the range you are using with VMnet3.
10
178
VMware, Inc.
A shared virtual machine is a virtual machine on the host system that remote Workstation users can access as a remote virtual machine. Up to 100 remote users can connect to a single shared virtual machine at the same time. You can configure Workstation so that users on remote Workstation hosts can interact with your local host and use the shared virtual machines that are running on it. You can also connect to remote hosts and run remote virtual machines. You control who can access host systems and shared virtual machines by setting permissions. This chapter includes the following topics:
n n n n n n n n n n
Understanding VMware Workstation Server, on page 179 Connect to a Remote Server, on page 182 Disconnect from a Remote Server, on page 184 Creating and Managing Shared Virtual Machines, on page 184 Upload a Virtual Machine to a Remote Server, on page 188 Download a Virtual Machine from a Remote Server, on page 188 Create a Virtual Machine on a Remote Host, on page 189 Configure Shared and Remote Virtual Machines to Start with the Host, on page 190 Using Roles to Assign Privileges, on page 191 Using Permissions to Restrict Users, on page 195
VMware, Inc.
179
Shared virtual machines appear under the Shared VMs item in the virtual machine library. If virtual machine sharing is disabled, or if the current user does not have permissions to connect to VMware Workstation Server, the Shared VMs item is inactive. If you click the Shared VMs item when virtual machine sharing is disabled, Workstation returns a message that explains how to enable virtual machine sharing. If the Shared VMs item is inactive because the current user does not have the proper permissions, a login dialog box appears and you can log in as a user who can connect to VMware Workstation Server.
On a Linux host, verify that you have root access. On a Windows host, verify that you have administrative privileges. If you plan to change the shared virtual machines directory, stop sharing virtual machines on the host system. You cannot change the shared virtual machines directory if there are shared virtual machines on the host system. See Stop Sharing a Virtual Machine, on page 187.
Procedure 1 2 Select Edit > Preferences > Shared VMs. To enable or disable virtual machine sharing and remote access, click Enable Sharing or Disable Sharing (Windows host), or select or deselect Enable virtual machine sharing and remote access (Linux host). To change the HTTPS port that VMware Workstation Server uses on the host system, select a different port from the drop-down menu. NOTE If you change the port to a non-default value, remote users must specify the port number when they connect to the host system, for example, host:port. 4 To change the shared virtual machines directory, type or browse to the location of the new shared virtual machines directory (Windows host), or type the new directory in the text box and click Apply (Linux host). Click OK to save your changes.
180
VMware, Inc.
On the host system, replace the default private key text in the VMware SSL key file with the private key text that you obtained from the CA. The location of the key file depends on the host operating system.
Option Windows XP and Windows Server 2003 hosts Windows Vista and Windows 7 hosts Linux hosts Certificate File C:\Documents and Settings\All Users\Application Data\VMware\SSL\rui.key C:\ProgramData\VMware\SSL\rui.key NOTE You can access the SSL directory only from an elevated command prompt. /etc/vmware/ssl/rui.key
Restart the host system. The VMware Workstation Server service restarts and begins using the new certificate.
VMware, Inc.
181
/var/lib/vmware/Shared VMs
On Linux hosts, security-related information, such as authorization attempts, is sent to the system messages log.
182
VMware, Inc.
(Optional) If Workstation asks you whether to save your login information, select an option.
Option Remember Never for this Host Not Now Description Workstation saves your login information so that you do not need to provide it the next time you log in to the server. Workstation saves the server name to an exceptions list and does not prompt you to save your login information for this server again. Workstation does not save your login information, but it prompts you to save your login information the next time you connect to this server.
After you are connected to the remote server, the remote host and remote virtual machines appear in the library. What to do next Interact with the remote host and remote virtual machines.
Disable the prompt to save login information for a specific remote server. a b Log in to the remote server for the first time. Select Never for this Host.
Workstation saves the name of the remote server to an exceptions list. You must type login information the next time you connect to the remote server.
n
Disable the prompt to save login information for all remote servers. a b c Select Edit > Preference > Workspace. Deselect Offer to save login information for remote servers. Click OK to save your changes.
You must type login information every time you connect to a remote server.
VMware, Inc.
183
Click Close to close the dialog box and click OK to save your changes.
On a Windows host, right-click the remote host in the library and select Disconnect. On a Linux host, select the remote host in the library and click Disconnect From This Server on the tab for the remote host.
184
VMware, Inc.
Convert or Clone a Standard Virtual Machine to a Shared Virtual Machine on page 185 You can convert a standard virtual machine to a shared virtual machine or create a shared virtual machine by creating a clone of a standard virtual machine. Workstation stores shared virtual machines in the shared virtual machines directory.
Create a New Shared Virtual Machine on page 186 You can create a new shared virtual machine in Workstation by using the New Virtual Machine wizard. Creating a shared virtual machine is similar to creating a standard virtual machine.
Stop Sharing a Virtual Machine on page 187 When you stop sharing a virtual machine, Workstation changes the shared virtual machine to a standard virtual machine.
View the Status of Shared and Remote Virtual Machines on page 187 You can view power status and task information for shared virtual machines, and you can view the power status of remote virtual machines. Tasks are operations that can affect the use of a virtual machine, such as power state changes and changes to virtual machine settings.
Verify that the virtual machine is not encrypted. Verify that the virtual machine is not configured to use a physical disk. Power off the virtual machine.
Procedure 1 2 3 Select the virtual machine and select VM > Manage > Share, or drag the virtual machine to the Shared VMs item. Type a name for the shared virtual machine. Select how to create the shared virtual machine.
Option Move the virtual machine Description Convert the standard virtual machine to a shared virtual machine. Workstation moves the virtual machine files to the shared virtual machines directory. If you decide to prevent remote access to virtual machine at a later time, you can change the virtual machine back to a standard virtual machine. Create a shared virtual machine by cloning the virtual machine. Workstation creates the clone in the shared virtual machines directory. The clone is a complete and independent copy of the virtual machine and additional disk space is required to store it.
Click Finish to share the virtual machine and click Close to exit the wizard. A clone can take several minutes to create, depending on the size of the virtual disk that is being duplicated.
If you converted a standard virtual machine to a shared virtual machine, the virtual machine appears under the Shared VMs item in the library. If you cloned a standard virtual machine, the clone appears under the Shared VMs item and the original virtual machine remains under My Computer.
VMware, Inc.
185
What to do next If the virtual machine uses a static IP address, change it after cloning a standard virtual machine to a shared virtual machine.
Verify that you have the information the New Virtual Machine wizard requires to create a virtual machine. See Preparing to Create a New Virtual Machine, on page 8. Verify that the guest operating system you plan to install is supported. See the VMware Compatibility Guide on the VMware Web site for a list of the supported guest operating systems. See the VMware Guest Operating System Installation Guide for information about the guest operating system that you plan to install. If you are installing the guest operating system from an installer disc, insert the installer disc in the CDROM drive in the host system. If you are installing the guest operating system from an ISO image file, verify that the ISO image file is in a directory that is accessible to the host system.
Procedure 1 2 3 In the library, select Shared VMs. On the Shared VMs tab, click Create a New Virtual Machine. On the Welcome screen, select the configuration type.
Option Typical Description The wizard prompts you to specify or accept defaults for basic virtual machine settings. The typical configuration type is appropriate in most instances. After specifying an operating system version and virtual machine name and location, the wizard prompts you to configure only the virtual disk size and whether the disk should be split into multiple files. If you choose a custom setup, the wizard includes additional prompts for such things as processors, memory, and networking. You must select the custom configuration type to make a different virtual machine version than the default hardware compatibility setting, specify the I/O adapter type for SCSI adapters, specify whether to create an IDE, SCSI, or SATA virtual disk, use an existing virtual disk, or allocate all virtual disk space rather than let disk space gradually grow to the maximum disk size.
Custom
If you selected a custom configuration, select the hardware compatibility setting for the virtual machine. The hardware compatibility setting determines the hardware features of the virtual machine.
Follow the prompts to select a guest operating system and name and configure the virtual machine. Use the following guidelines:
n
The Easy Install feature is not available for installing operating systems in shared or remote virtual machines. If you choose to install the operating system later, the virtual machine is created with a blank disk.
186
VMware, Inc.
(Optional) Click Customize Hardware to customize the hardware configuration. You can also modify virtual hardware settings after you create the virtual machine.
(Optional) Select Power on this virtual machine after creation to power on the virtual machine after you create it. This option is not available if you are installing the guest operating system manually.
If you are using Easy Install, guest operating system installation begins when the virtual machine powers on. The guest operating system installation is automated and typically runs without requiring any input from you. After the guest operating system is installed, Easy Install installs VMware Tools. Newly created shared virtual machines appear in the library under the Shared VMs item. What to do next If you used Easy Install and the virtual machine did not power on when you finished the New Virtual Machine wizard, power on the virtual machine to start the guest operating system installation. See Use Easy Install to Install a Guest Operating System, on page 20. If you did not use Easy Install, install the guest operating system manually. See Install a Guest Operating System Manually, on page 21.
To view power status and task information for shared virtual machines, select Shared VMs and select the list view on the Shared VMs tab. Power status and task information appears on the Shared VMs tab for each shared virtual machine.
VMware, Inc.
187
To view the power status of remote virtual machines, select the remote host and select the list view on the tab for the remote host. The power status of each virtual machine on the remote host appears on the tab.
Verify that the remote server is running ESX, ESXi, or vCenter Server 4.1 or later. Verify that the virtual machine is not encrypted. You cannot upload an encrypted virtual machine. Verify that the remote host supports the hardware version of the virtual machine. If the remote host does not support the hardware version, the upload wizard returns an error message. Open the virtual machine in Workstation. If the virtual machine is powered on or suspended, power it off.
n n
Procedure 1 Select the virtual machine and select VM > Manage > Upload. NOTE You can also start the upload process by dragging and dropping the virtual machine to the remote host in the library. 2 Select the destination remote server.
Option The remote server appears in the list The remote server does not appear in the list Action Select the remote server in the list. Select New Server Connection and log in to the remote server.
Workstation verifies the connection to the remote server. 3 4 5 If the remote server is running vCenter Server, select a destination location. (Optional) Type a new name for the virtual machine on the remote host. Select a remote host and datastore to store the uploaded virtual machine. If the remote server is running vCenter Server, multiple hosts and datastores might be available. 6 Click Finish to upload the virtual machine to the remote server. A status bar indicates the progress of the upload process. How long it takes to upload a virtual machine depends on the size of the virtual disk and the network connection speed. After the virtual machine is uploaded to the remote server, it appears in the inventory for the remote host in the library.
188
VMware, Inc.
Prerequisites
n
Connect to the remote server that hosts the virtual machine you want to download. See Connect to a Remote Server, on page 182. Verify that the remote server is running ESX, ESXi, or vCenter Server 4.1 or later. If the virtual machine is powered on or suspended, power it off.
n n
Procedure 1 Select the virtual machine on the remote server and select VM > Manage > Download. NOTE You can also start the download process by dragging the virtual machine from the remote host into the My Computer portion of the Workstation library or into any sub-folder of My Computer in the library. 2 In the Download Virtual Machine dialog box that appears, type a name for the virtual machine, type or browse to the directory for the virtual machine files, and click Download.
Connect to the remote server. See Connect to a Remote Server, on page 182. Verify that you have permission to create a virtual machine on the remote host. Verify that you have the information the New Virtual Machine wizard requires to create a virtual machine. See Preparing to Create a New Virtual Machine, on page 8.
VMware, Inc.
189
Custom
3 4
If the remote server running is ESX or ESXi and it has multiple datastores, select a datastore to store the virtual machine. If the remote server is running vCenter Server, select an inventory location, a remote host, and a datastore to store the virtual machine. The inventory location can be a datacenter or a folder within a datacenter. You must select a datastore only if the remote host has multiple datastores.
If you selected a custom configuration, select the hardware compatibility setting for the virtual machine. The hardware compatibility setting determines the hardware features of the virtual machine.
6 7 8
Select the guest operating system type and version, or select Other if the guest operating system is not listed. Type a name for the virtual machine. Follow the prompts to select a guest operating system and name and configure the virtual machine. Use the following guidelines:
n
The Easy Install feature is not available for installing operating systems in shared or remote virtual machines. If you choose to install the operating system later, the virtual machine is created with a blank disk.
The virtual machine appears in the library under the remote host. What to do next Install the guest operating system manually. See Install a Guest Operating System Manually, on page 21.
Configure Shared and Remote Virtual Machines to Start with the Host
You can use the AutoStart feature to configure shared virtual machines to start when the local host system starts. You can also configure remote virtual machines to start when the remote host system starts. You cannot configure AutoStart if the remote server is running vCenter Server. You cannot use the AutoStart feature to configure virtual machines to start in a preferred sequence. You can use the VMware vSphere Client to configure more advanced features, including startup order. See the vSphere virtual machine administration documentation.
190
VMware, Inc.
Prerequisites
n
If you are configuring AutoStart for remote virtual machines, connect to the remote server. See Connect to a Remote Server, on page 182. Verify that you have the Administrator role or a custom role that contains the Host.Configuration.Virtual machine autostart configuration privilege.
2 3 4
Select the virtual machines to start with the host system. If you selected multiple virtual machines, select the number of seconds to delay between starting the virtual machines. Click Save to save your changes.
Default System Roles on page 191 Workstation provides a set of default system roles. You can use the default system roles to assign permissions, or you can use them as a model to create your own roles.
Create a Role on page 192 If the default system roles do not meet your needs, you can combine selected privileges to create your own roles.
Edit a Role on page 193 You can change the name of a role. You can add or remove the privileges in a role. You cannot edit the default system roles.
Clone a Role on page 193 You can make a copy of an existing role by cloning it. When you clone a role, the new role is not applied to users, groups, or objects. You must assign the role to users or groups and objects.
Remove a Role on page 194 When you remove a role, Workstation removes the definition from the list of roles.
VMware, Inc.
191
No Access
Cannot view or change the associated object. Tabs associated with the object appear without content. Except for users in the Administrators group on Windows hosts and the root user on Linux hosts, this is the default role for all users.
n
Read Only
Can view the object state and details about the object. Cannot perform any actions through the menus and toolbars.
VM Creator VM User
Can create, use, configure, and delete virtual machines. Can configure and use existing virtual machines.
Create a Role
If the default system roles do not meet your needs, you can combine selected privileges to create your own roles. Privileges define individual rights that a user requires to perform actions and read properties. The privileges that you can select when you create a role depend on whether the server is running Workstation, ESX, ESXi, or vCenter Server. See Defined Privileges in the Workstation documentation center for descriptions of the available privileges. The Workstation documentation center is available on the VMware Web site at https://www.vmware.com/support/pubs/ws_pubs.html. Prerequisites If you are creating a role on a remote host, connect to the remote server. See Connect to a Remote Server, on page 182. Procedure 1 Open the Edit Roles dialog box.
Option Create a role on the local host Create a role on a remote host Description
n n n n
(Windows host) Right-click Shared VMs and select Roles. (Linux host) Right-click Shared VMs and select Edit Roles. (Windows host) Right-click the remote host and select Roles. (Linux host) Right-click the remote host and select Edit Roles.
2 3
192
VMware, Inc.
From the privileges tree, select the privileges to include in the new role. You can expand the tree to view the privileges in each category.
Click OK (Windows host) or Save (Linux host) to create the new role.
Edit a Role
You can change the name of a role. You can add or remove the privileges in a role. You cannot edit the default system roles. When you change the privileges in a role, the changes are applied to any user or group that is assigned that role. When you change the name of a role, no changes occur to the role's assignments. See Defined Privileges in the Workstation documentation center for descriptions of the available privileges. The Workstation documentation center is available on the VMware Web site at https://www.vmware.com/support/pubs/ws_pubs.html. Prerequisites If you are editing a role on a remote host, connect to the remote server. See Connect to a Remote Server, on page 182. Procedure 1 Open the Edit Roles dialog box.
Option Edit a role on the local host Edit a role on a remote host Description
n n n n
(Windows host) Right-click Shared VMs and select Roles. (Linux host) Right-click Shared VMs and select Edit Roles. (Windows host) Right-click the remote host and select Roles. (Linux host) Right-click the remote host and select Edit Roles.
(Windows host) Double-click the role in the Roles list and type a new name. (Linux host) Type a new name in the Name text box.
Select or deselect privileges from the privileges tree. You can expand the tree to view the privileges in each category.
Clone a Role
You can make a copy of an existing role by cloning it. When you clone a role, the new role is not applied to users, groups, or objects. You must assign the role to users or groups and objects. You can change the privileges in a cloned role during the cloning process. See Defined Privileges in the Workstation documentation center for descriptions of the available privileges. The Workstation documentation center is available on the VMware Web site at https://www.vmware.com/support/pubs/ws_pubs.html. Prerequisites If you are cloning a role on a remote host, connect to the remote server. See Connect to a Remote Server, on page 182.
VMware, Inc.
193
(Windows host) Right-click Shared VMs and select Roles. (Linux host) Right-click Shared VMs and select Edit Roles. (Windows host) Right-click the remote host and select Roles. (Linux host) Right-click the remote host and select Edit Roles.
Select the role to clone and click Clone. Workstation adds a copy of the role to the list of roles.
(Optional) To change the privileges in the cloned role, select or deselect privileges from the privileges tree. You can expand the tree to view the privileges in each category.
Click OK (Windows host) or Save (Linux host) to create the new role.
Remove a Role
When you remove a role, Workstation removes the definition from the list of roles. IMPORTANT Make sure that you understand how users will be affected before you remove or replace role assignments. Prerequisites If you are removing a role on a remote host, connect to the remote server. See Connect to a Remote Server, on page 182. Procedure 1 Open the Edit Roles dialog box.
Option Remove a role on the local host Remove a role on a remote host Description
n n n n
(Windows host) Right-click Shared VMs and select Roles. (Linux host) Right-click Shared VMs and select Edit Roles. (Windows host) Right-click the remote host and select Roles. (Linux host) Right-click the remote host and select Edit Roles.
Select the role to remove and click Remove. On a Windows host, Workstation removes configured user or group and role pairings on the host. Users or groups that do not have other permissions assigned lose all privileges.
194
VMware, Inc.
If the role is assigned to a user or group, select a reassignment option and click OK.
Option Remove the role from all affected users and groups Description
n n
(Windows host) Select Remove role assignments. (Linux host) Select Remove affected permissions. Users or groups that do not have other permissions assigned lose all privileges. (Windows host) Select Reassign affected users to and select a role. (Linux host) Select Reassign affected permissions to and select a role.
Remove the role and assign another role to all affected users and groups
n n
Add a Permission
To create a permission, you assign a user or group and a role to an object. The available users and groups include local users and groups on the host system. For Workstation, users and groups in the Windows domain that the host system belongs to are also included. For remote hosts that vCenter Server manages, users and groups in the Windows domain list that vCenter Server references are also included. The object of a permission can be a shared or remote virtual machine, the Shared VMs item, or a remote host. For remote hosts that vCenter Server manages, you can also set permissions on datacenters and folders within datacenters. When you add a permission, you can indicate whether the permission propagates down the object hierarchy. Propagation is not universally applied. Permissions that you define for a child object always override the permissions that propagate from parent objects. NOTE You cannot use Workstation to create, remove, or modify users and groups. To manage users and groups, use the mechanisms that the host operating system provides. Prerequisites
n n
Verify that you know the default roles. See Default System Roles, on page 191. If you are setting a permission on a remote object, connect to the remote server. See Connect to a Remote Server, on page 182.
VMware, Inc.
195
2 3
Click Add. Select the location of the user or group from the Domain drop-down menu. If you select (server), only local users and groups appear in the list.
Select the name of the user or group from the list. You can type a name in the search box to filter the users and groups in the list.
On a Linux host, the permission is added immediately. On a Windows host, the permission is not added until you click OK. 6 (Optional) If you do not want to propagate the permission to child objects, deselect the Propagate check box next to the new permission. If the object is a shared or remote virtual machine and you deselect the Propagate check box, you must confirm that the user can have read-only access to the host. Users must have read-only access to the host on which a virtual machine is running to access the virtual machine through Workstation. The propagation setting takes effect immediately. 7 (Windows host only) Click OK to add the permission.
Edit a Permission
You can change the role that is paired with a user or group. You can also change the propagation setting. Prerequisites
n n
Verify that you know the default roles. See Default System Roles, on page 191. If you are editing a permission on a remote object, connect to the remote server. See Connect to a Remote Server, on page 182.
196
VMware, Inc.
2 3
Select the permission. Select a new role from the drop-down menu. On a Windows host, the drop-down menu is under Assigned Role. On a Linux host, the role is changed immediately. On a Windows host, the role is not changed until you click OK.
To change the propagation setting, select or deselect the Propagate check box. The propagation setting change takes effect immediately.
Remove a Permission
You can remove the user or group and role pair for a selected object. You cannot remove an inherited permission. Removing a permission does not remove the user or group from the list of available users and groups, nor does it remove the role from the list of available roles. Prerequisites If you are removing a permission on a remote object, connect to the remote server. See Connect to a Remote Server, on page 182. Procedure 1 Open the Permissions dialog box.
Option If the object is a shared or remote virtual machine If the object is a remote host, datacenter, or folder Description Right-click the object and select Manage > Permissions. Right-click the object and select Permissions.
Select the permission and click Remove. On a Linux host, the permission is removed immediately. On a Windows host, the permission is not removed until you click OK.
VMware, Inc.
197
198
VMware, Inc.
You can use the vmware command to run Workstation from the command line on a Linux or Windows host system. This chapter includes the following topics:
n n
Run the vmware Command, on page 199 Incorporate Workstation Startup Options in a Windows Shortcut, on page 200
To run the vmware command on a Linux host system, use the following syntax.
/usr/bin/vmware [-n] [-x] [-X] [-t] [-q] [-s variable_name = value ] [-v] [ path_to_vm .vmx] [http[s]:// path_to_vm .vmx] [X toolkit options]
To run the vmware command on a Windows host system, use the following syntax.
C:\Program Files\VMware\VMware Workstation\vmware.exe [-n] [-x] [-X] [-t] [-q] [-s variable_name = value ] [-v] [ path_to_vm .vmx] [http[s]:// path_to_vm .vmx]
VMware, Inc.
199
-s
On Linux hosts, you can pass X toolkit options as arguments, such as --display and --geometry. Some options, such as the size and title of the Workstation window, cannot be overridden.
200
VMware, Inc.
Index
A
accelerated 3D graphics, preparing the host system 91 acceleration, disabling 84 ACPI S1 sleep feature 50 Administrator default role 191 ALSA configuring virtual machines 94 giving a user permission 94 overriding the library version 93 using 93 application shortcuts, creating in Unity mode 71 audience information 5 Autologon, configuring 46 AutoProtect snapshots, enabling 80
D
DDNS 168 debugging, using serial connection 109 deleting, virtual machines 85 devices, configuring and managing 111 DHCP changing settings 169 DHCPD 168 editing the configuration file 171 DHCP server, NAT 155 disk drives, cleaning up 107 disk modes, configuring 14 disk types 14 display settings, configuring 90 displays changing 68 configuring preference settings 89 resizing 73 download components 31 downloading virtual machines 188 drag-and-drop feature disabling 52 restrictions 51 using 51 DVD drives adding 111 configuring 111 configuring legacy emulation mode 113
B
background settings, configuring 48 bandwidth, configuring 150 batch power operations 75 battery information 69 bridged networking assigning IP addresses 152 configuring 151153 BusLogic driver, installing 131
C
CD-ROM drives adding 111 configuring 111 configuring legacy emulation mode 113 cleaning up virtual disks 107 clones creating 22, 24 full 24 linked 23 closing virtual machines 48 converting teams 76 copy and paste feature disabling 53 restrictions 52 using 52 creating virtual machines 7 Ctrl+Alt, using in a key combination 137 custom configuration, virtual machine 8
E
Easy Install, responding to prompts 9, 20 ECR errors, troubleshooting 127 encryption changing the password 98 limitations 95 removing 97 virtual machine 94, 96 enhanced virtual keyboard, installing the driver 135 exclusive mode 69 experiation date 97 expiration date, timestamp 97 exporting OVF files 108
VMware, Inc.
201
F
files, virtual machine 40 floppy drives adding 112 configuring 111 folders creating 75 managing virtual machines 74 removing virtual machines 75 FreeBSD guest operating system, VMware Tools installation or upgrade (tar installer) 38 full screen mode 68
K
key code mappings, configuring 139 key mappings, changing 138 keyboard features, configuring 134 keyboard shortcuts 136 keysyms defined 138 mapping 139
L
LAN segments configuring 172 configuring virtual machines to use 173 creating 172 deleting 173 language codes 104 linked clones, moving 100 Linux guest, VMware Tools installation or upgrade (tar installer) 34 lock files 122
G
generic SCSI devices adding 130 avoiding concurrent access problems on Linux 131 configuring 129 troubleshooting detection problems 131 guest operating systems installing manually 21 selecting 9
M
MAC addresses assigning manually 176 changing 175, 176 mapped drives 59 maximum virtual disk size 16 memory allocation 11 Microsoft Windows guest operating system, VMware Tools installation or upgrade 33 monitors, using multiple 71, 72 moving virtual machines considerations 99 new location or host 99
H
hard disk, cleanup 107 hard power controls 87 hardware, customizing 17 hardware compatibility, changing 107 hardware compatibility setting, selecting in the New Virtual Machine wizard 8 hardware settings, modifying 143 host-only networks adding 152, 164 avoiding packet leakage 166 configuring 163, 164 hot keys changing combinations 136 changing for Unity mode 137 default combinations 136 human interface devices, connecting 63
N
NAT changing settings 156, 157 configuration file sections 158 configuring 154 editing the configuration file 158 external access 156 features and limitations 155 sample Linux configuration file 160 specifying connections from ports below 1024 162 using NetLogon 161, 162 NAT device, understanding 155 NetLogon 161 NetWare guest operating system, VMware Tools installation or upgrade (tar installer) 36 network changing the configuration 147 virtual network editor 149
I
I/O controller types 12 IDE 12 importing virtual machines 27 install components 31 installing VMware Tools FreeBSD (tar installer) 38 Linux (tar installer) 34 Microsoft Windows 33 NetWare (tar installer) 36 process overview 30 Solaris (tar installer) 37 IP addresses, assigning 169, 172
202
VMware, Inc.
Index
network configuration example 176, 177 network connection types 12 networking components, understanding 145 networking configurations, common 146 New Virtual Machine wizard 18, 84 No Access default role 191
O
OVA format virtual machines 28 OVF files, exporting virtual machines 108 OVF format virtual machines 28
P
packet forwarding, disabling 167 packet leakage, host-only networks 166 packet loss percentage, configuring 150 parallel ports configuring 125 configuring device permissions 127 configuring on Linux 2.6.x kernels hosts 126 passwords for encrypting and restricting virtual machines 94, 96 pause feature restrictions 49 pausing virtual machines 48, 49 PDAs, installing drivers 64 permissions adding 195 changing 196 removing 197 understanding 195 physical machines preparing for virtualization 26 virtualizing 25 physical disks adding to an existing virtual machine 124 preparing to use 14, 123 using in a virtual machine 122 power off behavior, configuring 87 power on delay 76 powering off virtual machines 47 printers, using host printers in a virtual machine 60 processors specifying number 11 using a virtual machine that has more than eight 133 promiscuous mode 175
disabling the prompt to save login information 183 disconnecting 184 downloading virtual machines from 188 removing saved login information 184 removable devices, using in virtual machines 61 repairing VMware Tools installations 39 resizing Linux guests 73 Solaris guests 74 restricted virtual machine, espiration date 97 restriction password 97 restrictions password 94, 96 resuming virtual machines 49 roles changing 193 cloning 193 creating 192 default 191 removing 194 using to assign privileges 191 routing between host-only networks 165 controlling on host-only networks 167
S
Samba adding user passwords 174 configuring 174 on both bridged and host-only networks 174 SATA 12 screen colors, setting for virtual machines 92 screen resolutions, working with nonstandard 74 screenshots, creating for virtual machines 85 SCSI 12 serial ports changing the input speed 129 configuring 125, 128 using to debug applications 109, 110 shared files, optimizing read and write access 56 shared folders changing 58 changing properties 57 configuring 54 created by other users 55 disabling 58 mounting 56 supported guest operating systems 54 using 53 using permissions to restrict access 57 viewing in Windows 56 shared virtual machines configuring 184
R
Read Only default role 191 remote access, configuring 179, 180 remote hosts 183 remote servers connecting 182
VMware, Inc.
203
configuring autostart 190 converting to standard virtual machines 187 creating 185, 186 creating on remote hosts 189 directory 10, 181 viewing status 187 shared virtual machines directory, default location 179 smart card readers, switching on Linux hosts 67 smart cards disabling sharing 67 using in virtual machines 65, 66 snapshot manager, using 78 snapshots deleting 82 enabling AutoProtect 80 enabling background 81 excluding virtual disks 82 power-off options 80 reverting 80 taking 77, 79 troubleshooting 83 using 78 soft power controls 87 Solaris, resizing guests 74 Solaris guest operating system, VMware Tools installation or upgrade (tar installer) 37 SSL certificates, replacing 181 starting background virtual machines 45 starting virtual machines, streaming 45 stopping virtual machines 47 streaming virtual machines 45, 46 subnet IP addresses, changing 170, 171 suspending virtual machines 49
NetWare (tar installer) 36 process overview 30 Solaris (tar installer) 37 uploading virtual machines 188 USB controller adding 114 configuring 113 USB devices connecting 62 disabling autoconnect 63 enabling high-speed support for USB 2.0 or 3.0 115 installing drivers 62 mounting on a Linux host 63 troubleshooting connection issues 64 understanding device control sharing 64 UUIDs clones 22 configuring 102 using 101
V
v-scan codes 140 vCPU best use 11 specifying number 11 virtual machine, expiration date 97 virtual disk bus type 16 controller type 16 maximum size 16 virtual disk capacity 16 virtual disk files 17 Virtual Disk Manager 121 virtual disks allocating disk space 15 cleaning up 107 configuring in the New Virtual Machine wizard 13 disconnecting from the host 60 mapping and mounting 59 virtual hard disks adding 117, 119 cleaning up 107 compacting 119 configuring 116 defragmenting 120 expanding 119 growing and allocating storage space 117 moving 122 removing 121 setting up as IDE or SCSI 117 using legacy 121
T
tar installer 34 teams 76 template mode, enabling 24 thumbnails managing virtual machines 74 using 75 transferring files and text 51 typical configuration, virtual machine 8
U
uninstalling VMware Tools 39 Unity mode, setting preferences 92 Unity mode features 70 upgrading VMware Tools FreeBSD (tar installer) 38 Linux (tar installer) 34 Microsoft Windows 33
204
VMware, Inc.
Index
virtual machine files, specifying in the New Virtual Machine wizard 10 virtual machines changing hardware compatibility 106 configuring 87 configuring for compatibility 101 configuring power off behavior 87 deleting 85 downloading from a remote server 188 installing software 84 managing 87 moving 98 understanding 7 uploading to remote servers 188 using 43 using the New Virtual Machine Wizard 8 virtual machines directory 10 virtual network adapter, changing 148 virtual network adapters, adding 148 virtual networking, configuring 145 virtual symmetric multiprocessing, configuring 133 virtualizing physical machines 25 VIX API 109 VM, expiration date 97 VM Creator default role 191 VM User default role 191 VMCI Sockets interface 109 VMnet virtual network 145 virtual switch 145 VMware Tools installing 33 updating on a specific virtual machine 32 using 29 vmware command incorporating into a Windows shortcut 200 options 199 running 199 using 199 VMware Player, using virtual machines 100 VMware Tools installation FreeBSD (tar installer) 38 Linux (tar installer) 34 Microsoft Windows 33 NetWare (tar installer) 36 process 30 Solaris (tar installer) 37 VMware Tools upgrade FreeBSD (tar installer) 38 Linux (tar installer) 34 Microsoft Windows 33 NetWare (tar installer) 36
process 30 Solaris (tar installer) 37 VMware Workstation Server, understanding 179 vmware-user, starting manually 39 VNC client, connecting to a virtual machine 105 VNC connections, viewing 106 VNC server configuring a virtual machine 103 specifying a language keyboard map 103 VProbes 109
W
Windows activation problems 27 Windows authentication problems 26 Windows Virtual PC virtual machines 29 Windows XP Mode virtual machine, importing 27 worksheet, typical virtual machine 17 Workstation Server, log files 182
X
X server and keyboard mapping 137 x-key codes, defined 138 xFree86 and keyboard mapping 137
VMware, Inc.
205
206
VMware, Inc.