summaryrefslogtreecommitdiff
path: root/scripts/build-vmware-image
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-vmware-image')
-rwxr-xr-xscripts/build-vmware-image12
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/build-vmware-image b/scripts/build-vmware-image
index 189461eb..e665e0b5 100755
--- a/scripts/build-vmware-image
+++ b/scripts/build-vmware-image
@@ -14,9 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# File: build-vmware-ovf
+# File: build-vmware-image
# Purpose:
-# Build VyOS OVF for VMware.
+# Build VyOS OVA and OVF for VMware.
if [ ! $(which vmdk-convert) ]; then
echo "Your system doesn't have vmdk-convert. Please install it from https://github.com/vmware/open-vmdk."
@@ -33,16 +33,12 @@ else
fi
export PACKER_BUILD_DIR=packer_build
-export PACKER_LOG_PATH=${PACKER_BUILD_DIR}/build_vmware_ovf.log
-export PACKER_LOG=1
-mkdir -p ${PACKER_BUILD_DIR}
DST_DIR=${PACKER_BUILD_DIR}/vmware
-
-packer build -only=vmware-image scripts/packer.json
+mkdir -p ${DST_DIR}
# Convert raw image to VMDK
-source_image=${DST_DIR}/vyos_vmware_image.img
+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