this post was submitted on 10 Aug 2024
8 points (90.0% liked)
homeassistant
12071 readers
5 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The bridged adapter can't have the same MAC address. Two of the same MAC address can't exist in the same IP space, else the router can't route packets to them. Just change the bridged adapter's MAC address to something else.
Is there an issue with using Docker for this? Seems like an easier route.
Edit: I'd venture a guess that if in NAT mode, the MAC address might stay the same, which wouldn't be an issue. Are you positive it's actually using bridged mode?
Yes, this seems to be my problem, both the host and the vm got the same IP, and I think I cannot send any traffic to either my host or vm. So my router is probably confused, as you suggested.
I forgot to mention this, docker indeed work. However, ha requires a privileged docker running as root, which means ha essentially runs as root on the host.
This is fine on dedicated hardware, but as my server have other infrastructure on there, running ha as root can be a security risk.
https://docs.docker.com/engine/security/rootless/