From Fedora Project Wiki

(add sort key)
(flesh out the test case)
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|virt-install]]
[[Category:Virtualization KVM PCI Device Assignment Test Cases|virt-install]]

Revision as of 21:14, 5 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

  • 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
  • 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

Expected Results

  • 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