[libvirt-users] a VM does not get dhcp

lejeczek peljasz at yahoo.co.uk
Tue Nov 10 17:11:35 UTC 2015


hi everybody

I'm looking at my setup and got stuck

I have a box with two NICs on the same subnet, and another 
box similar, also two NICs on one subnet, all four NICs are 
on the same subnet.

Now, that second box has also a virtual NIC (libvirtd's 
bridge route mode) and VMs guests are using it, traffic to 
that virtual net is routed via 1st real NIC. This second box 
dhcrelays to the first box(dhcpd).

I see box-dhcrelay forwards to box-dhcpd, I see box-dhcpd 
receives and offers a lease but that VM guest does not get it.

I have policy routing manually set in place so both boxes 
can ping each other all NICs. (including virtual NIC on the 
box-dhcrelay)
Moreover, that VM guest can ping both boxes' all NICs when 
its IP address is set to manual.

It's RHEL7 and I'm only trying IPv4.
I'm hoping some can rule out (or suggest what might be 
broken in) libvirt/policy based routing.
I see those offers box-dhcpd makes are exactly for the 
subnet of box-dhcrelay's virtual NIC/subnet.

It's a pickle. An expert's thought would be great to hear.




More information about the libvirt-users mailing list