vagrant - Authentication failure. Retrying... in Vagrantfile while using a custom created box -


i use following command package vm,

vagrant package --base vmid —-output builder.box 

my vagrantfile looks follows,

box = "centos/7" prefix_ip_addr = "174.10.10."  vagrant.configure("2") |config|     config.vm.box = box      builder_ip = "%s100" % [prefix_ip_addr]     config.ssh.forward_agent = true     config.ssh.insert_key = false      config.vm.define :builder |builder|         # setup builder vm , ip         builder.vm.hostname = "builder"         builder.vm.network :private_network, ip: builder_ip          # setup builder vm system requirements         builder.vm.provider "virtualbox" |v|              v.memory = 1024 * 16             v.cpus = 8              v.customize ["modifyvm", :id, "--natdnshostresolver1","on"]             v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]         end      end  end 

then use created box machine, vagrantfile looks follows,

vagrant.configure("2") |config|     config.ssh.forward_agent = true     config.vm.define :builder1 |builder|         builder.vm.box = "package.box"     end  end 

but getting error,

builder1: warning: authentication failure. retrying... builder1: warning: authentication failure. retrying... builder1: warning: authentication failure. retrying...  timed out while waiting machine boot.         means vagrant unable communicate guest     machine within configured ("config.vm.boot_timeout" value) time     period.  if above, should able see error(s) vagrant had when attempting connect machine. these errors hints may wrong.  if you're using custom box, make sure networking working , you're able connect machine. common problem networking isn't setup in these boxes. verify authentication configurations setup properly, well.  if box appears booting properly, may want increase timeout ("config.vm.boot_timeout") value. 

please stuck @ error long time now. :(


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -