[libvirt-users] Backups failing due to snapshot already exists
by Phill Edwards
My VMs are raw disk images as logical volumes. My backup script takes a
snapshot of a VM's volume, copies it off to another machine and then
deletes the snapshot.
For some reason I have a snapshot that didn't delete which is now
preventing the backups from proceeding:
...
Friday 1 July 02:10:01 AEST 2016: Taking snapshot of
/dev/vms-lvm/MBE3-MythUbu-14.04-64bit.raw...
ERR: The specified snapshot volume
/dev/vms-lvm/MBE3-MythUbu-14.04-64bit.snap already exists. Operation
canceled.
...
But if I try to remove the snapshot volume I get an error that it's in use:
$ sudo lvremove /dev/vms-lvm/MBE3-MythUbu-14.04-64bit.snap
Logical volume vms-lvm/MBE3-MythUbu-14.04-64bit.snap in use.
Can anyone please advise on how I find out what's using the snapshot, then
kill that process so I can remove the snapshot so my backups can work again?
8 years, 4 months
[libvirt-users] Virtual machine in state "in shutdown"
by Roland Everaert
Hello,
We are currently facing a strange situation. One of our VM is shown by
'virsh list' as in state "in shutdown" but there is no more a qemu-kvm
process linked to it.
So we have a few questions:
1. What does means the state in shutdown (I have not found much information
about it)?
2. How to cleanly "shutdown" the vm, or more correctly, clean the status in
virsh/libvirt?
Regards,
Roland Everaert.
8 years, 4 months
[libvirt-users] Problem in bridged networking
by Aditya Gupta
Hello,
I am facing some problems in bridged networking.
I have successfully created a bridge br0 and added a virtual machine to it.
Now the address of virtual machine is 10.1.3.31. I am able to connect to
this virtual machine by another computer on same network.
The virtual machine is hosting a simple python http server on port 8000,
while some other service is running on port 80
When I try his on my main server :
# curl 10.1.3.31:80
Response I get is this :
* Rebuilt URL to: 10.1.3.31:80/
* Hostname was NOT found in DNS cache
* Trying 10.1.3.31...
* Connected to 10.1.3.31 (10.1.3.31) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 10.1.3.31
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
But when I try this on any other port
# curl 10.1.3.31:8000
Response I get is this:
* Rebuilt URL to: 10.1.3.31:8000/
* Hostname was NOT found in DNS cache
* Trying 10.1.3.31...
* connect to 10.1.3.31 port 8000 failed: Connection timed out
* Failed to connect to 10.1.3.31 port 8000: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to 10.1.3.31 port 8000: Connection timed out
Output of iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:8000
ACCEPT tcp -- anywhere anywhere tcp dpt:1022
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere 10.0.0.0/16 state
RELATED,ESTABLISHED
ACCEPT tcp -- anywhere 10.0.2.4 tcp
dpt:http-alt
ACCEPT tcp -- anywhere 10.0.2.4 tcp dpt:1883
ACCEPT tcp -- anywhere 10.0.2.4 tcp dpt:1883
TCPMSS tcp -- anywhere anywhere tcp
flags:SYN,RST/SYN TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Output of ifconfig:
br0 Link encap:Ethernet HWaddr 00:1a:64:c1:31:2e
inet addr:10.1.3.33 Bcast:10.1.3.255 Mask:255.255.255.0
inet6 addr: fe80::21a:64ff:fec1:312e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1578351 errors:0 dropped:15619 overruns:0 frame:0
TX packets:1327458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:198829729 (198.8 MB) TX bytes:346380435 (346.3 MB)
eth1 Link encap:Ethernet HWaddr 00:1a:64:c1:31:2e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7429105 errors:0 dropped:31238 overruns:0 frame:0
TX packets:7684361 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:782334104 (782.3 MB) TX bytes:2221485458 (2.2 GB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:87278 errors:0 dropped:0 overruns:0 frame:0
TX packets:87278 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12350508 (12.3 MB) TX bytes:12350508 (12.3 MB)
vnet0 Link encap:Ethernet HWaddr fe:54:00:14:0e:98
inet6 addr: fe80::fc54:ff:fe14:e98/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6411332 errors:0 dropped:0 overruns:0 frame:0
TX packets:6277721 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:1909595770 (1.9 GB) TX bytes:656284846 (656.2 MB)
Output of cat /etc/network/interfaces :
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 10.1.3.33
netmask 255.255.255.0
gateway 10.1.3.1
dns-nameservers 192.168.2.11 192.168.2.12
auto br0
iface br0 inet static
address 10.1.3.33
netmask 255.255.255.0
gateway 10.1.3.1
dns-nameservers 192.168.2.11 192.168.2.12
bridge_ports eth1
bridge_stp off
bridge_maxwait 5
dns-nameservers 192.168.2.11 192.168.2.12
8 years, 4 months
[libvirt-users] virsh channel
by Tadas
Hello,
Is there any command to list all available channels for specific
machine?
For example, i have a additional spice serial device:
<channel type='unix'>
<source mode='bind'/>
<target type='virtio' name='com.redhat.kvm-vdi.0'/>
<address type='virtio-serial' controller='0' bus='0' port='2'/>
</channel>
Is there any way to get full path to this socket on hypervisor side?
8 years, 4 months
[libvirt-users] problem with dnsmasq and dhclient - loosing IP address after a while
by Patrick Pichon
Hello,
I have a problem which is that some of my VMs are loosing there IP addresses from time to time. What I saw in the log is when this VM loose its IP address there are DHCPREQUEST send from the VM by dhclient and the server responded only 50 minutes later !
Any help, advise on how to debug would be welcome.
Thanks in advance
Patrick
Here after is an extract from the log
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 05:08:32.003
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:18.274
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:03.793
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:54.504
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:40.642
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:22.978
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:04.180
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:45.233
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:30.417
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:15.304
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:02.203
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:55.780
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:38.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:27.970
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:15.183
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:04.425
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:56.008
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:39.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:24.531
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:10.306
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:56.149
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:45.917
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:34.480
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:24.189
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:07.038
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:51.557
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:40.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:29.963
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:11.446
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:53.245
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:32.646
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:23.725
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:12.691
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:53.537
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:32.797
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:18.520
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:11.831
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:53.649
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:45.510
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:38.236
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:18.089
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:59.930
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:52.521
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:37.193
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:18.742
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:05.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:53.879
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:36.308
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:16.716
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:07.594
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:54.607
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:34.286
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:24.307
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:10.593
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:56.460
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:37.165
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:28.171
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:18.719
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:01.360
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:44.150
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:37.490
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:26.746
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:12.103
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:54.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:42.322
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:30.937
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:14.144
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:55.999
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:47.948
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:39.143
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:28.188
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:07.857
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:53.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:39.750
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:27.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:06.864
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:53.216
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:36.366
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:27.696
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:07.898
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:46.721
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:37.941
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:27.940
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:17.156
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.398
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1614 seconds.
10.10.0.10
July 1st 2016, 04:18:02.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.260
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:03.644
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1379 seconds.
10.10.0.10
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:55:02.777
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:02.776
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:20.065
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1422 seconds.
10.10.0.10
July 1st 2016, 03:31:16.303
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:31:16.225
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
My setup is as followed
- Fedora 24 / Kernel 4.5.7
libvirt-daemon-driver-qemu-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nodedev-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-secret-1.3.3.1-4.fc24.x86_64
libvirt-daemon-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-storage-1.3.3.1-4.fc24.x86_64
libvirt-daemon-kvm-1.3.3.1-4.fc24.x86_64
libvirt-client-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-interface-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nwfilter-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-nwfilter-1.3.3.1-4.fc24.x86_64
- dnsmasq / 2.75-4
- Setup Network - hypervisor side.
There is a bridge configuration, as I have one VM listening to the Internet as well.
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
net my ip address netmask 255.255.255.0 broadcast my ip address
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 1395299 bytes 291328394 (277.8 MiB)
RX errors 0 dropped 66 overruns 0 frame 0
TX packets 629001 bytes 777811458 (741.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 7254272 bytes 2658859144 (2.4 GiB)
RX errors 0 dropped 4923 overruns 0 frame 0
TX packets 7302074 bytes 6556766298 (6.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo iptables-save
[sudo] password for support:
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*mangle
:PREROUTING ACCEPT [313661:46683942]
:INPUT ACCEPT [312868:46455263]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204754:109339610]
:POSTROUTING ACCEPT [204754:109339610]
-A POSTROUTING -o virbr1 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204361:109206834]
-A INPUT -i virbr1 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i br0 -m set --match-set banned src -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i br0 -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -i virbr1 -o virbr1 -j ACCEPT
-A FORWARD -o virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-A FORWARD -m set --match-set banned src -j DROP
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -o virbr1 -p udp -m udp --dport 68 -j ACCEPT
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
<network>
<name>prd-private-lan</name>
<uuid>255083f4-05a1-4a24-bc66-d3a3a9ab0724</uuid>
<bridge name='virbr1' stp='off' delay='0'/>
<mac address='52:54:00:08:1e:d8'/>
<domain name='prd.pipiche.net <http://prd.pipiche.net/>'/>
<dns>
<forwarder addr='8.8.4.4'/>
<forwarder addr='8.8.8.8'/>
</dns>
<ip address='10.10.0.1' netmask='255.255.255.0'>
<dhcp>
<range start='10.10.0.128' end='10.10.0.254'/>
<host mac='52:54:10:b6:35:ca' name='svc.prd.pipiche.net <http://svc.prd.pipiche.net/>' ip='10.10.0.3'/>
<host mac='52:54:10:32:88:ac' name='admin.prd.pipiche.net <http://admin.prd.pipiche.net/>' ip='10.10.0.5'/>
<host mac='52:54:10:5f:92:05' name='frontend.prd.pipiche.net <http://frontend.prd.pipiche.net/>' ip='10.10.0.7'/>
<host mac='52:54:10:7d:3a:3f' name='mail.prd.pipiche.net <http://mail.prd.pipiche.net/>' ip='10.10.0.10'/>
<host mac='52:54:10:30:93:56' name='blog.prd.pipiche.net <http://blog.prd.pipiche.net/>' ip='10.10.0.21'/>
<host mac='52:54:10:78:c1:c2' name='cloud.prd.pipiche.net <http://cloud.prd.pipiche.net/>' ip='10.10.0.22'/>
<host mac='52:54:10:64:00:21' name='web.prd.pipiche.net <http://web.prd.pipiche.net/>' ip='10.10.0.25'/>
<host mac='52:54:10:5a:5f:63' name='dcroche.prd.pipiche.net <http://dcroche.prd.pipiche.net/>' ip='10.10.0.26'/>
<host mac='52:54:10:4c:b2:61' name='trac.prd.pipiche.net <http://trac.prd.pipiche.net/>' ip='10.10.0.27'/>
<host mac='52:54:10:62:de:5f' name='git.prd.pipiche.net <http://git.prd.pipiche.net/>' ip='10.10.0.62'/>
</dhcp>
</ip>
</network>
On the VM side, I’m using NetworkManager
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.10 netmask 255.255.255.0 broadcast 10.10.0.255
inet6 fe80::5054:10ff:fe7d:3a3f prefixlen 64 scopeid 0x20<link>
ether 52:54:10:7d:3a:3f txqueuelen 1000 (Ethernet)
RX packets 1368559 bytes 304901897 (290.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1219893 bytes 2157040102 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by dracut initrd
HWADDR="52:54:10:7d:3a:3f"
DEVICE="eth0"
NAME="eth0"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=dhcp
TYPE=Ethernet
DNS1=10.10.0.1
DNS2=8.8.8.8
DNS3=8.8.4.4
8 years, 4 months
[libvirt-users] problem with dnsmasq and dhclient
by Patrick Pichon
Hello,
I have a problem which is that some of my VMs are loosing there IP addresses from time to time. What I saw in the log is when this VM loose its IP address there are DHCPREQUEST send from the VM by dhclient and the server responded only 50 minutes later !
Any help, advise on how to debug would be welcome.
Thanks in advance
Patrick
Here after is an extract from the log
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 05:08:32.003
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:18.274
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:03.793
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:54.504
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:40.642
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:22.978
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:04.180
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:45.233
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:30.417
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:15.304
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:02.203
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:55.780
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:38.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:27.970
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:15.183
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:04.425
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:56.008
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:39.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:24.531
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:10.306
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:56.149
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:45.917
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:34.480
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:24.189
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:07.038
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:51.557
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:40.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:29.963
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:11.446
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:53.245
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:32.646
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:23.725
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:12.691
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:53.537
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:32.797
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:18.520
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:11.831
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:53.649
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:45.510
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:38.236
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:18.089
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:59.930
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:52.521
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:37.193
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:18.742
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:05.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:53.879
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:36.308
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:16.716
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:07.594
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:54.607
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:34.286
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:24.307
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:10.593
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:56.460
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:37.165
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:28.171
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:18.719
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:01.360
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:44.150
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:37.490
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:26.746
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:12.103
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:54.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:42.322
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:30.937
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:14.144
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:55.999
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:47.948
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:39.143
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:28.188
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:07.857
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:53.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:39.750
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:27.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:06.864
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:53.216
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:36.366
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:27.696
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:07.898
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:46.721
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:37.941
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:27.940
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:17.156
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.398
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1614 seconds.
10.10.0.10
July 1st 2016, 04:18:02.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.260
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:03.644
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1379 seconds.
10.10.0.10
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:55:02.777
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:02.776
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:20.065
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1422 seconds.
10.10.0.10
July 1st 2016, 03:31:16.303
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:31:16.225
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
My setup is as followed
- Fedora 24 / Kernel 4.5.7
libvirt-daemon-driver-qemu-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nodedev-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-secret-1.3.3.1-4.fc24.x86_64
libvirt-daemon-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-storage-1.3.3.1-4.fc24.x86_64
libvirt-daemon-kvm-1.3.3.1-4.fc24.x86_64
libvirt-client-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-interface-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nwfilter-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-nwfilter-1.3.3.1-4.fc24.x86_64
- dnsmasq / 2.75-4
- Setup Network - hypervisor side.
There is a bridge configuration, as I have one VM listening to the Internet as well.
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
net my ip address netmask 255.255.255.0 broadcast my ip address
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 1395299 bytes 291328394 (277.8 MiB)
RX errors 0 dropped 66 overruns 0 frame 0
TX packets 629001 bytes 777811458 (741.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 7254272 bytes 2658859144 (2.4 GiB)
RX errors 0 dropped 4923 overruns 0 frame 0
TX packets 7302074 bytes 6556766298 (6.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo iptables-save
[sudo] password for support:
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*mangle
:PREROUTING ACCEPT [313661:46683942]
:INPUT ACCEPT [312868:46455263]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204754:109339610]
:POSTROUTING ACCEPT [204754:109339610]
-A POSTROUTING -o virbr1 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204361:109206834]
-A INPUT -i virbr1 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i br0 -m set --match-set banned src -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i br0 -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -i virbr1 -o virbr1 -j ACCEPT
-A FORWARD -o virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-A FORWARD -m set --match-set banned src -j DROP
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -o virbr1 -p udp -m udp --dport 68 -j ACCEPT
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
<network>
<name>prd-private-lan</name>
<uuid>255083f4-05a1-4a24-bc66-d3a3a9ab0724</uuid>
<bridge name='virbr1' stp='off' delay='0'/>
<mac address='52:54:00:08:1e:d8'/>
<domain name='prd.pipiche.net <http://prd.pipiche.net/>'/>
<dns>
<forwarder addr='8.8.4.4'/>
<forwarder addr='8.8.8.8'/>
</dns>
<ip address='10.10.0.1' netmask='255.255.255.0'>
<dhcp>
<range start='10.10.0.128' end='10.10.0.254'/>
<host mac='52:54:10:b6:35:ca' name='svc.prd.pipiche.net <http://svc.prd.pipiche.net/>' ip='10.10.0.3'/>
<host mac='52:54:10:32:88:ac' name='admin.prd.pipiche.net <http://admin.prd.pipiche.net/>' ip='10.10.0.5'/>
<host mac='52:54:10:5f:92:05' name='frontend.prd.pipiche.net <http://frontend.prd.pipiche.net/>' ip='10.10.0.7'/>
<host mac='52:54:10:7d:3a:3f' name='mail.prd.pipiche.net <http://mail.prd.pipiche.net/>' ip='10.10.0.10'/>
<host mac='52:54:10:30:93:56' name='blog.prd.pipiche.net <http://blog.prd.pipiche.net/>' ip='10.10.0.21'/>
<host mac='52:54:10:78:c1:c2' name='cloud.prd.pipiche.net <http://cloud.prd.pipiche.net/>' ip='10.10.0.22'/>
<host mac='52:54:10:64:00:21' name='web.prd.pipiche.net <http://web.prd.pipiche.net/>' ip='10.10.0.25'/>
<host mac='52:54:10:5a:5f:63' name='dcroche.prd.pipiche.net <http://dcroche.prd.pipiche.net/>' ip='10.10.0.26'/>
<host mac='52:54:10:4c:b2:61' name='trac.prd.pipiche.net <http://trac.prd.pipiche.net/>' ip='10.10.0.27'/>
<host mac='52:54:10:62:de:5f' name='git.prd.pipiche.net <http://git.prd.pipiche.net/>' ip='10.10.0.62'/>
</dhcp>
</ip>
</network>
On the VM side, I’m using NetworkManager
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.10 netmask 255.255.255.0 broadcast 10.10.0.255
inet6 fe80::5054:10ff:fe7d:3a3f prefixlen 64 scopeid 0x20<link>
ether 52:54:10:7d:3a:3f txqueuelen 1000 (Ethernet)
RX packets 1368559 bytes 304901897 (290.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1219893 bytes 2157040102 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by dracut initrd
HWADDR="52:54:10:7d:3a:3f"
DEVICE="eth0"
NAME="eth0"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=dhcp
TYPE=Ethernet
DNS1=10.10.0.1
DNS2=8.8.8.8
DNS3=8.8.4.4
8 years, 4 months
[libvirt-users] problem with dnsmasq and dhclient
by Patrick Pichon
Hello,
I have a problem which is that some of my VMs are loosing there IP addresses from time to time. What I saw in the log is when this VM loose its IP address there are DHCPREQUEST send from the VM by dhclient and the server responded only 50 minutes later !
Any help, advise on how to debug would be welcome.
Thanks in advance
Patrick
Here after is an extract from the log
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 05:08:32.003
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:18.274
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:03.793
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:54.504
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:40.642
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:22.978
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:04.180
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:45.233
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:30.417
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:15.304
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:02.203
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:55.780
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:38.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:27.970
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:15.183
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:04.425
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:56.008
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:39.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:24.531
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:10.306
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:56.149
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:45.917
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:34.480
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:24.189
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:07.038
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:51.557
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:40.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:29.963
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:11.446
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:53.245
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:32.646
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:23.725
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:12.691
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:53.537
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:32.797
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:18.520
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:11.831
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:53.649
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:45.510
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:38.236
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:18.089
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:59.930
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:52.521
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:37.193
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:18.742
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:05.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:53.879
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:36.308
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:16.716
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:07.594
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:54.607
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:34.286
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:24.307
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:10.593
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:56.460
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:37.165
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:28.171
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:18.719
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:01.360
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:44.150
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:37.490
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:26.746
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:12.103
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:54.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:42.322
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:30.937
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:14.144
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:55.999
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:47.948
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:39.143
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:28.188
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:07.857
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:53.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:39.750
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:27.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:06.864
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:53.216
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:36.366
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:27.696
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:07.898
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:46.721
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:37.941
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:27.940
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:17.156
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.398
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1614 seconds.
10.10.0.10
July 1st 2016, 04:18:02.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.260
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:03.644
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1379 seconds.
10.10.0.10
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:55:02.777
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:02.776
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:20.065
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1422 seconds.
10.10.0.10
July 1st 2016, 03:31:16.303
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:31:16.225
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
My setup is as followed
- Fedora 24 / Kernel 4.5.7
libvirt-daemon-driver-qemu-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nodedev-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-secret-1.3.3.1-4.fc24.x86_64
libvirt-daemon-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-storage-1.3.3.1-4.fc24.x86_64
libvirt-daemon-kvm-1.3.3.1-4.fc24.x86_64
libvirt-client-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-interface-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nwfilter-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-nwfilter-1.3.3.1-4.fc24.x86_64
- dnsmasq / 2.75-4
- Setup Network - hypervisor side.
There is a bridge configuration, as I have one VM listening to the Internet as well.
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
net my ip address netmask 255.255.255.0 broadcast my ip address
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 1395299 bytes 291328394 (277.8 MiB)
RX errors 0 dropped 66 overruns 0 frame 0
TX packets 629001 bytes 777811458 (741.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 7254272 bytes 2658859144 (2.4 GiB)
RX errors 0 dropped 4923 overruns 0 frame 0
TX packets 7302074 bytes 6556766298 (6.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo iptables-save
[sudo] password for support:
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*mangle
:PREROUTING ACCEPT [313661:46683942]
:INPUT ACCEPT [312868:46455263]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204754:109339610]
:POSTROUTING ACCEPT [204754:109339610]
-A POSTROUTING -o virbr1 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204361:109206834]
-A INPUT -i virbr1 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i br0 -m set --match-set banned src -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i br0 -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -i virbr1 -o virbr1 -j ACCEPT
-A FORWARD -o virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-A FORWARD -m set --match-set banned src -j DROP
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -o virbr1 -p udp -m udp --dport 68 -j ACCEPT
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
<network>
<name>prd-private-lan</name>
<uuid>255083f4-05a1-4a24-bc66-d3a3a9ab0724</uuid>
<bridge name='virbr1' stp='off' delay='0'/>
<mac address='52:54:00:08:1e:d8'/>
<domain name='prd.pipiche.net <http://prd.pipiche.net/>'/>
<dns>
<forwarder addr='8.8.4.4'/>
<forwarder addr='8.8.8.8'/>
</dns>
<ip address='10.10.0.1' netmask='255.255.255.0'>
<dhcp>
<range start='10.10.0.128' end='10.10.0.254'/>
<host mac='52:54:10:b6:35:ca' name='svc.prd.pipiche.net <http://svc.prd.pipiche.net/>' ip='10.10.0.3'/>
<host mac='52:54:10:32:88:ac' name='admin.prd.pipiche.net <http://admin.prd.pipiche.net/>' ip='10.10.0.5'/>
<host mac='52:54:10:5f:92:05' name='frontend.prd.pipiche.net <http://frontend.prd.pipiche.net/>' ip='10.10.0.7'/>
<host mac='52:54:10:7d:3a:3f' name='mail.prd.pipiche.net <http://mail.prd.pipiche.net/>' ip='10.10.0.10'/>
<host mac='52:54:10:30:93:56' name='blog.prd.pipiche.net <http://blog.prd.pipiche.net/>' ip='10.10.0.21'/>
<host mac='52:54:10:78:c1:c2' name='cloud.prd.pipiche.net <http://cloud.prd.pipiche.net/>' ip='10.10.0.22'/>
<host mac='52:54:10:64:00:21' name='web.prd.pipiche.net <http://web.prd.pipiche.net/>' ip='10.10.0.25'/>
<host mac='52:54:10:5a:5f:63' name='dcroche.prd.pipiche.net <http://dcroche.prd.pipiche.net/>' ip='10.10.0.26'/>
<host mac='52:54:10:4c:b2:61' name='trac.prd.pipiche.net <http://trac.prd.pipiche.net/>' ip='10.10.0.27'/>
<host mac='52:54:10:62:de:5f' name='git.prd.pipiche.net <http://git.prd.pipiche.net/>' ip='10.10.0.62'/>
</dhcp>
</ip>
</network>
On the VM side, I’m using NetworkManager
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.10 netmask 255.255.255.0 broadcast 10.10.0.255
inet6 fe80::5054:10ff:fe7d:3a3f prefixlen 64 scopeid 0x20<link>
ether 52:54:10:7d:3a:3f txqueuelen 1000 (Ethernet)
RX packets 1368559 bytes 304901897 (290.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1219893 bytes 2157040102 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by dracut initrd
HWADDR="52:54:10:7d:3a:3f"
DEVICE="eth0"
NAME="eth0"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=dhcp
TYPE=Ethernet
DNS1=10.10.0.1
DNS2=8.8.8.8
DNS3=8.8.4.4
8 years, 4 months
[libvirt-users] Windows guest and virtio serial port
by Tadas
I'm not sure, if it's correct mailing list to post this problem to.
I'm having problems with Windows guest and virtio serial port.
According to this manual:
http://www.spice-space.org/page/Whiteboard/AgentProtocol
I should get a named pipe on my guest VM after I create VirtIO sedial
device and spicevmc channel.
This works without any problems on Linux guest:
ls /dev/virtio-ports/
com.redhat.spice.0
But on Windows guest I can see no such pipe:
PipeList v1.01
by Mark Russinovich
http://www.sysinternals.com
Pipe Name Instances Max
Instances
--------- --------- --------
-----
InitShutdown 3 -1
lsass 4 -1
ntsvcs 3 -1
scerpc 3 -1
Winsock2\CatalogChangeListener-2b8-0 1 1
epmapper 3 -1
Winsock2\CatalogChangeListener-1ac-0 1 1
LSM_API_service 3 -1
TermSrv_API_service 3 -1
Ctx_WinStation_API_service 3 -1
eventlog 3 -1
Winsock2\CatalogChangeListener-174-0 1 1
atsvc 3 -1
wkssvc 6 -1
Winsock2\CatalogChangeListener-16c-0 1 1
SessEnvPublicRpc 3 -1
spoolss 3 -1
Winsock2\CatalogChangeListener-550-0 1 1
trkwks 3 -1
NlaSvcTask 1 -1
srvsvc 5 -1
browser 3 -1
Winsock2\CatalogChangeListener-710-0 1 1
Winsock2\CatalogChangeListener-228-0 1 1
Winsock2\CatalogChangeListener-230-0 1 1
HPUPDMon 1 1
MsFteWds 2 -1
PIPE_EVENTROOT\CIMV2SCM EVENT PROVIDER 1 -1
TDLN-3772-41 1 2
TDLN-3216-41 1 2
virtio serial drivers are installed on Windows guest VM.
What I am missing here?
Thank you.
8 years, 4 months
[libvirt-users] problem with dnsmasq and dhclient
by Patrick Pichon
Hello,
I have a problem which is that some of my VMs are loosing there IP addresses from time to time. What I saw in the log is when this VM loose its IP address there are DHCPREQUEST send from the VM by dhclient and the server responded only 50 minutes later !
Any help, advise on how to debug would be welcome.
Thanks in advance
Patrick
Here after is an extract from the log
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 05:08:46.156
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 05:08:32.003
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:18.274
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:08:03.793
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:54.504
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:40.642
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:22.978
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:07:04.180
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:45.233
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:30.417
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:15.304
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:06:02.203
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:55.780
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:38.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:27.970
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:15.183
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:05:04.425
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:56.008
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:39.227
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:24.531
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:04:10.306
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:56.149
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:45.917
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:34.480
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:24.189
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:03:07.038
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:51.557
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:40.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:29.963
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:02:11.446
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:53.245
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:32.646
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:23.725
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:01:12.691
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:53.537
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:32.797
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:18.520
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 05:00:11.831
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:53.649
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:45.510
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:38.236
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:59:18.089
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:59.930
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:52.521
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:37.193
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:18.742
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:58:05.088
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:53.879
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:36.308
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:16.716
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:57:07.594
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:54.607
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:34.286
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:24.307
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:56:10.593
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:56.460
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:37.165
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:28.171
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:18.719
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:55:01.360
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:44.150
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:37.490
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:26.746
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:54:12.103
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:54.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:42.322
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:30.937
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:53:14.144
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:55.999
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:47.948
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:39.143
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:28.188
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:52:07.857
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:53.381
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:39.750
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:27.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:51:06.864
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:53.216
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:36.366
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:27.696
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:50:07.898
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:46.721
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:37.941
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:27.940
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:49:17.156
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.398
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1614 seconds.
10.10.0.10
July 1st 2016, 04:18:02.260
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 04:18:02.260
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:03.644
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1379 seconds.
10.10.0.10
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:55:02.777
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:55:02.777
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
July 1st 2016, 03:55:02.776
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:20.065
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
bound to 10.10.0.10 -- renewal in 1422 seconds.
10.10.0.10
July 1st 2016, 03:31:16.303
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPACK from 10.10.0.1 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPREQUEST(virbr1) 10.10.0.10 52:54:10:7d:3a:3f
10.10.0.10
July 1st 2016, 03:31:16.225
mail.pipiche.net <http://mail.pipiche.net/>
dhclient
DHCPREQUEST on eth0 to 10.10.0.1 port 67 (xid=0x3d60085a)
10.10.0.1
July 1st 2016, 03:31:16.225
zen.pipiche.net <http://zen.pipiche.net/> dnsmasq-dhcp
DHCPACK(virbr1) 10.10.0.10 52:54:10:7d:3a:3f mail
10.10.0.10
My setup is as followed
- Fedora 24 / Kernel 4.5.7
libvirt-daemon-driver-qemu-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nodedev-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-secret-1.3.3.1-4.fc24.x86_64
libvirt-daemon-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-storage-1.3.3.1-4.fc24.x86_64
libvirt-daemon-kvm-1.3.3.1-4.fc24.x86_64
libvirt-client-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-interface-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-nwfilter-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-driver-network-1.3.3.1-4.fc24.x86_64
libvirt-daemon-config-nwfilter-1.3.3.1-4.fc24.x86_64
- dnsmasq / 2.75-4
- Setup Network - hypervisor side.
There is a bridge configuration, as I have one VM listening to the Internet as well.
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
net my ip address netmask 255.255.255.0 broadcast my ip address
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 1395299 bytes 291328394 (277.8 MiB)
RX errors 0 dropped 66 overruns 0 frame 0
TX packets 629001 bytes 777811458 (741.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet6 fe80::d6ae:52ff:fec7:6694 prefixlen 64 scopeid 0x20<link>
ether d4:ae:52:c7:66:94 txqueuelen 1000 (Ethernet)
RX packets 7254272 bytes 2658859144 (2.4 GiB)
RX errors 0 dropped 4923 overruns 0 frame 0
TX packets 7302074 bytes 6556766298 (6.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo iptables-save
[sudo] password for support:
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*mangle
:PREROUTING ACCEPT [313661:46683942]
:INPUT ACCEPT [312868:46455263]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204754:109339610]
:POSTROUTING ACCEPT [204754:109339610]
-A POSTROUTING -o virbr1 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
# Generated by iptables-save v1.4.21 on Fri Jul 1 10:50:45 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [204361:109206834]
-A INPUT -i virbr1 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr1 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr1 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i br0 -m set --match-set banned src -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i br0 -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -i virbr1 -o virbr1 -j ACCEPT
-A FORWARD -o virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i virbr1 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-A FORWARD -m set --match-set banned src -j DROP
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -o virbr1 -p udp -m udp --dport 68 -j ACCEPT
COMMIT
# Completed on Fri Jul 1 10:50:45 2016
<network>
<name>prd-private-lan</name>
<uuid>255083f4-05a1-4a24-bc66-d3a3a9ab0724</uuid>
<bridge name='virbr1' stp='off' delay='0'/>
<mac address='52:54:00:08:1e:d8'/>
<domain name='prd.pipiche.net'/>
<dns>
<forwarder addr='8.8.4.4'/>
<forwarder addr='8.8.8.8'/>
</dns>
<ip address='10.10.0.1' netmask='255.255.255.0'>
<dhcp>
<range start='10.10.0.128' end='10.10.0.254'/>
<host mac='52:54:10:b6:35:ca' name='svc.prd.pipiche.net' ip='10.10.0.3'/>
<host mac='52:54:10:32:88:ac' name='admin.prd.pipiche.net' ip='10.10.0.5'/>
<host mac='52:54:10:5f:92:05' name='frontend.prd.pipiche.net' ip='10.10.0.7'/>
<host mac='52:54:10:7d:3a:3f' name='mail.prd.pipiche.net' ip='10.10.0.10'/>
<host mac='52:54:10:30:93:56' name='blog.prd.pipiche.net' ip='10.10.0.21'/>
<host mac='52:54:10:78:c1:c2' name='cloud.prd.pipiche.net' ip='10.10.0.22'/>
<host mac='52:54:10:64:00:21' name='web.prd.pipiche.net' ip='10.10.0.25'/>
<host mac='52:54:10:5a:5f:63' name='dcroche.prd.pipiche.net' ip='10.10.0.26'/>
<host mac='52:54:10:4c:b2:61' name='trac.prd.pipiche.net' ip='10.10.0.27'/>
<host mac='52:54:10:62:de:5f' name='git.prd.pipiche.net' ip='10.10.0.62'/>
</dhcp>
</ip>
</network>
On the VM side, I’m using NetworkManager
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.10 netmask 255.255.255.0 broadcast 10.10.0.255
inet6 fe80::5054:10ff:fe7d:3a3f prefixlen 64 scopeid 0x20<link>
ether 52:54:10:7d:3a:3f txqueuelen 1000 (Ethernet)
RX packets 1368559 bytes 304901897 (290.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1219893 bytes 2157040102 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Generated by dracut initrd
HWADDR="52:54:10:7d:3a:3f"
DEVICE="eth0"
NAME="eth0"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=dhcp
TYPE=Ethernet
DNS1=10.10.0.1
DNS2=8.8.8.8
DNS3=8.8.4.4
8 years, 4 months