Closed brosky closed 2 years ago
Lots of checks are implemented, but apparently not the one that you're running into..
I agree that it's annoying to find out that it isn't implemented when at 90% of the work. That shouldn't happen.
What filesystem are you converting to?
I suspect this might fix your troubles:
diff --git a/proxmove b/proxmove
index 6051e4f..1208beb 100755
--- a/proxmove
+++ b/proxmove
@@ -1046,11 +1046,11 @@ class ProxmoxStoragePlain(ProxmoxStorage):
def copy_from_temp(self, disk_size, src_temp, src_format, dst_id,
dst_name):
- if src_format != 'qcow2':
+ if src_format not in ('qcow2', 'raw'):
raise NotImplementedError(
- 'format conversion from {!r} not implemented'.format(
+ 'format conversion from {!r} to plain not implemented'.format(
src_format))
- dst_format = 'qcow2'
+ dst_format = src_format
rel_path = os.path.join(
str(dst_id), '{}.{}'.format(dst_name, dst_format))
But I haven't tested this. We've only used ZFS target filesystems for a while now.
@brosky : if you could test this and confirm whether it works for you, that'd be nice.
Hi,
Just trying your script, configured.. and trying to migrate a simple VM from one cluster to another:
Can some checks be implemented before doing any work ? - this transfer left me with a orphaned vm on destination and a stopped and renamed VM on source.
Thank you