I'm trying to get the IP of a guest virtual machine connected to my network with libvirt / kvm bridging. I've come across a couple of resources online, but they seem to be out of date, like this and this.
My understanding of bridged network, at least with VMWare, is that
- VM's IP address is allocated by dnsmasq or dhcpd, and
- I can access its IP even with its hostname
Well, with my Debian stable host, I have the bridge created (br0) and have attached eth0 to it, with an IP of 192.168.0.102/24, but my VM's
IPv4 Address is 169.254.93.211 (from within the virtual machine, of Red Hat VirtIO Ethernet Adapter), not even on the same network. The VM is using my host IP as its gateway, which look more like NAT or host-based-network to me. The VM's network is working fine though. So,
How to understand the whole situation, and how to access my VM, like to ssh or using its network shares?
UPDATE: Here is my libvirt / kvm bridged network config:
$ apt-cache policy libvirt-daemon libvirt-daemon-config-network
libvirt-daemon:
Installed: 9.0.0-4
Candidate: 9.0.0-4
Version table:
*** 9.0.0-4 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
libvirt-daemon-config-network:
Installed: 9.0.0-4
Candidate: 9.0.0-4
Version table:
*** 9.0.0-4 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
