VMware Cloud Community
330760865
Contributor
Contributor

what is the algorithm of the pci bus number in a guest machine? how can i change the virtual pci bus number?

for example,  this is a pci information of  a guest OS,  and the device on 03:00.0  is a passthrough pcie network card  ...if i want to change it to another location,,such as  04:00.0,  how can i do that?   i just want to change the virtual pci bus number in a guest machine..  i am using esxi 5.1

thank you for you help~~~

Header 1

root@lixin_test:~# lspci

00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 01)

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 01)

00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 08)

00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)

00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 08)

00:07.7 System peripheral: VMWare Inc: Unknown device 0740 (rev 10)

00:0f.0 VGA compatible controller: VMWare Inc: Unknown device 0405

00:10.0 Ethernet controller: Intel Corporation: Unknown device 100f (rev 01)

00:11.0 PCI bridge: VMWare Inc: Unknown device 0790 (rev 02)

00:15.0 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.1 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.2 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.3 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.4 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.5 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.6 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:15.7 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.0 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.1 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.2 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.3 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.4 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.5 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.6 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:16.7 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.0 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.1 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.2 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.3 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.4 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.5 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.6 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:17.7 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.0 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.1 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.2 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.3 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.4 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.5 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.6 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

00:18.7 PCI bridge: VMWare Inc: Unknown device 07a0 (rev 01)

03:00.0 Ethernet controller: Intel Corporation: Unknown device 105e (rev 06)

03:00.1 Ethernet controller: Intel Corporation: Unknown device 105e (rev 06)

0 Kudos
5 Replies
330760865
Contributor
Contributor

i saw this page..there is no help with my question...it just provide a method to change pci slot number, but not pci bus number...and in some situations,  it doesn't take effect...

i mean the description on this page is not enough...

thank you all the same~~

0 Kudos
Anjani_Kumar
Commander
Commander

Hope this thread will help you out.

how to fix a virtual Network Adapter to be the first one (from guest point of view)

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
0 Kudos
330760865
Contributor
Contributor

thank you ....this method just can turn the order of the special PCI location of device ,but can't customise the order.

the special order of network card like following,  the bus number 03, 0b ,13, 1b is fixed...i want to change it to another...like this 04:00.00

03:00.0 Ethernet controller: VMware VMXNET3 Ethernet Controller (rev 01)

        Subsystem: VMware VMXNET3 Ethernet Controller

        Physical Slot: 160

--

0b:00.0 Ethernet controller: VMware VMXNET3 Ethernet Controller (rev 01)

        Subsystem: VMware VMXNET3 Ethernet Controller

        Physical Slot: 192

--

13:00.0 Ethernet controller: VMware VMXNET3 Ethernet Controller (rev 01)

        Subsystem: VMware VMXNET3 Ethernet Controller

        Physical Slot: 224

--

1b:00.0 Ethernet controller: VMware VMXNET3 Ethernet Controller (rev 01)

        Subsystem: VMware VMXNET3 Ethernet Controller

        Physical Slot: 256

0 Kudos
330760865
Contributor
Contributor

Is there any body?  Smiley Sad

0 Kudos