I'm attempting to set up my first guest set up under KVM and am having trouble getting the network working.

The host machine "vm_host_box" has a static IP of
The guest I am setting up needs to have a static IP of

I currently have zero connectivity to anything (including gateway) from the guest VM. Note that the guest VM is a minimal install and I'm not able to install any additional packages due to not having network for yum.

Here's what I can see from the host:

[root@vm_host_box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1 

list of other ifcfg-* files:

[root@vm_host_box network-scripts]# ls ifcfg-*
ifcfg-em1  ifcfg-em2  ifcfg-em3  ifcfg-em4  ifcfg-lo

ip addr details:

[root@vm_host_box ~]# ip addr show em1
2: em1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 14:18:77:69:b6:9a brd ff:ff:ff:ff:ff:ff
    inet brd scope global em1
       valid_lft forever preferred_lft forever

[root@vm_host_box ~]# ip addr show virbr0
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 52:54:00:11:3f:7e brd ff:ff:ff:ff:ff:ff
    inet brd scope global virbr0
       valid_lft forever preferred_lft forever

brctl shows a bridge, but there is an interface listed and I'm not sure how it was added.

[root@vm_host_box ~]# brctl show
bridge name bridge id       STP enabled interfaces
virbr0      8000.525400113f7e   yes     virbr0-nic

Here's the virsh details for the default network. I'm unclear about the range of IPs. Will virsh be creating a new subnet, or am I telling it what IP's to look out for?

[root@vm_host_box ~]# virsh net-list --all
 Name                 State      Autostart     Persistent
 default              active     yes           yes

[root@vm_host_box ~]# virsh net-edit default

  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:11:3f:7e'/>
  <ip address='' netmask=''>
      <range start='' end=''/>

Here's what I am showing under KVM's Connection Details screens:

Virtual Networks


NEtwork Interfaces

Here is the config after starting the Guest (labeled "rhel7")

enter image description here

Any pointers would be greatly appreciated.

  • From the network configuration <range start='' end=''/>: use 4..4.4.0/23 and connect your host interface to bridge. – e42d3 Jan 21 '17 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.