Root Cause:

Setting the hostname to "ubuntu-${release}" in cloud-images causes the
hostname not to be resolvable using /etc/hosts. Running hostname -f will
fail due to unresolveable default hostname causing a failure when
setting up the proper hostname by vagrant.

Suggested Fix:

Set the hostname to "localhost"

How to reproduce (Option 1):

1.) Install Oracle Virtualbox
2.) Install Vagrant
3.) Create a empty directory and download attached VagrantFile 
4.) Run "vagrant up"

Error:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

hostname -f

Stdout from the command:


Stderr from the command:

sudo: unable to resolve host ubuntu-xenial
mesg: ttyname failed: Inappropriate ioctl for device
hostname: No address associated with hostname


** Attachment added: "Vagrantfile"
   
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250/+attachment/4659101/+files/Vagrantfile

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1561250

Title:
  Xenial vagrant image is missing its hostname in /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1561250/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to