KVM Install Notes
=================
#. Tagging on the **Guest**. Create the following file.
.. note:: In this example a **bridge** interface needs to be created on the
**host** first. The network is configured with trunked ports.
.. code-block:: xml
br-enp3s0f0
.. attention:: When creating the VM a single network interface is added. Be
sure to add the VLAN interfaces to the **guest** after booting.
.. warning:: Adding VLAN interfaces to the **host** will prevent the
**guest** from seeing the VLAN.
#. Tagging on the **Host**. Create the following file.
.. note:: In these examples I have two VLANs, 122 & 132. Both **VLAN**
intefaces need to be created on the **host** first. The network is
configured with trunked ports.
.. code-block:: xml
macvtap-122
.. code-block:: xml
macvtap-132
.. attention:: When creating the VM add two network interfaces. Each will be
on their respective VLAN.
#. SRIOV Networks
.. note:: With qemu v8+ you can use sriov to dynamically creat VF
interfaces for the guest.
.. code-block::
qemu-img --version
.. code-block:: xml
sriov-ens6f0
#. Run the following commands to create the new network. This procedure is the
same regardless of tagging option choosen in previous steps.
.. code-block:: bash
sudo virsh net-define .xml
sudo virsh net-autostart
sudo virsh net-start
#. Default network (Forward mode = open). Default virtual bridge for
non-trunked interfaces.
.. code-block:: xml
default
gateway