Fusion

 View Only
  • 1.  You do not have access rights to this file

    Posted Jan 17, 2024 10:46 AM

    Can I please get some advice about this issue?

    I am trying to use Vagrant in my M1 Mac, and created Vagrantfile after some necessary setups.

    But every time I try `sudo vagrant up` in my terminal ->

    Bringing machine 'default' up with 'vmware_fusion' provider...
    ==> default: Cloning VMware VM: 'hashicorp/bionic64'. This can take some time...
    ==> default: Checking if box 'hashicorp/bionic64' version '1.0.282' is up to date...
    ==> default: Verifying vmnet devices are healthy...
    ==> default: Preparing network adapters...
    ==> default: Starting the VMware VM...

    the message is printed to this step, and then the VMWare Fusion gives a pop-up window that says "You do not have access rights to this file". After that, this comes after:

    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.

    My VMWare itself works without any probelm.

    But I have no idea about the "this file" mentioned in the message...

     

    My Vagrantfile looks like this:

    VAGRANTFILE_API_VERSION = "2"
     
    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
       config.vm.box = "hashicorp/bionic64"
       config.vm.hostname = "ansible.local"  # name of installed box
       config.vm.provider "vmware_fusion" do |vmware|
          vmware.memory = 1024
          vmware.gui = true
    end
     
    if Vagrant.has_plugin?("vagrant-vbguest")
       config.vbguest.auto_update = false
    end
     
    config.vm.network "private_network", ip: "192.168.33.46"
    config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [".git/"]
    config.vm.provision "shell", inline: <<-SHELL
          export DEBIAN_FRONTEND=noninteractive
          sudo apt -y update
          sudo apt install -y ca-certificates apt-transport-https 
          sudo apt install -y software-properties-common curl 
          sudo apt install -y python3-pip python-is-python3
          sudo add-apt-repository --yes --update ppa:ansible/ansible
          sudo apt install -y ansible
          sudo pip3 install docker
       SHELL
    end


  • 2.  RE: You do not have access rights to this file

    Posted Jan 17, 2024 01:42 PM

    Try running Vagrant with increased logging verbosity

    vagrant up --debug or vagrant up --provider=vmware_fusion --debug

    This can provide more detailed information about where the process is failing.



  • 3.  RE: You do not have access rights to this file
    Best Answer

    Posted Jan 19, 2024 12:46 PM

    Thanks for replying!

    I solved this problem by simply just using this vagrant box: 
    https://app.vagrantup.com/gyptazy/boxes/ubuntu22.04-arm64

     



  • 4.  RE: You do not have access rights to this file

    Posted Dec 23, 2024 06:47 AM

    This note helped however didn't solve my problem.  Hopefully the following helps anyone else that ran into this issue.

    Solution for me was to run VMware Fusion as root.  This is because I was executing my vagrant commands with sudo therefore requiring VMware Fusion to also run with sudo.

    sudo /Applications/VMware\ Fusion.app/Contents/MacOS/VMware\ Fusion