diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2017-07-28 23:17:42 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2017-07-29 01:34:49 +0900 |
commit | bff1f61f47f228fbd8eae18586667779ccb27a31 (patch) | |
tree | 4ac0152a650e9b79333a4977d7787b18f6dd1414 /scripts/build-vmware-image | |
parent | ec208d8eb6a3a746d1a1a5c361f6cdb5474fdd35 (diff) | |
download | vyos-build-bff1f61f47f228fbd8eae18586667779ccb27a31.tar.gz vyos-build-bff1f61f47f228fbd8eae18586667779ccb27a31.zip |
Add script for building Vagrant libvirt box
Diffstat (limited to 'scripts/build-vmware-image')
-rwxr-xr-x | scripts/build-vmware-image | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-vmware-image b/scripts/build-vmware-image index e665e0b5..1730d7a3 100755 --- a/scripts/build-vmware-image +++ b/scripts/build-vmware-image @@ -37,12 +37,12 @@ export PACKER_BUILD_DIR=packer_build DST_DIR=${PACKER_BUILD_DIR}/vmware mkdir -p ${DST_DIR} -# Convert raw image to VMDK +# Convert qcow2 image to VMDK source_image=${PACKER_BUILD_DIR}/qemu/vyos_qemu_image.img tmp_vmdk=${DST_DIR}/tmp.vmdk vmdk=${DST_DIR}/vyos_vmware_image.vmdk ovf=${DST_DIR}/vyos_vmware_image.ovf -qemu-img convert -f raw ${source_image} -O vmdk -o adapter_type=lsilogic ${tmp_vmdk} +qemu-img convert -f qcow2 ${source_image} -O vmdk -o adapter_type=lsilogic ${tmp_vmdk} vmdk-convert ${tmp_vmdk} ${vmdk} # Generate OVF |