VMware Cloud Community
sudrik
Contributor
Contributor

ovftool installation for Alpine (musl libc instead of glibc)

Hi,

We are moving from ubuntu to Alpine for our container image and encountered the following error for ovftool installation in an Alpine container. It works fine in an ubuntu container. Please note that Alpine uses musl libc instead of glibc. We also tried installing the glibc using “apk --no-cache --allow-untrusted -X https://apkproxy.herokuapp.com/sgerrand/alpine-pkg-glibc add glibc glibc-bin”, but it did not help.

The https://stackoverflow.com/questions/37818831/is-there-a-best-practice-on-setting-up-glibc-on-docker-... suggests “Instead of installing glibc on Alpine, build and/or package your dependent software packages and libraries for Alpine.”.

Any help or workaround to install the ovftool on Alpine would be greatly appreciated.

bash-5.0# ./VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle

Extracting VMware Installer...done.

musl libc (x86_64)

Version 1.1.24

Dynamic Program Loader

Usage: /lib/ld-musl-x86_64.so.1 [options] [--] pathname

Warning: VMware Installer could not determine this system's glibc version.

User interface initialization failed.  Exiting.  Check the log for details.

bash-5.0#

The log file referred in the above output is attached.

Regards,

Pramod

Reply
0 Kudos
4 Replies
dgold
Enthusiast
Enthusiast

I suggest copying the whole Ovftool directory from another non-alpine linux to your Alpine and run it.  Copying the directory ovftool did run for me after doing the same add glibc packages you did.  installer has some compat issues.
Reply
0 Kudos
dgold
Enthusiast
Enthusiast

forgot to give syntaxt to extract the Ovftool bundle files on non-Alpine linux:

sh ./VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle --extract ./ovftoolfiles/

then you copy the ./ovftoolfiles/ content to Alpine

Reply
0 Kudos
sudrik
Contributor
Contributor

Thanks for the workaround and related information
Reply
0 Kudos
wesley_yalipu
Enthusiast
Enthusiast

Hi,

I'm trying to achieve the same but it doesn't work. Would you mind to give a little more details on how to deploy it ?

I'm running an Alpine 3.12.1
I copied the extracted folders to /root/ovftool and modified the shebang of ovftool to "#!/bin/sh".

I keep getting a "/bin/sh: ovftool: Permission denied" error message.

Thanks,
W.

Reply
0 Kudos