给VMware Player 2.x增加Shared Folders

简介:   VMware offers a feature called Shared Folders that works without using network protocols. The guest can access certain folders in the host without requiring the host to enable these shares.

 

VMware offers a feature called Shared Folders that works without using network protocols. The guest can access certain folders in the host without requiring the host to enable these shares. It is all done via the virtual machine in which the guest system runs, and because there is no networking involved it is more conveniently set up than CIFS or SMBFS.

The VMware Workstation offers in its menu directly to add, remove and configure shared folders while older Player software can't use shared folders at all. The newer Player generation starting with 2.0 can access shared folders in the host system, but they have to be preconfigured in the VMware appliance, because the Player doesn't offer to create or configure shared folders like the Workstation.

If the VMware appliance has no shared folders configured the .vmx file (e.g. DebianEtch.vmx) which holds the configuration info has to be edited manually. Some lines have to be appended at the end of this file. Here is is an example:

isolation.tools.hgfs.disable = "FALSE"

sharedFolder.maxNum = "2"

sharedFolder0.present = "TRUE"
sharedFolder0.enabled = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.hostPath = "C:\Data"
sharedFolder0.guestName = "DataOnC"
sharedFolder0.expiration = "never"

sharedFolder1.present = "TRUE"
sharedFolder1.enabled = "TRUE"
sharedFolder1.readAccess = "TRUE"
sharedFolder1.writeAccess = "TRUE"
sharedFolder1.hostPath = "D:\Data"
sharedFolder1.guestName = "DataOnD"
sharedFolder1.expiration = "never"

These lines above are an example for two shared folders. They have to be adapted to the number of shared folders you want, their path names and the names under which they can be accessed from the guest system. The first line that starts with
isolation.tools.hgfs.disable =
may already be somewhere in the .vmx file. If that is the case remove this other line. There has to be only one line that controls whether shared folders are disabled or not.

The next line
sharedFolder.maxNum = "2"
has to be adjusted for the number of shared folders that the guest shall be able to access. Finally a block of lines declare and configure each shared folder. Copy and paste these blocks and edit:

  • the number before the period in each line of the block. Note that the numbering starts with 0 but the single line that defines the number of folders counts from 1. So in this example with 2 folders the last block is numbered as "1" while the maxNum is "2"
  • the hostPath which in the first example block is set to: C:\Data
  • and the corresponding example guestName: DataOnC
相关文章
|
虚拟化 C++ Windows
VMware-使用 VMware Workstation 15.5 Player 替换 VMware Workstation Pro
VMware-使用 VMware Workstation 15.5 Player 替换 VMware Workstation Pro
201 0
|
Linux 虚拟化 Windows
|
虚拟化
关于WIN8使用 VMware player 6 出现“开机时出错:内部错误”的解决
VMware player 6 出现“开机时出错:内部错误” 在 WIN8 时,直接打开 VMware player 6后,弹出如上错误 解决的方法是 在开始界面通过 管理员身份来运行: 即可正常运行 工具链接地址: http://pan.baidu.com/share/link?shareid=1064830055&uk=2886016622 关于用管
1232 0
|
虚拟化
给VMware Player 2.x增加Shared Folders
  VMware offers a feature called Shared Folders that works without using network protocols. The guest can access certain folders in the host without requiring the host to enable these shares.
535 0
|
4月前
|
Linux 虚拟化 数据安全/隐私保护
银河麒麟V10 VMWare安装保姆级教程
银河麒麟V10 VMWare安装保姆级教程
3729 5
银河麒麟V10 VMWare安装保姆级教程
|
14天前
|
存储 安全 Linux
VMware安装CentOS7
【11月更文挑战第11天】本文详细介绍了在 VMware 中安装 CentOS 7 的步骤,包括准备工作、创建虚拟机、配置虚拟机硬件和安装 CentOS 7。具体步骤涵盖下载 CentOS 7 镜像文件、安装 VMware 软件、创建和配置虚拟机硬件、启动虚拟机并进行安装设置,最终完成 CentOS 7 的安装。在安装过程中,需注意合理设置磁盘分区、软件选择和网络配置,以确保系统的性能和功能满足需求。
111 0