hashicorp/vagrant · error · Vagrant::Errors::DarwinMountFailed

Failed to mount folders in Darwin guest. The command attempt

Error message

Failed to mount folders in Darwin guest. The command attempted was:

%{command}

The error output from the last command was:

%{output}

What it means

Error "Failed to mount folders in Darwin guest. The command attempted was: %{command} The error output from the last command was: %{output}" thrown in hashicorp/vagrant.

Source

Thrown at plugins/guests/darwin/cap/mount_smb_shared_folder.rb:37

          else
            # fallback to assumption that user has permission
            # to create the specified mountpoint
            machine.communicate.execute("mkdir -p #{expanded_guest_path}")
          end

          smb_password = Shellwords.shellescape(options[:smb_password])
          # Ensure password is scrubbed
          Vagrant::Util::CredentialScrubber.sensitive(smb_password)

          mount_options = options[:mount_options];
          mount_command = "mount -t smbfs " +
            (mount_options ? "-o '#{mount_options.join(",")}' " : "") +
            "//#{options[:smb_username]}:#{smb_password}@#{options[:smb_host]}/#{name} " +
            "#{expanded_guest_path}"
          retryable(on: Vagrant::Errors::DarwinMountFailed, tries: 10, sleep: 2) do
            result = machine.communicate.execute(mount_command)
            if result.exit_code != 0
              raise Vagrant::Errors::DarwinMountFailed,
                command: mount_command,
                output: result.stderr
            end
          end
        end
      end
    end
  end
end

View on GitHub (pinned to 35f3160f4a)

When it happens

Trigger: Thrown at plugins/guests/darwin/cap/mount_smb_shared_folder.rb:37 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hashicorp/vagrant@35f3160f4a (2026-08-21). Data as JSON: /api/errors/b04bf65598199643. Report an issue: GitHub.