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

KVM: Monitor VM IP address using qemu-guest-agent #6762

Closed
wants to merge 1 commit into from

Conversation

jimis
Copy link

@jimis jimis commented Oct 23, 2024

No description provided.

Signed-off-by: Dimitrios Apostolou <jimis@qt.io>
Comment on lines +19 to +21
:vm_ip_address_list: >
one-$vm_id '{"execute":"guest-network-get-interfaces"}' --timeout 5 |
jq '{"return" : [ .return[]."ip-addresses"[]."ip-address" ]}'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command does not work currently because OpenNebula tries to parse the JSON response as VM_TEMPLATE syntax. It should work after #6765 is fixed.

@dann1
Copy link
Contributor

dann1 commented Dec 13, 2024

Hi @jimis. Thanks a lot for the extremely detailed feedback.

  • We have updated the monitoring code to address all of the problems you mentioned.
  • The configuration files were also updated.
    • Your two commands were added with a small change. We changed the jqs a bit since the parsing failed when some VMs had some network interfaces configured in a certain way. For example, docker0.
    • The guest_info shown on the example docs was also added
    • only the ping is enabled by default. The rest are commented out.

The fixes will be coming on 6.10.2 and the master branch has been updated as well. Please check out the changes.

@dann1 dann1 closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants