Is there a Vagrant box that simulates a Raspberry

2019-03-17 14:10发布

问题:

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

回答1:

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



回答2:

There exists the rpi-build-and-boot or the older raspberry-devbox Vagrant development box for Raspberry Pi.