getumbrel / umbrel-dev

Automatically initialize and manage an Umbrel development environment
20 stars 15 forks source link

VirtualBox not available on M1 macs #27

Open EddWills95 opened 2 years ago

EddWills95 commented 2 years ago

Just went to fire this up on an M1 macbook and realised that VirtualBox does not support the arm architecture

Have we got an alternative for running this with the M1 chips? I think we can use Vagrant with docker and the arch should be the same arm64 -will try and test this out but i'm pretty new to Vagrant

louneskmt commented 2 years ago

You can check out the parallels branch

EddWills95 commented 2 years ago

Got this error:

eddwilliams@Edds-MBP parallels-test % ../umbrel-dev boot  
No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.

If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
`vagrant up --provider=PROVIDER`, which should give you a more specific
error message for that particular provider.
EddWills95 commented 2 years ago

Switching the script to use

vagrant up --provider=parallels

I get the error:

The provider 'parallels' that was requested to back the machine
'umbrel-dev' is reporting that it isn't usable on this system. The
reason is shown below:

Vagrant has detected that you have an edition of Parallels Desktop for Mac
installed that is not supported. Vagrant Parallels provider is compatible
only with Pro and Business editions of Parallels Desktop. Other editions
do not have command line functionality and can not be used with Vagrant.

Please upgrade your installation: https://parallels.com/desktop

So as far as I can tell, to use parallels i'd need to buy it 😢

louneskmt commented 2 years ago

@lukechilds do you have a M1 Mac?

bookcasey commented 2 years ago

With my M1 Mac and Parallels, I was having some issues booting. Getting this error:

    umbrel-dev:   copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-aarch64-cpython-37/bcrypt
    umbrel-dev:   copying src/bcrypt/py.typed -> build/lib.linux-aarch64-cpython-37/bcrypt
    umbrel-dev:   running build_ext
    umbrel-dev:   running build_rust
    umbrel-dev: 
    umbrel-dev:       =============================DEBUG ASSISTANCE=============================
    umbrel-dev:       If you are seeing a compilation error please try the following steps to
    umbrel-dev:       successfully install bcrypt:
    umbrel-dev:       1) Upgrade to the latest pip and try again. This will fix errors for most
    umbrel-dev:          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
    umbrel-dev:       2) Ensure you have a recent Rust toolchain installed. bcrypt requires
    umbrel-dev:          rustc >= 1.56.0.
    umbrel-dev: 
    umbrel-dev:       Python: 3.7.3
    umbrel-dev:       platform: Linux-4.19.0-16-arm64-aarch64-with-debian-10.9
    umbrel-dev:       pip: 18.1
    umbrel-dev:       setuptools: 65.4.0
    umbrel-dev:       setuptools_rust: 1.5.2
    umbrel-dev:       rustc: n/a
    umbrel-dev:       =============================DEBUG ASSISTANCE=============================
    umbrel-dev: 
    umbrel-dev:   error: can't find Rust compiler

Not sure what the best solution is, but what got it working for me was to add this python3 -m pip install --upgrade pip to the Vagrantfile. I'll make a PR.

nobu-maeda commented 1 year ago

Encountering this also. Tried both recipes

  1. Attempt to follow the README of getumbrel/umbrel-apps to the dot

    brew install lukechilds/tap/umbrel-dev gnu-sed
    brew install --cask virtualbox vagrant

    This results in complaints that virtualbox only works for Intel 64 bit. I tried installing M1 preview beta from virtualbox.org to continue.

    mkdir umbrel-dev
    cd umbrel-dev
    umbrel-dev init

    At this point it complaints about not finding prlctl.

    Command is missing: prlctl
    To continue, please install 'prlctl' using:
    brew install --cask parallels

    I attempted to install parallels as suggested. I get a huge amount of chown and Operations not permitted. eg:

    chown: /Applications/Parallels Desktop.app/Contents/Frameworks/QtQmlWorkerScript.framework/Versions/Current: Operation not permitted
    chown: /Applications/Parallels Desktop.app/Contents/Frameworks/QtQmlWorkerScript.framework/Versions/5/_CodeSignature/CodeResources: Operation not permitted
    chown: /Applications/Parallels Desktop.app/Contents/Frameworks/QtQmlWorkerScript.framework/Versions/5/_CodeSignature: Operation not permitted
    chown: /Applications/Parallels Desktop.app/Contents/Frameworks/QtQmlWorkerScript.framework/Versions/5/QtQmlWorkerScript: Operation not permitted
  2. Using the parallels branch instead

    brew install lukechilds/tap/umbrel-dev parallels

    Same result as what was observed for attempt to install parallels with brew cask above.

Janaka-Steph commented 1 year ago

Virtualbox Beta now supports Mac M1 architecture and can be installed with brew install --cask virtualbox-beta. However, as I understand, umbrel-dev script assumes "Darwin arm64" should run Parallels, which fails to install with a bunch of Operations not permitted.