Unable to start vm using smb shared folders

150 views
Skip to first unread message

Wesley Pallete de Sousa

unread,
Mar 27, 2018, 3:21:44 PM3/27/18
to Vagrant
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

James Whelan

unread,
Apr 20, 2018, 12:37:05 PM4/20/18
to Vagrant
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"
Reply all
Reply to author
Forward
0 new messages