padulka
Hot Shot
Hot Shot

ovftool on ESXi Issue

Jump to solution

Hi to all,

I trying to deploy an ovf from local repository but every execution of command "ovftool" return me "killed".
Someone can help me?


Regards

Labels (2)
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
padulka
Hot Shot
Hot Shot

I don't know why on this host (it's a nested lab) there is this issue, but the error "killed" depends from Out-of-Memory (OOM).

Trying on physical host it works fine.

Thanks to all 

View solution in original post

0 Kudos
10 Replies
a_p_
Leadership
Leadership

Please share the command line that you use for the deployment.

André

0 Kudos
padulka
Hot Shot
Hot Shot

/vmfs/volumes/datastore1/ovf/ovftool --X:logFile=upload.log --X:logLevel=verbose --noSSLVerify --skipManifestCheck --name="VMLABEL" /vmfs/volumes/datastore1/ova/VM.ovf vi://root:PASSWORD@127.0.0.1

0 Kudos
a_p_
Leadership
Leadership

This is the first time that I see someone trying to run ovftool directly on an ESXi host.

Maybe https://williamlam.com/2012/05/how-to-deploy-ovfova-in-esxi-shell.html (already some years old) will help.

André

0 Kudos
padulka
Hot Shot
Hot Shot

Just check this William guide and it doesn't help me

0 Kudos
depping
Leadership
Leadership

So you changed the shell as William suggested?

0 Kudos
padulka
Hot Shot
Hot Shot

@depping yes as follow:

#!/bin/sh
# ------------------------
# Start Script for ovftool
# ------------------------

# resolve links - $0 may be a softlink
PRG="$0"

if [ -z "$LC_CTYPE" ]; then
export LC_CTYPE=en_US.UTF-8
fi

if [ -L "$PRG" ]; then
PRG=`readlink "$PRG"`
fi

PRGDIR=`dirname "$PRG"`
OVFTOOL_BIN="$PRGDIR"/ovftool.bin

export LD_LIBRARY_PATH="$PRGDIR":"$LD_LIBRARY_PATH"

if [ ! -e "$OVFTOOL_BIN" ]; then
echo "Cannot find $OVFTOOL_BIN"
exit 1
fi

exec "$OVFTOOL_BIN" "$@"
exit $?

0 Kudos
depping
Leadership
Leadership

Okay. not much unfortunately then I can help with unfortunately. OVFTOOL was never intended to run on ESXi.

0 Kudos
padulka
Hot Shot
Hot Shot

@depping I know this but I don't understand why in another host with the same version of ESxi it works fine. 

I think there's some settings that I have to change.

0 Kudos
depping
Leadership
Leadership

Probably something different, but no idea, maybe someone else.

0 Kudos
padulka
Hot Shot
Hot Shot

I don't know why on this host (it's a nested lab) there is this issue, but the error "killed" depends from Out-of-Memory (OOM).

Trying on physical host it works fine.

Thanks to all 

0 Kudos