Installing pikvm on raspberry pi zero 2 w

It turns out that Raspberry Pi Zero 2 W is an excellent platform for PiKVM in the wild.

Given the right components, you can just plug in HDMI and USB into a target device, and you will be able to remotely view and control the device through a web interface. No need for external power!

Components to buy:
- HDMI to CSI-2 (i used the model from Geekworm with SKU: 100202, but site refers to https://www.aliexpress.com/item/4000102166176.html - perhaps it's the same)
- microSDXC card (i used SanDisk Ultra microSDXC UHS-I Card 128GB)

The HDMI to CSI-2 contained both a printboard with HDMI slot as well as a cable.

Follow the steps:
1. Download https://pikvm.org/download/ , select the version named "Raspberry Pi Zero 2 W, v2 platform"
2. Follow the steps at https://docs.pikvm.org/flashing_os/
Which for my setup amounts to:
2.1 Download RPi Imager
2.2 Choose Custom image at the button

3. Then follow the steps here for adding a 
3.1 Unplug the SD-card and put it back in.
3.2 Add a file called pikvm.txt (it should already be there)     in the root with the following content (you may choose not to add FIRSTBOOT=1 if you want to be able to change WIFI easily):
FIRSTBOOT=1 WIFI_ESSID="mynet" WIFI_PASSWD="p@s$$w0rd"
3.3 You may find it's new ip using: arp -a
or
nmap -sn 192.168.80.0/24 (or by some other means)


4. Configure the CSI HDMI because of issues with "no signal"

I have followed https://docs.pikvm.org/edid/#default-edid

and then used config for "1920x1080 as preferred. Useful for Gigabyte GA-H77-DS3H or Intel NUC"




Tips!
If you need to reconfigure after deploying the unit, you can always add an Ethernet adapter. But remember that the zero device uses micro-usb, so you need some adapter that has that or a converter. If you need to edit configuration, it can be found as yaml files located in /etc/kvmd

First time booting it will take extra time
It seems like if there is insufficient power that it may keep rebooting forever.


Switching wifi
Switch cards - add prolonged sd-card cable




Comments

Popular posts from this blog

Running LXD/LXC on WSL2 with Ubuntu 20.04

Ruby weirdness