Hi all,
I have a couple VMs set up in Proxmox, which do not get a IPv4 address after booting until I log in via the console and restart the networking in SystemD.
They are set to receive a IP address via DHCP, which are all static leases by MAC address in a ISC DHCPd server, running on a different physical host in the same subnet and VLAN as the virtual machines as well as Proxmox itself.
I have a NUC which I installed and set up the same way (OS, on boarding configuration, software), and it has no problem getting a IP address on startup.
They are all Debian 12 VMs, QEMU based. Proxmox config shows them as i440fx machine types, with the networking device set to "VirtIO (paravirtualised)", bridged to Proxmox's vmbr0.
My /etc/network/interfaces file in each appears as:
I have nothing in my interfaces.d directory.
When the VM starts, it gets a IPv6 address on ens18, which I assume is self assigned, as my network does not have any IPv6 infrastructure (I know, my ISP does not support IPv6 so I figured I'll keep my network v4 only until they finally agree to support v6 or another ISP finally catches up with their performance/download limit/cost ratio).
When I run
It's not a huge huge issue, since I only need to do anything that involves a reboot of any of this maybe once a quarter, but it is undesirable and I don't always remember to reset the networking in them at the time, at least until I realise I can't access one I need...
Anyone have any hints to why this might be happening, Pointers of what logs to look for in syslog would be good as well. I don't see any "failures" or anything else obvious to me...
I have a couple VMs set up in Proxmox, which do not get a IPv4 address after booting until I log in via the console and restart the networking in SystemD.
They are set to receive a IP address via DHCP, which are all static leases by MAC address in a ISC DHCPd server, running on a different physical host in the same subnet and VLAN as the virtual machines as well as Proxmox itself.
I have a NUC which I installed and set up the same way (OS, on boarding configuration, software), and it has no problem getting a IP address on startup.
They are all Debian 12 VMs, QEMU based. Proxmox config shows them as i440fx machine types, with the networking device set to "VirtIO (paravirtualised)", bridged to Proxmox's vmbr0.
My /etc/network/interfaces file in each appears as:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
sourcve /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet dhcp
I have nothing in my interfaces.d directory.
When the VM starts, it gets a IPv6 address on ens18, which I assume is self assigned, as my network does not have any IPv6 infrastructure (I know, my ISP does not support IPv6 so I figured I'll keep my network v4 only until they finally agree to support v6 or another ISP finally catches up with their performance/download limit/cost ratio).
When I run
systemctl restart networking.service
, lo and behold, I get the correct IPv4 address and everything is fine until the next time I need to shut down or restart the VM (or Proxmox as a whole). I've had the switch that the Proxmox host is connected to lose power previously, and the VMs of course recognised the loss of network connectivity, but when the switch was powered back up, I didn't need to reset the VMs networking for any of them, they just got back to it.It's not a huge huge issue, since I only need to do anything that involves a reboot of any of this maybe once a quarter, but it is undesirable and I don't always remember to reset the networking in them at the time, at least until I realise I can't access one I need...
Anyone have any hints to why this might be happening, Pointers of what logs to look for in syslog would be good as well. I don't see any "failures" or anything else obvious to me...