Installation guide

Note
If you do not specify a MAC address, one will be automatically generated. The
<virtualport> element is only used when connecting to an 802.11Qbh hardware
switch. The <vlan> element is new for Red Hat Enterprise Linux 6.4 and this will
transparently put the guest's device on the VLAN tagged 42.
When the virtual machine starts, it should see a network device of the type provided by
the physical adapter, with the configured MAC address. This MAC address will remain
unchanged across host and guest reboots.
The following <interface> example shows the syntax for the optional <mac
address>, <virtualport>, and <vlan> elements. In practice, use either the <vlan>
or <virtualport> element, not both simultaneously as shown in the example:
...
<devices>
...
<interface type='hostdev' managed='yes'>
<source>
<address type='pci' domain='0' bus='11' slot='16'
function='0'/>
</source>
<mac address='52:54:00:6d:90:02'>
<vlan>
<tag id='42'/>
</vlan>
<virtualport type='802.1Qbh'>
<parameters profileid='finance'/>
</virtualport>
</interface>
...
</devices>
9.
Ad d t h e Virt u al Fu n ct io n t o t he virt ual mach in e
Add the Virtual Function to the virtual machine using the following command with the
temporary file created in the previous step. This attaches the new device immediately and
saves it for subsequent guest restarts.
virsh attach-device MyGuest /tmp/new-i nterface. xml --config
Using the --co nfi g option ensures the new device is available after future guest restarts.
The virtual machine detects a new network interface card. This new card is the Virtual Function of the
SR-IOV device.
13.3. T roubleshoot ing SR-IOV
This section contains solutions for problems which may affect SR-IOV.
Chapt er 1 3. SR- IO V
111