dat-ecosystem-archive / anacapa-container

A containerized way to run the Anacapa eDNA processing toolkit on your own machine or server [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
9 stars 6 forks source link

installing vagrant on mac osx with Big Sour #7

Open FabianRoger opened 3 years ago

FabianRoger commented 3 years ago

I just wanted to document some issues i ran into when following the installation instructions (on my personal macbook)

1) make sure to run everything as root

after you open the shell, type sudo -i and enter your password

see https://stackoverflow.com/a/31711279/1183277

2) If you follow the instruction to install vagrant https://singularity.lbl.gov/install-mac

note that

brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager

must now be typed as

brew install --cask virtualbox
brew install --cask vagrant
brew install --cask vagrant-manager

see https://stackoverflow.com/a/66081492

3) when you run vagrant init singularityware/singularity-2.4 it will fail

You need to go to Sytem preferences > Security & Privacy. Some Oracle thing will be there and you need to allow it and restart

(However, I think just must let it fail for the option to appear, but not sure)

see https://github.com/hashicorp/vagrant/issues/12049#issuecomment-728167674

After I troubleshooted these steps above, I managed to install vagrant. However see also #6 (correct path to image)

FabianRoger commented 3 years ago

see also here: https://github.com/sara-nl/singularity-course/blob/master/singularity_install_mac_osx.md

JoyceVelos commented 3 years ago

Hi,

I am trying to install Singularity on a Macbook Pro M1 MacOS BigSur 11.4. I tried downloading VirtualBox 5.2 but it crashes. And when I did successfully installed the latest versions of VirtualBox and Vagrant and run vagrant up, I get an error message.

This is the vagrant script: "export VM=sylabs/singularity-3.5-ubuntu-bionic64 && vagrant init $VM && vagrant up && vagrant ssh"

The error message is: There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "d3126691-9ee2-4e61-a838-c0d784eba7c0", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'vm-singularity_default_1622454996768_88432' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

I found a lot of suggestions to uninstall and reinstall, which I already did, but is not working. The "Allow...Oracle" message that suppose to pop up in the system preference is not showing, too.

Could you please help me? Thank you!

Best regards, Joyce