glkvm + meshcentral

Recently bought a glkvm and was interested in getting it to work with my existing infrastructure. I use meshcentral to remotely manage my servers, and I wanted to use a glkvm to manage some servers that don’t have AMT.

This post documents how to install the meshcentral management agent into the glkvm, so anywhere it has a network connection that can reach the internet I can remotely connect and manage the glkvm and the attached device.

I’m aware of the built-in tailscale client, but since I don’t use tailscale for remote management I decided to post this in case it can help anyone else trying to install the meshcentral client on the glkvm device.

  1. Log in to the meshagent interface, go to your group and click “Add agent”
  2. Pick the following options:
    1. Operating System: Linux / BSD / macOS Binary Installer
    2. System Type: ARM64-HF
    3. Installation Type: Background and Interactive
  3. Copy the installer line
  4. Log into the glkvm and access the terminal (Toolbox → Terminal → Access)
  5. In the terminal, navigate to tmp
  6. Paste the installer into the command prompt and run as root to download the meshcentral agent
  7. Add execute permissions to the installer
    1. chmod 0755 meshagent
  8. Run the installer with meshagent -install
    1. You can ignore the following error: sh: line 1: getent: command not found
  9. Create a symbolic link for the startup script so the meshagent automatically starts up on bootup
    1. ln -s /etc/init.d/meshagent /etc/kvmd/user/scripts/S01meshagent

Now you should see the glkvm in your meshcentral interface! To be able to connect, you still have to do some extra work with meshrouter but this is already integrated into my workflow.

In the future I can show a guide on how to setup a self-hosted glkvm cloud server from their GitHub repository, this keeps all of your data on your own servers and doesn't use any external hosted services at all, keeping all of your own data in your control.

2 Likes

Thank you for sharing this. It's a valuable contribution that clearly outlines another method for self-deployment—a great option for users to have!