Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Vagrant box that simulates a Raspberry Pi?

Tags:

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 :)

like image 664
Bertus Kruger Avatar asked Dec 02 '15 19:12

Bertus Kruger


People also ask

Can VirtualBox emulate Raspberry Pi?

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.

What is vagrant Ubuntu?

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.

What is a vagrant box?

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.


1 Answers

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

like image 111
antoine Avatar answered Sep 28 '22 07:09

antoine