Stream: troubleshooting

Topic: Dataverse vagrant install with OSX M1/2/3 + VMware


view this post on Zulip Kristian Allen - UCLA (Sep 16 2024 at 22:25):

Has anyone successfully run the Vagrant Dataverse on a M1/2/4 mac? The initial issue we ran into was the providers needed to be swapped so we tried to use vmware instead of vbox. Installed fusion 13 pro personal edition, made some changes, got farther... then ran into issues with the shared filesystem (HGFS). We tried to use vagrant-sshfs to get around this and ran into some more issues.

Wanted to check if I was missing something obvious before I dig in deeper.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 16 2024 at 22:33):

Do you mean the Vagrantfile at https://github.com/gdcc/dataverse-ansible ?

view this post on Zulip Kristian Allen - UCLA (Sep 16 2024 at 22:49):

@Philip Durbin ๐Ÿ‰ yes, that is the repo I am starting with

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 16 2024 at 23:23):

Hmm, I'm pretty sure that Vagrantfile is intended for development purposes, for working on the Ansible code.

Is that what you're trying to do? Gear up to contribute to that repo?

view this post on Zulip Kristian Allen - UCLA (Sep 17 2024 at 00:19):

yes, I was planning on using to test some changes to ansible. We have
been using an aws instance with the roles, but the feedback loop is a lot faster with a local instance

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 17 2024 at 01:32):

Let's check with Don tomorrow to see if he's tested with M1 etc.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 17 2024 at 15:19):

@Don Sizemore just curious if you've tried Vagrant on M1.

view this post on Zulip Don Sizemore (Sep 17 2024 at 16:14):

@Philip Durbin ๐Ÿ‰ I have not as I have an M2 these days. Want me to test that?

view this post on Zulip Kristian Allen - UCLA (Sep 17 2024 at 16:19):

Thanks @Don Sizemore , anything with arm64 architecture will help to get another data point. We've tested with 2 machines here and ran into same issue
Steps:

  config.vm.provider "vmware_desktop" do |vmware|
    vmware.vmx["tools.upgrade.policy"] = "manual"
    vmware.gui = false
    vmware.ssh_info_public = true
    vmware.allowlist_verified = true
    vmware.linked_clone = false
    vmware.vmx["ethernet0.virtualdev"] = "vmxnet3"
    vmware.vmx["memsize"] = "8192"
    vmware.vmx["numvcpus"] = "4"
  end

The error you would encounter is

HGFS was never found on the running virtual machine. This must be
installed either through VMware tools or Open VM Tools. HGFS is
required for shared folders to work properly. Please install either
the VMware tools or Open VM Tools and try again.

I've dug through the Vagrant issue queue and this issues seems to pop up and hung around, I tried some of the solutions suggested but with no luck -
https://github.com/hashicorp/vagrant/issues/6775

view this post on Zulip Don Sizemore (Sep 17 2024 at 16:48):

Does this mean I would need Fusion Pro 13 to test?

view this post on Zulip Kristian Allen - UCLA (Sep 17 2024 at 16:51):

Probably, or parallels or some other provider, I don't think vbox is supported in arm64. VMware Fusion Pro 13 Personal edition is free, so we went with that to test

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 17 2024 at 17:40):

It's funny, https://www.virtualbox.org/wiki/Downloads says "macOS / Apple Silicon hosts" so I'd think M1 would be supported.

view this post on Zulip Kristian Allen - UCLA (Sep 17 2024 at 18:13):

If I clone the ansible repo and run vagrant up the error I immediately get (on is:

dataverse-ansible % vagrant up
The provider 'vmware_desktop' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.

Vagrant knows about the following providers: docker, hyperv, virtualbox

https://app.vagrantup.com/bento/boxes/rockylinux-9, it could be the box doesn't support vbox, i'll dig in a little more

view this post on Zulip Kristian Allen - UCLA (Sep 18 2024 at 18:35):

A follow up on this, a switch to a different base box resolved the build issue for vmware
config.vm.box = "bento/rockylinux-9-arm64"
postgres_redhat.yml also needed to be updated to use an aarch64 friendly version

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 18 2024 at 18:46):

Interesting! Do you want to update the README for us?

view this post on Zulip Kristian Allen - UCLA (Sep 18 2024 at 18:49):

Thanks, yes -- i'll submit a PR for the README shortly. I'll submit a longer PR with some logic switching based on if using osx or not for the postgres role a bit later, that one has an issue i'm still working out, something is not quite right with the GPG checks and I turned off for now just to get building. It is a postgres/yum/repo issue not related to dataverse

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 18 2024 at 19:07):

Great! Yes! Please send all the PRs!


Last updated: Oct 30 2025 at 06:21 UTC