Score:0

KVM something wrong with IP settings

ps flag

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?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.