Charlie Drage

Enabling private networking with virtio and libvirt

After trying for hours as to why I kept getting:

DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10

when setting up private networking with libvirt (QEMU/KVM). I found out that the virtio driver was the root of the cause and came across this article.

Seems that using virtio when setting up a private networking causes some issues.

To enable private networking:

virsh edit vm1

and add

 <driver name='qemu'/> 

to the network interface.

Comments