sudo: unable to resolve host.. when creating ubuntu-cloud container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
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/.
with a simple userdata file like this:
#!/bin/sh
ifconfig eth0 > /ifconfig-eth0
See discussion details on this thread: http://
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
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Ben Howard (utlemming) |
I don't see this. I wonder why you were getting '.lxc' as your domain name. I can't reproduce that right now.
Regardless, note that on a modern saucy system this should be solved automatically when you set LXC_DOMAIN=lxc in /etc/default/ lxc-net.