Linux KVM Print mapping between virtual interfaces (vnet) and virtual machines
To print the actual mapping between the virtual interfaces (vnet0 - vnetXY) and the running virtual machines you can use the following command. It should work on all Linux distributions running KVM and libvirt. for vm in $(virsh list | awk '{if ((NR >= 3) && (NF >=1)) print $2}'); do vm_config=$(virsh dumpxml $vm); for ... Weiterlesen