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

Testcase count stuck at 0 #6

Open
0roman opened this issue Jan 7, 2019 · 1 comment
Open

Testcase count stuck at 0 #6

0roman opened this issue Jan 7, 2019 · 1 comment

Comments

@0roman
Copy link

0roman commented Jan 7, 2019

This issue is similar to the closed #5.

I have tried vUSBf with different operating systems, such as CirrOS. CirrOS is a minimal linux distribution.

  • Execution on external VM works with: python vusbf.py -eon 127.0.0.1 1235 panic_1.obj
    I can see kernel messages in the vm console.

  • Without external VM it does not work: python vusbf.py -eo payload/panic_1.obj -o new.config -v1
    Issue: I can see usbredir packets, but Testcase count stuck at 0.
    pastebin link

In #5 there was a problem with the QEMU snapshot

how i built my vm

  1. I've downloaded the CirrOS. It already had qcow format.
    wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
  2. I've created overlay and ram.
    qemu-img create -b cirros-0.4.0-x86_64-disk.img -f qcow2 overlay.qcow2
    qemu-img create -f qcow2 ram.qcow2 1G
  3. I've logged in the vm and changed the verbosity of printk
    echo '7' > /proc/sys/kernel/printk
  4. I've pressed CTRL + A + C and then saved a qemu vm snapshot with
    savevm replay

My new.config file contains the following:

# QEMU BINARAY
qemu_bin:	/usr/local/bin/qemu-system-x86_64

# KVM SUPPORT
kvm:		no

# MEMORY SIZE (MB)
memory:		1024	

# RAM FILE
ram_file:	PATH_TO_WORKSPACE/ram.qcow2

# OVERLAY FILE
overlay_file:	PATH_TO_WORKSPACE/overlay.qcow2

# OVERLAY FOLDER
overlay_folder:	PATH_TO_WORKSPACE
	
# USB DEVICE TYPE
device_type:	nec-usb-xhci

# EXTRA QEMU PARAMETER
qemu_extra:	""

# SNAPSHOT
snapshot:	replay
@bemboes
Copy link

bemboes commented Oct 8, 2024

Did you manage to fix the problem? im trying to get vUSBf up and running but my testcase count is also stuck at 0

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

3 participants
@bemboes @0roman and others