share 'www' folder CentOS

Discussions about using Linux guests in VirtualBox.
Post Reply
gianis6
Posts: 3
Joined: 13. Feb 2014, 22:50

share 'www' folder CentOS

Post by gianis6 »

Hello everyone,

I did some research before posting but I did not find the solution.
I have a CentOS Virtual Machine running on Mac OSx Host.
I managed to share a folder stored on the OSx with the CentOS guest. Now I would like to do the opposite, I would like to share the '/var/www/' folder stored on the CentOS guest with the OSx host.

Anyone can give me some suggestions?
Thanks in advance.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: share 'www' folder CentOS

Post by noteirak »

You did not find a solution because this is solved the exact same way you would solve it in hardware, and is not in scope of Virtualbox. You just need to use the appropriate network mode : Host-Only or Bridged.
If you used the shared folders features of Virtualbox, this is only one way (to share a specific folder). You need to fall back on regular network shares (NFS or CIFS).
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply