For my home lab, I want to create an isolated virtual network not connected to my home LAN/Internet. I’m currently using Libvirt/KVM on Debian Stretch. I want VMs on this virtual network to communicate with each other as if they were on a real LAN, but don’t want any connection to the outside world. I also want to disable DHCP services on the isolated LAN, but am unsure how to do this with virsh. This was pretty simple to do with VMWare ESXi, but I’m lost when trying to do this with KVM.
Does anyone know how to do this, or can you point me to a HOWTO? I’d also eventually like to be able to connect this VM with a dual-interface VM (e.g., a pfSense VM) to play with routing, NAT, etc.
Sorry for the late response, been down with a nasty bug.
@Toolybird For some my reason, my version of virt-manager has no network configuration options, so I had to use “virsh net-create”. Connecting the virtual network with pfSense is exactly what I wanted to do with KVM, and had previously accomplished with ESXi. I used the .xml file you linked from libvirt.org. This is working, but libvirt appears to be providing DHCP on the isolated net. Is there any way to turn this off?
EDIT: Looked at the .xml file and saw the dhcp reference. Do I just need to remove the 3 dhcp lines? Guess I’ll have to delete the network and recreate it…