SMB Shared folder on Windows 10
Posted: 22. Aug 2022, 17:53
Hi, I'm running Windows 10 Home with Virtualbox Verzion 6.1.36 r152435 (Qt5.6.2) with latest guest aditions installed, Vagrant 2.3.0. I'm uneable make shared folder working. I've tryied also nfs, but that seems to be unsupported.
Vagrant configuration:
config.vm.synced_folder './build', '/var/www',
type: "smb",
mount_options: ["smb_username=desktop-xxxxx\hxxxx","smb_password=xxxxxx"]
The output is like this:
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'generic/ubuntu2204' version '4.1.6' is up to date...
==> default: Clearing any previously set forwarded ports...
Vagrant requires administrator access for pruning SMB shares and
may request access to complete removal of stale shares.
==> default: Preparing SMB shared folders...
default: You will be asked for the username and password to use for the SMB
default: folders shortly. Please use the proper username/password of your
default: account.
default:
default: Username (user[@domain]): desktop-xxxx\hxxxx
default: Password (will be hidden):
Vagrant requires administrator access to create SMB shares and
may request access to complete setup of configured shares.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 3306 (guest) => 3306 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection aborted. Retrying...
default: Warning: Connection reset. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting SMB shared folders...
default: C:/projects/xxxxx/build => /var/www
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-xxxxxxx-xxxxxxx,uid=1000,gid=1000,mfsymlinks,_netdev,smb_username=desktop-xxxxxhxxxx,smb_password=*****,nofail //192.168.1.245/vgt-xxxxxxxxxxxxxxxxxxxxxxxxxxx /var/www
The error output from the last command was:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Could anybody help please?
Vagrant configuration:
config.vm.synced_folder './build', '/var/www',
type: "smb",
mount_options: ["smb_username=desktop-xxxxx\hxxxx","smb_password=xxxxxx"]
The output is like this:
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'generic/ubuntu2204' version '4.1.6' is up to date...
==> default: Clearing any previously set forwarded ports...
Vagrant requires administrator access for pruning SMB shares and
may request access to complete removal of stale shares.
==> default: Preparing SMB shared folders...
default: You will be asked for the username and password to use for the SMB
default: folders shortly. Please use the proper username/password of your
default: account.
default:
default: Username (user[@domain]): desktop-xxxx\hxxxx
default: Password (will be hidden):
Vagrant requires administrator access to create SMB shares and
may request access to complete setup of configured shares.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 3306 (guest) => 3306 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection aborted. Retrying...
default: Warning: Connection reset. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting SMB shared folders...
default: C:/projects/xxxxx/build => /var/www
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-xxxxxxx-xxxxxxx,uid=1000,gid=1000,mfsymlinks,_netdev,smb_username=desktop-xxxxxhxxxx,smb_password=*****,nofail //192.168.1.245/vgt-xxxxxxxxxxxxxxxxxxxxxxxxxxx /var/www
The error output from the last command was:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Could anybody help please?