Exposing Port 8006 from a VM Behind NAT using Reverse SSH Tunnel

In virtualized environments, it’s common to have a VM running behind NAT, especially when using tools like QEMU, VirtualBox, or cloud labs. This setup means the VM can reach the host, but the host cannot directly initiate connections to the VM — including to web services like the Proxmox web GUI running on port 8006. Fortunately, this limitation is easy to bypass using reverse SSH tunneling. 🧠 Objective We want to: ...

May 4, 2025 · 3 min · rohan

VM Behind NAT? No Problem with Reverse SSH

🧩 VM Behind NAT? 🖥️ Scenario Your VM is running as root user. Your host machine has a user named rohan. The VM is behind NAT — it can talk to the host, but the host can’t directly talk to the VM. You want the host to be able to connect to the VM anyway. No worries — you can use a reverse SSH tunnel to solve this! ✅ Goal Allow your host (rohan@host) to SSH into your VM (root@vm) even though the VM is behind NAT. ...

May 4, 2025 · 2 min · Rohan Batra

How to Install OpenSSH on Arch Linux Using a Script

Introduction In this post, we will walk through how to quickly install and configure OpenSSH on your Arch Linux system using a simple Bash script. Whether you’re setting up SSH for the first time or automating your setup process, this script makes the process easy and efficient. Why Use OpenSSH? OpenSSH is a widely used tool to enable secure remote connections to your Linux system. It allows you to remotely access and manage your machine through the terminal, which is essential for remote administration or server management. ...

May 4, 2025 · 3 min · Rohan Batra

RAID Explained: Understanding Redundant Array of Independent Disks for Modern Infrastructure

💽 RAID Explained Modern infrastructure demands resilience, speed, and data integrity. Whether you’re managing a homelab, a Proxmox cluster, or a full-scale data center, RAID (Redundant Array of Independent Disks) is foundational. In this blog, I break down what RAID is, how each level works, when to use them, and the trade-offs involved. We’ll also explore how RAID fits into virtualized environments like QEMU and how to use it responsibly even with modern filesystems like ZFS. ...

May 3, 2025 · 7 min · Rohan Batra

User Guide: Using the Proxmox Auto Installer Build

This document describes how to use the Dockerized Proxmox Auto Installer image to generate unattended Proxmox VE installation ISOs for multiple profiles (e.g., pve-1, pve-2). Overview The proxmox-auto-installer Docker image wraps the official proxmox-auto-install-assistant tool to convert a standard Proxmox VE ISO into an unattended-install ISO using profile-specific answer.toml files. By specifying a profile name, you can maintain multiple configurations and generate distinct custom ISOs in a reproducible manner. Prerequisites Docker installed (version 20.10+). A Proxmox VE ISO (e.g., proxmox-ve_8.4-1.iso). Profile directories each containing an answer.toml file. Write permissions for the output directory. Directory Structure Scripts/ ├── iso/ │ ├── proxmox-ve_8.4-1.iso # Base ISO │ └── output/ # Generated ISOs ├── secrets/ │ ├── pve-1/ │ │ └── answer.toml # Profile pve-1 settings │ └── pve-2/ │ └── answer.toml # Profile pve-2 settings ├── Dockerfile # Build definition └── entrypoint.sh # Profile-aware entrypoint Building the Docker Image Run the following command from the directory containing the Dockerfile and entrypoint.sh: ...

May 2, 2025 · 2 min · Rohan

Fix 'sch_htb Module Not Found' Error in Virt-Manager on Arch Linux

Fix ‘sch_htb Module Not Found’ Error in Virt-Manager on Arch Linux While setting up virt-manager on Arch Linux, I encountered the following error when trying to start the default network: modprobe: FATAL: Module sch_htb not found in directory /lib/modules/6.14.3-arch1-1 This error prevented virtual machines from accessing the network through virt-manager. Cause The sch_htb module (Hierarchical Token Bucket) is critical for network traffic shaping. If missing, it usually means: Kernel headers are missing. The current kernel lacks needed networking modules. Solution Install the correct packages: ...

April 28, 2025 · 1 min · Rohan

How I Installed Docker and Docker Compose on Arch Linux

Docker If you’re running Arch Linux and want to get Docker up and running fast — including Docker Compose — here’s a clean, one-liner way to do it using the AUR. 🛠️ The One-Liner sudo pacman -Syu --noconfirm docker && yay -S --noconfirm docker-compose && sudo systemctl enable --now docker && sudo usermod -aG docker $USER This command does the following: Updates your system (pacman -Syu) Installs Docker from the official repos Installs Docker Compose from the AUR (via yay) Enables and starts the Docker service Adds your current user to the docker group so you can use Docker without sudo 🔁 Post-Install Tip After running this, log out and log back in to apply the group change. ...

April 26, 2025 · 1 min · Rohan