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

Emmanuel Kasper e.kasper at proxmox.com
Tue May 2 15:32:22 CEST 2017


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 in March
( [PATCH qemu-server v4 0/5] Initial support for OVF import ) this should
allows direct import of ovf compatible exports from other hypervisors.

changes since v1:
 * pass mandatories parametersin a list, and optional parameters in hash
 ref for general style in PVE::QemuServer::DiskImport::do_import
 * fix sparseinit/has_sparseinit and print_drive wrong names
 * test if the VM exists before trying to add something
 * rename $disk_entry to $drive_name as it the name we use most of the time in QemuServer.pm

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                | 37 ++++++++++++++++++
 PVE/QemuServer/DiskImport.pm | 91 ++++++++++++++++++++++++++++++++++++++++++++
 PVE/QemuServer/Makefile      |  1 +
 3 files changed, 129 insertions(+)
 create mode 100755 PVE/QemuServer/DiskImport.pm

-- 
2.11.0





More information about the pve-devel mailing list