How do I use Vagrant to Build Appinventor Source?

Hi All,

Im use windows 10:
I have install lates Vagrant
I have install lates VirtualBox
Im use git bash..

and on step "vagrant up",i get respon :

kangris@Shaki MINGW64 /d/appinventor-sources-aimod (master)
$ vagrant up
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
==> default: Box 'ubuntu/bionic64' could not be found. Attempting to find and install...
default: Box Provider: hyperv
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/bionic64'
default: URL: Vagrant box ubuntu/bionic64 - Vagrant Cloud
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: ubuntu/bionic64
Address: Vagrant box ubuntu/bionic64 - Vagrant Cloud
Requested provider: [:hyperv]

How to fix this? :thinking:

Thanks you.

It looks like Windows is defaulting to using Hyper-V instead of Virtualbox. Running vagrant up --provider virtualbox should do the trick.

1 Like

吴How to be in wondHow to install vagrant in Windows

Please be patient and stop spamming multiple topics with the same post.

If I use vagrant VM to build the sources (not app inventor but punya) do I have to configure also Google Cloud SDK or some other tools?

The VM setup installs most of that for you, but it's more of a crutch since virtualizing the build is fairly slow. If you plan to do significant work on App Inventor, I strongly recommend that you set up your host environment to compile rather than rely on the VM approach.

Thank you