Problem with /vagrant share when running on Azure creating a Centos 6.7 VM

33 views
Skip to first unread message

marka...@gmail.com

unread,
Oct 13, 2015, 7:15:37 AM10/13/15
to Vagrant
Hi,

Continuing my theme of problems with azure. Having now overcome (Circumvented) my chef installation problems I now find that I can't get the /vagrant share working.

I know I can disable this with:

    override.vm.synced_folder '.', '/vagrant', disabled: true

Only problem is that as part of my install there are files I need access to which it is seems fairly normally to put them here and I believe this is fairly normal practise. The problem is it prompts me for a "windows" (I believe) user and password. 

==> 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: Windows account.
    default:
    default: Username: 
    default: Password (will be hidden):

Whatever I enter just doesn't seem to work and I get the error output below:

C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/linux/cap/choose_
addressable_ip_addr.rb:7:in `block in choose_addressable_ip_addr': undefined met
hod `each' for nil:NilClass (NoMethodError)
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/linu
x/cap/choose_addressable_ip_addr.rb:6:in `tap'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/linu
x/cap/choose_addressable_ip_addr.rb:6:in `choose_addressable_ip_addr'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/capabil
ity_host.rb:111:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/capabil
ity_host.rb:111:in `capability'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/guest.r
b:43:in `capability'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/synced_fold
ers/smb/synced_folder.rb:109:in `enable'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
builtin/synced_folders.rb:92:in `block in call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
builtin/synced_folders.rb:89:in `each'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
builtin/synced_folders.rb:89:in `call'
        from C:/Users/gilma01/.vagrant.d/gems/gems/vagrant-azure-1.3.0/lib/vagra
nt-azure/action/sync_folders.rb:28:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
warden.rb:34:in `call'
        from C:/Users/gilma01/.vagrant.d/gems/gems/vagrant-omnibus-1.4.1/lib/vag
rant-omnibus/action/install_chef.rb:38:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
warden.rb:34:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
builtin/provision.rb:80:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
warden.rb:34:in `call'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
warden.rb:95:in `block in finalize_action'
        from C:/WP1/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/
warden.rb:34:in `call'
etc etc

Alvaro Miranda Aguilera

unread,
Oct 14, 2015, 7:21:09 AM10/14/15
to vagra...@googlegroups.com
Hello,

shared folder are meant to be used in Virtualbox or VMware, and
Vagrant will do the best to setup.

For unix to linux, you can use rsync.

There are some blog post about the mix that works between Windows
rsync (Cywwin, variables, path, etc) and linux guest

This is said to work if you have rsync from cygwin:
VAGRANT_DETECTED_OS=cygwin vagrant up

Alvaro.
> --
> 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 vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/1c61be14-2b25-47b7-a2e9-5b647d593658%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages