vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

Last Vagrant releases still not totally compatible with old macOS

Open kom177 opened this issue 1 year ago • 7 comments

For macOS 10.13.6 High Sierra:

Debug output

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-22.04' version '202212.11.0' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default: 
==> default: dyld: Symbol not found: _iconv
==> default:   Referenced from: /usr/lib/libcups.2.dylib
==> default:   Expected in: /opt/vagrant/embedded/lib/libiconv.2.dylib
==> default:  in /usr/lib/libcups.2.dylib
==> default: 
==> default: 
==> default: If you want to check for box updates, verify your network connection
==> default: is valid and try again.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
.........etc

Expected behavior

No warning

Vagrant version

2.3.6-2.3.7

Host operating system

macOS 10.13.6 High Sierra

Guest operating system

Ubuntu 22.04

Steps to reproduce

  1. Upgrade for 2.3.6-2.3.7

Network connection is fully operational. Rolling back to 2.3.0 (the very last working version) immediately restores functionality.

kom177 avatar Jun 28 '23 18:06 kom177

Hi there,

Would you please provide a gist of the debug output from vagrant up --debug

Thanks

chrisroberts avatar Jun 28 '23 20:06 chrisroberts

Sure

debug.txt.zip

kom177 avatar Jun 30 '23 05:06 kom177

Any ideas?

BTW: 'uninstall tool' for 2.3.7 version of Vagrant doesn't work on High Sierra too (terminal window doesn't open).

kom177 avatar Jul 17 '23 06:07 kom177

The method from the above link doesn't help. When I simply remove libiconv.2.dylib I get

==> default: dyld: Library not loaded: @rpath/libiconv.2.dylib
==> default:   Referenced from: /opt/vagrant/embedded/lib/libxml2.2.dylib
==> default:   Reason: Incompatible library version: libxml2.2.dylib requires version 9.0.0 or later, but libiconv.2.dylib provides version 7.0.0

When I replace libiconv.2.dylib with version from 2.3.0 again I see

dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /opt/vagrant/embedded/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib

after $ vagrant box outdated -f

kom177 avatar Sep 08 '23 18:09 kom177

Just find this three files inside /opt/vagrant/embedded/lib/ directory:

  • libiconv.2.dylib
  • libxml2.2.dylib
  • libxslt.1.dylib And remove them or rename to _....dylib

mikenovikov avatar Sep 11 '23 11:09 mikenovikov

@mikenovikov, thanks a lot! Now it works and checks for updates. @chrisroberts, but it is still a hotfix, not a real solution.

kom177 avatar Sep 12 '23 17:09 kom177

This workaround provided by @mikenovikov works like a charm here, thanks!

luiguild avatar Nov 01 '23 11:11 luiguild