You need to have the Guest Additions installed first, then you can setup a shared folder in the settings, let’s say Websites and mount it to /var/www/html/. Then, inside the virtual machine, add that shared folder Websites to the fstab by adding the line Websites /var/www/html vboxsf rw,uid=33,gid=33 0 0 and giving the right permissions. …
Continue reading “How to auto mount your VirtualBox shared folder to /var/www/”