Skip to content

Instantly share code, notes, and snippets.

Last active Nov 28, 2017
What would you like to do?

Edit your network and add your domain (<domain name='' localOnly='yes'/>) to the network definition. All of your hosts using this network must have hostnames (hostnamectl set-hostname) within the domain.

sudo virsh net-edit default
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:5e:35:9c'/>
  <!-- *~ magic ~* all VM hostnames must match * *~ magic ~* -->
  <domain name='' localOnly='yes'/>
  <ip address='' netmask=''>
      <range start='' end=''/>

Destroy the network and recreate it.

sudo virsh net-destroy default
sudo virsh net-start default

Tell NetworkManager what's up.



The address line below allows all * to resolve to A router should exist on this IP address.



Add any static hosts to /etc/addn-hosts.


Restart services.

systemctl restart NetworkManager
systemctl restart libvirtd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment