Hi,
I am just trying to get my first Proxmox installation up and running. The first LXC container is up, but has no network.
What am I doing wrong?
/etc/network/interfaces on host
/etc/network/interfaces in LXC container
ifconfig result on host if the container is running (What about the veth100i0? has the same MAC as vmbr3)
ifconfig in the container
/var/lib/lxc/100/config looks like (I don't see any lxc.network.link entry. Tried to fix manually, but the file always reverts to this version on CT startup. WHY?)
/etc/pve/lxc/100.conf:
Best regards,
schawo
I am just trying to get my first Proxmox installation up and running. The first LXC container is up, but has no network.
What am I doing wrong?
/etc/network/interfaces on host
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 37.xxx.xxx.74
netmask 255.255.255.252
network 37.xxx.xxx.72
broadcast 37.xxx.xxx.75
gateway 37.xxx.xxx.73
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 127.0.0.1
dns-search ml
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr3
iface vmbr3 inet static
address 37.xxx.xxx.209
netmask 255.255.255.252
bridge_ports eth0
bridge_stp off
bridge_fd 0
/etc/network/interfaces in LXC container
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 37.xxx.xxx.209
netmask 255.255.255.255
ifconfig result on host if the container is running (What about the veth100i0? has the same MAC as vmbr3)
Code:
eth0 Link encap:Ethernet HWaddr ac:22:0b:51:82:3e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45343 errors:0 dropped:0 overruns:0 frame:0
TX packets:31866 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13400437 (12.7 MiB) TX bytes:11534602 (11.0 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12449 errors:0 dropped:0 overruns:0 frame:0
TX packets:12449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:4830390 (4.6 MiB) TX bytes:4830390 (4.6 MiB)
veth100i0 Link encap:Ethernet HWaddr fe:33:0d:7c:df:e0
inet6 addr: fe80::fc33:yyyyyyyyyyyy:dfe0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:658 (658.0 B) TX bytes:508 (508.0 B)
vmbr0 Link encap:Ethernet HWaddr ac:22:0b:51:82:3e
inet addr:37.xxx.xxx.74 Bcast:37.xxx.xxx.75 Mask:255.255.255.252
inet6 addr: 2a03:2040:1:519:ae22:yyyyyyyyyyyy:823e/64 Scope:Global
inet6 addr: fe80::ae22:yyyyyyyyyyyy:823e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44116 errors:0 dropped:0 overruns:0 frame:0
TX packets:31866 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12688523 (12.1 MiB) TX bytes:11534602 (11.0 MiB)
vmbr3 Link encap:Ethernet HWaddr fe:33:0d:7c:df:e0
inet addr:37.xxx.xxx.209 Bcast:37.xxx.xxx.211 Mask:255.255.255.252
inet6 addr: fe80::d476:yyyyyyyyyyyy:8ab2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4300 (4.1 KiB) TX bytes:868 (868.0 B)
ifconfig in the container
Code:
eth0 Link encap:Ethernet HWaddr 32:39:33:36:62:34
inet addr:37.xxx.xxx.209 Bcast:37.xxx.xxx.211 Mask:255.255.255.252
inet6 addr: fe80::3039:yyyyyyyyyyyy:6234/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:648 (648.0 B) TX bytes:798 (798.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:544 (544.0 B) TX bytes:544 (544.0 B)
/var/lib/lxc/100/config looks like (I don't see any lxc.network.link entry. Tried to fix manually, but the file always reverts to this version on CT startup. WHY?)
Code:
lxc.arch = amd64
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.monitor.unshare = 1
lxc.tty = 2
lxc.environment = TERM=linux
lxc.utsname = corimar.com
lxc.cgroup.memory.limit_in_bytes = 1073741824
lxc.cgroup.memory.memsw.limit_in_bytes = 9663676416
lxc.cgroup.cpu.cfs_period_us = 100000
lxc.cgroup.cpu.cfs_quota_us = 200000
lxc.cgroup.cpu.shares = 2000
lxc.rootfs = /var/lib/lxc/100/rootfs
lxc.network.type = veth
lxc.network.veth.pair = veth100i0
lxc.network.hwaddr = 32:39:33:36:62:34
lxc.network.name = eth0
/etc/pve/lxc/100.conf:
Code:
arch: amd64
cpulimit: 2
cpuunits: 2000
hostname: corimar.com
memory: 1024
net0: name=eth0,bridge=vmbr3,hwaddr=32:39:33:36:62:34,type=veth
ostype: debian
rootfs: local:100/vm-100-disk-1.raw,size=100G
swap: 8192
Best regards,
schawo