-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change_host_name fails on bootup #7625
Comments
I tried going back to Vagrant 1.8.4, but it didn't work at all with Virtualbox 5.1.x, so I went back to the latest 1.8.5. I then tried rolling back Virtualbox to 5.0.26, and I still get this error. |
I'm pretty sure this is a result of #7524, which is what I was afraid of. @kevwil can you run
and report the output? I'm willing to bet that older ubuntu doesnt have that file and detection is failing. /cc @nishidayuya |
|
Okay, thanks what I thought 😦. I'll get this fixed in the next release. |
- Semi-reverts hashicorpGH-7524 - Fixes hashicorpGH-7625
In case anyone else has this problem and stumbles across this issue (like me). A quick fix would be to add the file
And thanks to the Vagrant team for addressing the issue this fast 💜 |
Hi guys. Sorry for possible dummy question - I am new to vagrant.. where I should add updated: never mind guys. I understood - I had to comment that line in the Vagrantfile, boot up the guest machine, add there an /etc/os-release file and that fixed the problem |
Guys wanted to post here as well a solution which worked for me (I described it in my other comment but just to make it easier to read I will post it in this thread as well So, Guys I fixed this problem and one more ( which is described here using a solution with creating an additional file on a guest machine. which file needs to be created is also described in this comment - thank you @railsbros-dirk ! but I would put here all the steps what I did) Please note I am a very new guy with Vagrant so if I messed something up or did something incorrectly - that was only because I am a real newbie in this world. Also, I am sorry for such a detailed list of steps I did but that is oriented on same category Vagrant users as I am, but at least it helped me so I hope it might be helpful for someone else. So in a brand new "hashicorp/precise64" vm I could not either set Here is what I did to make it work in my case (hopefully it would help out someone else):
Good luck! |
/etc/issue is far from being a reliable source for OS detection as it can be changed by a user without affecting any OS functionality. As newer Debian systems run systemd by default, check for /etc/os-release and fallback to lsb_release for older Debian versions. Check hashicorp#7625 for a similar issue. Even lsb_release is not manatory, therefore keep the current code of parsing /etc/issue to avoid regressions.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version: 1.8.5
Host OS: Mac OS X 10.10.5
Guest OS: Ubuntu 12.04.1
Vagrantfile:
Debug Output: https://gist.github.com/kevwil/5f2a347764a689e338556ddde4f656c0
Expected behavior
What should have happened?
Clean bootup of virtual machine, possibly with puppet errors as that's what I'm working on.
Actual behavior
What actually happened?
Bootup is aborted because 'change_host_name' on this linux guest is 'not supported'.
Steps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here?
For example:
The text was updated successfully, but these errors were encountered: