diff --git a/src/helpers.js b/src/helpers.js index 7ea32d075..c9c0cc40a 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -881,6 +881,12 @@ export function getStoragePoolPath(storagePools, poolName, connectionName) { } export function vmSupportsExternalSnapshots(config, vm, storagePools) { + // HACK/TODO: external snapshots fail for stopped VMs; intended? https://github.com/cockpit-project/cockpit-machines/pull/1280#issuecomment-1910102935 + if (vm.state !== 'running') { + logDebug(`vmSupportsExternalSnapshots: vm ${vm.name} is not running, false`); + return false; + } + const disks = Object.values(vm.disks); // If at leat one disk has internal snapshot preference specified, use internal snapshot for all disk,