I am looking at evaluating a tool-chain for programming ARM chips with a Raspberry Pi and I would like to run a Vagrant box that simulates a Raspberry Environment.
Does anyone know if something like that is available? (I have searched online for a solution but I might be asking Google the wrong questions :)
VirtualBox, VMWare and QEMU are three solutions to virtualize a Raspberry Pi. These emulators can run Raspberry Pi OS on a standard PC running Windows, Linux or macOS.
Vagrant is a software application that creates an operating system environment using virtualization technology. Vagrant uses a command line interface to load, prepare, and launch a virtual environment, called a Vagrant Box. There are many pre-configured Vagrant boxes available for download.
A Vagrant Box is a clone of a base operating system image. Using a clone speeds up the launching and provisioning process. 1. Instead of using the init command above, you can simply download and add a box with the command: vagrant box add ubuntu/trusty64. This downloads the box and stores it locally.
There is no Vagant box to simulate the RPi because as @Cerin said Virtual Box (which Vagrant uses) doesn't support Rapsberry Pi architecture (ARM). But there is a docker that provide a shell to a Raspbian image running on qemu.
Look here for a quick setup : https://gist.github.com/Manu343726/ca0ceb224ea789415387
Note that this guide is made for arch linux. You can do the same with debian/ubuntu changing yaourt -S
call with sudo apt install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With