[PVE-User] Bug into /etc/hosts in From Centos Template to Deploy

Charles Bijon charles at bijon.fr
Thu Nov 10 12:46:04 CET 2011


Hi,

I have just find why my services was broken. When you start a Conterner, 
the /etc/hosts file is not correctly build.

Example :

# Auto-generated hostname. Please do not remove this comment.
127.0.0.1 geo2620.eu.webraska.com localhost  geo2620 localhost.localdomain


Instead of :

127.0.0.1    localhost    localhost.localdomain
10.50.26.20    geo2620    geo2620.eu.webraska.com

Can it be a problem without using dhcp server and using vethXX network 
interface with an ip in hard in /etc/sysconfig/network-scripts/ifcfg-eth0 ?

How i can correct it ?

Regards,

Charles





More information about the pve-user mailing list