My host is Windows 7, and VM is Ubuntu 12.04. I use it for web development and I need to make Git repo from virtual HDD visible for the host OS to edit files on the host. What is the best way to do it?
There are two straight forward ways to accomplish this that are independent of the virtualization software that you are using.
1. set up a samba share folder on the guest and then add it like a shared network folder on the host. 2. Share a folder on the Windows host and then use samba to open/map it on the Ubuntu guest.
Virtual box, and I believe VMWare have an option to share folders between guest and host that uses this underlying setup but is all done through the gui of the virtualization software.
To be more specific I would need to know what path you would like to take. Option 1 would best match the paradigm of guest to host.
Right click the virtual machine in VirtualBox and select Settings. You'll see the dialog below with a button to add a shared folder.