[pve-devel] [PATCH manager] ui: remove local cloud-init live migration limitation

Mira Limbeck m.limbeck at proxmox.com
Tue Jul 27 18:42:01 CEST 2021


With live migration with local cloud-init disk now possible via the CLI
also remove the limitation in the GUI.

Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
---
 www/manager6/window/Migrate.js | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index 5122e25f..1c23abb3 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -252,15 +252,7 @@ Ext.define('PVE.window.Migrate', {
 	    if (migrateStats.local_disks.length) {
 		migrateStats.local_disks.forEach(function(disk) {
 		    if (disk.cdrom && disk.cdrom === 1) {
-			if (disk.volid.includes('vm-' + vm.get('vmid') + '-cloudinit')) {
-			    if (migrateStats.running) {
-				migration.possible = false;
-				migration.preconditions.push({
-				     text: "Can't live migrate VM with local cloudinit disk, use shared storage instead",
-				     severity: 'error',
-				});
-			    }
-			} else {
+			if (!disk.volid.includes('vm-' + vm.get('vmid') + '-cloudinit')) {
 			    migration.possible = false;
 			    migration.preconditions.push({
 				text: "Can't migrate VM with local CD/DVD",
-- 
2.30.2






More information about the pve-devel mailing list