I'm new to kvm and my question may be obvious to some. How to use the local router dhcp instead the kvm local dhcp. The local dhcp has a range starting from 192.168.122.1 and i need it to use the local router with a range starting from 192.168.100.1. How to configure it? Thanks in advance!
My /etc/libvirt/qemu/networks/default.xml
<network>
<name>default</name>
<uuid>21f9eef3-c1ac-49a1-b413-574011a2c4d5</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:38:20:3e'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.45' end='192.168.122.55'/>
<host mac='52:54:00:05:d8:ba' name='pluto' ip='192.168.122.50'/>
<host mac='52:54:00:84:bb:56' name='kali' ip='192.168.122.45'/>
</dhcp>
</ip>
</network>
I've seen a suggestion in this post KVM Networking - assign IP to each VM by outside DHCP to edit this file with this snippet, but I'm not sure where to put it in the xml file:
<interface type='bridge'>
<mac address='52:54:00:1c:00:3a'/>
<source bridge='br0'/>
<model type='e1000e'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>