Raspberry Pi with VMWare

56 views
Skip to first unread message

Aidan Macdonald

unread,
Apr 11, 2019, 6:27:23 PM4/11/19
to Vagrant
I have an application that involves Raspberry Pi Zero nodes running some Docker containers from Balena. It appears that VMWare and Virtualbox can emulate a Raspberry Pi using QEMU.

Would Vagrant be capable of spinning up the Raspberry Pi emulator and launching Docker containers using docker compose? Would it be capable of subsequently deploying to real Raspberry Pi's?

Salty Vagrant

unread,
Apr 12, 2019, 4:53:55 AM4/12/19
to Vagrant

Short answer: Yes, QEMU can be used to run Raspberry Pi images and vagrant can run QEMU.

The article you link to uses a pre-configured QEMU image, I assume (because I’ve not looked) that it contains a replacement Linux Kernel. However, you should be able to build and deploy docker containers on such an image and then deploy those on your target RaspPi system without change.

Personally, I would use a headless/non-GUI Raspberry Pi image (no point including all the GUI garbage unless you need it).

Having played with this QEMU/raspbian setup in the past (I used this as my starting point), I can tell you it all worked when I was playing with it (some time ago though). The script is a useful starting point for understanding how to override the raspbian kernel when starting it using QEMU.

As for using vagrant, it’s been a while, but IIRC, you can use this to get QEMU as a vagrant provider (mediated by libvirt).

On 11 Apr 2019, at 23:27, Aidan Macdonald wrote:

I have an application that involves Raspberry Pi Zero nodes running some Docker containers from Balena. It appears that VMWare and Virtualbox can emulate a Raspberry Pi using QEMU.

Would Vagrant be capable of spinning up the Raspberry Pi emulator and launching Docker containers using docker compose? Would it be capable of subsequently deploying to real Raspberry Pi's?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/40d87294-a854-42f9-818b-e0b1b889ad02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Miranda Aguilera

unread,
Apr 15, 2019, 1:23:09 PM4/15/19
to vagra...@googlegroups.com
hello

got a question:

say you get this up and running, how you plan to use it from vagrant?


being docker available over the network, if you can spin the emulator, and expose the docker daemon, then you can just use it.

Not sure how vagrant fits here on this particular scenario.


if running this without vagrant seems to be documented, perhaps is easier/simpler that way?
Alvaro.

On Fri, Apr 12, 2019 at 12:27 AM Aidan Macdonald <aidan.plene...@gmail.com> wrote:
I have an application that involves Raspberry Pi Zero nodes running some Docker containers from Balena. It appears that VMWare and Virtualbox can emulate a Raspberry Pi using QEMU.

Would Vagrant be capable of spinning up the Raspberry Pi emulator and launching Docker containers using docker compose? Would it be capable of subsequently deploying to real Raspberry Pi's?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/40d87294-a854-42f9-818b-e0b1b889ad02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Aidan Macdonald

unread,
Apr 15, 2019, 4:10:56 PM4/15/19
to Vagrant
My basic idea was to enable development without the need for a real Raspberry Pi. If Vagrant worked, I was hoping to enable developers to get up and running without needing to set them up on a Raspberry Pi.

Similarly, if I have to have something work between multiple Raspberry Pi's it would be nice to have this handled in Vagrant without having to allocate 2 RPi's per dev.


On Monday, April 15, 2019 at 10:23:09 AM UTC-7, Alvaro Miranda Aguilera wrote:
hello

got a question:

say you get this up and running, how you plan to use it from vagrant?


being docker available over the network, if you can spin the emulator, and expose the docker daemon, then you can just use it.

Not sure how vagrant fits here on this particular scenario.


if running this without vagrant seems to be documented, perhaps is easier/simpler that way?
Alvaro.

On Fri, Apr 12, 2019 at 12:27 AM Aidan Macdonald <aidan.plen...@gmail.com> wrote:
I have an application that involves Raspberry Pi Zero nodes running some Docker containers from Balena. It appears that VMWare and Virtualbox can emulate a Raspberry Pi using QEMU.

Would Vagrant be capable of spinning up the Raspberry Pi emulator and launching Docker containers using docker compose? Would it be capable of subsequently deploying to real Raspberry Pi's?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagra...@googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages