Skip to content

fix(nbdkit): scope VDDK library path to nbdkit#154

Open
rhochmayr wants to merge 1 commit intovexxhost:mainfrom
rhochmayr:fix/vddk-ld-library-path-leak
Open

fix(nbdkit): scope VDDK library path to nbdkit#154
rhochmayr wants to merge 1 commit intovexxhost:mainfrom
rhochmayr:fix/vddk-ld-library-path-leak

Conversation

@rhochmayr
Copy link
Copy Markdown

This scopes LD_LIBRARY_PATH to the nbdkit child process instead of mutating the migratekit process environment globally.

The VDDK plugin needs /usr/lib64/vmware-vix-disklib/lib64 on the library search path, but setting it with os.Setenv causes the value to leak into later child processes.

In particular, this affects virt-v2v-in-place / supermin, where VMware's bundled OpenSSL libraries may be preferred over Fedora's system libraries and cause the symbol lookup failure reported in #153:

/usr/bin/supermin: symbol lookup error: /lib64/librpm_sequoia.so.1:
undefined symbol: EVP_idea_cfb64, version OPENSSL_3.0.0

Using cmd.Env keeps the VDDK library path limited to the nbdkit invocation.

Fixes #153

@mnaser
Copy link
Copy Markdown
Member

rhochmayr thank you for this, can you take care of the sign-off please?

Signed-off-by: rhochmayr <robert.hochmayr@gmx.at>
@rhochmayr rhochmayr force-pushed the fix/vddk-ld-library-path-leak branch from d76b1c5 to eec1662 Compare May 7, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"cutover --run-v2v=true" runs into symbol lookup error: librpm_sequoia.so.1: undefined symbol: EVP_idea_cfb64, version OPENSSL_3.0.0

2 participants