The issues was getting the latest kernel headers... the answer is here... many thanks to Andrew Kirkpatrick for the solution.
http://www.andrew-kirkpatrick.com/2011/12/virtualbox-guest-additions-with-shared-folders-on-mac-os-x/
---- text copied from Andrew Kirkpatrick's Site as a backup -----
1
2
3
| sudo mkdir /dev/dvdsudo mount /dev/dvd1 /mnt/dvd/cd /mnt/dvd |
1
| sudo sh ./VBoxLinuxAdditions.run |
1
| sudo reboot now |
Kernel header problems
1
| cat /var/log/vboxadd-install.log |
1
2
3
| Error! Your kernel headers for kernel 2.6.35-28-generic cannot be found at/lib/modules/2.6.35-28-generic/build or /lib/modules/2.6.35-28-generic/source. |
1
2
| You can use the --kernelsourcedir option to tell DKMS where it's located,or you could install the linux-headers-2.6.35-28-generic package. |
uname -a
1
2
| sudo apt-get install linux-headers-2.6.35-28-genericsudo ./VBoxLinuxAdditions.run |
Mount the host folder
1
2
| VBoxManage sharedfolder add "my-ubuntu-vm" \--name "websites" --hostpath "/Users/andrew/pizza" |
1
2
3
4
5
| sharename="whatever.you.want.to.call.it";sudo mkdir /mnt/$sharename \sudo chmod 777 /mnt/$sharename \sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename \ln -s /mnt/$sharename $HOME/Desktop/$sharename |
