I have setup a container for Ubuntu 12.04 with a single network card. The config file has:
root@dev2:~# cat /etc/pve/nodes/s1/openvz/104.conf
Now, when the container boots, the following network config is created:
root@dev2:~# cat /etc/network/interfaces
Of course, this is not what is expected. Even if I delete the /etc/network/interfaces file, it's recreated exactly this way again.
The last part, that is the biggest problem, is that /etc/resolv.conf does not contain anything.
root@dev2:~# cat /etc/resolv.conf
Now therefor this works:
root@dev2:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=56 time=561 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=56 time=19.2 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=56 time=18.8 ms
but this does not:
root@dev2:~# ping www.google.com
ping: unknown host www.google.com
I suppose I could remove all configuration information from proxmox (the 104.conf) file and configure the whole thing by hand, but that would defeat the whole point of having proxmox create the config automatically. Also, when the client that I'm building this for, eventually wants to create his own machines, he will have to configure those manually as well, which is not the plan.
Can someone please help here?
root@dev2:~# cat /etc/pve/nodes/s1/openvz/104.conf
Code:
HOSTNAME="dev2.inhouse.abellard.com"
SEARCHDOMAIN="inhouse.abellard.com"
NAMESERVER="192.168.121.1"
NETIF="ifname=eth0,bridge=vmbr0,mac=6A:77:3B:2B:62:94,host_ifname=veth104.0,host_mac=F6:2C:5E:35:A0:91"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/mnt/cephfs/private/104"
OSTEMPLATE="ubuntu-12.04-minimal_amd64.tar.gz"
IP_ADDRESS="192.168.121.36"
root@dev2:~# cat /etc/network/interfaces
Code:
# This configuration file is auto-generated.
#
# WARNING: Do not edit this file, your changes will be lost.
# Please create/edit /etc/network/interfaces.head and
# /etc/network/interfaces.tail instead, their contents will be
# inserted at the beginning and at the end of this file, respectively.
#
# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail
# will be at the very end of this file.
#
# Auto generated lo interface
auto lo
iface lo inet loopback
# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
up ifconfig venet0 up
up ifconfig venet0 127.0.0.2
up route add default dev venet0
down route del default dev venet0
down ifconfig venet0 down
iface venet0 inet6 manual
up route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0
auto venet0:0
iface venet0:0 inet static
address 192.168.121.36
netmask 255.255.255.255
Of course, this is not what is expected. Even if I delete the /etc/network/interfaces file, it's recreated exactly this way again.
The last part, that is the biggest problem, is that /etc/resolv.conf does not contain anything.
root@dev2:~# cat /etc/resolv.conf
Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
Now therefor this works:
root@dev2:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=56 time=561 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=56 time=19.2 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=56 time=18.8 ms
but this does not:
root@dev2:~# ping www.google.com
ping: unknown host www.google.com
I suppose I could remove all configuration information from proxmox (the 104.conf) file and configure the whole thing by hand, but that would defeat the whole point of having proxmox create the config automatically. Also, when the client that I'm building this for, eventually wants to create his own machines, he will have to configure those manually as well, which is not the plan.
Can someone please help here?
Last edited: