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

Dan Watkins daniel.watkins at canonical.com
Wed Jul 6 09:14:25 UTC 2016


Hi Georg,

On 06/07/16 09:55, GGeorg wrote:
> could you provide the patch so we could review it ? The box file you
> provided is in no way compareable to cloud-images.

The box file I provided is what we expect to become the cloud image; it
is directly comparable. :)

> The box file is about twice the size - so it was built in another way.

It wasn't built another way, but it was built to contain more useful
packages.

> I think the only proper way to fix this (no change in filesystem or
> installed packets) is changing the config drive user-data .. which
> should be not hard to implement and is isolated to vagrant only cloud-
> image ..

We're happy to make Vagrant-specific changes to the Vagrant image, so we
can change this in the filesystem.

> Could you relay us the process Louis Zuckerman layed out - so we could
> provide a patch ? I was unable to find the script that creates the
> cloud-images on cloud-images.ubuntu.com

You can find the changes Louis has proposed at [0], which also includes
how he tested his changes.  (The images on cloud-images.ubuntu.com are
produced using Launchpad's buildds; all of the software that is used is
open-source, but for security reasons access to the build farm is
restricted to Canonical employees; the image provided above was built
using the buildds.)


[0]
https://code.launchpad.net/~semiosis/livecd-rootfs/fix-for-1565985/+merge/298305

-- 
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