[pve-devel] [RFC PATCH qemu-server v2 0/5] Initial support for OVF imports

Emmanuel Kasper e.kasper at proxmox.com
Tue Feb 28 09:13:41 CET 2017


This patch serie adds initial support for creating VMs from OVF
manifests, adding a new command with the following synthax

qm ovfimport -manifest path_to_manifest.ovf {vmid}

For the momment we only parse VM name, cores count and 
memory.

For testing one can use the Windows IE Edge test VMWare machine from
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

Changes since V1:
 * rename command from 'ovfcreate' to 'ovfimport'
 * display a warning on stderr when the parameter could not be parsed
 * parse virtual disk size
 * add OVF manifests and a test script in /test directory

Emmanuel Kasper (5):
  Force overwriting existing compressed man pages and symbolic links
  Add depency to libxml-simple-perl
  Initial parsing of OVF files
  Add a new command line option 'ovfimport', to create VMs from an OVF
    manifest
  Add tests for ovfimport function

 Makefile                                     |   8 +-
 PVE/CLI/qm.pm                                |  47 ++++++
 PVE/QemuServer/Makefile                      |   1 +
 PVE/QemuServer/OVF.pm                        | 229 +++++++++++++++++++++++++++
 control.in                                   |   2 +-
 test/Makefile                                |   3 +
 test/ovf_manifests/Win10-Liz-disk1.vmdk      | Bin 0 -> 65536 bytes
 test/ovf_manifests/Win10-Liz.ovf             | 142 +++++++++++++++++
 test/ovf_manifests/Win_2008_R2_two-disks.ovf | 145 +++++++++++++++++
 test/ovf_manifests/disk1.vmdk                | Bin 0 -> 65536 bytes
 test/ovf_manifests/disk2.vmdk                | Bin 0 -> 65536 bytes
 test/run_ovf_tests.pl                        |  41 +++++
 12 files changed, 613 insertions(+), 5 deletions(-)
 create mode 100644 PVE/QemuServer/OVF.pm
 create mode 100644 test/ovf_manifests/Win10-Liz-disk1.vmdk
 create mode 100755 test/ovf_manifests/Win10-Liz.ovf
 create mode 100755 test/ovf_manifests/Win_2008_R2_two-disks.ovf
 create mode 100644 test/ovf_manifests/disk1.vmdk
 create mode 100644 test/ovf_manifests/disk2.vmdk
 create mode 100755 test/run_ovf_tests.pl

-- 
2.1.4





More information about the pve-devel mailing list