From 12584f04b710fd9dd6913dd790bb8bff9adfb212 Mon Sep 17 00:00:00 2001 From: zsdc Date: Tue, 3 Mar 2020 22:30:48 +0200 Subject: OVA: Fixed and extended OVA builds - added grub2 package to the Dockerfile (required to build OVA) - added open-vmdk to the Dockerfile (required to build OVA) - fixed WAN/LAN confusion in OVF template - added Cloud-init User-Data to the OVF template --- docker/Dockerfile | 11 ++++++++++- scripts/template.ovf | 24 ++++++++++++++---------- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ea3f3d9c..a094e099 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -85,7 +85,8 @@ RUN apt-get update && apt-get install -y \ gosu \ po4a \ openssh-client \ - jq + jq \ + grub2 # Syslinux is only supported on x86 and x64 systems RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \ @@ -339,6 +340,14 @@ RUN if dpkg-architecture -iarm64; then \ u-boot-tools \ grub-efi-arm; \ fi + +# Install open-vmdk +RUN wget -O /tmp/open-vmdk-master.zip https://github.com/vmware/open-vmdk/archive/master.zip && \ + unzip -d /tmp/ /tmp/open-vmdk-master.zip && \ + cd /tmp/open-vmdk-master/ && \ + make && \ + make install + # # live-build: building with local packages fails due to missing keys # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941691 diff --git a/scripts/template.ovf b/scripts/template.ovf index da81a364..46ded545 100644 --- a/scripts/template.ovf +++ b/scripts/template.ovf @@ -5,12 +5,12 @@ The list of logical networks - - LAN network - WAN network + + LAN network + List of profiles @@ -53,7 +53,7 @@ The public ssh key for the appliance 'vyos' account. - Appliance IPv4 Network Settings + Appliance IPv4 Network Settings (WAN interface) The host name for this virtual machine. @@ -91,6 +91,10 @@ Enable API debug logging + + + User-Data, encoded with base64. + VM specific properties @@ -191,9 +195,9 @@ 7 true - LAN - NIC representing LAN - LAN + WAN + NIC representing WAN + WAN 7 vmxnet3 10 @@ -201,9 +205,9 @@ 8 true - WAN - NIC representing WAN - WAN + LAN + NIC representing LAN + LAN 8 vmxnet3 10 -- cgit v1.2.3