You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
Vagrant is stuck at the step '==> buildserver: Updating /etc/hosts file on active guest machines...'.
Cause
I added echo "sudo -i" >> /home/vagrant/.bashrc to my provisioner script. My aim is to become root after login. It seems that the vagrant-hostmanager plugin cannot handle this (yet); After removing the sudo -i line, vagrant works just fine.
Tried a workaround
Putting the vagrant-hostmanager plugin as the last step didn't work either, because I have three machines and the plugin cannot update the /etc/hosts file on the first machine (since that machine does a sudo -i on login).
Reproduction
The issue can be reproduced by doing a vagrant up on the attached Vagrantfile and provisioner script.
Issue
Vagrant is stuck at the step '==> buildserver: Updating /etc/hosts file on active guest machines...'.
Cause
I added
echo "sudo -i" >> /home/vagrant/.bashrc
to my provisioner script. My aim is to become root after login. It seems that the vagrant-hostmanager plugin cannot handle this (yet); After removing thesudo -i
line, vagrant works just fine.Tried a workaround
Putting the vagrant-hostmanager plugin as the last step didn't work either, because I have three machines and the plugin cannot update the /etc/hosts file on the first machine (since that machine does a sudo -i on login).
Reproduction
The issue can be reproduced by doing a
vagrant up
on the attached Vagrantfile and provisioner script.vagrant-hostmanager-issue.zip
The text was updated successfully, but these errors were encountered: