仮想機、起動後、手動で sudo mount -t vboxsf {共有フォルダ名} /マウント先フォルダ -o オプション といった感じでマウントします。
実行例
# ユーザ・グループ番号を調べる
$ id
uid=500(vagrant) gid=500(vagrant) groups=500(vagrant) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
# マウントを実行
$ sudo mount -t vboxsf windows_no_htdocs /opt/lampp/htdocs -o rw,uid=500,gid=500,fmode=0700,dmode=770
# 確認
$ ls -l /opt/lampp/htdocs
total 41
-rwx------. 1 vagrant vagrant 3607 Feb 27 2017 applications.html
-rwx------. 1 vagrant vagrant 177 Feb 27 2017 bitnami.css
drwxrwx---. 1 vagrant vagrant 4096 Nov 16 01:15 dashboard
-rwx------. 1 vagrant vagrant 30894 May 11 2007 favicon.ico
drwxrwx---. 1 vagrant vagrant 0 Nov 16 01:15 img
-rwx------. 1 vagrant vagrant 260 Jul 9 2015 index.php
drwxrwx---. 1 vagrant vagrant 0 Nov 16 01:15 webalizer
/etc/rc.localの例
$ cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# vboxsf mount
mount -t vboxsf windows_no_htdocs /opt/lampp/htdocs -o rw,uid=500,gid=500,fmode=0700,dmode=770
参考: vboxsfのマウントオプション
$ sudo mount.vboxsf -h
Usage: mount.vboxsf [OPTIONS] NAME MOUNTPOINT
Mount the VirtualBox shared folder NAME from the host system to MOUNTPOINT.
-w mount the shared folder writable (the default)
-r mount the shared folder read-only
-n do not create an mtab entry
-s sloppy parsing, ignore unrecognized mount options
-o OPTION[,OPTION...] use the mount options specified
Available mount options are:
rw mount writable (the default)
ro mount read only
uid=UID set the default file owner user id to UID
gid=GID set the default file owner group id to GID
ttl=TTL set the "time to live" to TID for the dentry
dmode=MODE override the mode of all directories to (octal) MODE
fmode=MODE override the mode of all regular files to (octal) MODE
umask=UMASK set the umask to (octal) UMASK
dmask=UMASK set the umask applied to directories only
fmask=UMASK set the umask applied to regular files only
iocharset CHARSET use the character set CHARSET for I/O operations
(default set is utf8)
convertcp CHARSET convert the folder name from CHARSET to utf8
Less common used options:
noexec,exec,nodev,dev,nosuid,suid
2017/11/16 15:46