qemu-server/PVE
Stefan Reiter 58c64ad5d9 Include "-cpu" parameter with live-migration
This is required to support custom CPU models, since the
"cpu-models.conf" file is not versioned, and can be changed while a VM
using a custom model is running. Changing the file in such a state can
lead to a different "-cpu" argument on the receiving side.

This patch fixes this by passing the entire "-cpu" option (extracted
from /proc/.../cmdline) as a "qm start" parameter. Note that this is
only done if the VM to migrate is using a custom model (which we can
check just fine, since the <vmid>.conf *is* versioned with pending
changes), thus not breaking any live-migration directionality.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-04-07 17:27:58 +02:00
..
API2 Include "-cpu" parameter with live-migration 2020-04-07 17:27:58 +02:00
CLI Create Drive.pm and move drive-related code there 2020-03-07 18:23:57 +01:00
QemuServer Include "-cpu" parameter with live-migration 2020-04-07 17:27:58 +02:00
VZDump vm_start: condense signature 2020-04-01 17:42:15 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm vm_start: condense signature 2020-04-01 17:42:15 +02:00
QemuMigrate.pm Include "-cpu" parameter with live-migration 2020-04-07 17:27:58 +02:00
QemuServer.pm Include "-cpu" parameter with live-migration 2020-04-07 17:27:58 +02:00
QMPClient.pm Append newline to all QGA commands 2020-03-11 11:11:45 +01:00