19. Juli 2017 17:19, c.monty@xxxxxx schrieb: > 19. Juli 2017 17:12, c.monty@xxxxxx schrieb: > >> 19. Juli 2017 16:36, "Michal Privoznik" <mprivozn@xxxxxxxxxx> schrieb: >> >>> On 07/19/2017 04:27 PM, c.monty@xxxxxx wrote: >> >> <snip/> >> >> Guest OS is Debian 9 with this network configuration: >> thomas@vm02-fai:~$ cat /etc/network/interfaces >> # This file describes the network interfaces available on your system >> # and how to activate them. For more information, see interfaces(5). >> >> source /etc/network/interfaces.d/* >> >> # The loopback network interface >> auto lo >> iface lo inet loopback >> >> # The primary network interface >> allow-hotplug ens3 >> iface ens3 inet dhcp >> >> # The secondary network interface >> allow-hotplug ens8 >> iface ens8 inet static >> address 192.168.33.250/25 >> >> So, to answer your question: yes, 1st interface is doing DHCP. >>> Well, this doesn't prove it. ens3 might actually be the one that's >>> connected to the 'internal' network. What's the output of 'ip a a s' ran >>> from within the guest? What's the output of 'virsh domifaddr --source >>> agent $domain'? >>> >>> BTW: if you sniff on virbr0 while the domain is starting up do you see >>> any DHCP traffic? >>> >>> Michal >> >> Hm... 'ip a a s' is not working. Do you mean 'ip addr'? >> root@vm02-fai:/home/thomas# ip a a s >> Error: inet prefix is expected rather than "s". >> >> root@vm02-fai:/home/thomas# ip addr >> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 >> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 >> inet 127.0.0.1/8 scope host lo >> valid_lft forever preferred_lft forever >> inet6 ::1/128 scope host >> valid_lft forever preferred_lft forever >> 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen >> 1000 >> link/ether 52:54:00:31:dd:59 brd ff:ff:ff:ff:ff:ff >> inet 192.168.100.52/24 brd 192.168.100.255 scope global ens3 >> valid_lft forever preferred_lft forever >> inet6 fe80::5054:ff:fe31:dd59/64 scope link >> valid_lft forever preferred_lft forever >> 3: ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen >> 1000 >> link/ether 52:54:00:9e:23:26 brd ff:ff:ff:ff:ff:ff >> inet 192.168.33.250/25 brd 192.168.33.255 scope global ens8 >> valid_lft forever preferred_lft forever >> inet6 fe80::5054:ff:fe9e:2326/64 scope link >> valid_lft forever preferred_lft forever >> >> _______________________________________________ >> libvirt-users mailing list >> libvirt-users@xxxxxxxxxx >> https://www.redhat.com/mailman/listinfo/libvirt-users > > Update: > I have captured packets on virbr0 using tcpdump. > The saved packets are attached in file virbr0.pcap to this email. > > In my understanding this confirms DHCP request of guest / domain: > ld4004:~ # tcpdump -r /tmp/virbr0.pcap > reading from file /tmp/virbr0.pcap, link-type EN10MB (Ethernet) > 17:10:31.433263 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), > length 28 > 17:10:31.434772 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from > 52:54:00:31:dd:59 (oui Unknown), length 300 > 17:10:31.435007 IP 192.168.100.1.bootps > 192.168.100.52.bootpc: BOOTP/DHCP, Reply, length 313 > 17:10:31.513284 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), > length 48 > 17:10:32.169290 IP6 :: > ff02::1:ff31:dd59: ICMP6, neighbor solicitation, who has > fe80::5054:ff:fe31:dd59, length 24 > 17:10:32.393283 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), > length 28 > 17:10:33.193292 IP6 fe80::5054:ff:fe31:dd59 > ff02::16: HBH ICMP6, multicast listener report v2, 2 > group record(s), length 48 > 17:10:33.193414 IP6 fe80::5054:ff:fe31:dd59 > ipv6-allrouters: ICMP6, router solicitation, length > 16 > 17:10:33.277270 IP6 fe80::5054:ff:fe31:dd59 > ff02::16: HBH ICMP6, multicast listener report v2, 2 > group record(s), length 48 > 17:10:36.441562 ARP, Request who-has 192.168.100.52 tell 192.168.100.1, length 28 > 17:10:36.441843 ARP, Reply 192.168.100.52 is-at 52:54:00:31:dd:59 (oui Unknown), length 28 > 17:10:37.161253 IP6 fe80::5054:ff:fe31:dd59 > ipv6-allrouters: ICMP6, router solicitation, length > 16 > 17:10:45.097178 IP6 fe80::5054:ff:fe31:dd59 > ipv6-allrouters: ICMP6, router solicitation, length > 16 > 17:10:46.399986 IP 192.168.100.1.50432 > 192.168.100.52.ssh: Flags [S], seq 3301944072, win 29200, > options [mss 1460,sackOK,TS val 21694017 ecr 0,nop,wscale 7], length 0 > > _______________________________________________ > libvirt-users mailing list > libvirt-users@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libvirt-users Update update: Output of 'virsh domifaddr ' ld4004:~ # virsh domifaddr --source agent $domain error: command 'domifaddr' requires <domain> option ld4004:~ # virsh domifaddr --source agent vm02-fai error: Failed to query for interfaces addresses error: argument unsupported: QEMU guest agent is not configured ld4004:~ # virsh domifaddr --source lease $domain error: command 'domifaddr' requires <domain> option ld4004:~ # virsh domifaddr --source lease vm02-fai Name MAC address Protocol Address ------------------------------------------------------------------------------- Question: Why are variables $domain (or $network) not working? _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users