this post was submitted on 29 May 2026
12 points (100.0% liked)

Selfhosted

59675 readers
834 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Hi, I have a Proxmox server with 2x debian trixie VMs (one was cloned from the other). On a seperate box i have pfsense which acts as router, firewall and DHCP server. The DHCP server dishes out IPs to my network based on my list of mac addresses filled in against specific IPs. For example, all my computers get the 192.168.1.2x range, my phones the 192.168.1.3x and so on. I assigned the mac addresses on the two VMs to the 192.168.1.9x range but they are misbehaving. One seems to always hook up to 192.168.1.106 while the other will hook up to a 172.x.x.x address if the first is also running. If the first VM is off, then it too will hook up to 192.168.1.106. There is no other dhcp server on my network so how can the second vm hook up to a 172.x.x.x address? Also, any clues on why the vms are misbehaving? Is this something to do with the bridge on the proxmox hosting machine?

top 8 comments
sorted by: hot top controversial new old
[–] Oha@lemmy.ohaa.xyz 13 points 1 week ago (1 children)

Had the same problem a while ago, you need to regenerate the machineid: https://wiki.debian.org/MachineId

[–] rounding_error@lemmy.today 5 points 1 week ago
  • creation of DHCP host identifier (probably causing multiple machines fighting over the same IP address on the DHCP server)

Very cool

[–] mlfh@lm.mlfh.org 3 points 1 week ago* (last edited 1 week ago) (1 children)

Looks like both of your vms probably have the same mac address - the 172 ip address is likely a self-assigned fallback when the dhcp server replies to the second vm that it can't give it an address. Double-check and make sure the mac address in each vm's proxmox network adapter settings match your pfsense dhcp reservations, and let me know if that resolves it.

A 172.16.0.0/12 address would be a very unusual fallback behavior. Normally you'll have only a 169.254.0.0/16.

[–] Decronym@lemmy.decronym.xyz 3 points 1 week ago* (last edited 1 week ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
ARP Address Resolution Protocol, translates IPs to MAC addresses
DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network
IP Internet Protocol
ISP Internet Service Provider

4 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

[Thread #320 for this comm, first seen 29th May 2026, 06:10] [FAQ] [Full list] [Contact] [Source code]

[–] evujumenuk@lemmy.world 2 points 1 week ago (1 children)

You're saying one VM was cloned from the other. I could imagine a DHCP client saving leases to disk (they can have pretty long validity periods), and if the box was assigned the .106 address at any point and then cloned, the cloned machine would probably try to take that address, in other words ARP the address to determine if it's taken, and if so, fall back to some other thing. I would have expected an APIPA address but 172.x.y.z is not out of the question depending on config.

Also, if your bridge has an interface connected to e.g. another ISP-provided router then it would expose any DHCP server running behind that interface to your VMs, creating a race.

[–] non_burglar@lemmy.world 1 points 1 week ago

Agreed. I've seen 172 addresses self-assigned before, even though the apipa spec says it should be 169.254.x.x.

[–] tofu@lemmy.nocturnal.garden 0 points 1 week ago

Is the 172. address on the same interface? Could just be some virtual docker interface being unrelated to the DHCP issue.