I can confirm this issue is also present when running on macOS.

-------------------------------------------------------------------------------------
$ uname -a
Darwin 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; 
root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

$ vagrant --version
Vagrant 1.8.4

$ vboxmanage --version
5.0.22r108108

$ vagrant box list | grep xenial
ubuntu/xenial64       (virtualbox, 20160615.1.0)

$ vagrant init ubuntu/xenial64

$ vagrant ssh

$ sudo cat /etc/hosts
sudo: unable to resolve host ubuntu-xenial
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
-------------------------------------------------------------------------------------

Note the "sudo: unable to resolve host ubuntu-xenial" above.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to