centos - How to create soft link in Oracle VirtualBox from my Macbook Pro?
2014-07
I have setup a VirtualBox (version 4.3.12) 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 (Guest) CentOS VM (under the /var/www directory) using the nice editors and tools I have installed natively on my (Host) MacBook. But I'm having trouble doing so.
I successfully followed the instructions here. Now I have a directory on the Guest OS called /mnt/my_share_name from which I can access files on the Host OS's file system. Great! But what I really need is the opposite. I want to be able to access files in the Guest OS's /var/www directory from the Host OS. 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
% ls
% sudo touch me
me
5 sudo ln -s me you
ln: creating symbolic link `you': Read-only file system
It seems I'm not the only person that has had this problem. People have talked about it int he VirtualBox forums. What is the solution here? How to use native GUI tools on my Host OS to manipulate files on the Guest OS?
Just in case anyone is interested, here is a screenshot of my VirtualBox Manager application:
- VM: Oracle VirtualBox 4.0.10 r72479
- Host OS: Windows 7 64-bit
- Guest OS: CentOS 5.6 64-bit
Downloaded a ready-made image of the guest OS from here.
When running, CentOS tells me:
Your CPU does not support long mode. Use a 32bit distribution.
Also mounting the original distribution's DVD doesn't work.
What's wrong? It happened me before with other OSs (in VirtualBox only) but now I actually need that.
Any way to resolve this or should I use another VM tool? Google search doesn't give much.
Edit #1
Some of my system's details:
CPU Type: DualCore Intel Core 2 Duo E7300, 2666 MHz (10 x 267)
Motherboard Name: Asus P5KPL-CM (2 PCI, 1 PCI-E x1, 1 PCI-E x16, 2 DDR2 DIMM, Audio, Video, Gigabit LAN)
Motherboard Chipset: Intel Bearlake G31
BIOS Type: AMI (01/26/08)
Does your host machine have hardware virtualization support (VT-x/AMD-V), is that support enabled in the host BIOS, and is the option for hardware assisted virtualization checked in the virtual machine configuration?
Having working VT-x/AMD-V is a requirement for running a 64-bit guest.