From Fedora Project Wiki

(flesh out the test case)
m (Changed to numbered list and other minor wiki formatting)
 
Line 2: Line 2:
|description=This test case verifies that an assigned PCI device can be used to install a KVM guest with <code>virt-install</code>.
|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=
* Run virt-install as normal, but also supply a nodedev name to <code>--host-device</code> e.g.
# Run virt-install as normal, but also supply a nodedev name to <code>--host-device</code> e.g.
<pre>
#:<pre> $> virt-install  
  $> virt-install  
#: -n hostdev-test -r 1024 --vcpus 2
        -n hostdev-test -r 1024 --vcpus 2
#: --os-variant fedora11 -v --accelerate
        --os-variant fedora11 -v --accelerate
#: -l http://download.fedoraproject.org/pub/fedora/linux/development/x86_64/os
        -l http://download.fedoraproject.org/pub/fedora/linux/development/x86_64/os
#: -x 'console=ttyS0 vnc' --nonetworks --nographics  
        -x 'console=ttyS0 vnc' --nonetworks --nographics  
#: --disk pool=default,size=8
        --disk pool=default,size=8
#: --debug --host-device=pci_8086_10bd </pre>
        --debug --host-device=pci_8086_10bd
# Check that the device is functional in the guest during the installation
</pre>
# Complete the installation and reboot the guest
* Check that the device is functional in the guest during the installation
# Check that the device is functional in the guest
* Complete the installation and reboot the guest
# Shut down the guest and check that the device is functional in the host
* 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=
* virt-install should successfully kick off the install
# virt-install should successfully kick off the install
* The device should be used by the installer
# 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 guest post-install
* The device should be functional in the host after the guest is shutdown
# 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]]

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