Hello everybody,
I create my container with the command pct create.
The problem I encounter is with my hosts file. This is how it is.
And I would like it to be like those created via the interface like:
Can you help me ?
I create my container with the command pct create.
Code:
pct create $CTID local:vztmpl/$Template.tar.gz --cpulimit $CORE --cpuunits 1024 --hostname $NAME --memory $MEMORY --net0 name=eth0,bridge=vmbr0,gw=$GWIP,ip=$IP/24,type=veth --onboot 1 --ostype centos --rootfs $STORAGES:$DiskSize --swap 512'
The problem I encounter is with my hosts file. This is how it is.
Code:
127.0.0.1 localhost LXC_NAME
# --- BEGIN PVE ---
:: 1 localhost.localnet localhost
$IP $NAME.lan $NAME
# --- END PVE ---
And I would like it to be like those created via the interface like:
Code:
127.0.0.1 localhost LXC_NAME
# --- BEGIN PVE ---
:: 1 localhost.localnet localhost
127.0.1.1 $NAME.lan $NAME
# --- END PVE ---
Can you help me ?