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

Qemu USB issue #259

Open
kbh1860 opened this issue Nov 8, 2023 · 2 comments
Open

Qemu USB issue #259

kbh1860 opened this issue Nov 8, 2023 · 2 comments

Comments

@kbh1860
Copy link

kbh1860 commented Nov 8, 2023

Hello! I'm interesting to your project.

It can be add USB in the target vm??

I'm add this option in kafl_fuzzer/common/config/default_settings.yml

qemu_base: -enable-kvm -machine kAFL64-v1 -cpu kAFL64-Hypervisor-v1,+vmx -no-reboot -display none -net none -device nec-usb-xhci -device usb-host,hostbus=1,hostport=5

like this, but the error has shown "qemu-system-x86_64: -device usb-host,hostbus=1,hostport=5: 'usb-host' is not a valid device model name"

Qemu-nyx doesn't have usb add features?? Or is there another way?

@Wenzel
Copy link
Collaborator

Wenzel commented Nov 9, 2023

Hi @kbh1860
thank you for your interest in kAFL !

It seems that libusb is disabled by default in QEMU, since our configure line doesn't enable or disable that feature explicitely:
https://github.com/IntelLabs/kafl.qemu/blob/kafl_stable/compile_qemu_nyx.sh#L78

you will need to add --enable-libusb to that line, and and instruct kAFL deployment to simply run the build task:

make deploy -- --tags build

@Wenzel
Copy link
Collaborator

Wenzel commented Jan 26, 2024

Hi @kbh1860 did you solve your issue ?
Can we close it ?

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

2 participants