Hi I am new to vagrant. Please see my vagrant setting up structure in 
> Windows 7 machine.





<https://lh3.googleusercontent.com/-hQeo-pwaMT8/Vyd0i1wEMhI/AAAAAAAAAXo/q3dgJPgmUBYBkUi3gfB4TzSSHn6z3rdbgCLcB/s1600/4.PNG>


The bootstrap.sh is


#!/usr/bin/env bash
sudo -s <<EOF
yum makecache fast
yum update -y
cp /vagrant/consul /bin
firewall-cmd --zone=public --add-port=8300/tcp --permanent
firewall-cmd --zone=public --add-port=8500/tcp --permanent
firewall-cmd --reload
consul agent -dev -ui -bind "172.28.128.3" -client "172.28.128.3"
EOF

The Vagrantfile is 
Vagrant.configure(2) do |config|
  config.vm.box = "puppetlabs/centos-7.0-64-puppet"
  config.vm.network "private_network", ip: "172.28.128.3"
  config.vm.provision :shell, path: "bootstrap.sh"
end

Then I run the command "vagrant up"
But when I open the VirtualBox. The status is "Powered Off". 

<https://lh3.googleusercontent.com/-TYH0GNRg4iw/Vyd13U3WtlI/AAAAAAAAAX0/MN8lcbY7JGYBh_VwMxmSl5IxtpzkidiagCLcB/s1600/5000.PNG>


Why?

-- 
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/6463ed98-acaa-4424-a150-ad1c287e3fbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to