I would like to install a KVM type-1 hypervisor. This hypervisor should run two guest operating-systems. Both guest operating-systems need one IPv4 address from 192.168.11.0/24 network and I guess that I should configure one IPv4 address to hypervisor itself for management purposes? I am familiar with bridges under Linux and VLAN-subinterfaces, but what is the recommended practice for such KVM installation, i.e. which interfaces should I create in hypervisor and which interfaces should I create for virtual-machines with virt-install and how should I configure management for hypervisor itself?
I have never used
virt-install, I always use
virsh define file.xml. But a look at the man page tells me that
--network bridge:tun0 is wrong. You need
I am not a
qemu expert thus I don't know whether you can create a
tun device and make
libvirt use it. Usually virtual interfaces are created dynamically when a VM is started and get connected to the bridge (and/or network).
libvirt's XML it looks like this:
<interface type='bridge'> <mac address='52:54:00:42:c4:c8'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface>