Enable Live Migration for VirtualDomain Resource Agent

This document (000019790) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server 15 SP2
SUSE Linux Enterprise High Availability Extension 12 SP4
SUSE Linux Enterprise High Availability Extension 12 SP5
SUSE Linux Enterprise High Availability Extension 15 SP1
SUSE Linux Enterprise High Availability Extension 15 SP2

Situation

When trying to migrate VirtualDomain resource to another node the VM get stopped and then started on desired node. This is not desired in HA setup. QEMU support Live Migration but by default VirtualDomain resource agent doesn't do Live Migration. 

Resolution

To allow VirtualDomain resource agent to migrate VM live set allow-migrate metadata option to allow. An example would be: 
 
 
primitive vm01 VirtualDomain \
	params hypervisor="qemu:///system" \
	params config="/kvmshared/vmconfig/vm01.xml" \
	op start interval=0 timeout=120 \
	op stop interval=0 timeout=120 \
	utilization cpu=8 hv_memory=65536 \
        meta allow-migrate=true


 

Cause

allow-migrate option is set to false, which is the default, the VM will be shutdown on the first node and then restarted on the second node when it is being moved from one node to the other.

Additional Information

https://documentation.suse.com
http://www.linux-ha.org/wiki/VirtualDomain_(resource_agent)

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019790
  • Creation Date: 19-Nov-2020
  • Modified Date:03-Dec-2020
    • SUSE Linux Enterprise High Availability Extension

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center