Skip to content

Instantly share code, notes, and snippets.

View ryanc-me's full-sized avatar

Ryan Cole ryanc-me

View GitHub Profile
@ryanc-me
ryanc-me / qemu
Last active November 10, 2024 20:49
KVM Port-Forward Script
#!/bin/bash
#
# INSTRUCTIONS
#
# 1. Place this script at /etc/libvirt/hooks/qemu
# 2. Make it executable: $ sudo chmod +x /etc/libvirt/hooks/qemu
# 3. Add your forwarding rules at the bottom of this file
# 4. Restart the VM, or restart the libvirtd service
#
# Author: Ryan Cole