---++ Sharing folders between the VM and your host %BR%%BR%%BR%%BR%%BR% %X% *WARNING:* This page is obsolete. %BR%%BR%%BR%%BR%%BR% %ICON{note}% VMware Fusion 2.0 users can easily add shared folders through the GUI; the instructions below are for VMware Player (Linux / Windows) but will also work with Fusion. To share a folder between your atlasvm and your host computer, you will need to do the following: * %ICON{stop}% %RED%Shutdown atlasvm and quit the VMware application %ENDCOLOR% (Player / Fusion / Server or whatever you are running). * On your host machine, go into the directory containing atlasvm. You should see a file =ATLAS-SL4.6-i686.vmx=. <br /> %ICON{stop}% %RED% Make a copy of this file: %ENDCOLOR% <br /> =cp ATLAS-SL4.6-i686.vmx ATLAS-SL4.6-i686.vmx.original= * Next add the following lines (modify to your configuration) to the bottom of this file; in this example, I want to share two folders on my host machine =/Users/desilva/work= and =/Users/desilva/bin= and I want to mount them on atlasvm as =hostWork= and =hostBin= respectively. For this configuration, I append the following lines to =ATLAS-SL4.6-i686.vmx=:<br /> <verbatim> sharedFolder.maxNum = "2" sharedFolder0.present = "TRUE" sharedFolder0.readAccess = "TRUE" sharedFolder0.writeAccess = "TRUE" sharedFolder0.hostPath = "/Users/desilva/work" sharedFolder0.guestName = "hostWork" sharedFolder0.expiration = "never" sharedFolder0.enabled = "TRUE" sharedFolder1.present = "TRUE" sharedFolder1.readAccess = "TRUE" sharedFolder1.writeAccess = "TRUE" sharedFolder1.hostPath = "/Users/desilva/bin" sharedFolder1.guestName = "hostBin" sharedFolder1.expiration = "never" sharedFolder1.enabled = "TRUE" </verbatim> * In the same file, look for this line and set it to "FALSE": <br /> =isolation.tools.hgfs.disable = "FALSE"= * Again, in the same file, you may need to add the following two lines (this is needed for VMWare Fusion 2.0): <verbatim>hgfs.mapRootShare = "TRUE" hgfs.linkRootShare = "TRUE"</verbatim> * Save the file and then startup atlasvm (You must restart VMWare Fusion/ Player / Server for this to work properly). The two shared folders in my example will be found on atlasvm in =/mnt/hgfs/hostWork= and =/mnt/hgfs/hostBin=. * (VMPlayer) After atlasvm has finished booting, click on the "VMware Player" menu item and the "Shared Folders" option. Select the "Always enabled" folder sharing option and save. Next, reboot. (Note, if this does not work, try disabling and saving it and then enabling and saving again after atlasvm finished booting.) * (Linux / Mac OS X ) You may notice that the owner/group of the directories and files in the shared area looks strange; this is because your host machine may not have the same uid and gid as the atlasvm user. You should be able to read files as well as copy to / from the shared folder. However, to resolve this issue ... * * Make sure your atlasvm user account's id and gid are the same as that on your host machine when you create the accounts. * * If you have problems, make the shared folder world writeable on your host machine. Then, for example, the following works: <br /> <verbatim>touch test1; chmod o+w test1; emacs test1 </verbatim> -- Main.AsokaDeSilva - 18 Sep 2008
This topic: AtlasCanada
>
ComputingPage
>
VMImage
>
VMFolderShare
Topic revision: r4 - 2026-10-05 - AsokaDeSilva
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback