VMware/ovftool

From DER's LLC
Revision as of 19:06, 2 June 2023 by Admin (talk | contribs) (Created page with "= Build OVFTOOL Docker = == 1. Download OVFTOOL from My VMware == == 2. Create Dockerfile == FROM ubuntu:20.04 LABEL MAINTAINER "Daniel Roessner" # Suppress warning about UTF-8 ENV LC_CTYPE=POSIX ENV OVFTOOL_FILENAME=VMware-ovftool-4.4.2-17901668-lin.x86_64.bundle ADD $OVFTOOL_FILENAME /tmp/ WORKDIR /root RUN /bin/sh /tmp/$OVFTOOL_FILENAME --console --required --eulas-agreed && \ rm -f /tmp/$OVFTOOL_FILENAME ENTRYPOINT ["ovftool"] == 3. Build t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Build OVFTOOL Docker

1. Download OVFTOOL from My VMware

2. Create Dockerfile

FROM ubuntu:20.04
LABEL MAINTAINER "Daniel Roessner"

# Suppress warning about UTF-8
ENV LC_CTYPE=POSIX
ENV OVFTOOL_FILENAME=VMware-ovftool-4.4.2-17901668-lin.x86_64.bundle

ADD $OVFTOOL_FILENAME /tmp/

WORKDIR /root

RUN /bin/sh /tmp/$OVFTOOL_FILENAME --console --required --eulas-agreed && \
    rm -f /tmp/$OVFTOOL_FILENAME

ENTRYPOINT ["ovftool"]

3. Build the Container

#ON PLEX SERVER
cd /nfs/Download
mkdir ovftool
cd ovftool 
mv ../VMware-ovftool-4.4.2-17901668-lin.x86_64.bundle .
vi Dockerfile
docker build -t harbor.dersllc.com/ders/ovftool:4.4.2 -t harbor.dersllc.com/ders/ovftool:latest .
docker push harbor.dersllc.com/ders/ovftool:4.4.2
docker push harbor.dersllc.com/ders/ovftool:latest

4. Run Container

cd /nfs/DERs_Drive/Scripts/nested_vsphere_8/
docker run --rm -it -v $(pwd):/tmp harbor.dersllc.com/ders/ovftool:latest --schemaValidate /tmp/Nested_ESXi8.0a_Appliance_Template_v1.ova