Bug #4306

vmm: specify "--mode" parameter to virsh commands for KVM drivers

Added by Laurent Grawet over 5 years ago.

Status:PendingStart date:01/22/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 4.14

Description

Hi,

This is some kind of a mix between bug report and feature request. In /var/lib/one/remotes/vmm/kvm/reboot, I had to specify "--mode acpi" otherwise KVM tries and fails to reboot the VM with agent method. (qemu guest agent is not installed...)

exec_and_log "virsh --connect $LIBVIRT_URI reboot $deploy_id --mode acpi" \
    "Could not reboot domain $deploy_id" 

Surprisingly, there is no problem with shutdown, acpi seems to be the KVM default in this case.
Maybe the modes (agent, acpi...) could be declared in /var/lib/one/remotes/vmm/kvm/kvmrc and tried in that specified order.

Many thanks,

Laurent

Also available in: Atom PDF