> Hi Sebastian, > So you could help next time by pointing to it with a few more words :-)
I'd be glad if I could help you here. > I can find the output of "net-dhcp-leases" at the end and see that it only has one IP reported. Exactly. > I found above that you pinged a few adresses: > - 10.17.3.0 -> the ?bridge?; replies > - 10.17.3.1 -> the guest; replies > - 10.17.3.2 -> ??, does not reply No. These are all VMs started in the same go and all IPs have been successfully assigned via DHCP and all have the same network config (excpet for the IPs). There is no bridge involved here, instead everything is done via NAT. > I'd assume you'd want to set up three guests kubic-kubadm-[1-3] is that right? Exactly. > I'd further assume that your root issue is that guests get either the same or no dhcp IP is that correct? Nope. The guests are all getting the correct designated IPs, but `net- dhcp-leases` is incomplete. > There are multiple things here that could be an issue, that come to my mind. > 1. the net-dhcp-leases reads from the host dnsmasq files, so if there is > missing something it is actually a dnsmasq issue, but more important anything > not asking dnsmasq can't be shown there like "bridges with external dhcp > server" or "static IP configs in the guest" > If anything like this applies it would never show up, but that you succeed > with "-parallelism=1" suggests this isn't the case. I've added the content of `/var/lib/libvirt/dnsmasq/virbr2.status` and `/var/lib/libvirt/dnsmasq/kubic-dev-net.hostsfile`. Is there another `host dnsmasq files` that would be of any help? > 2. I've seen bad guest cloning triggering issues like that. > old dhcpd did not pass a client-id which will overrule almost all other UIDs > in dhcp processing. systemd-resolved / networkd will send a client ID. I have > seen cases where a guest was installed (creates UUID for client-id) and then > copied as a base image which > led to all guests having the same client-id. > That made dnsmasq mad and let it return only a lease to the first showing up. > Your case doesn't perfectly match, but 3 macs in > /var/lib/libvirt/dnsmasq/virbr2.macs while only one client-id in > /var/lib/libvirt/dnsmasq/virbr2.status would be like that. Well, I'm not that deep into libvirt and dnsmasq, but even creating the guests sequentially, `/var/lib/libvirt/dnsmasq/virbr2.status` only contains one entry. The actual cloning is done by https://github.com/dmacvicar/terraform-provider-libvirt. Is there anything I can ask the devs over there? > I'd ask you to: > - check for duplicate client-id's please I'm still looking for a way to get that info. Interestingly, `/var/lib/libvirt/dnsmasq/virbr2.status` is incomplete even after starting the clones sequentially. > - is the output complete "later"? No. > - do the other guests get an IP at all (check via virsh console)? I'm getting an error here: sudo virsh console kubic-kubadm-0 Connected to domain kubic-kubadm-0 Escape character is ^] error: internal error: cannot find character device <null> > - outline the guest network setup (how is there dhcp call configured) Would adding the `kubic-dev-net.conf` help here? In general, I haven't configured anything special, except for specifying "nat". > - help to clarify more of your case as asked above while reading through logs > I assume I need to sort out more details with you to be of any help :-) I'd be glad, if I could help you here. Please feel free to ask for more info. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1788841 Title: incomplete output of `virsh net-dhcp-leases` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1788841/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs