2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-08 19:10:24 +00:00
pikvm/README.md

609 lines
29 KiB
Markdown
Raw Normal View History

# Open and cheap DIY IP-KVM based on Raspberry Pi
2020-09-03 08:26:45 +00:00
[![Discord](https://img.shields.io/discord/580094191938437144?logo=discord)](https://discord.gg/bpmXfz5) [![Reddit](https://img.shields.io/badge/reddit-join-orange?logo=reddit)](https://www.reddit.com/r/pikvm)
2020-07-29 18:34:26 +00:00
2020-10-13 05:53:24 +00:00
A very simple and fully functional Raspberry Pi-based KVM over IP that you can make with your own hands. This device helps to manage servers or workstations remotely, regardless of the health of the operating system or whether one is installed. You can fix any problem, configure the BIOS, and even reinstall the OS using the virtual CD-ROM or Flash Drive.
2020-08-01 21:46:17 +00:00
2020-08-01 22:46:32 +00:00
The website: [pikvm.org](https://pikvm.org). Also join to the [Discord Community Chat](https://discord.gg/bpmXfz5) for news, questions and support!
2020-08-01 21:49:32 +00:00
2020-08-01 20:43:14 +00:00
* **[>>> DIY Getting Started <<<](#diy-getting-started)**
2020-11-20 14:59:19 +00:00
* **Great project review by Novaspirit Tech**: https://youtu.be/plP9Y1likRg
* Boring technical details from the developer: https://youtu.be/9YhPWjWv5gw
2021-02-02 21:35:52 +00:00
* **[Pro Series v3 Preorder Today!](#the-future-v3-platform-work-in-progress) / Video review**: https://youtu.be/dTchVKxx7Fo
2020-08-01 20:43:14 +00:00
* [Limitations](#limitations)
* [Tips](#tips)
* [FAQ](#faq)
2020-08-01 22:56:32 +00:00
* [Donate](#donate)
2020-08-01 20:40:21 +00:00
2020-08-01 20:25:03 +00:00
### Features
* Supported **Raspberry Pi 2**, **3**, **4** and **ZeroW**;
* **FullHD video** using advanced **HDMI-to-CSI bridge** or **USB dongle**;
* Extra low **100ms video latency** (for CSI bridge);
2020-08-01 21:50:23 +00:00
* Bootable **Virtual CD-ROM** and **Flash Drive**;
2020-11-07 22:19:03 +00:00
* USB **Keyboard** and **mouse** (with leds and the wheel), PS/2 keyboard, Bluetooth HID;
2020-08-01 20:25:03 +00:00
* **Control the server power** using ATX functions;
2020-10-05 23:06:48 +00:00
* Access via **Web UI** or **VNC**;
2020-10-31 04:07:39 +00:00
* Ability to use **IPMI BMC**, **IPMI SoL**, **Redfish** and **Wake-on-LAN** to control the server;
2020-08-01 21:44:29 +00:00
* **The ready-made OS** with read-only filesystem;
* **Extensible authorization** and SSL encryption;
* **Health monitoring** of the Pi;
2020-09-10 14:18:47 +00:00
* Control **GPIO** ports and **USB relays**;
2020-08-01 20:34:16 +00:00
* It only costs between $30 and $100 for parts!
2020-08-01 20:25:03 +00:00
* 100% Open Source!
2020-08-01 20:19:34 +00:00
<details>
2020-08-01 20:25:03 +00:00
<summary><b>Detailed about the Pi-KVM features</b></summary>
2020-08-01 20:19:34 +00:00
## Fully-featured and modern IP-KVM
2020-07-24 14:18:16 +00:00
* **Cheaper, but better than commercial solutions**
Costs between $30 and $100 depending on the features desired. Even the most expensive configuration will be cheaper than a $500 commercial IP-KVM.
2020-07-24 17:46:16 +00:00
* **Easy to build**
A ready-to-use OS that can be created just by running `make build` and installed to an SD-card using `make install`. The hardware can be made in half an hour and without soldering.
2020-07-24 14:07:39 +00:00
* **The widest hardware support**
2020-07-26 13:06:26 +00:00
There are many ways to build a Pi-KVM. Video capture devices can be attached using the CSI-2 or USB interfaces. Raspberry Pi models 2, 3, 4, or ZeroW may be used. Any combination of hardware is supported, and Pi-KVM implements the maximum possible set of features.
2020-07-24 14:18:51 +00:00
* **Very low latency**
2020-07-24 14:08:32 +00:00
~100 milliseconds of video latency. This is the smallest delay of all existing solutions.
* **Extra lightweight and fancy Web UI**
No weird proprietary clients. No ugly Java applets. Just use your favorite browser to connect to the Pi-KVM. No flash plugins either!
2020-07-24 14:07:39 +00:00
* **Keyboard and mouse**
Mouse usage works directly in the browser. The keyboard emulator supports displaying the state of the keyboard LEDs.
2020-07-24 14:07:39 +00:00
* **Mass Storage Drive**
2020-07-26 13:06:26 +00:00
On the Raspberry Pi 4 and ZeroW, Pi-KVM can emulate a virtual CD-ROM or Flash Drive. A live image can be uploaded to boot the attached server.
2020-07-24 19:18:19 +00:00
* **ATX power management**
With a very simple circuit that can be assembled on a breadboard, the power button of the attached server can be controlled using the ATX button headers on the motherboard.
2020-07-24 19:18:19 +00:00
* **Security**
Pi-KVM can be opened to the Internet and no one will get access without the password. SSL encryption is used to protect traffic from being intercepted by third parties.
2020-07-24 14:14:50 +00:00
* **Local monitoring**
Pi-KVM monitors the health of the Raspberry Pi board and will warn you if it's too hot or is not receiving enough power.
2020-10-05 23:13:55 +00:00
* **GPIO management**
You can control GPIO and USB relays via the web interface. The extensible interface allows you to make anything out of it.
2020-07-24 14:07:39 +00:00
## Production-ready
2020-07-24 14:07:39 +00:00
* **Linux-based embedded OS**
The Pi-KVM OS is based on [Arch Linux ARM](https://archlinuxarm.org) and can be customized for any needs. Thousands of pre-built binary packages are at your service and can be updated with a single command!
2020-07-24 14:07:39 +00:00
* **Read-only filesystem**
By default the OS runs in read-only mode, as an embedded system should. This prevents damage to the memory card due to a sudden power outage.
2020-07-24 14:07:39 +00:00
* **VNC server**
2020-07-24 19:18:19 +00:00
The managed server and its BIOS can be accessed using a regular VNC client which supports JPEG compression.
2020-10-01 00:34:34 +00:00
* **IPMI BMC and Redfish**
Use `ipmitool`, `ipmiutil` or any existing network infrastructure that supports IPMI to monitor and manage the server's power. Redfish and `redfishtool` supported too.
2020-07-24 22:20:27 +00:00
* **Wake-on-LAN**
2020-07-24 21:50:22 +00:00
Pi-KVM can be configured to power up a managed server using WoL. This will be available in the Web menu.
2020-07-24 14:07:39 +00:00
* **Extensible authorization methods**
Multiple Pi-KVMs can be configured to use a [common authorization service](https://github.com/pikvm/kvmd-auth-server). PAM and its rich authorization mechanisms can also be used to integrate Pi-KVM into your existing authentication infrastructure.
2020-07-24 14:07:39 +00:00
* **Macro scripts**
2020-10-31 18:05:05 +00:00
If repetitive actions must be performed on the attached server (or on several different servers), a macro can be recorded with keyboard & mouse actions and can be played back multiple times.
2020-07-24 14:07:39 +00:00
2020-07-24 20:05:19 +00:00
2020-07-24 19:18:19 +00:00
## Open Source
* **Community & support**
Pi-KVM has a large community. Join the [discord chat](https://discord.gg/bpmXfz5) if you have any questions.
2020-07-24 14:07:39 +00:00
* **Extensible**
Pi-KVM was designed as a set of microservices with a plug-in architecture. It's very easy to modify and maintain.
* **Comprehensive API**
Everything that can be done via the user interface can also be done via a powerful HTTP API.
2020-07-24 19:18:19 +00:00
* **Know-how**
We created [our very own MJPG video server](https://github.com/pikvm/ustreamer) written in C with multi-threading support and GPU video encoding - the fastest streaming solution available to provide the best video quality for Pi-KVM. We also tested a lot of hardware configurations so that you can be sure devices you assemble will work reliably.
2020-08-01 20:19:34 +00:00
</details>
2020-07-24 14:07:39 +00:00
2020-08-03 13:12:29 +00:00
| DIY Device | Web UI |
|------------|--------|
2020-08-03 13:15:38 +00:00
| <img src="img/v2_example.jpg" alt="drawing"/> | <img src="img/screen1.png" alt="drawing"/> |
2020-08-01 20:34:42 +00:00
2020-07-28 14:04:28 +00:00
-----
2020-08-01 20:40:21 +00:00
# DIY Getting Started
## Required hardware
2020-08-01 21:34:23 +00:00
Pi-KVM supports several different hardware configurations, referred to as **platforms**. Now available: **v2** and **v0**.
2020-08-01 21:44:29 +00:00
* **Recommended**: **v2** is the most modern implementation for **Raspberry Pi 4** and **ZeroW** supporting all of the features of Pi-KVM including the **Mass Storage Drive**. **It's also the easiest to make**
2020-08-01 21:37:16 +00:00
* v0 was designed to work with Raspberry Pi 2 and 3 that do not have OTG and requires a few more components for a basic implementation. It also does not support the Mass Storage Drive feature.
2020-07-24 21:50:22 +00:00
2020-07-26 18:36:20 +00:00
## Hardware for v2
2020-08-01 21:32:48 +00:00
* Raspberry Pi board:
2020-10-31 18:05:05 +00:00
- **Recommended**: Raspberry Pi 4 (2 GB model is enough) for the best performance.
2020-08-01 22:13:55 +00:00
- ... or Raspberry Pi ZeroW (slower alternative, no ethernet).
* MicroSD card (min 16 GB recommended).
2020-07-26 09:41:52 +00:00
* USB-A 3A charger (female socket) or power supply.
2020-07-26 12:58:47 +00:00
* Video capture device:
2020-08-01 22:13:55 +00:00
- **Recommended**: [HDMI to CSI-2 bridge based on TC358743](https://aliexpress.com/item/4000102166176.html) - low latency ~100ms, more reliable.
- ... or [HDMI to USB dongle](https://aliexpress.com/item/4001043540669.html) (not available for ZeroW) - high latency ~200ms, [not very reliable](#a-few-words-about-hdmi-usb-dongle)).
2020-09-30 08:04:33 +00:00
* Only for Raspberry Pi 4: parts for Y-splitter cable (**one variant at your choice**):
* <details><summary>Variant #1: DIY for soldering or twist.</summary>
2020-09-30 08:02:43 +00:00
<ul>
<li>1x USB-A to USB-C cable (male-male).</li>
<li>1x another cable USB-A to any (male-any).</li>
<li>1x appropriate Power Supply (USB-A or USB-C) depending on what cable you choose above.<li>
2020-09-30 08:02:43 +00:00
</ul>
</details>
2020-09-30 08:04:33 +00:00
* <details><summary>Variant #2: Ready-made using USB-micro splitter.</summary>
2020-09-30 08:02:43 +00:00
<ul>
<li>1x USB/Power Splitter Module (<a href="https://www.tindie.com/products/8086net/usbpwr-splitter">UK</a>/<a href="https://www.pishop.us/product/usb-pwr-splitter/">US</a>/<a href="https://www.buyapi.ca/product/usb-pwr-splitter/">CA</a>).</li>
<li>1x USB-A to USB-C cable (male-male) for connecting the Raspberry Pi to the splitter.</li>
<li>1x USB-A to micro USB-B cable (male-male) for connecting the server to the splitter.</li>
<li>1x USB-A to micro USB-B cable (male-male) to connect into a USB-A wall charger. Or you also can buy the official Raspberry Pi Power Supply with micro USB-B instead.</li>
2020-09-30 08:02:43 +00:00
</ul>
</details>
2020-09-30 08:04:33 +00:00
* <details><summary>Variant #3: Ready-made using USB-C splitter.</summary>
2020-09-30 08:02:43 +00:00
<ul>
<li>1x USB-C/Power Splitter Module (<a href="https://www.tindie.com/products/8086net/usb-cpwr-splitter">UK</a>/<a href="https://www.pishop.us/product/usb-c-pwr-splitter/">US</a>/<a href="https://www.buyapi.ca/product/usb-c-pwr-splitter/">CA</a>).</li>
<li>1x USB-C to USB-C cable (male-male) for connecting the Raspberry Pi to the splitter.</li>
<li>1x USB-A to USB-C cable (male-male) for connecting the server to the splitter.</li>
<li>1x USB-A to USB-C cable (male-male) to connect into a USB-A wall charger. Or 1x USB-C to USB-C cable to connect into a USB-C wall charger. Or you also can buy the official Raspberry Pi Power Supply with USB-C instead.</li>
2020-09-30 08:02:43 +00:00
</ul>
</details>
2020-07-26 13:06:26 +00:00
* Only for Raspberry Pi ZeroW:
2020-07-26 09:41:52 +00:00
* 2x USB A-to-micro cables (male-male, for power and keyboard & mouse emulator).
* 1x [Raspberry Pi Zero Camera Cable](https://aliexpress.com/item/32953696917.html) (if using HDMI to CSI-2 Bridge, but not compatible with Auvidea B101, check pinout).
2020-07-24 22:20:27 +00:00
* For ATX control (optional):
- [4x MOSFET relays OMRON G3VM-61A1](https://www.digikey.com/products/en?keywords=G3VM-61A1).
2020-07-24 21:50:22 +00:00
- 4x 390 Ohm resistors.
- 2x 4.7k Ohm resistors.
2020-07-26 09:41:52 +00:00
- A breadboard and wires.
2019-09-12 10:29:05 +00:00
2020-08-01 22:13:55 +00:00
#### A few words about HDMI-USB dongle
It's completely supported and Pi-KVM works great with it. But it has some disadvantages compared with recommended [HDMI-CSI bridge](https://aliexpress.com/item/4000102166176.html): USB gives a lot of latency (200ms vs 100ms) and it doesn't support stream compression control (you won't be able to use Pi-KVM in a place with a poor internet connection). It also cannot automatically detect screen resolution. All this is caused by the hardware limitations of the dongle itself. In addition, some users report hardware problems: the dongle may not work in the BIOS or simply stop working after a while. It's a black box, and no one knows what's inside it. If you have problems with it, it will not be possible to fix them.
2020-08-01 21:44:29 +00:00
2020-07-26 18:36:20 +00:00
## Hardware for v0
2020-07-24 21:50:22 +00:00
* Raspberry Pi 2 or 3.
* MicroSD card (8 GB is enough).
2020-07-26 09:41:52 +00:00
* USB-A 3A charger (female socket) or power supply.
2020-07-24 22:20:27 +00:00
* For keyboard & mouse emulator (HID):
- Arduino Pro Micro (based on an ATMega32u4).
- [Logic level shifter](https://www.sparkfun.com/products/12009).
2020-08-02 01:17:06 +00:00
- 1x NPN transistor (almost any NPN transistor: 2n2222 or similar).
2020-07-24 21:50:22 +00:00
- 1x 390 Ohm resistor.
2020-07-26 09:41:52 +00:00
- A breadboard and wires.
* 2x USB A-to-micro cables (male-male, for power and HID).
2020-08-01 22:30:33 +00:00
* HDMI capture device: [see v2 description](#hardware-for-v2).
* ATX control (optional): [see v2 description](#hardware-for-v2).
2020-07-24 21:50:22 +00:00
2020-08-01 20:46:52 +00:00
#### Addition
* If you want to capture VGA from your server instead of HDMI, buy the [VGA-to-HDMI converter](https://aliexpress.com/item/4000553298530.html).
* Pi-KVM can be powered using PoE, but it is not recommend to use the official PoE HAT: it is unreliable and [not compatible with the HDMI bridge](https://github.com/pikvm/pikvm/issues/6). Use any other PoE hat without an I2C fan controller.
* **Don't use random relay modules or random optocouplers!** Some relays or optocouplers may not be sensitive enough for the Raspberry Pi, some others may be low-level controlled. Either use relays that are activated by a high logic level, or follow the design provided and buy an OMRON. See details [here](https://github.com/pikvm/pikvm/issues/13).
2020-08-01 22:28:54 +00:00
<img src="img/no_relays.png" alt="drawing" width="100"/>
2020-05-11 18:50:02 +00:00
2020-07-24 21:52:28 +00:00
-----
2020-07-25 01:34:02 +00:00
# The future v3 platform (work in progress)
2021-01-21 07:53:38 +00:00
<img src="img/v3_board.png" alt="drawing" width=250/></td>
2020-07-25 01:34:02 +00:00
We are also currently developing our own HAT for the Raspberry Pi 4. It will have all the features of the v2 platform, including:
* HDMI capture based on the TC358743 (extra low latency and many features like compression control).
* OTG Keyboard & mouse; Mass Storage Drive emulation.
* Ability to simulate "removal and insertion" for USB.
* Onboard ATX power control.
2020-11-23 22:13:54 +00:00
* Onboard fan controller.
2020-10-17 17:51:16 +00:00
* A real-time clock.
2020-07-25 01:34:02 +00:00
* CISCO-style and USB serial console port (to manage Pi-KVM OS or to connect with the server).
* Optional AVR-based HID (for some rare and strange motherboards whose BIOS doesn't understand the OTG emulated keyboard).
* Optional OLED screen to display network status or other desired information.
* No need for soldering or other assembly. It's a ready-made, reliable board which you can use yourself or provide to your clients.
* Continued use of Pi-KVM OS - all the software will be fully open.
2020-07-25 01:34:02 +00:00
* It will cost about $100 - or less, we are working to make it as cheap as possible.
2021-02-02 21:35:52 +00:00
**YouTube Review of the v3 board**: https://youtu.be/dTchVKxx7Fo
2021-01-21 07:53:38 +00:00
**Sounds interesting? [Subscribe in this form](https://docs.google.com/forms/d/1LA6iEYVtbJULvMDNktyNQMI4N9SYdNG03Wh9WK-80cM)** or join to [Discord](https://discord.gg/bpmXfz5) and we will let you know when you can purchase the board.
2021-01-21 07:55:08 +00:00
**Status as of January 2021**: We have ready-made samples and **we are starting production**! **Sales are expected to start in February 2021**.
2020-07-25 01:34:02 +00:00
-----
2020-08-01 20:47:44 +00:00
# Setting up the hardware
## Connecting the video capture
#### For the HDMI-CSI bridge
2020-09-16 19:10:02 +00:00
<details>
<summary>Click to show the instructions</summary>
Insert the flexible flat cable of the HDMI bridge into the narrow white connector on the Raspberry Pi (the closest one to big USB sockets). It is labeled CAMERA. To insert you need to open the connector first. On the Raspberry Pi side you can gently lift the black part up and a little bit sideways:
2020-09-16 13:29:16 +00:00
| Opening the MIPI CSI-2 slot on the Raspberry Pi |
|------------------------------------------------------|
| <img src="img/open-MIPI-CSI2-Slot.png" alt="detailed picture of the MIPI-CSI2 slot" width="350"> |
For the HDMI-CSI bridge it depends on the version you bought. Either pull it gently up as on the Raspberry or push it sideways. Make sure that the cable is inserted on the correct side and until it stops, and then push the black latch back. Never connect or disconnect the flat cable from a powered device. This is not Plug-and-Play, and you can damage it. Also use only the cable that was included with the device package, or make sure that the third-party cable has the correct pinout.
2020-09-16 13:29:16 +00:00
| HDMI-CSI-2 bridge connected to Raspberry Pi 4 |
|------------------------------------------------------|
| <img src="img/rpi4-hdmi-csi-connection.png" alt="HDMI-CSI-2 bridge connected to Raspberry Pi 4" width="350">|
2019-12-14 01:11:33 +00:00
2020-09-16 19:10:02 +00:00
</details>
#### For the HDMI-USB dongle
2020-09-16 19:10:02 +00:00
<details>
<summary>Click to show the instructions</summary>
2020-07-26 12:58:47 +00:00
Connect USB dongle to exactly this port. It is bound in the software so the OS does not confuse the video device with something else.
2020-09-16 19:13:05 +00:00
2020-07-26 18:36:20 +00:00
| Raspberry Pi 2 and 3 | Raspberry Pi 4 |
|----------------------|----------------|
2020-08-01 22:28:54 +00:00
| <img src="img/v2_usbcap_rpi2.png" alt="drawing" width="200"/> | <img src="img/v2_usbcap_rpi4.png" alt="drawing" width="200"/> |
2020-07-26 14:46:24 +00:00
2020-08-02 03:03:00 +00:00
There are many revisions of the Raspberry Pi boards and you may come across one that we haven't tested. If the binding fails, the device will be available for all ports. Everything will work, but if you use a webcam and Linux mistakes it for a dongle, [write to us](https://discord.gg/bpmXfz5) and we will fix it.
2020-09-16 19:10:02 +00:00
</details>
2020-08-01 21:08:09 +00:00
## Setting up the v2
2020-09-16 19:10:02 +00:00
<details>
<summary>Click to show the instructions</summary>
2020-07-26 18:36:20 +00:00
Here is a diagram shows that how to connect all of the pieces (click to full size).
2020-07-26 14:46:24 +00:00
2020-08-02 02:33:16 +00:00
| ATX control board | USB splitter cable (only for Raspberry Pi 4) |
2020-08-02 02:31:35 +00:00
|-------------------|--------------------------|
| <img src="img/v2.png" alt="drawing" width="400"/> | <img src="img/v2_splitter.png" alt="drawing" width="400"/> |
2020-07-26 12:58:47 +00:00
**Raspberry Pi 4 note**: since one USB-C female connector is used to receive power and perform keyboard/mouse/drive emulation a special Y-cable must be made that splits the DATA and POWER lines of USB-C (see [reasons](https://github.com/pikvm/docs/issues/11)). It can be made from two suitable connecting cables, or soldered together from scratch. Be sure to check the circuit diagram below, otherwise you may damage your devices. The appropriate USB pinout(s) can easily be found on Google. Please note that if you make a Y-cable from two no-name cables, the colors of the wires may not match those shown. Use a multimeter to make sure the connections are correct.
2019-12-14 01:11:33 +00:00
2020-10-31 18:05:05 +00:00
See video how-tos:
2020-07-24 21:50:22 +00:00
* [Making USB Y-splitter cable](https://www.youtube.com/watch?v=uLuBuQUF61o).
* [Soldering ATX controller](https://www.youtube.com/watch?v=hKnKOuH_f8M).
2020-09-16 19:10:02 +00:00
</details>
## Setting up the v0
2020-09-16 19:10:02 +00:00
<details>
<summary>Click to show the instructions</summary>
2020-08-02 02:31:35 +00:00
| ATX control board and Arduino HID (keyboard & mouse) |
2020-08-02 02:35:03 +00:00
|------------------------------------------------------|
2020-08-02 02:31:35 +00:00
| <img src="img/v0.png" alt="drawing" width="400"/> |
2020-07-24 21:50:22 +00:00
2020-09-16 19:10:02 +00:00
</details>
2020-07-24 21:52:28 +00:00
-----
2020-05-04 02:25:31 +00:00
2020-08-01 21:32:48 +00:00
# Installing the OS
2020-08-02 01:12:05 +00:00
Here the final steps. There are two ways to get the Pi-KVM OS:
* We provide the ready-made images for **Raspberry Pi 4** for platforms **v2-hdmi** (the CSI-2 bridge) and **v2-hdmiusb** (the USB dongle). [Follow these instructions](pages/flashing_os.md) to install the OS quickly.
* For the other boards and platforms, you need to build the operating system manually. Don't worry, it's very simple! [Just follow these instructions](pages/building_os.md). You can also build the OS for RPi4 manually if you really want to :)
2019-09-15 16:43:09 +00:00
2020-08-02 01:12:05 +00:00
# You're amazing!
2020-08-02 02:55:23 +00:00
Congratulations! Your Pi-KVM will be available via SSH (`ssh root@<addr>` with password `root` by default) and HTTPS (try to open in a browser the URL `https://<addr>`, the login `admin` and password `admin` by default). For HTTPS a self-signed certificate is used by default.
2020-08-28 15:08:43 +00:00
To change the root password use command `passwd` via SSH or webterm. To change Pi-KVM web password use `kvmd-htpasswd set admin`. As indicated on the login screen use `rw` to make the root filesystem writable, before issuing these commands. After making changes, make sure to run the command `ro`.
2020-08-02 02:55:23 +00:00
2020-08-13 04:01:16 +00:00
# Access to Pi-KVM from the Internet
You can use port forwarding for port 443 on your router if it has an external IP address. In all other cases, you can use the excellent free VPN service [Tailscale](pages/tailscale.md), which is configured on Pi-KVM with a [few simple commands](pages/tailscale.md).
2020-08-02 02:55:23 +00:00
If you have any problems or questions, contact us using Discord: https://discord.gg/bpmXfz5
2020-09-03 08:26:45 +00:00
Subscribe to our Subreddit to follow news and releases: https://www.reddit.com/r/pikvm
2020-08-02 02:55:23 +00:00
Happy using of Pi-KVM :)
2019-09-12 10:15:37 +00:00
2020-07-24 21:52:28 +00:00
-----
2020-08-01 20:19:34 +00:00
# Limitations
2020-11-14 19:04:23 +00:00
* In very rare cases, some motherboards contain a buggy BIOS that does not understand the keyboard of the **v2** platform (below). The reason for this is that the BIOS doesn't fully implement the USB HID stack for composite devices correctly. Meanwhile, Mass Storage Drive can be detected. For this case, we suggest using the Arduino HID from the **v0** platform with **v2**. Thus the Pi-KVM will be connected by two USB cables to the motherboard: one of them will be responsible for the keyboard and mouse, the other for everything else. See [here](pages/arduino_hid.md).
2020-11-03 19:11:07 +00:00
* A similar problem can be observed on devices with UEFI: the keyboard works fine, but the mouse does not work. This situation occurs when UEFI does not support absolute mouse mode, which prefers to use Pi-KVM. To solve this problem, [you can enable relative mouse mode](pages/mouse.md).
2020-12-03 07:21:59 +00:00
* To use Pi-KVM with Apple UEFI, use the [Arduino HID](pages/arduino_hid.md) even with **v2**. Apple UEFI wants the most blunt keyboard possible.
2020-08-01 20:19:34 +00:00
Our future [v3 platform](#the-future-v3-platform-work-in-progress) will contain an optional HID module for such cases, so you won't have to build anything yourself.
-----
2020-07-24 21:50:22 +00:00
# Tips
* The Pi-KVM file system is always mounted in read-only mode. This prevents it from being damaged by a sudden power outage. To change the configuration you must first switch the filesystem to write mode using the command `rw` from root. After the changes, be sure to run the command `ro` to switch it back to read-only.
2019-12-14 01:38:56 +00:00
2020-07-26 18:36:20 +00:00
* **NEVER** edit `/etc/kvmd/main.yaml`. Use `/etc/kvmd/override.yaml` to redefine the system parameters. All other files that are also not recommended for editing have read-only permissions. If you edit any of these files, you will need to manually make changes to them when you upgrade your system. You can view the current configuration and all available KVMD parameters using the command `kvmd -m`.
2019-12-14 01:38:56 +00:00
* Almost all KVMD (the main daemon controlling Pi-KVM) configuration files use [YAML](https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html) syntax. Information on the format's syntax can be found at the link provided.
2019-12-14 01:38:56 +00:00
2020-08-11 09:53:24 +00:00
* If you want to disable the web terminal use this command:
2019-12-14 01:53:38 +00:00
```yaml
2020-08-11 09:53:24 +00:00
[root@pikvm ~]# systemctl disable --now kvmd-webterm
2019-12-14 01:38:56 +00:00
```
* To disable authorization completely edit the file `/etc/kvmd/override.yaml`:
2019-12-14 01:53:38 +00:00
```yaml
2019-12-14 01:38:56 +00:00
kvmd:
auth:
2020-04-29 23:41:07 +00:00
enabled: false
2019-12-14 01:38:56 +00:00
```
then restart `kvmd`:
```
[root@pikvm ~]# systemctl restart kvmd
```
* If you don't need ATX power control you can disable the relevant Web-UI menu in `/etc/kvmd/override.yaml`:
2019-12-14 01:53:38 +00:00
```yaml
2019-12-14 01:38:56 +00:00
kvmd:
atx:
type: disabled
```
then restart kvmd.
2020-10-31 18:05:05 +00:00
* To use Wake-on-LAN with your server you must define some options such as the server's MAC address and (optionally) IP address. Use `/etc/kvmd/override.yaml`. The format is:
2019-12-14 01:53:38 +00:00
```yaml
2019-12-14 01:38:56 +00:00
kvmd:
wol:
mac: ff:ff:ff:ff:ff:ff
```
Replace `ff:ff:ff:ff:ff:ff` with the MAC of your server. By default, a packet is sent via a broadcast request to the entire IPv4 network (`255.255.255.255`, port `9`), but you can address it to a specific static address:
2019-12-14 01:53:38 +00:00
```yaml
2019-12-14 01:38:56 +00:00
kvmd:
wol:
mac: ff:ff:ff:ff:ff:ff
ip: 192.168.0.100
# port: 9 # By default
```
2020-10-01 00:34:34 +00:00
2021-01-11 23:08:16 +00:00
* [Video modes of HDMI CSI brodge (if no video in UEFI)](pages/edid.md).
2021-01-11 23:07:35 +00:00
2020-11-03 19:11:07 +00:00
* [Mouse modes (if the mouse doesn't work in UEFI)](pages/mouse.md).
2021-01-11 23:07:35 +00:00
* [Recording screen video](pages/video.md).
2020-11-02 06:24:16 +00:00
* [Multiport KVM over IP](pages/multiport.md).
2020-10-01 00:34:34 +00:00
* [Using IPMI and Redfish](pages/ipmi.md).
2020-07-28 14:19:07 +00:00
2020-10-01 00:34:34 +00:00
* [Using VNC](pages/vnc.md).
2020-08-20 03:41:56 +00:00
2020-11-07 22:19:03 +00:00
* [Using Arduino HID (for USB or PS/2) on v2 platform](pages/arduino_hid.md).
* [Using Bluetooth HID](pages/bluetooth_hid.md).
2020-04-21 05:12:36 +00:00
2020-08-17 10:15:33 +00:00
* [Wi-Fi configuration after install](pages/wifi_config.md).
2020-08-17 10:14:54 +00:00
2020-09-10 11:19:15 +00:00
* [Export monitoring metrics to Prometheus](pages/prometheus.md).
2020-09-10 14:18:47 +00:00
* [Control GPIO ports and USB relays](pages/gpio.md).
2020-09-20 00:54:14 +00:00
* [Centralized authorization for multiple Pi-KVMs](https://github.com/pikvm/kvmd-auth-server).
2020-09-16 16:37:35 +00:00
* [Cookbook](pages/cookbook.md).
2020-10-03 08:38:57 +00:00
- [Take a HDMI screenshot via console on Pi-KVM](pages/cookbook.md#take-a-hdmi-screenshot-via-console-on-pi-kvm).
- [Get installed KVMD version via console](pages/cookbook.md#get-installed-kvmd-version-via-console).
- [Upload .ISO images manually](pages/cookbook.md#upload-iso-images-manually).
- [Enable Serial-over-USB connection](pages/cookbook.md#enable-serial-over-usb-connection).
- [Enable Ethernet-over-USB network](pages/cookbook.md#enable-ethernet-over-usb-network).
- [Create a Microsoft Windows based flash disk image](pages/cookbook.md#create-a-microsoft-windows-based-flash-disk-image).
2020-09-16 16:37:35 +00:00
2020-07-24 21:52:28 +00:00
-----
2020-07-24 21:50:22 +00:00
# Troubleshooting
2020-09-16 16:37:35 +00:00
If you encounter any problems, take a look at [this page](pages/troubleshooting.md). We've probably already found a solution for it :)
2020-02-03 02:21:50 +00:00
2020-09-16 16:37:35 +00:00
For any help, you can contact our discord chat: https://discord.gg/bpmXfz5
2020-08-01 18:38:19 +00:00
-----
2020-08-01 20:43:14 +00:00
# FAQ
**Q:** **Can I connect multiple servers to a single Pi-KVM?**
2020-11-02 06:24:16 +00:00
**A:** Yes, but it will require additional work to set up. See [this page](pages/multiport.md).
2020-08-01 20:43:14 +00:00
**Q:** **Can I use Pi-KVM with non-Raspberry Pi boards?**
2020-09-20 01:00:51 +00:00
**A:** Yes, but you will have to prepare the operating system yourself. As for the Pi-KVM software, you will need to replace some config files (such as UDEV rules). If you are a developer or an experienced system administrator, you will not have any problems with this. In addition, we are open to patches. If you need help with this, please contact us via Discord: https://discord.gg/bpmXfz5
2020-08-01 20:43:14 +00:00
-----
2020-08-01 22:56:32 +00:00
# Donate
2020-08-01 20:19:34 +00:00
This project is developed on a non-commercial basis by Open Source enthusiasts. If you find Pi-KVM useful or it has saved you a long trip to check on an unresponsive server, you can support the lead developer by donating a few dollars via [Patreon](https://www.patreon.com/pikvm) or [PayPal](https://www.paypal.me/mdevaev). With this money, he will be able to buy new hardware (Raspberry Pi boards and other components) to test and maintain various configurations of Pi-KVM, and generally devote significantly more time to the project. At the bottom of this page are the names of all the people who have helped this project develop with their donations. Our gratitude knows no bounds!
2020-08-01 22:56:32 +00:00
If you wish to use Pi-KVM in production, we accept orders to modify it for your needs or implement custom features you require. Contact us via [live chat](https://discord.gg/bpmXfz5) or email the lead developer at: mdevaev@gmail.com
2020-08-01 20:19:34 +00:00
-----
2020-08-01 18:38:19 +00:00
# Special thanks
These kind people donated money to the Pi-KVM project and supported work on it. We are very grateful for their help, and commemorating their names is the least we can do in return.
2021-01-08 21:31:21 +00:00
<details>
<summary>View all people!</summary>
2020-12-02 14:15:33 +00:00
* Accalia
2021-01-03 04:03:40 +00:00
* adipisicing
2020-10-26 15:49:19 +00:00
* Alberto Bassi
2020-08-01 18:38:19 +00:00
* Aleksei Brusianskii
2021-01-30 05:37:21 +00:00
* Alexandre Jablonski
2020-08-01 18:38:19 +00:00
* Alucard
2020-12-03 23:55:05 +00:00
* Andrew Reusch
2021-01-20 00:04:06 +00:00
* Andrew Ruan
2020-09-22 23:59:08 +00:00
* Andrzej V
2020-12-20 21:09:16 +00:00
* Anish Patel
2020-11-27 22:21:11 +00:00
* Anix
2020-08-06 04:07:16 +00:00
* Anton Kovalenko
2020-08-16 00:49:31 +00:00
* Aron Perelman
2020-08-01 18:38:19 +00:00
* Arthur Woimbée
2020-11-21 17:14:14 +00:00
* Ashlesh Chaudhari
2020-10-02 00:32:40 +00:00
* Augusto Becciu
2020-12-07 08:45:13 +00:00
* AVS Computer
2020-08-13 01:54:47 +00:00
* baddog
2020-09-27 16:36:12 +00:00
* Bao Tin Hoang
2020-08-01 18:38:19 +00:00
* Ben Gordon
2020-11-25 16:28:00 +00:00
* Ben Scott
2021-01-07 07:37:26 +00:00
* Benedikt Heine
2020-12-02 10:20:05 +00:00
* Benjamin Melancon
2021-01-07 07:37:26 +00:00
* Bernhard Fitzke
2021-01-23 10:56:18 +00:00
* bitjoe
2020-12-07 19:14:13 +00:00
* Bits and Bytes Computers LLC
2021-01-11 19:16:01 +00:00
* Bootstrapper - Programmierung erklärt
2021-02-02 07:39:12 +00:00
* Bradford King
2020-11-22 15:52:41 +00:00
* Brainspore Networks
2020-08-01 18:38:19 +00:00
* Branden Shaulis
2021-01-20 00:04:06 +00:00
* Brian Moses
2020-11-27 02:01:27 +00:00
* Brian Vecchiarelli
2020-08-01 18:38:19 +00:00
* Brian White
2020-08-06 04:07:16 +00:00
* Bruno Gomes
2020-08-01 18:38:19 +00:00
* Bryan Adams
2021-01-07 07:37:26 +00:00
* C P ELSE
2020-09-12 05:46:30 +00:00
* Carl Mercier
2020-11-22 12:54:05 +00:00
* Chris Burton
2021-01-08 10:19:38 +00:00
* Chris Rizio
2020-08-11 15:37:52 +00:00
* Christian Schlögl
2020-11-22 12:54:05 +00:00
* Christoph Dette
2020-08-01 18:38:19 +00:00
* Christof Maluck
2020-09-25 15:55:31 +00:00
* Christoffer Lund
2020-08-03 02:41:45 +00:00
* Clifford Coleman
2020-08-04 15:05:03 +00:00
* Clinton Lee Taylor
2021-01-20 00:04:06 +00:00
* Cole Imhoff
2021-01-15 03:19:27 +00:00
* Corey Layton
* Corey Lista
* ctag
2021-01-11 19:16:01 +00:00
* DeMentor
2020-11-03 01:10:05 +00:00
* Damon Meledones
2021-01-07 07:37:26 +00:00
* Dan Berkowitz
2020-11-25 16:28:00 +00:00
* Dan Brakeley
2020-12-29 17:09:11 +00:00
* David
2020-08-01 18:38:19 +00:00
* David Howell
2021-01-11 19:16:01 +00:00
* David York
2021-01-23 05:16:59 +00:00
* Denis
2020-10-07 00:28:40 +00:00
* Denis Andreev
2020-08-01 18:38:19 +00:00
* Denis Yatsenko
2021-01-03 04:03:40 +00:00
* Derek Yap
2020-11-27 22:21:11 +00:00
* dixon wong
2021-02-02 07:39:12 +00:00
* dizztrukshin
2020-08-01 18:38:19 +00:00
* Dmitry Shilov
2021-02-02 17:27:24 +00:00
* Egan Ford
2020-09-23 02:25:36 +00:00
* Eric Phenix
2020-11-21 17:14:14 +00:00
* ewook
2020-09-08 03:45:24 +00:00
* Fergus McKay
2021-01-15 03:19:27 +00:00
* fo0bar
2020-08-24 19:44:10 +00:00
* Foamy
2020-12-11 06:42:11 +00:00
* Francisco Pavon
2020-10-01 19:13:10 +00:00
* Fredrik Idréus
2020-08-01 18:38:19 +00:00
* Ge Men
2021-01-11 19:16:01 +00:00
* Genkinger Andreas
2021-01-20 00:04:06 +00:00
* Georgy Brodsky
* Gregory Treantos
2020-08-01 18:38:19 +00:00
* Grey Cynic
2020-08-12 09:42:13 +00:00
* Guido Bernacchi
2021-02-02 07:39:12 +00:00
* Gustin Johnson
2020-08-27 09:39:45 +00:00
* Heikki Tiittanen
2021-02-03 02:50:14 +00:00
* Helio Leonardo Pinheiro e Mota
2021-02-02 07:39:12 +00:00
* Henrik Ählström
2020-12-12 06:35:19 +00:00
* Henry Hood
2020-08-03 09:02:56 +00:00
* HimKo
2021-01-08 21:47:31 +00:00
* Icculus
2020-11-25 16:28:00 +00:00
* iks
2021-02-03 09:00:58 +00:00
* IT Lifesaver
2020-08-20 01:08:50 +00:00
* Ivan Shapovalov
2021-01-27 03:16:24 +00:00
* J L
2020-08-01 18:38:19 +00:00
* Jacob Morgan
2020-11-01 23:14:17 +00:00
* James Cadd
2020-11-27 22:21:11 +00:00
* James Cobb
2021-02-02 07:39:12 +00:00
* James Kocher
2020-11-24 15:43:57 +00:00
* Jamie Murphy
2020-08-31 23:03:20 +00:00
* Jan Niehusmann
2020-09-17 08:55:17 +00:00
* Jari Hiltunen
2020-12-17 13:28:50 +00:00
* Jason Downey
2020-08-01 18:38:19 +00:00
* Jason Toland
2020-12-14 09:23:05 +00:00
* Jay Davis
2020-08-01 18:38:19 +00:00
* Jeff Bowman
2021-01-27 03:16:24 +00:00
* Jeff Urlwin
2020-10-01 08:56:19 +00:00
* Jennifer Rowlett
2020-11-25 23:46:25 +00:00
* Jerremy Holland
2020-10-14 19:52:00 +00:00
* Joachim Bruening
2021-01-24 11:39:03 +00:00
* Joe Ventura
2021-01-11 19:16:01 +00:00
* Joel Jacobs
2020-12-14 09:23:05 +00:00
* John F Glenn
2020-10-15 06:15:55 +00:00
* John Kelley
2020-08-01 18:38:19 +00:00
* John McGovern
2020-08-06 04:07:16 +00:00
* Jonathan Vaughn
2020-09-19 15:30:18 +00:00
* Josh Ricker
2021-01-07 07:37:26 +00:00
* Joshua Futterer
2020-10-06 00:05:14 +00:00
* Jordi Pakey-Rodriguez
2020-12-14 09:23:05 +00:00
* Joris van Embden
2020-08-01 18:38:19 +00:00
* Jozef Riha
2020-11-27 22:21:11 +00:00
* Julian Forero
2020-08-01 18:38:19 +00:00
* Justin Waters
2021-02-07 21:28:49 +00:00
* Karl Dunne
2021-01-15 03:19:27 +00:00
* Ken Lee
2020-12-25 02:14:01 +00:00
* Kenny Hui
2021-02-02 07:39:12 +00:00
* Kevin Schwartz
2020-08-10 00:01:28 +00:00
* Krzysztof Żelaśkiewicz
2020-10-31 13:16:45 +00:00
* Lars
2020-11-15 08:49:38 +00:00
* LeeNX
2021-01-30 05:37:21 +00:00
* Lordbob75
2020-10-19 21:43:14 +00:00
* Lothar Schweikle-Droll
2020-10-03 06:22:39 +00:00
* Lukas Söder
2020-08-03 02:41:45 +00:00
* Malcolm Cameron
2020-11-22 12:54:05 +00:00
* Marcos Wolf
2020-08-01 18:38:19 +00:00
* Mark Gilbert
* Mark Robinson
2021-02-02 21:32:48 +00:00
* Markrosoft
2021-01-11 19:16:01 +00:00
* Markus Halm
2020-10-30 20:46:44 +00:00
* Markus Schicker
2020-10-14 09:29:35 +00:00
* Markus Sobczack
2020-12-03 23:55:05 +00:00
* Marten Hermans
2020-09-10 18:14:03 +00:00
* Martin Gasser
2020-11-25 16:28:00 +00:00
* Mateusz Grabowski
2020-12-02 22:31:41 +00:00
* Matthew Cameron
2020-08-01 18:38:19 +00:00
* Mauricio Allende
2020-09-21 20:10:52 +00:00
* Mehmet Aydoğdu
2020-08-01 18:38:19 +00:00
* Michael Kovacs
* Michael Lynch
2021-01-24 10:43:29 +00:00
* Michael Pennington
2020-12-12 06:35:19 +00:00
* Michael Sage
2021-01-12 18:45:11 +00:00
* Milan Múčka
2020-12-12 06:35:19 +00:00
* Miles Davis
2020-08-16 23:26:23 +00:00
* Morgan Helton
2020-08-08 20:56:47 +00:00
* Nicholas Jeppson
2020-11-12 04:40:27 +00:00
* Nick Leffler
2020-12-02 03:10:21 +00:00
* Nick Roethemeier
2020-08-01 18:38:19 +00:00
* Nils Orbat
2020-08-09 01:31:42 +00:00
* Nithin Philips
2020-10-02 03:26:06 +00:00
* Nod Swal
2020-09-07 02:57:38 +00:00
* nybble
2020-12-02 03:10:21 +00:00
* Oh Be
2021-01-20 00:04:06 +00:00
* Oliver Schwarz
2021-01-28 09:36:55 +00:00
* Oliver Zimmer
2020-12-10 04:30:14 +00:00
* Paul Bishop
2021-02-06 19:02:39 +00:00
* Pawel Trofimiuk
2021-01-15 03:19:27 +00:00
* Peter Farrelly
2021-02-02 07:39:12 +00:00
* Petri Heiskanen
2020-12-02 03:10:21 +00:00
* Philip Merricks
2020-11-24 03:32:17 +00:00
* posicat
2020-08-12 21:10:12 +00:00
* pozitron03
2021-02-02 07:39:12 +00:00
* Qteal
2020-11-01 23:14:17 +00:00
* Quentin Peten
2020-12-23 21:53:45 +00:00
* Ralph Borchers
2020-08-15 07:46:44 +00:00
* Ranc1d
2020-12-02 03:10:21 +00:00
* Richard Bernarts
2020-11-21 17:14:14 +00:00
* Richard Freemantle
2021-01-08 10:19:38 +00:00
* Rob Tongue
2020-10-04 02:22:57 +00:00
* Robin Gfatter
2020-12-25 02:14:01 +00:00
* Rolfs 3D UG
2021-01-11 19:16:01 +00:00
* rotx
2020-08-01 18:38:19 +00:00
* Samed Ozoglu
2021-01-20 00:04:06 +00:00
* Satish Alwani
2020-08-01 18:38:19 +00:00
* Scott
2020-08-24 18:27:12 +00:00
* Scott Spicola
2021-02-02 07:39:12 +00:00
* Scott Tusing
2020-12-29 17:09:11 +00:00
* Sean
2020-11-21 17:14:14 +00:00
* Seonwoo Lee
2020-08-24 09:43:52 +00:00
* Sergey Lukjanov
2020-11-22 12:54:05 +00:00
* Shichun Chen
2021-01-15 03:19:27 +00:00
* Simon Evans
2020-11-21 17:14:14 +00:00
* Simplistic Realities
2020-11-11 18:47:01 +00:00
* Stefan Bautz
2020-10-13 12:31:12 +00:00
* Stefan Müller
2020-10-16 08:16:20 +00:00
* Stefan Stemmer
2021-02-08 00:32:53 +00:00
* Steve Kerr
2020-08-30 13:47:48 +00:00
* Steve Ovens
2020-08-01 18:38:19 +00:00
* Steven Richter
2021-02-02 07:39:12 +00:00
* sudo34
2020-09-22 23:59:08 +00:00
* Tejun Heo
2021-02-02 07:39:12 +00:00
* Thomas Price
2020-11-27 22:21:11 +00:00
* Thomas Søfteland
2020-11-23 03:25:23 +00:00
* Timothee Besset
2021-01-03 04:03:40 +00:00
* Tom York
2020-11-24 15:43:57 +00:00
* Tomas Kuchta
2020-12-02 03:10:21 +00:00
* Tomáš hrubý
2020-12-20 21:09:16 +00:00
* Tobias Schafferhans
2020-11-22 01:57:42 +00:00
* Tristan Schoening
2020-08-01 18:38:19 +00:00
* Truman Kilen
2020-10-26 15:54:36 +00:00
* Tyler
2020-12-04 10:36:32 +00:00
* Udo Schroeter
2021-01-30 09:53:02 +00:00
* Uli Fahrer
2021-02-02 20:20:43 +00:00
* Viktor Aschenbrenner
2020-08-01 18:38:19 +00:00
* Walter_Ego
2021-01-30 05:37:21 +00:00
* William Hooper
2020-11-22 01:57:42 +00:00
* William Stearns
2020-12-27 07:51:02 +00:00
* Yethal
2020-12-29 17:09:11 +00:00
* Yevgeniy Kuksenko
2021-01-29 11:29:14 +00:00
* Yigal Dar
2020-08-04 01:58:27 +00:00
* YURI LEE
2020-11-24 03:32:17 +00:00
* Yurii Ostapchuk
2020-08-01 18:38:19 +00:00
* zgen
2020-09-21 20:09:20 +00:00
* Zsombor Vari
2021-01-08 21:31:21 +00:00
</details>