I have setup a VirtualBox running on my MacBook Pro (OS X 10.9). This VirtualBox is running CentOS 6.5. I can successfully SSH from the Macbook to the CentOS VM by doing ssh [email protected] -p 3005
Now I want to be able to access and edit the files on the CentOS VM (under the /var/www directory) using the nice editors and tools I have installed natively on my MacBook. But I'm having trouble doing so.
I successfully followed the instructions here. Now I have a directory on the CentOS VM called /mnt/my_share_name in which I can access files on the MacBook's file system. Great. . but what I really need is the opposite. I want to be able to access files in the CentOS VM's /var/www directory from the MacBook. How Can I do that?? I tried inserting a link in /mnt/my_share_name as shown below. But it didn't work.
# From the CentOS VirtualBox
% cd /mnt/my_share_name
% sudo touch me
% ls
me
% sudo ln -s /var/www www
ln: creating symbolic link `eso': Read-only file system
Just in case anyone is interested, here is a screenshot of the VirtualBox Manager application: