VMware Cloud Community
RiannaS
Contributor
Contributor

Error: Locale Initialization Failed

Hello

I installed ovftool on SLES 11 SP1 but when I try to use it....says Error: Locale Initialization Failed =(

Reply
0 Kudos
7 Replies
admin
Immortal
Immortal

I'm not sure.

Please tell me which version of ovftool you are using and run the command with "--X:logToConsole --X:logLevel=trivia" and post the log here.

Thanks,

Eske

Reply
0 Kudos
RiannaS
Contributor
Contributor

ovftool 2.0.1

ovftool image.vmx /myvm/image.ovf

The log says....

error 'Locale'

No locale directories found in '/usr/bin/env/'

Error: Locale initialization failed

Reply
0 Kudos
admin
Immortal
Immortal

on what linux platform you you run this on?

Reply
0 Kudos
RiannaS
Contributor
Contributor

SLES 11 SP1 X84_64

Reply
0 Kudos
DimitriMckay
Contributor
Contributor

I'm also seeing the same issue. I'm running ovftool on Mac OSX hoping to convert an OVF to VMX.

I wish there was an easier way to convert VM types, and see little reason to have multiple formats.

But that's neither here nor there.

Thoughts on this error?

Cheers,

Dimitri

Reply
0 Kudos
admin
Immortal
Immortal

This should not happen if you use the Mac OS X installer. Have you used the installer for ovftool 2.1.0?

I think the reason for this is that the old 2.0.1 installer script contained some bug/errors/features. I have rewritten better and new

installers for all platforms in ovftool 2.1.0.

The reason for more formats is an old discussion I dont want to start here, I will just say that OVF is a distribution format where vmx is a runtime format.

eske

Reply
0 Kudos
JustinForder
Contributor
Contributor

I have just installed ovftool version 3.0.1 on Mac OS X 10.6.8 (Snow Leopard). The package installed to /Applications/VMware\ OVF\ Tool, and I added this to my PATH.

Trying to run ovftool from my home directory gave me "Error: Locale initialization failed.".

I found this happened even if I ran ovftool with no arguments.

As a last resort, I changed my working directory to /Applications/VMware\ OVF\ Tool

Running ./ovftool there gave a reasonable error:

    "Error: No source or target specified. Try 'ovftool --help' for more options."
So I tried again with my intended source (the .vmx file in a VMware Fusion virtual machine) and target (~/centos-min.ova), and the conversion worked.
regards
    Justin Forder
Reply
0 Kudos