try adding the SMB host authentication information to the config config.vm.synced_folder "./sh_provision", "/tmp/sh_provision", create: true , type: "smb", create: true, smb_host: "yourhostname", smb_username: "hostusername", smb_password: "hostpassword"
On Tuesday, March 27, 2018 at 3:21:44 PM UTC-4, Wesley Pallete de Sousa wrote: > > I'm using Vagrant 2.0.2 with VirtualBox 5.2.8 r121009 (Qt5.6.2) to run a > Debian 8 box on a brand new Windows 10 Pro for Workstations. > > I just installed windows on this pc last week and i'm trying to build a > new box from scratch,but I'm running into some issues because I need to use > smb shared folders. I have tried all solutions available on internet and > still it doesn't work. > Every time I try a vagrant up, the command returns this message: Vagrant > failed to generate a list of local SMB shares. Please try running the > command again. > > Is there any known problem with this vagrant environment I'm using? > > Here is my Vagrantfile: > > # -*- mode: ruby -*- > # vi: set ft=ruby : > > > Vagrant.configure(2) do |config| > config.vm.hostname = "vmhost" > #Vanilla Debian available on vagrant cloud > config.vm.box = "debian/jessie64" > > > > config.vm.network "forwarded_port", guest: 80, host: 80 > > config.vm.network "forwarded_port", guest: 3306, host: 3306 > config.vm.network "forwarded_port", guest: 443, host: 443 > config.vm.network "forwarded_port", guest: 3000, host: 3000 > config.vm.network "forwarded_port", guest: 6379, host: 6379 > config.vm.network "forwarded_port", guest: 27017, host: 27017 > > config.vm.network "private_network", ip: "192.168.56.102" > > > > config.vm.synced_folder "./var/www", "/var/www", type: "smb", > mount_options: ["vers=3.02","mfsymlinks,dir_mode=0755,file_mode=0755"], > group: "www-data", owner: "vagrant", create: true > > config.vm.synced_folder "./apache/sites-available", > "/etc/apache2/sites-available", type: "smb", mount_options: ["vers=3.02", > "mfsymlinks,dir_mode=0755,file_mode=0755"], create: true > config.vm.synced_folder "./sh_provision", "/tmp/sh_provision", create: > true > > > config.vm.provision "shell", path: "sh_provision/no_provision", run: > "always" > > config.vm.provider :virtualbox do |box| > box.gui = true > box.name = "vmhost" > box.memory = "1024" > end > end > > > Thanks in advance > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/cff94371-d2b3-41ae-ae1f-fdd0e481a979%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
