Provisioning Raspberry Pis with FOG
-
Hey guys,
I am wondering, if anybody has experience in provisioning Raspberry Pis with FOG.
There’s only little information about this topic, when searching with Google.
Most of the content I found is about installing a Fog Server on a Raspberry Pi.So if there’s anybody with experience in this topic, please let me know
Any help would be greatly appreciated!
-
So just for clarity, you want to deploy an image to a Pi?
This is something I don’t know is if you can pxe boot the Pis. Can you confirm if you can pxe boot them.
-
you can not boot ipxe on a pi.
-
@junkhacker Excellent, so then we can boot via USB into FOG??
-
@george1421 the raspberry pi only supports booting from SD card.
-
@junkhacker well that is not helpful (the Pi not you). I do have a pi 2 running fog but its been several years since I set it up. I do remember copying the image file from my linux system to the micro sd card to load the OS. I never checked to see if the Pi could pxe or usb boot.
-
@junkhacker That’s not the case - it’s possible to boot the Pi via network.
-
@dantehaversham without a bootloader on a SD card? i’d love to see proof of this.
-
@dantehaversham Excellent can you show us the setting in the firmware. Also we probably should understand what Pi you are using.
-
@george1421 I was personally thinking that it should support network booting, because I have seen projects where they created a supercomputer out of Pi nodes. But I never looked into the mechanics of the super computer.
-
@junkhacker My Pi downloads the bootloader via TFTP and then mounts the OS via NFS. So no SD-Card needed. But I’m looking for a solution to provide the Rasp-Image to SD-Cards via network. So I thought maybe FOG could solve my problem
-
@dantehaversham perhaps my information about the pi is outdated, but how do you choose the boot volume? there is no cmos or bios like system on a pi, is there?
-
@george1421 Yep - but you have to do a little reconfiguration.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md
The process of making a Pi bootable via network is well documentated.
I’m using a Raspberry Pi 3 Model B.
-
@dantehaversham ah, just looked it up as well. it’s model pi 3 only. looks like i need to buy some more pi lol
-
@junkhacker yes - with model 3 it’s possible without having a sd-card in use.
-
@dantehaversham just read some of the documentation on network booting the pi. it should be possible to get this working with fog, actually. with exceptions. it would be able to push images down, but without the finesse that we do on PCs. the ipxe menu systems and dynamic configuration parts wouldn’t work.
-
@dantehaversham OK now that we know the Pi3 can pxe boot. What I want you to do is this.
- Manually register the hardware mac of the network adapter.
- Schedule a debug deploy or capture task. It doesn’t matter which because we are going into debug mode. When you schedule the task be sure to check the debug check box.
- PXE boot the Pi3.
- After a few key presses on the pi’s keyboard you will be dropped to a linux command prompt.
- At the linux command prompt we need to collect a few bits of into.
Data to collect
ip addr show
ensure the Pi is getting an IP address in FOSlsblk
collect what FOS sees for disks
-
I think all the PXE binaries and FOS need compiled for ARM for this to work??
-
@wayne-workman Ugh, good point. I was only thinking ia86 compatible.
-
@george1421 Right, and then there’s the problem of DHCP giving out the right binary, and that binary requesting the right kernel and init.