dotless-de / vagrant-vbguest

A Vagrant plugin to keep your VirtualBox Guest Additions up to date

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vagrant-vbguest

FarahBoudabous opened this issue · comments

I want to share and mount folders with type SMB but I got this problem, I think that the problem in the vagrant-vbguest plugin :

==> default: Checking for guest additions in VM...
==> default: Mounting SMB shared folders...
default: C:/Users/boudabou/Desktop/*****/box2 => /var/www/test
Vagrant is currently configured to mount SMB folders with the
mfsymlink option enabled. This is equivalent to adding the
following to your Vagrantfile:

config.vm.synced_folder '/host/path', '/guest/path', type: "smb", mount_options: ['mfsymlink']

This option may be globally disabled with an environment variable:

VAGRANT_DISABLE_SMBMFSYMLINKS=1
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t cifs -o vers=2.0,credentials=/etc/smb_creds_vgt-96fa08f743a95a0db5af7a30854059c6-cb426b02ca9dbcd1a5e7bb7b4985d549,uid=1000,gid=1000,mfsymlinks,_netdev //10.131.225.244/vgt-96fa08f743a95a0db5af7a30854059c6-cb426b02ca9dbcd1a5e7bb7b4985d549 /var/www/test

The error output from the last command was:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Hi. Sorry, but I think it's not an vbguest issue. Vagrants error message seems to be a bit misleading in your case. Since vboxsf is only used for the default mounts and not with SMB mounts (that's probably why you want to use them in the first place)
From the error message (mount error(13): Permission denied), I guess that there's an issue with your target directory /var/www/test (maybe /var/www does not exist, so you cannot mount into it, or /var/www/test is already present and mount refuses to overwrite it).

I changed the target directory into /var/farah and farah is not already present and I got this
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting SMB shared folders...
default: C:/Users/boudabou/Desktop/*****/box2 => /var/farah
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t cifs -o vers=2.0,credentials=/etc/smb_creds_vgt-96fa08f743a95a0db5af7a30854059c6-db02dfa54ec09cad644de8a6fded59a7,uid=1000,gid=1000,mfsymlinks,_netdev //10.129.7.17/vgt-96fa08f743a95a0db5af7a30854059c6-db02dfa54ec09cad644de8a6fded59a7 /var/farah

The error output from the last command was:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

again, sorry, this seems not to be an issue with this project. please head over to the vagrant community, there are people more qualified to answer your questions.