Closed liberodark closed 1 year ago
you are using a downstripped lxc image.
Start the lxc without dhcp configuration. Use dhclient to get ip and install the needed packages like ifupdown etc.
It isn't an issue. This is related to your used lxc image.
After you've installed the missed packages, you can use it with dhcp configuration.
Hi @TheBossME,
Problably you have not check my LXC 101.conf
because is in Static IP.
DHCP or Static ins't work have only just 1 LXC Server with DHCP for test and all lxc images have :
/usr/sbin/dhclient
& /usr/sbin/ifdown
installed.
Have check.
Also have installed ifupdown2
on before install PVE.
And the LXC image is come from the same place of jiangcuo
My tests from Debian Buster :
dhclient -v -r eth0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/2e:1a:cb:fb:b4:45
Sending on LPF/eth0/2e:1a:cb:fb:b4:45
Sending on Socket/fallback
dhclient -v eth0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/2e:1a:cb:fb:b4:45
Sending on LPF/eth0/2e:1a:cb:fb:b4:45
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Other precision same images in AMD64
have been used on my PVE Cluster with dhcp & ip static without any error.
I think this is issue from ARM64
version (probably missing something...)
Best Regards
Is it clear now, that the creation of the lxc needs "NO NETWORK" configuration while in the LXC image is a directory missed /etc/network
do create a first LXC without any network modifications. This allow the proper creation.
start the LXC Container and enter dhclient in the container
check if you have then an IP address received from your dhcp server.
do apt update and apt install ifupdown
stop the LXC and change the network setup to dhcp or a static ip.
restart LXC and check network connection.
shutdown the LXC and make a backup and put this backup into your /var/lib/vz/template/cache directory for future installations, or do anytime the same steps while creating LXC containers. This is the actual work around on LXC's with missed /etc/network directories.
hope this helps a little bit. (actually tested with Debian bookworm and buster and also almalinux 9 images from the nightly build repository)
LXC grabbed from: https://us.lxd.images.canonical.com/images/debian/buster/arm64/default/
And last but not least one option is create /etc/network directory in the container before switching to dhcp or static ip. This could help also.
Hi, @TheBossME (Thank for your explain)
I think you speak for Debian 11 & 12, have understand your workaround.
But in Debian 10 have ifupdown installed :
ifupdown/oldoldstable,now 0.8.35 arm64 [installed]
and /etc/network :
ls /etc/network
if-down.d if-post-down.d if-pre-up.d if-up.d interfaces interfaces.d
And on other LXC AlmaLinux 8 & 9 too. But don't have network access. That my issue.
Best Regards
Check your Proxmox hypervisor network (disable vlan aware settings if possible)
Looks like related to your hypervisor kernel. Didn't have that hardware. Try with Debian backport kernels. 6.4.
Looks like you are using armbian kernels from Odroid and not Debian kernels. Compile your own Proxmox kernel if you're able, related to your hardware. But use Debian bookworm repos and the one from jiangcuo the Proxmox unofficial repo. Good luck
Yes im using kernel by armbian for Odroid C4 im try to switch on kernel 6.4 edge. That fix my issue :D
Hi,
Board : Odroid C4 OS : Armbian Kernel : 6.1.50 PVE Packages :
interfaces
brctl show
Have create AlmaLinux CT (101) can ping my PVE but have not internet access and i can't ping my gateway.
101.conf
You know if you have specific issue on arm with network ?
Also i cannot create debian CT (200) have :
unable to open file '/etc/network/interfaces.tmp.2766' - No such file or directory
200.conf
Also have try to run cloudinit have network issue too.
Also
resolvconf
rdnssd
is not installedBest Regards