Re: [pve-devel] qemu-server : qm copy implementation V2

2012-10-30 Thread Dietmar Maurer
- always alloc image before copy (need qemu-img patch to skip bdrv create) - add -snapname option. (only qcow2 for now, as qemu-img convert -s snapname, work only with qcow2) - check if vm is running or not. (qemu-img convert with qcow2 snapshot work online) - cdrom : replace by none if

Re: [pve-devel] qemu-server : qm copy implementation V2

2012-10-30 Thread Dietmar Maurer
Need to be implemented : export/import from snapshot for other storage (wait for new backup framework) Note: By backup framework does not consider internal snapshots. ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] qemu-server : qm copy implementation V2

2012-10-30 Thread Alexandre DERUMIER
-devel/2012-09/msg05210.html - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Mardi 30 Octobre 2012 07:57:29 Objet: RE: [pve-devel] qemu-server : qm copy implementation V2 Need to be implemented

Re: [pve-devel] qemu-server : qm copy implementation V2

2012-10-30 Thread Dietmar Maurer
Note: By backup framework does not consider internal snapshots. Ok no problem, so it'll work with lvm :) for raw and qcow2, you'll use external snapshots ? No, I will not use any of that (no lvm, no internal snapshot, no external snapshots).

Re: [pve-devel] qemu-server : qm copy

2012-10-27 Thread Dietmar Maurer
You can't use qmu-img while the VM is running. Oh, didn't know that. (I thinked that's is worked with snapshot) But yes, we can re-use your backup/restore, it's better to reuse code and not doing twice the job). Does it work with all storage ? (rbd doesn't seem to be able to import from

Re: [pve-devel] qemu-server : qm copy

2012-10-26 Thread Dietmar Maurer
Current implement don't copy snapshots, and copy disks from you are here state But this only works if the VM is stopped? I am asking this, because new backup can store running VMs, so a backup/restore pipe can do that job. ___ pve-devel mailing list

Re: [pve-devel] qemu-server : qm copy

2012-10-26 Thread Alexandre DERUMIER
...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve-devel@pve.proxmox.com Envoyé: Vendredi 26 Octobre 2012 16:00:02 Objet: RE: [pve-devel] qemu-server : qm copy Current implement don't copy snapshots, and copy disks from you are here state But this only works if the VM is stopped