Mac OS X VirtualBox and Shared Folders
Posted on August 5, 2008
Filed Under mac os x | Leave a Comment
I use eclipse to play around with some ruby/php/jsp code. And usually that’s ~/Projects/workspace/my_site
Now, let’s assume that I would like to host these files off my Ubuntu guest OS… What do I do?
1. Add the folder in “Shared Folders” screen as seen on the screenshot.
2. Boot the guest OS up and run this command:
root@virtuozo~$ mount -t vboxsf -o uid=1000,gid=33 blog /var/www/blog/
As you can see, I used exactly the same name that’s set in the
screenshot above. What’s next? Just restart apache and point your browser to the right IP/hostname. In the example above, uid=1000 is normal user, whereas gid=33 is the www-data user (apache).
PS: You might need to do some port forwarding, so that when you point your browser to http://localhost:8000 it will be forwarded to localhost:80 on your guest OS.
Comments
Leave a Reply
