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

XML configuration not working #132

Open
huj13k4n9 opened this issue Dec 8, 2021 · 1 comment
Open

XML configuration not working #132

huj13k4n9 opened this issue Dec 8, 2021 · 1 comment

Comments

@huj13k4n9
Copy link

I'm trying to install kvm-vmi on my Ubuntu 20.04.3.
I followed the steps on the documentation to install all modules, including KVM kernel, QEMU, libvmi and libkvmi, with no errors.
However with qemu:commandline parameters given in the documentation, the VM failed to start.

My XML config is just the same as the one in documentation:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <qemu:commandline>
      <qemu:arg value='-chardev'/>
      <qemu:arg value='socket,path=/tmp/introspector,id=chardev0,reconnect=10'/>
      <qemu:arg value='-object'/>
      <qemu:arg value='introspection,id=kvmi,chardev=chardev0'/>
  </qemu:commandline>
  <name>centos7</name>
...

Error message:

internal error: process exited while connecting to monitor: 2021-12-08T08:29:27.751021Z qemu-system-x86_64: -object introspection,id=kvmi,chardev=chardev0: invalid object type: introspection

Also when I'm trying to use libvmi API vmi_init_complete() to read config, It just failed in function driver_init_vmi()(the code I use is process-list.c in libvmi examples):

Screenshot_20211208_164206

I don't know how to check the errors. Can anybody give me some help? Thanks a lot.

@adlazar
Copy link
Collaborator

adlazar commented Mar 2, 2022

Check if ... points to a version of QEMU built with introspection patches.

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