lxc-create template does not include /etc/hosts hostname resolution
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | lxc (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
1) Ubuntu 14.04 creating an Ubuntu 12.04 lxc container.
2) Version: 1.0.7-0ubuntu0.1
3) /etc/hosts should have been:
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
127.0.1.1 <hostname>
4) /etc/hosts was:
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
127.0.1.1 <hostname>
According to http://
| Serge Hallyn (serge-hallyn) wrote : | #2 |
I'm sorry, I don' t understand what you want changed. The hosts files in (3) and (4) are the same.
| Changed in lxc (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Antoni Segura Puimedon (celebdor) wrote : | #3 |
Sorry Serge, I didn't see the first reply. I made a mistake pasting the (4), the four was missing the
127.0.1.1 <hostname>
| Serge Hallyn (serge-hallyn) wrote : | #4 |
Could you please update the description to read exactly as it should? Both 3 and 4 have 127.0.1.1 <hostname>; I can't tell whether <hostname> is what you inserted to mask your actual hostname, or whether the bug is that your /etc/hosts actualy has "<hostname>" in it verbatim.
| Launchpad Janitor (janitor) wrote : | #5 |
[Expired for lxc (Ubuntu) because there has been no activity for 60 days.]
| Changed in lxc (Ubuntu): | |
| status: | Incomplete → Expired |


Status changed to 'Confirmed' because the bug affects multiple users.