Unable to get DHCP IP after reboot

Ok, this is driving me crazy…

This is an HAOS version 12.1 installed as a VP on ProxMox and I use this VM to test updates before doing them on my “production” VM.

I had to reboot ProxMox for a kernel update and both the prod and test HAOS vms would not get a DHCP ip. After much mucking around I did get the prod vm up but I really am not sure how as I’m trying the same on the test server and have not been able to get it to take either a static IP or DHCP IP. My network is a 10.0.0.0/24 network.

This is the console initial screen that shows the IPs
image

From there I enter network info…

Ok, I try to down the interface then enter a static IP and it says it completed successfully but it does not take the IP.


If I set the method back to auto then I get the default IP addr and not from my dhcp server, it should get 10.0.0.108, and I did check and it’s a static lease with the correct MAC from proxmox.

I had exactly the same issue with the prod haos server and after doing the above steps a couple times, “network update enp0s18 -e” then “network update enp0s18 --ipv4-address 10.0.0.108 --ipv4-gateway 10.0.0.1” it then got a dhcp lease as it also got the nameserver that I didn’t enter that time. I’ve tried that on the test server also and I can’t get the darn thing to take an IP or get a proper lease. I’m really not sure what’s going on here…

Here’s screen shots from Proxmox config showing the MAC and OPNsense showing the DHCP lease.
image
image

This seems like an HAOS bug to me???
Thanks in advance

Ok, I finally found the magic sequence…
network update enp0s18 -e
network update enp0s18
network update enp0s18 --ipv4-address 10.0.0.108 --ipv4-gateway 10.0.0.1
network update enp0s18 --method auto

MAGIC happens and now I get the DHCP lease.
image

I’m going to reboot and see if it survives a reboot…

Ok, so the IP did NOT persist over the reboot and that magic sequence isn’t working now. So… I’m back to trying to get the IP lease again… Moan…

Even though every attempt to setup the ip, gateway, nameserver says it completes successfully it does not. Every time I set ipv4-method auto it goes back to the default IP of 192.168.1.102/24.

There’s some magic combo that finally got a dhcp lease but I have no idea what it is.

Also… All of my other VMs on ProxMox came up with their valid DHCP leases, except for my 2 HAOS VMs ( prod, and test ).