this post was submitted on 28 Oct 2023
64 points (100.0% liked)

Selfhosted

39980 readers
726 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Currently, I have SSH, VNC, and Cockpit setup on my home NAS, but I have run into situations where I lose remote access because I did something stupid to the network connection or some update broke the boot process, causing it to get stuck in the BIOS or bootloader.

I am looking for a separate device that will allow me to not only access the NAS as if I had another keyboard, mouse, and monitor present, but also let's me power cycle in the case of extreme situations (hard freeze, etc.). Some googling has turned up the term KVM-over-IP, but I was wondering if any of you guys have any trustworthy recommendations.

top 24 comments
sorted by: hot top controversial new old
[–] zzzz@lemmy.world 21 points 1 year ago (2 children)

Check out pikvm: https://pikvm.org/

There are cheaper knockoffs that run the same software. For example: https://geekworm.com/

[–] lemmyvore@feddit.nl 1 points 1 year ago (1 children)

Has pikvm ever been ported to PC architecture? Seems like it should be possible to get a PC server to act as a KVM switch if it has an HDMI capture card and an USB-C plug.

[–] zzzz@lemmy.world 3 points 1 year ago (1 children)

You'd also need GPIO pins to be able to do the remote "button presses".

[–] lemmyvore@feddit.nl 3 points 1 year ago

I'm mainly interested in streaming the video output and generating keyboard and mouse events.

[–] AbidanYre@lemmy.world 17 points 1 year ago (2 children)
[–] PeachMan@lemmy.world 13 points 1 year ago

OP, this is probably your cheapest option. KVMs are NOT cheap, so the $264 dollar price tag on this pre-built one is actually pretty low. If you're handy with electronics, you can build one yourself for a little over $100. I did it with a Raspberry Pi 4, following this guide: https://github.com/pikvm/pikvm#diy-getting-started

[–] Molecular0079@lemmy.world 2 points 1 year ago

Thanks! Seems like a lot of people here are recommending pikvm as well. I'll look into it

[–] doeknius_gloek@feddit.de 8 points 1 year ago (1 children)

You could look into mainboards with IPMI. They give you a web based interface to fully control your server, including power management, shell, sensor readings, etc.

[–] Molecular0079@lemmy.world 3 points 1 year ago

Ah, good idea. I'll look into whether my board has this feature.

[–] rudy@lemmy.world 8 points 1 year ago

Netconsole in u-boot saved me numerous times. Depending on your bootloader of course.

[–] StrawberryPigtails@lemmy.sdf.org 5 points 1 year ago (1 children)

It’s probably not he solution you’re looking for, but I tend to put Proxmox on all of my hardware with TailScale installed on all my hosts, VMs and LXCs. So far I’ve only once had an issue where I couldn’t get into something. I borked the fstab on one of my Proxmox hosts.

More in line with what you may be looking for, there is a project called PiKVM. It probably won’t help if you’ve borked your whole network, but it might be of some use. It is what it says on the tin. It’s a KVM based around a Raspberry Pi.

[–] philpo@feddit.de 2 points 1 year ago

Proxmox is amazingly stable,yeah. I basically proxmox and meshcentral for everything by now.

[–] IsoKiero@sopuli.xyz 4 points 1 year ago (1 children)

Lantronix has a product called Spider, which (several years ago when I used one) works wonders. To the host side it looks like a standard monitor, keyboard, mouse and usb. I'm not quite sure if they still actively develop that, but at least the product page is still available. It's not cheap, so it might not be what you're looking for, but I was impressed on what it can do (since the company I worked back then too care of the invoice). It can't do power cycle or hit reset button, but beyond that it was pretty close to IPMI and other remote server management solutions.

With my own wallet I'd look for piKVM, but it's not really cheap either and I don't have any personal experience with it. For power cycle there's a ton of companies who manufacure wall-warts which you can control over wifi, APC and other big players included, and for home gamers nodeMCU and shelly are solid options if you're familiar with electronics, but they can't do KVM over IP, so it might require using different products to remotely accessing the host and for power management.

[–] Molecular0079@lemmy.world 2 points 1 year ago

Thanks! The piKVM does look very interesting, and its open source nature gives me more piece of mind too.

[–] tankplanker@lemmy.world 4 points 1 year ago

Another fan of pikvm, love mine. I have it plugged into a HDMI switcher so I can control four boxes from one pikvm. It does use some pins so if you wanted to control the power switches you have to do some extra work.

Worth considering if you want to get a UPS at the same time for the NAS, pikvm and any networking you have. Will all last longer with one to avoid random power cuts or surges.

If you need to access it remotely I would strongly suggest getting wireguard or some other reliable VPN setup rather than exposing the web interface to pikvm directly to the internet.

[–] Decronym@lemmy.decronym.xyz 3 points 1 year ago* (last edited 1 year ago) (1 children)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
LXC Linux Containers
NAS Network-Attached Storage
VPN Virtual Private Network

4 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #249 for this sub, first seen 28th Oct 2023, 23:05] [FAQ] [Full list] [Contact] [Source code]

[–] Kuinox@lemmy.world 6 points 1 year ago

Missed KVM, IPMI, VM, at least.

[–] BrianTheeBiscuiteer@lemmy.world 2 points 1 year ago (1 children)
[–] Molecular0079@lemmy.world 1 points 1 year ago

Cool! I've never heard of this project but it looks interesting

[–] aodhsishaj@lemmy.world 2 points 1 year ago (1 children)

What's your budget and is the NAS the only device you need to have KVM for?

[–] Molecular0079@lemmy.world 1 points 1 year ago (1 children)

Anything below $500 is good. I just need something that's versatile and also trustworthy.

[–] aodhsishaj@lemmy.world 2 points 1 year ago (1 children)

Search eBay for AVOCENT 16 Port Digital KVM Over IP Switch DSR2020

New Avocent DSRIQ-USB for DSR1020 DSR2020 DSR8020 DSR1021 DSR2161 DSR4161

[–] tvcvt@lemmy.ml 1 points 1 year ago

This is the route I went as well. I have a couple MPU2016s at different sites. Like, u/aodhsishaj indicated, they're pretty cheap on the used market; just bear in mind that you'll need a module for each machine. I think this makes sense if you have multiple machines, but I'm not so sure mine can power cycle connected machines (as in with AHCI controls). I can, however, reboot from the command line and interact with BIOS, etc.