From Fedora Project Wiki

Description

This test case verifies that an assigned PCI device can be used to install a KVM guest with virt-install.


How to test

  1. Run virt-install as normal, but also supply a nodedev name to --host-device e.g.
     $> virt-install
    -n hostdev-test -r 1024 --vcpus 2
    --os-variant fedora11 -v --accelerate
    -l http://download.fedoraproject.org/pub/fedora/linux/development/x86_64/os
    -x 'console=ttyS0 vnc' --nonetworks --nographics
    --disk pool=default,size=8
    --debug --host-device=pci_8086_10bd
  2. Check that the device is functional in the guest during the installation
  3. Complete the installation and reboot the guest
  4. Check that the device is functional in the guest
  5. Shut down the guest and check that the device is functional in the host

Expected Results

  1. virt-install should successfully kick off the install
  2. The device should be used by the installer
  3. The device should be functional in the guest post-install
  4. The device should be functional in the host after the guest is shutdown