[PVE-User] Move VMs / local storage to new host with minimal downtime

Kevin Lemonnier lemonnierk at ulrar.net
Tue Feb 14 00:09:44 CET 2017


> So I need to create the VM on the new host and then attach the moved disk – is there any doc about ? I guess I also should copy the configuration file.

Yeah, I usually just re-create it before hand, move disk them plan a little downtime to shut it down on the old hypervisor
and power it up on the new later. You don't have to do both at the same time.

As for attaching the disk, you can't. What you need to do is create the VM with an identical disk and the same ID, then rm that disk
by hand on the filesystem, then move the disk from the other hypervisor on that storage : it'll get the same path as the one
you removed.
That's a ridiculous way to do it, but unfortunatly proxmox still doesn't have an attach existing disk button, that's the best
I came up with.

If you can afford a bit more downtime you can always just mv the disk on top of the empty one, that'll work too, but I'm
always afraid I'll mess up and overwrite the "real" one with the empty one ..

-- 
Kevin Lemonnier
PGP Fingerprint : 89A5 2283 04A0 E6E9 0111
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20170214/df25b4fa/attachment.sig>


More information about the pve-user mailing list