Problem no network at fresh template lxc ubuntu, debian

THZzB

New Member
Jan 25, 2021
11
0
1
39
I used several lxc templates like: Debian 9.7, Debian 10, Ubuntu 20.04 LTS and don't have network out of the box. I have other VM(ubuntu iso) and CT(turnkey oscommerce)' that had network right out of the box.
This is a 'ip a' command output it looks like ip4 is missing:

Code:
root@dockerbuntu:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0@if29: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1e:48:ff:6e:93:01 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::1c48:ffff:fe6e:9301/64 scope link
       valid_lft forever preferred_lft forever

What could be a problem?
 
hi,

if i have to guess, your container is getting hung because of systemctl waiting for dhcp.

you can post your container config pct config CTID. but have you tried to set ipv6 to static and ipv4 to static or dhcp?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!