Installation guide
d. The default text editor will open the libvirt configuration file for the guest. Add the new
device to the devices section of the XML configuration file.
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address bus='0x03' slot='0x10' function='0x01'/>
</source>
</hostdev>
e. Save the configuration.
9. Rest art
Restart the guest to complete the installation.
# virsh start MyGuest
The guest should start successfully and detect a new network interface card. This new card is the
Virtual Function of the SR-IOV device.
16.3. T roubleshoot ing SR-IOV
This section contains some issues and solutions for problems which may affect SR-IOV.
Erro r st art in g t h e g u est
Start the configured vm , an error reported as follows:
# virsh start test
error: Failed to start domain test
error: internal error unable to start guest: char device redirected to
/dev/pts/2
get_real_device: /sys/bus/pci/devices/0000:03:10.0/config: Permission denied
init_assigned_device: Error: Couldn't get real device (03:10.0)!
Failed to initialize assigned device host=03:10.0
This error is often caused by a device which is already assigned to another guest or to the host itself.
Red Hat En t erp rise Lin ux 5 Virt ualizat ion Guid e
208