How do i get a VM to share a local folder?
September 27, 2008 2:05 PM Subscribe
How do I get a vmware machine to mount a folder on it's host machine?
posted by muddylemon to Technology (3 answers total)
I'm trying to emulate something we do at work on a home machine. I'm a web developer, and have a great sysadmin to work his black magic at work, and am at a loss at how to get it working at home.
At work we have VMware machines that emulate our web server enviroment on our dev machines. We run the virtual and map local.whatever.com in the hosts file to the virtual machine as a web server. The directory that holds the files for local.whatever.com is on the drive of the host machine, so we can do our development there, test in local.whatever.com, and life is good.
So, on a home machine, I've setup an ubuntu server, apache, etc. I have my router forwarding http traffic to it, it's working fine.
What i'd like it to do is: mount a folder on the home machine as the root of a site, set up apache to serve files from there. There's a setting in the vmware workstation for shared folders, but besides enabling and disabling there doesn't seem to be any useful options.
The only alternate solution I've thought of is setting up the folder inside the VM, setting up SVN on it, and just transferring from a local folder to the one inside the VM with SVN. It might be a better solution, but I'd like to at least know how to get the original plan to work. Any ideas?
env info: machine is running XP, VM is running ubuntu server, apache2, php, mysql, etc.