Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem Ethdriver 82574 on Qemu X86_64 #123

Open
rezayazdanparast1376 opened this issue Dec 25, 2022 · 0 comments
Open

problem Ethdriver 82574 on Qemu X86_64 #123

rezayazdanparast1376 opened this issue Dec 25, 2022 · 0 comments

Comments

@rezayazdanparast1376
Copy link

Hi. I'm working on a new camkes-based project.
This project is simulated by using Qemu, on Q35 machine for X86_64 arch and e1000e eth. I am using intel controller driver (82574 controller) for network communication. my project has built successfully and completed intel network driver initialized.

But when using network in my application in Qemu, no network packet is sent and received!

Qemu command:

sudo qemu-system-x86_64 -machine q35,accel=kvm,kernel-irqchip=split -cpu host, 
-netdev tap,id=netdev0,ifname=tap0,script=no,downscript=no 
-device e1000e,id=nic0,netdev=netdev0,mac=52:55:00:d1:55:01  
-nographic  -serial mon:stdio -m size=4G  -device intel-iommu  
-kernel ./target/debug/images/kernel-x86_64-pc99  
-initrd ./target/debug/images/capdl-loader-image-x86_64-pc99

.

Appendix:
Create tap0 command:

export TAP_DEV=tap0
sudo ip tuntap add dev $TAP_DEV mode tap
sudo ip addr flush dev $TAP_DEV
sudo ip addr add 10.10.100.1/24 brd 10.10.100.255 dev $TAP_DEV
sudo ip link set dev $TAP_DEV addr 02:00:ca:fe:01
sudo ip link set dev $TAP_DEV up

.

how to fix this problem?
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant