O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To set up a new PCI passthrough network follow the steps:

  1. Enumerate all devices on the host OS:
root@kvm:~# virsh nodedev-list --treecomputer | +- net_lo_00_00_00_00_00_00 +- net_ovs_system_0a_c6_62_34_19_b4 +- net_virbr1_nic_52_54_00_ba_8e_2c +- net_vnet0_fe_54_00_55_9b_d6 ... | +- pci_0000_00_03_0 | | | +- pci_0000_03_00_0 | | | | | +- net_eth0_58_20_b1_00_b8_61 | | | +- pci_0000_03_00_1 | | | +- net_eth1_58_20_b1_00_b8_61 | ... root@kvm:~#
  1. List all PCI Ethernet adapters:
root@kvm:~# lspci | grep Ethernet03:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)03:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)root@kvm:~# ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required