VMware

VMware Workstation 4

Features | Documentation | Knowledge Base | Discussion Forums

previous Prev   Contents   Last   Next next

Using Shared Folders

Using Shared Folders

With shared folders, you can easily share files among virtual machines and the host computer. To use shared folders, you must have the current version of VMware Tools installed in the guest operating system and you must use the Virtual Machine Control Panel to specify which directories are to be shared.

You can use shared folders with virtual machines running the following guest operating systems:

  • Windows Server 2003
  • Windows XP
  • Windows 2000
  • Windows NT 4.0
  • Linux with a kernel version of 2.4 or higher

To set up one or more shared folders for a virtual machine, be sure the virtual machine is open in Workstation and click its tab to make it the active virtual machine. Go to Edit > Virtual Machine Settings > Options and click Shared folders.

You can add one or more directories to the list. Those directories may be on the host computer or they may be network directories accessible from the host computer.

In a Windows virtual machine, shared folders appear in My Network Places (Network Neighborhood in a Windows NT virtual machine) under VMware Shared Folders. For example, if you specify the name Test files for one of your shared folders, you can navigate to it by opening My Network Places > VMware Shared Folders > .host > Shared Folders > Test files.

You can also go directly to the folder using the UNC path
\\.host\Shared Folders\Test files.

You can map a shared folder to a drive letter just as you would with a network share.

Note: To see shared folders displayed in this way, you must update VMware Tools in the virtual machine to the current version. If your guest operating system has the version of VMware Tools that shipped with VMware Workstation 4.0, shared folders appear as folders on a designated drive letter.

In a Linux virtual machine, shared folders appear under /mnt/hgfs. So the shared folder in this example would appear as /mnt/hgfs/Test files.

To add a new shared folder to the list, click Add. On a Windows host, a wizard guides you through the process. On a Linux host, a dialog box appears. Enter the required information, then click OK.

Provide the following information:

  • The path on the host to the directory you want to share. Type in the full path or browse to the directory.
  • The name for the directory. This is the name that appears inside the virtual machine.
  • Whether the shared folder is enabled. You may want to add a folder to the list without enabling it immediately. You can then enable the folder at any time by clicking its name in this list, clicking Properties and enabling the folder in the Properties dialog box.
  • Access options for the shared folder. You can give the current virtual machine read-only access, or read-write access. Access to files in the shared folder is also governed by permission settings on the host computer. For example, if you are running VMware 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.
  • Expiration options for the shared folder. You can specify that the folder is always enabled or that it is enabled only during the current working session. If you select Disable after this session, the shared folder is disabled when you suspend or power off the virtual machine.

To change the settings for a shared folder on the list, click the folder's name to highlight it, then click Properties. The Properties dialog box appears.

Change any settings you wish, then click OK.

Note: You can use shared folders to share any type of file. However, Windows shortcuts and Linux symbolic links do not work correctly if you try to use them via shared folders.

Caution: Do not open a file in a shared folder from more than one application at a time. For example, you should not open the same file using an application on the host operating system and another application in the guest operating system. In some circumstances, doing so could cause data corruption in the file.

previous Prev   Contents   Last   Next next