Vagrant 2.2.19 issue on vagrant up

Running command => vagrant up

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Checking if box 'bento/ubuntu-20.04' version '202107.28.0' is up to date...

==> default: Clearing any previously set forwarded ports...

==> default: Clearing any previously set network interfaces...

==> default: Preparing network interfaces based on configuration...

default: Adapter 1: nat

default: Adapter 2: hostonly

==> default: Forwarding ports...

default: 22 (guest) => 2222 (host) (adapter 1)

==> default: Running 'pre-boot' VM customizations...

==> default: Booting VM...

==> default: Waiting for machine to boot. This may take a few minutes...

default: SSH address: 127.0.0.1:2222

default: SSH username: vagrant

default: SSH auth method: private key

==> default: Machine booted and ready!

[default] GuestAdditions 6.1.26 running --- OK.

==> default: Checking for guest additions in VM...

==> default: Setting hostname...

==> default: Configuring and enabling network interfaces...

==> default: Automatic installation for Landrush IP not enabled

==> default: [landrush] Setting up iptables rule on guest for DNS server 127.0.0.53

==> default: [landrush] network: :private_network, {:ip=>"192.168.50.5", :hostsupdater=>"skip", :protocol=>"tcp", :id=>"1f60101d-5ba4-46d3-8b42-06a5af449ad8"}

==> default: [landrush] network: :forwarded_port, {:guest=>22, :host=>2222, :host_ip=>"127.0.0.1", :id=>"ssh", :auto_correct=>true, :protocol=>"tcp"}

==> default: [landrush] Using eth1 (192.168.50.5)

==> default: [landrush] Adding 'twelve.test => 192.168.50.5' to /Users/tomektomczuk/.vagrant.d/data/landrush/hosts.json

==> default: [landrush] DNS server already running with pid 59137

==> default: [landrush] Using eth1 (192.168.50.5)

[landrush] Host DNS resolver config for TLD 'twelve.test' looks good.

==> default: Exporting NFS shared folders...

/opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/darwin/cap/path.rb:20:in `resolve_host_path': uninitialized constant VagrantPlugins::HostDarwin::Cap::Version (NameError)

from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/capability_host.rb:111:in `call'

from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/capability_host.rb:111:in `capability'

from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/bsd/cap/nfs.rb:29:in `block in nfs_export'

exit status 1
1 Like

I googled for this error, the first result is vagrant 2.2.19 nfs folders uninitialized constant error on Mac OS · Issue #12583 · hashicorp/vagrant · GitHub

There’s a workaround in https://github.com/hashicorp/vagrant/issues/12583#issuecomment-964002289

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.