I have a really annoying issue. I am using KVM on CentOS 7 and two networks.
- One of the networks is isolated with internal host routing only
- The other network is forwarding using NAT.
I have set up two VM's. One of the VM's is only connected to the isolated network and the other is connected to both.
VM #1 - Gateway (nat network and isolated network) VM #2 - Isolated host (isolated network)
Now, the issue. I cannot get it VM #2 to be configured to use VM #1 as gateway with the network configuration. Sample below
<network> <name>isolated</name> <uuid>bbdafbfd-a73e-4a54-bc4d-2f060b571b71</uuid> <bridge name='virbr2' stp='on' delay='0'/> <mac address='52:54:00:46:53:61'/> <domain name='systems'/> <ip address='192.168.100.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.100.128' end='192.168.100.254'/> </dhcp> </ip> </network>
Do I have to manually configure that each time the VM boot if I want to use DHCP? I can solve it by setting static configuration but I don't really want to use that.