Public bug reported:

I am getting messages like this with every "sudo" I do in a fresh
container:

"sudo: unable to resolve host test.lxc"

It happens with every container I create on 12.10 with 12.10 container
and ubuntu-cloud template.

Reproduction:

lxc-create -t ubuntu-cloud -n test.lxc -- --auth-key 
$HOME/.ssh/id_rsa.pub --userdata /root/my-userdata

with a simple userdata file like this:

#!/bin/sh
ifconfig eth0 > /ifconfig-eth0

See discussion details on this thread:
http://sourceforge.net/mailarchive/message.php?msg_id=30105268

Note that there is an easy workaround by adding the container name to
/etc/hosts yourself.

====
$ apt-cache policy lxc
lxc:
  Installed: 0.8.0~rc1-4ubuntu38
  Candidate: 0.8.0~rc1-4ubuntu38
$ lsb_release -rd
Description:    Ubuntu 12.10
Release:        12.10

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1079794

Title:
  sudo: unable to resolve host.. when creating ubuntu-cloud container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1079794/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to