question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LIBVIRT_URI not being used, hardcoded `qemu:///system` instead.

See original GitHub issue

Libvirt uri seems to be hardcoded and not being readed from the sourced env var at /var/lib/one/remotes/etc/vmm/kvm/kvmrc : export LIBVIRT_URI=qemu+tcp://localhost/system

this is not working then. http://docs.opennebula.org/5.8/deployment/open_cloud_host_setup/kvm_driver.html#opennebula-configuration

https://github.com/OpenNebula/one/blob/def9661b4aa7c708d51679eb051ce8bebce09d80/src/im_mad/remotes/kvm-probes.d/machines-models.rb#L33

https://github.com/OpenNebula/one/blob/def9661b4aa7c708d51679eb051ce8bebce09d80/src/im_mad/remotes/kvm-probes.d/machines-models.rb#L92

https://github.com/OpenNebula/one/blob/441cf1f7f9e726cb5f200d661d50e92a4042fff7/src/im_mad/remotes/kvm-probes.d/kvm.rb#L32

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
astevencommented, Sep 26, 2019

FTR: I’m working on a PR. Seems to work so far, but want to test some more before submitting it.

0reactions
astevencommented, Dec 6, 2019

Then call the script one-virsh or whatever. Why would you want to depend on a env variable that is defined in some shell script/rc file in one mad from all others. And read/parse that variable from every script/shell/ruby/executable again and again.

Anyway. Upstream does not seem to be interested. I’m not working on this. Feel free to PR with your preferred solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A.19. Common libvirt Errors and Troubleshooting
This error can be caused by a variety of factors, such as an incorrectly specified URI, or a connection that is not configured....
Read more >
Libvirt has no KVM capabilities even though qemu-kvm works
I've added explicit user = "root" to /etc/libvirt/qemu.conf instead of changing owners of /dev/kvm. It was unexpected because that file contains ...
Read more >
FAQ - Libvirt Wiki
No. Libvirt deliberately does not enable user access to the QEMU monitor. Interacting with the monitor behind libvirt's back can cause reported ...
Read more >
Failed to probe capabilities for /usr/local/bin/qemu-system ...
It just means it is installed and things are capable fo possibly working. It's possible to have it installed and part of it...
Read more >
QEMU - ArchWiki
It is more accurate but slower, and does not require the emulated OS to be Linux. QEMU commands for full-system emulation are named ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found