[pve-devel] [PATCH qemu-server v5 0/5] Add qm ovfimport command
Emmanuel Kasper
e.kasper at proxmox.com
Thu May 4 12:17:03 CEST 2017
Changes since V4:
Improve ovfimport command:
* make the ovf manifest a mandatory parameter
* complete the vmid on non existing instead of existing
Tests (suggestions from Wolfgang):
* prepend .. to @INC so we use the local version of PVE packages
* Add ovf_test to test target
OVF module(suggestions from Wolgang)
* Add a regexp to match correct characters expected in a HostResource element
HostResources/ovf:href elements are uri paths components/url, so we test them
with the according regexp.
* Test if the disk image the OVF is refering to is contained in the current directory
to prevent symlinks attacks.
Emmanuel Kasper (5):
Force overwriting existing compressed man pages and symbolic links
Add a build dependency to libxml-libxml-perl, needed for OVF parsing
Initial support for importing OVF virtual machines
Add tests for ovfimport function
Add a new command line option 'ovfimport', to create VMs from an OVF
manifest
Makefile | 8 +-
PVE/CLI/qm.pm | 48 ++++++
PVE/QemuServer/Makefile | 1 +
PVE/QemuServer/OVF.pm | 236 +++++++++++++++++++++++++++
control.in | 2 +-
test/Makefile | 5 +-
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 | 42 +++++
12 files changed, 623 insertions(+), 6 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.11.0
More information about the pve-devel
mailing list