Skip to content

Instantly share code, notes, and snippets.

@kincl
Last active November 29, 2023 23:33
Show Gist options
  • Save kincl/8f34d95bc8e1b0315f4f203aadd385e5 to your computer and use it in GitHub Desktop.
Save kincl/8f34d95bc8e1b0315f4f203aadd385e5 to your computer and use it in GitHub Desktop.
libvirt-for-ocp
<network xmlns:dnsmasq='http://libvirt.org/schemas/network/dnsmasq/1.0'>
<name>default</name>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:b1:dd:cf'/>
<domain name='redhat.lab' localOnly='yes'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.100' end='192.168.122.254'/>
<host mac='52:54:00:60:3b:bf' name='ocp' ip='192.168.122.45'/>
</dhcp>
</ip>
<dnsmasq:options>
<dnsmasq:option value="address=/apps.ocp.redhat.lab/192.168.122.45"/>
<dnsmasq:option value="host-record=api.ocp.redhat.lab,192.168.122.45"/>
</dnsmasq:options>
</network>
dnf install vim bind-utils virt-manager libvirt nmstate tigervnc-server gnome-classic-session
nmcli c show bond0
nmcli c mod bond0 ipv4.dns '192.168.122.1,<other upstream dns>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment