-
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
config.vm.hostname for Ubuntu 15.04 fails #5673
Comments
I'm having the same issue. I just tried with 15.04 today and got this. |
I've tried
it seems everything ok, no errors, but if i want to start the service, it is still masked. Any ideas? |
having the same issue |
I got the same error message. On my Ubuntu VM ( based on image from cloud.ubuntu) I saw the next: sudo systemctl status hostname
● hostname.service
Loaded: masked (/dev/null)
Active: inactive (dead) ls -la /lib/systemd/system/hostname.service
lrwxrwxrwx 1 root root 9 Apr 18 21:11 /lib/systemd/system/hostname.service -> /dev/null As temporary workaround it is possible to use /etc/init.d/hostname.sh |
I encounter the same problem reported by @jameskyle but on a Debian Wheezy, after an apt-get update ; apt-get upgrade .
I retested with a upgraded Debian box 7.8, the creation of the VM is working fine, but after a vagrant halt and vagrant up with this line in Vagrantfile
I encounter the same problem.
Here are the Vagrant Log:
|
It seems like the only work-around for now is #host.vm.hostname = "skynet"
host.vm.provision :shell, inline: "hostnamectl set-hostname skynet" |
Encountering the same on Ubuntu 15.04. |
Same here. Can't wait to see the fix! |
Fix #5673 - Use hostnamectl to set the hostname on Ubuntu Vivid 15.
yup |
After updating to |
@czerasz version upgrade to |
This is breaking again on the Wily betas. Can we have a better fix that doesn't rely on checking the codename of one specific release? |
Still broken with ubuntu/wily and vagrant 1.7.4... |
+1 I saw it fixed for vivid but came up again for wily. |
PR'd #6470 -> avoids hard-coding Ubuntu distribution names |
Closed and reopened: #6471 |
Problem is also there in 16.04 (fix #6470 does not work): |
workaround: |
@nubae can you file a new issue, please? |
@reedloden yup that seems to be the same issue... still need to re-file a new issue or not? |
Using Vagrant 1.7.4 with Ubunut 16.04 and still having the issue:
Ubuntu Box Version: '20161214.0.0' |
@ravishtiwari Upgrading to Vagrant 1.9.1 solved this for me. |
@awibmer - I've recently upgraded to Vagrant 1.9.1 will confirm if the issue is fixed for me as well. Thanks |
Upgrading to 1.8.5 solved this for me |
@awibmer - upgrading to 1.9.1 has resolved this for me as well, thanks for your help. |
Im now on vagrant 2.2.1 and have the same problem now |
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. |
Error below. The hostname service is masked in ubuntu 15.04, the recommended way to control the hostname seems to be hostnamectl.
The text was updated successfully, but these errors were encountered: