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 <[email protected]> --- 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 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
