What problem does it solve?
Provides a clear, step-by-step procedure to run Alpine Linux virtual machines under QEMU and expose SSH on the host using user-mode networking and port forwarding, reducing friction when you need quick, networked VMs for testing or administration.
Core Features & Use Cases
- Start QEMU with host port forwarding to map a host TCP port to the VM's SSH port for direct SSH access.
- In-guest network and SSH setup including bringing up the interface, obtaining DHCP, installing openssh, enabling root login, and starting the sshd service.
- Verification and troubleshooting guidance covering port availability checks, orphaned process cleanup, service status checks, and incremental validation for network and SSH connectivity.
- Use case: Rapidly provision an Alpine VM for development or CI testing and connect via SSH from the host to run commands, install packages, or debug networking.
Quick Start
Boot an Alpine ISO in QEMU using user-mode networking with a hostfwd mapping to guest port 22, complete the SSH server installation and configuration inside the VM, then SSH to localhost on the forwarded host port to verify connectivity.