[Bug] Container (Network card turned off)

Drthrax74

Well-Known Member
Apr 22, 2019
36
5
48
35
Hi,

I think is a bug with parameter link_down=0 with command pct create .

When i use link_down=0, the network card is turned off.

When I created a container without these settings, it's fine.

Variables:
clear;
DATASTORE_CT=Data
DATASTORE_TEMPLATE=local
VMID=103
POOL=100.LXC
TEMPLATE=debian-12-standard_12.7-1_amd64.tar.zst

Download Template
pveam remove $DATASTORE_TEMPLATE:vztmpl/$TEMPLATE;
pveam download $DATASTORE_TEMPLATE $TEMPLATE;


Stop & Destroy LXC:
pct stop $VMID;
pct destroy $VMID 2>/dev/null;

Create Container:
pct create $VMID $DATASTORE_TEMPLATE:vztmpl/$TEMPLATE \
--template 0 \
--unprivileged=0 \
--pool $POOL \
--ostype alpine \
--hostname Alpine \
--timezone Europe/Paris \
--storage $DATASTORE_CT \
--rootfs $DATASTORE_CT:15 \
--cores 2 \
--memory 1024 \
--swap 512 \
--password admin \
--net0 name=eth0,bridge=vmbr0,firewall=0,link_down=0,gw=192.168.0.1,ip=192.168.0.220/24,type=veth \
--searchdomain lan.home \
--nameserver 8.8.8.8

Start Container:
pct start $VMID;

Interface eth0 is state anormal !
2: eth0@if28: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether bc:24:11:9f:4d:16 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.0.220/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever

proxmox-ve: not correctly installed (running kernel: 6.8.12-5-pve)
pve-manager: 8.3.2 (running version: 8.3.2/3e76eec21c4a14a7)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8.12-5-pve: 6.8.12-5
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.2.0
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.10
libpve-cluster-perl: 8.0.10
libpve-common-perl: 8.2.9
libpve-guest-common-perl: 5.1.6
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.10.0
libpve-rs-perl: 0.9.1
libpve-storage-perl: 8.3.3
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.5.0-1
proxmox-backup-client: 3.3.2-1
proxmox-backup-file-restore: 3.3.2-2
proxmox-firewall: 0.6.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.3.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.3
pve-cluster: 8.0.10
pve-container: 5.2.3
pve-docs: 8.3.1
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.1.0
pve-firmware: not correctly installed
pve-ha-manager: 4.0.6
pve-i18n: 3.3.2
pve-qemu-kvm: 9.0.2-4
pve-xtermjs: 5.3.0-3
qemu-server: 8.3.3
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1
 
Last edited:

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!