[pve-devel] [PATCH qemu-server 0/2] Add qm diskimport command

Alexandre DERUMIER aderumier at odiso.com
Thu Apr 27 19:56:43 CEST 2017


Hi Emmanuel,

I have tested both ovf and disk import with differents ovf found on the net, 

it's working fine for me. (We just need to add import of disks in import ovf)



>>Combined with the OVF parser which was submitted to the list last month 
>>( [PATCH qemu-server v4 0/5] Initial support for OVF import ) this should
>>allows direct import of ovf compatible exports from other hypervisors.

Just note that disk import need to be rebase to apply on top of ovf import. (Makefile and require in QemuServer.pm).


I just wonder if both imports could be merged ?


qm import vmid -source dummy.ovf -storage targetstorage   -> import full vm conf, create a new vm and import disks

qm import vmid -source dummy.vmdk -storage targetstorage   -> import a disk in a existing vm or create a new vmid with basic config if vmid don't exist.


just try to detect if file is an .ovf, if not, assume that it's a disk and use qemu-img convert




----- Mail original -----
De: "Alexandre Derumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 25 Avril 2017 15:23:37
Objet: Re: [pve-devel] [PATCH qemu-server 0/2] Add qm diskimport command

Thanks Emmanuel, 

I'll them this week + ovf import 

----- Mail original ----- 
De: "Emmanuel Kasper" <e.kasper at proxmox.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 25 Avril 2017 10:56:00 
Objet: [pve-devel] [PATCH qemu-server 0/2] Add qm diskimport command 

This new qm command allows to add an external disk image as 'unused' disk 
to an existing VM. 
This idea from Alexandre has been discussed in this thread 
http://pve.proxmox.com/pipermail/pve-devel/2017-January/025099.htm 

Combined with the OVF parser which was submitted to the list last month 
( [PATCH qemu-server v4 0/5] Initial support for OVF import ) this should 
allows direct import of ovf compatible exports from other hypervisors. 

Emmanuel Kasper (2): 
Add DiskImport module to import external disk images into a VM 
Add new qm option 'diskimport' to import external disk images 

PVE/CLI/qm.pm | 39 +++++++++++++++++++ 
PVE/QemuServer/DiskImport.pm | 93 ++++++++++++++++++++++++++++++++++++++++++++ 
PVE/QemuServer/Makefile | 1 + 
3 files changed, 133 insertions(+) 
create mode 100755 PVE/QemuServer/DiskImport.pm 

-- 
2.11.0 


_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 




More information about the pve-devel mailing list