SSH Port-forwarding in KVM/Virtmanager
6,877
There is no graphical tool to handle port forwarding in virt-manager/qemu. The process of forwarding is done using iptables
DNAT rules.
Qemu provides a hook that is called when starting / stoping guest, which can be used to trigger setting/removing the iptables
rules, as described here under the Forwarding Incoming Connections section of Libvirtd's Networking page.
Related videos on Youtube
Author by
Liam O'Luachra
Updated on September 18, 2022Comments
-
Liam O'Luachra almost 2 years
I am running a guest machine Debian Stable with KVM virtmanager for GUI on another Debian 9. What I am trying to do is ssh from host to guest. I have the SSH sever running and configured on the guest except for forwarding port 22 to the guest.
How can I do this? Know how to do it in VirtualBox but vrtmanager is a bit different lol.