From Fedora Project Wiki

(Created page with '{{QA/Test_Case |description=Foo. |actions= # Do this. |results= # This should happen. }} Category:Virtualization KVM PCI Device Assignment Test Cases')
 
m (Changed to numbered list and other minor wiki formatting)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=Foo.
|description=This test case verifies that an assigned PCI device can be used to install a KVM guest with <code>virt-install</code>.
|actions=
|actions=
# Do this.
# Run virt-install as normal, but also supply a nodedev name to <code>--host-device</code> e.g.
#:<pre> $> 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 </pre>
# Check that the device is functional in the guest during the installation
# Complete the installation and reboot the guest
# Check that the device is functional in the guest
# Shut down the guest and check that the device is functional in the host
|results=
|results=
# This should happen.
# virt-install should successfully kick off the install
# The device should be used by the installer
# The device should be functional in the guest post-install
# The device should be functional in the host after the guest is shutdown
}}
}}
[[Category:Virtualization KVM PCI Device Assignment Test Cases]]
[[Category:Virtualization KVM PCI Device Assignment Test Cases|virt-install]]

Latest revision as of 11:33, 6 May 2009

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