On Ubuntu 20.04 I installed KVM and with bridge mode I created some Vm's without any problem. Server has got 2 Ethernets and first one using public IP.
host: enp41s0 public
enp1s0: private
host netplan:
bridges:
br0:
interfaces: [enp1s0]
addresses: [192.168.1.51/24]
# gateway4 is deprecated, use routes instead
routes:
- to: default
via: public IP
metric: 100
on-link: true
mtu: 1500
nameservers:
addresses: [8.8.8.8]
KVM routed xml file
<network connections='1'>
<name>routed151</name>
<uuid>xxxxx</uuid>
<forward dev='br0' mode='route'>
<interface dev='br0'/>
</forward>
<bridge name='virbr151' stp='on' delay='2'/>
<mac address='52:54:00:8c:c7:01'/>
<ip address='192.168.3.51' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.3.1' end='192.168.3.254'/>
<host name='vm03' ip='192.168.3.3'/>
</dhcp>
</ip>
</network>
virt-install --network network=routed151
during installation Ubuntu cannot connect the packet installation source. When I check the machine I can ping other VM s and host but for example I cannot ping google.com (but I see the IP adress of google)
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.3.51 0.0.0.0 UG 0 0 0 enp1s0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0
any idea?