hashicorp/vagrant-vmware-desktop

vagrant connect fails when using vmware-desktop provider on Apply M1

ryanschaaf-dmc opened this issue · 1 comments

Trying to use vagrant-share to connect to a vagrant box running on a remote system. When using the plugin on the Apply M1 device (using the vmware-desktop plugin) we fail with the error:

/Users/.../.vagrant.d/gems/2.7.4/gems/vagrant-vmware-desktop-3.0.1/lib/vagrant-vmware-desktop/action/set_display_name.rb:16:in `call': undefined method `basename' for nil:NilClass (NoMethodError)

Vagrant version

Vagrant 2.2.19

Vagrant VMware plugin version

vagrant-share (2.0.0, global)
  - Version Constraint: > 0
vagrant-vmware-desktop (3.0.1, global)
  - Version Constraint: > 0

Vagrant VMware utility version

1.0.21

Host operating system

macOS Monterey v12.4

Guest operating system

the official hashicorp/vagrant-share box

Vagrantfile

Target Vagrantbox:

Vagrant.configure("2") do |config|
  config.vm.box = "generic/fedora33"
end

Debug output

vagrant connect debug log: https://gist.github.com/268ee835ca6fc3c555320098cdae4fbd

Expected behavior

Successfully connected to remote vagrant box

Actual behavior

Error during connection

Steps to reproduce

  1. On remote box: run vagrant up
  2. On remote box: run vagrant share --ssh --disable-http
  3. <record output of vargrant share address>
  4. On local box: run vagrant connect --ssh <share address>

Hi there,

This is due to the vagrant share utilizing a small guest that is x86 based and therefore cannot be run via Fusion on the M1. We will look into how this can be addressed.

Cheers