libvmi / python

LibVMI Python bindings
http://libvmi.com/
GNU Lesser General Public License v3.0
28 stars 22 forks source link

VMIInitData not exported #63

Closed logankonopatzke closed 4 years ago

logankonopatzke commented 4 years ago

Attempting to run the kvmi_demos branch, I get the following error: Traceback (most recent call last): File "/usr/local/bin/vmidbg", line 5, in <module> from vmidbg.__main__ import main File "/usr/local/lib/python3.6/dist-packages/vmidbg/__main__.py", line 22, in <module> from vmidbg.libvmistub import LibVMIStub File "/usr/local/lib/python3.6/dist-packages/vmidbg/libvmistub.py", line 8, in <module> from libvmi import Libvmi, INIT_DOMAINNAME, INIT_EVENTS, VMIOS, LibvmiError, X86Reg, VMIInitData ImportError: cannot import name 'VMIInitData'

I'm using KVM with the KVM-VMI support and the latest version of LibVMI.

Wenzel commented 4 years ago

Hi,

the kvmi_demos is still opened in this PR: https://github.com/libvmi/python/pull/59 it only contains the demos of my presentation at hack.lu 2019, and not the rest of the glue to use the new KVM driver of Libvmi.

In the last slide, I indicated that it was still a WIP, and that you needed to switch on specific branches to get KVM support in libvmi/python: image

However this init_data branch is bit old too.

I have been focused on getting the maximum of this work upstream, and now that https://github.com/libvmi/libvmi/pull/844 has been merged in Libvmi (last week), I will update the bindings soon, and check that vmidbg loads properly.

Thank you very much for reporting this issue.

Wenzel commented 4 years ago

@logankonopatzke you should be able to use this branch: https://github.com/libvmi/python/pull/44

Wenzel commented 4 years ago

solved by #44

logankonopatzke commented 4 years ago

Working as expected on my end, thank you for all your hard work!

Wenzel commented 4 years ago

@logankonopatzke thanks for your feedback, I'm really happy to hear this :+1: