Skip to content

Instantly share code, notes, and snippets.

@kkumar-fk
Created November 29, 2021 13:38
Show Gist options
  • Save kkumar-fk/515f89d67ebe64eb1ba27610a8a42ca6 to your computer and use it in GitHub Desktop.
Save kkumar-fk/515f89d67ebe64eb1ba27610a8a42ca6 to your computer and use it in GitHub Desktop.
Libvirt Network Interfaces definition for a VM
<interface type='network'>
<mac address='52:54:00:00:12:53'/>
<source network='enp66s0f0_br'/>
<target dev='tap01'/>
<model type='virtio'/>
<driver name='vhost' queues='4'/>
<link state='down'/>
<teaming type='persistent'/>
<alias name='ua-backup0'/>
</interface>
<interface type='hostdev' managed='yes'>
<mac address='52:54:00:00:12:53'/>
<source>
<address type='pci' domain='0x0000' bus='0x42' slot='0x02' function='0x5'/>
</source>
<teaming type='transient' persistent='ua-backup0'/>
</interface>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment