给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. 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

posted on   m2land  阅读(975)  评论(0编辑  收藏  举报

编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述
历史上的今天:
2008-03-27 使用DotNetNuke(DNN) Startkit 4.7(及以上版本)安装无法完成问题的解决方法
2008-03-27 DotNetNuke各项业务外包
2006-03-27 如何解决InfoPath的分页问题

导航

统计

点击右上角即可分享
微信分享提示