[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to attach e1000e (PCIe ethernet card) to virtual machine?
From: |
Chan Kim |
Subject: |
How to attach e1000e (PCIe ethernet card) to virtual machine? |
Date: |
Wed, 4 May 2022 14:30:28 +0900 |
Hello all,
Using the information in
https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/pcie_pci_bridge.txt ,
I could attach a PCIe root port and then a PCIe to PCI bridge to the root
port and e1000 PCI ethernet card to the PCI bus.
This is the option I used and I see networking works ok after linux boot.
(tftp works fine).
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22,tftp=/srv/tftp \
-device pcie-root-port,bus=pcie.0,id=rp1,slot=1 \
-device pcie-pci-bridge,id=br1,bus=rp1 \
-device e1000,bus=br1,addr=1,netdev=vnet
And then I tried to connect e1000e (PCIe ethernet card) directly to PCIe
root port.
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22,tftp=/srv/tftp \
-device pcie-root-port,bus=pcie.0,id=rp1,slot=1 \
-device e1000e,bus=rp1,addr=1,netdev=vnet
Now linux boots ok to the shell, but when I tried to get a file using tftp,
I get 'network unreachable' error.
Could anyone tell me what is wrong in the invocation parameters above?
Thank you!
Chan Kim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to attach e1000e (PCIe ethernet card) to virtual machine?,
Chan Kim <=