I have a CentOS 7 KVM host with a CentOS 7 guest running on the host. The host can connect to the internet and is able to browse the internet using Firefox. The guest cannot connect to the internet and consequently is unable to download updates or browse.
The host and guest both exist on the same subnet: 10.0.224.x
The host can ping:
The guest's IP address
The gateway IP address
The guest can ping:
The host's IP address
The gateway IP address
Here are the contents of ifcfg-br0:
DEVICE=br0
NM_CONGROLLED="no"
TYPE=Bridge
IPADDR=10.0.224.200
NETMASK=255.255.0.0
GATEWAY=10.0.224.1
DNS1=10.0.224.1
DOMAIN="xxxx.xxxxx.xxx"
BOOTPROTO=none
ONBOOT=yes
DELAY=10
Here are the contents of ifcfg-enp2s0:
DEVICE=enp2s0
NM_CONTROLLED="no"
HWADDR=68:05:CA:29:59:57
TYPE=Ethernet
BRIDGE=br0
BOOTPROTO=none
ONBOOT=yes
DELAY=10
Here are the contents of ifcfg-lo
DEVICE=lo
NM_CONTROLLED="no"
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
The guest is connected to enp2s0 (Bridge'br0') using the virtio Device model. If you have any suggestions on how to resolve this issue, please submit them. I welcome your ideas.
CentOS 7 guest on CentOS 7 KVM host can't connect to interne
Re: CentOS 7 guest on CentOS 7 KVM host can't connect to int
At a minimum, you have a type-o in the config:
NM_CONGROLLED="no" -> NM_CONTROLLED="no"
You may want to consider removing NetworkManager from the setup in general (see other links in the forum for these instructions)
NM_CONGROLLED="no" -> NM_CONTROLLED="no"
You may want to consider removing NetworkManager from the setup in general (see other links in the forum for these instructions)