Installation guide

Note
Comparing lspci output to lspci -n (which turns off name resolution) output can
assist in deriving which device has which device identifier code.
2. Ad d t h e d evice
Use the PCI identifier output from the virsh nodedev command as the value for the --
host-device parameter.
# 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
3. Co mp let e t h e in st allat io n
Complete the guest installation. The PCI device should be attached to the guest.
15.4. Removing a PCI passt hrough device for host re-use
Perform the following steps to remove a PCI passthrough device so that the host regains full access
to the device:
1. List all PCI d evices
For a list of only PCI devices, run the following command:
# virsh nodedev-list | grep pci
Each PCI device is identified by a string in the following format (where 8086 is a variable that
in this case represents Intel equipment, and **** is a four digit hexadecimal code specific to
each device):
pci_8086_****
Note
Comparing lspci output to lspci -n (which turns off name resolution) output can
assist in deriving which device has which device identifier code.
2. Remo ve an d re- at tach t h e d evice
After removing the device either from the guest XML file or virt-manager, run the virsh
nodedev-reattach command to return its use to the host, substituting your PCI device
name that is designated for removal:
Chapt er 1 5. PCI passt hrough
201