OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.24k stars 480 forks source link

QEMU emulator detection #5167

Open vholer opened 3 years ago

vholer commented 3 years ago

Description

Currently, the default path to the QEMU is hardcoded in the vmm_exec_kvm.conf :

https://github.com/OpenNebula/one/blob/6230e2d7c6ff5f037bad17684fda94beb116f3ed/src/vmm_mad/exec/vmm_exec_kvm.conf#L31

and, adjusted for each build platform during the packaging to

This introduces following problems in

Vague proposal is to:

  1. extend probes fetching current KVM_CPU* and KVM_MACHINES to return

    • list supported architectures
    • emulator for each architecture
    • KVM_CPU/MACHINES specific for each architecture
  2. Use a VM defaults specific for planned host.

Use case

Interface Changes Monitoring, oned, Sunstone.

Progress Status

vholer commented 3 years ago

PRs to merge into master as a workaround which uses unified /usr/bin/qemu-kvm-one symlink:

The issue should be left opened for a proper solution, which inteligently takes emulator and respects the guest VM architecture,