In this tutorial you will learn how to mount vboxsf on Linux OS start for an HTTP server on Ubuntu Server.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# Mount vboxsf on OS start for an HTTP server on Ubuntu Server # Oracle VM VirtualBox Manager/Machine/Settings/Shared Folders # /projects/vm/http.liviubalan.com # uid=1001(liviu.balan) gid=33(www-data) groups=33(www-data) id liviu.balan sudo vi /etc/fstab # uid=UID Set the default file owner user id to UID # gid=GID Set the default file owner group id to GID # dmode=MODE Override the mode of all directories to (octal) MODE # fmode=MODE Override the mode of all regular files to (octal) MODE http.liviubalan.com /var/www/html/ vboxsf uid=1001,gid=33,dmode=775,fmode=664 0 0 sudo vi /etc/modules vboxsf # Unmount file system sudo umount http.liviubalan.com # Mount a filesystem # -a Mount all filesystems (of the given types) mentioned in fstab sudo mount -a ls -l /var/www/html/ Useful links: https://help.ubuntu.com/community/VirtualBox/SharedFolders http://manpages.ubuntu.com/manpages/trusty/man8/mount.vboxsf.8.html |
Useful links:
https://help.ubuntu.com/community/VirtualBox/SharedFolders
http://manpages.ubuntu.com/manpages/trusty/man8/mount.vboxsf.8.html