VMware Cloud Community
padulka
Hot Shot
Hot Shot
Jump to solution

ovftool on ESXi Issue

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)
Reply
0 Kudos
1 Solution

Accepted Solutions
padulka
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
10 Replies
a_p_
Leadership
Leadership
Jump to solution

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

André

Reply
0 Kudos
padulka
Hot Shot
Hot Shot
Jump to solution

/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

Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

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é

Reply
0 Kudos
padulka
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
depping
Leadership
Leadership
Jump to solution

So you changed the shell as William suggested?

Reply
0 Kudos
padulka
Hot Shot
Hot Shot
Jump to solution

@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 $?

Reply
0 Kudos
depping
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
padulka
Hot Shot
Hot Shot
Jump to solution

@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.

Reply
0 Kudos
depping
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
padulka
Hot Shot
Hot Shot
Jump to solution

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 

Reply
0 Kudos