New answers tagged

0

If the IP addresses of all the machines are fixed then you could write a provisioning script that adds the correct entries to /etc/hosts. If the addresses are not known until boot then it has to be determined for each of the VMs and fed into the provisioning script. Finally, the the provisioning script to be run for all the VMs.


1

@ceejayoz's comment is right: vagrant destroy && vagrant up worked for me.


0

Why don't you try pre-installing the Azure SDK in the Vagrant base image (called 'box') https://www.vagrantup.com/docs/getting-started/boxes.html Vagrant uses a base image to quickly clone a virtual machine. These base images are known as "boxes" in Vagrant That way you have it installed and configured prior to provisioning.


0

I'm not sure if this is worth keeping alive for others, but it did end up being an obvious error, bar.dev didn't have its listen 443 ssl;, it had two listen 80;s. So a working bar.dev config: upstream bar_upstream { server 127.0.0.1:4000; } server { listen 80; listen 443 ssl; server_name www.bar.dev; ssl_certificate /etc/ssl/bar.crt; ...


0

Use the following command to assign IP address to the specific MAC address. netsh DHCP server <DHCPserverIP> scope <scopeIP> add reservedip <reservedIP> <MAC Address> Regards, Pemil


0

Here's what eventually worked: - name : Install nvm shell: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash register: nvm_installed sudo: False - name: Show nvm_installed output debug: msg: '{{nvm_installed}}' - name : source bash profiles shell: source ~/.bashrc args: executable: /bin/bash ...


0

You need to forward the port to the guest machine. See: https://docs.vagrantup.com/v2/networking/forwarded_ports.html Vagrant.configure("2") do |config| config.vm.network "forwarded_port", guest: 8080, host: 8080 end


0

This works for me: login with :gui by login/pass: vagrant/vagrant modify the /etc/rc.local file to include the line sh /etc/init.d/networking restart just before exit 0 disable :gui vagrant up or vagrant reload https://github.com/mitchellh/vagrant/issues/391#issuecomment-2078383



Top 50 recent answers are included