Skip to content

Error when trying to launch REPL #1842

@julie-nga

Description

@julie-nga

Hello,
I'm trying to launch REPL. To compile DRAKVUF with REPL, I used meson setup build --native-file llvm.ini -Drepl=true and ninja -C build.

When I try to launch it, with libdrakvuf.py being in the same directory as the REPL binary, I have :

ju@ju-virtual-machine:~/drakvuf/build$ sudo ./repl -r /root/win7-sp1.json -d win7-sp1 -l /etc/libvmi.conf
No libdrakvuf.py found, please generate it before running REPL
ju@ju-virtual-machine:~/drakvuf/build$ sudo ./repl -r /root/win7-sp1.json -d win7-sp1 -l /etc/libvmi.conf
xc: error: Failed to enable vm_event
 (16 = Device or resource busy): Internal error
VMI_ERROR: vm_event is (or was) active on this domain
Failed to init LibVMI library.
Failed to initialize on domain win7-sp1
ju@ju-virtual-machine:~/drakvuf/build$ 

The first time I run that command causes the introspected VM to freeze and not be running anymore.

Does anyone know how to launch REPL correctly ?

NB: The arguments of the repl command:

ju@ju-virtual-machine:~/drakvuf/build$ ./repl
Required input:
	 -r <path to json>         The OS kernel's JSON
	 -d <domain ID or name>    The domain's ID or name
	 -l                        Use libvmi.conf
	 -k <kpgd value>           Use provided KPGD value for faster and more robust startup (advanced)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions