[pve-devel] [PATCH guest-common v1 1/11] mapping: dir: add 'live-migration-method' parameter
Markus Frank
m.frank at proxmox.com
Mon Oct 20 14:17:36 CEST 2025
If a live migration method is selected, qemu-server starts virtiofsd
with the flags to enable live migration using the chosen method.
Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
src/PVE/Mapping/Dir.pm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/PVE/Mapping/Dir.pm b/src/PVE/Mapping/Dir.pm
index 5ff02d1..a7d4c05 100644
--- a/src/PVE/Mapping/Dir.pm
+++ b/src/PVE/Mapping/Dir.pm
@@ -74,6 +74,15 @@ my $defaultData = {
description => "The ID of the directory mapping",
format => 'pve-configid',
},
+ 'live-migration-method' => {
+ description => "Allow live-migration when using the directory with a virtiofs device."
+ ." Ensure you are using the same shared directory on all hosts."
+ ." Available migration methods are 'file-handles' and 'find-path'.",
+ type => 'string',
+ optional => 1,
+ default => 'file-handles',
+ enum => ['file-handles', 'find-paths'],
+ },
description => {
type => 'string',
description => "Description of the directory mapping",
@@ -99,6 +108,7 @@ sub private {
sub options {
return {
description => { optional => 1 },
+ 'live-migration-method' => { optional => 1 },
map => {},
};
}
--
2.47.3
More information about the pve-devel
mailing list