Ce contenu n'est pas disponible dans la langue sélectionnée.
12.3. Assigning a PCI Device with virt-install
To use virt-install to assign a PCI device, use the
--host-device
parameter.
Procedure 12.5. Assigning a PCI device to a virtual machine with virt-install
Identify the device
Identify the PCI device designated for device assignment to the guest virtual machine.lspci | grep Ethernet
# lspci | grep Ethernet 00:19.0 Ethernet controller: Intel Corporation 82567LM-2 Gigabit Network Connection 01:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) 01:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Thevirsh nodedev-list
command lists all devices attached to the system, and identifies each PCI device with a string. To limit output to only PCI devices, run the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Record the PCI device number; the number is needed in other steps.Information on the domain, bus and function are available from output of thevirsh nodedev-dumpxml
command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the device
Use the PCI identifier output from thevirsh nodedev
command as the value for the--host-device
parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Complete the installation
Complete the guest installation. The PCI device should be attached to the guest.