DHCP issuing IPs yet VMs not getting them

sforza

New Member
Dec 31, 2022
2
0
1
Hi all,

Fresh install of Proxmox. My host node is hp elitedesk 260 g2. I can see my ISP router (which is the DHCP server) does issue IP addresses whenever I create VMs, but for some reason these are not picked. Please see screenshot, two instances of HAOS VM and one ubuntu LXC I tried to create with no luck. Proxmox itself is recognised as "unkown device" with 192.168.77.138 address but works just fine. HAOS VM is getting an IP from a completely different range - see screenshot.

Network device is VirtIO.

HAOS Network manager can be seen during VM boot.

My network is having single router from ISP. I do have a couple of switches due to the house layout but I don't think that should impact.

Newbie here - posting only after lots of reading here. Any help is greatly appreciated.

Many thanks in advance
sforza







PS: Some info:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

root@hp260:~# 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: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether 7c:d3:0a:22:b5:1a brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 7c:d3:0a:22:b5:1a brd ff:ff:ff:ff:ff:ff
inet 192.168.77.138/24 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::7ed3:aff:fe22:b51a/64 scope link
valid_lft forever preferred_lft forever
5: veth100i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
link/ether fe:e8:36:73:80:e7 brd ff:ff:ff:ff:ff:ff link-netnsid 0

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

root@hp260:~# ip r
default via 192.168.77.1 dev vmbr0 proto kernel onlink
192.168.77.0/24 dev vmbr0 proto kernel scope link src 192.168.77.138
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

root@hp260:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.77.138/24
gateway 192.168.77.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

root@hp260:~# lspci -v 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08) Subsystem: Hewlett-Packard Company Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=10 <?> Kernel driver in use: skl_uncore 00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) (prog-if 00 [VGA controller]) DeviceName: Onboard IGD Subsystem: Hewlett-Packard Company Skylake GT2 [HD Graphics 520] Flags: bus master, fast devsel, latency 0, IRQ 127 Memory at ee000000 (64-bit, non-prefetchable) [size=16M] Memory at d0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at 000c0000 [virtual] [disabled] [size=128K] Capabilities: [40] Vendor Specific Information: Len=0c <?> Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [100] Process Address Space ID (PASID) Capabilities: [200] Address Translation Service (ATS) Capabilities: [300] Page Request Interface (PRI) Kernel driver in use: i915 Kernel modules: i915 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model Subsystem: Hewlett-Packard Company Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model Flags: fast devsel, IRQ 11 Memory at ef12e000 (64-bit, non-prefetchable) [disabled] [size=4K] Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [dc] Power Management version 2 Capabilities: [f0] PCI Advanced Features 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI]) Subsystem: Hewlett-Packard Company Sunrise Point-LP USB 3.0 xHCI Controller Flags: bus master, medium devsel, latency 0, IRQ 124 Memory at ef110000 (64-bit, non-prefetchable) [size=64K] Capabilities: [70] Power Management version 2 Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+ Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) Subsystem: Hewlett-Packard Company Sunrise Point-LP CSME HECI Flags: bus master, fast devsel, latency 0, IRQ 126 Memory at ef12d000 (64-bit, non-prefetchable) [size=4K] Capabilities: [50] Power Management version 3 Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+ Kernel driver in use: mei_me Kernel modules: mei_me 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) (prog-if 01 [AHCI 1.0]) Subsystem: Hewlett-Packard Company Sunrise Point-LP SATA Controller [AHCI mode] Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 123 Memory at ef128000 (32-bit, non-prefetchable) [size=8K] Memory at ef12c000 (32-bit, non-prefetchable) [size=256] I/O ports at f090 [size=8] I/O ports at f080 [size=4] I/O ports at f060 [size=32] Memory at ef12b000 (32-bit, non-prefetchable) [size=2K] Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [70] Power Management version 3 Capabilities: [a8] SATA HBA v1.0 Kernel driver in use: ahci Kernel modules: ahci 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 122 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 0000e000-0000efff [size=4K] Memory behind bridge: ef000000-ef0fffff [size=1M] Prefetchable memory behind bridge: [disabled] Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Hewlett-Packard Company Sunrise Point-LP PCI Express Root Port Capabilities: [a0] Power Management version 3 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Access Control Services Capabilities: [220] Secondary PCI Express Kernel driver in use: pcieport 00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21) Subsystem: Hewlett-Packard Company Sunrise Point-LP LPC Controller Flags: bus master, medium devsel, latency 0 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) Subsystem: Hewlett-Packard Company Sunrise Point-LP PMC Flags: fast devsel Memory at ef124000 (32-bit, non-prefetchable) [disabled] [size=16K] 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) Subsystem: Hewlett-Packard Company Sunrise Point-LP HD Audio Flags: bus master, fast devsel, latency 32, IRQ 128 Memory at ef120000 (64-bit, non-prefetchable) [size=16K] Memory at ef100000 (64-bit, non-prefetchable) [size=64K] Capabilities: [50] Power Management version 3 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel, snd_soc_skl 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) Subsystem: Hewlett-Packard Company Sunrise Point-LP SMBus Flags: medium devsel, IRQ 16 Memory at ef12a000 (64-bit, non-prefetchable) [size=256] I/O ports at f040 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller Flags: bus master, fast devsel, latency 0, IRQ 18 I/O ports at e000 [size=256] Memory at ef004000 (64-bit, non-prefetchable) [size=4K] Memory at ef000000 (64-bit, non-prefetchable) [size=16K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Endpoint, MSI 01 Capabilities: [b0] MSI-X: Enable+ Count=4 Masked- Capabilities: [d0] Vital Product Data Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00 Capabilities: [170] Latency Tolerance Reporting Capabilities: [178] L1 PM Substates Kernel driver in use: r8169 Kernel modules: r8169
 
Bumping the thread to share that it got magically (and briefly) fixed on its own for no apparent reason, just left the computer on overnight. Noticed the IP in the VM Summary was suddenly a local one. I navigated to http://192.168.77.139:8123 (the one it displayed) and it worked, showing the welcome screen at http://192.168.77.139:8123/onboarding.html.

I then restarted to VM to test and it went back to displaying the old weird IP. Happines went away.

Any ideas would be greatly welcomed.

Thanks in advance
 

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!