[Bug 1561250] Re: Xenial vagrant image is missing its hostname in /etc/hosts

GGeorg georg-ubuntu.com at glas.eu.org
Wed Jul 6 07:52:42 UTC 2016


Hi,

in case you are stuck, here is my workaround that should bring back most
of the default features.

To be fair, this could also be fixed very easy by a way simpler approach
using cloud-inits user-data feature within vagrant. All it would need is
this line in the box user-data image in ubuntu-xenial-16.04-cloudimg-
configdrive.vmdk so in case you want to repackage the box, go that way
and add:

manage_etc_hosts: localhost

In the ubuntu-xenial-16.04-cloudimg-configdrive.vmdk user-data File
I cloud not find the code that creates ubuntu-xenial-16.04-cloudimg-configdrive.vmdk on cloud-images.ubuntu.com, anyone that could help so we can submit a patch to that tool ?

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

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

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

Status in cloud-images:
  Confirmed
Status in livecd-rootfs package in Ubuntu:
  Confirmed

Bug description:
  The vagrant build for xenial is missing an in /etc/hosts. This
  generates an error when running sudo.

  ubuntu at ubuntu-xenial:~$ cat /etc/hosts
  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
  ubuntu at ubuntu-xenial:~$ sudo echo see the error ^^^^
  sudo: unable to resolve host ubuntu-xenial
  see the error ^^^^
  ubuntu at ubuntu-xenial:~$

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



More information about the foundations-bugs mailing list