Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant up fails with VMWare + Mac M1 #13360

Open
mukundt opened this issue Mar 6, 2024 · 6 comments
Open

Vagrant up fails with VMWare + Mac M1 #13360

mukundt opened this issue Mar 6, 2024 · 6 comments

Comments

@mukundt
Copy link

mukundt commented Mar 6, 2024

Hey! Running Vagrant 2.4.1 on my Mac M1. I have VMWare installed, and have run vagrant plugin install vagrant-vmware-desktop and brew install --cask vagrant-vmware-utility. Unfortunate I constantly get this error when running vagrant up --provider vmware_desktop:

✗ vagrant up --provider vmware_desktop
Bringing machine 'default' up with 'vmware_desktop' provider...
==> default: Checking if box 'centos/7' version '2004.01' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
Vagrant timed out while trying to start the VMware machine. This
error is caused by VMware never successfully starting the machine.
This can often be fixed by simply retrying. If the error persists,
please verify that VMware is functional. This is not a Vagrant
issue.

Here is my Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.network "public_network", bridge: "wlp0s20f3"
  config.vm.hostname = "mrcp"
  config.vm.synced_folder ".", "/vagrant"

  config.vm.provider "vmware_desktop" do |v|
    v.gui = true
    v.cpus = 3
    v.memory = "4096"
  end

  config.vm.provision "ansible" do |ansible|
    ansible.playbook = "provisioning/playbook.yml"
  end
end

Screenshot 2024-03-05 at 5 49 15 PM

@Ovll
Copy link

Ovll commented Apr 29, 2024

Greetings, I have same M1, same distro, same problem. Any luck?

@arc-arnob
Copy link

Same Problem and no solution : ) VMs on Macs sucks

@sophiefeifeifeiya
Copy link

same problem with m2

@sscdarnold
Copy link

I wish this was a Vagrant issue but it isn't.

The centos/7 and centos/8 boxes aren't built for the aarch64 architecture which the Apple Silicon processors use. There is an issue with the page size preventing RHEL/CentOS 8 from running effectively on Apple Silicon-based machines.

These boxes can be emulated via tools like UTM but there is a performance hit.

This box may work: bento/centos-stream-9-arm64

@Ovll
Copy link

Ovll commented Jun 4, 2024

After upgrade to Monterey it works.
debian11-arm64 (vmware_desktop, 0)
politessebaume0r/rocky9 (vmware_desktop, 1.2, (arm64))
sparktype/rhel9-arm64 (vmware_desktop, 2023.08.19)

@sscdarnold
Copy link

sscdarnold commented Jun 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants