diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/qemu.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/qemu.rst b/source/qemu.rst index c01e7ae..8b64cb2 100644 --- a/source/qemu.rst +++ b/source/qemu.rst @@ -34,6 +34,17 @@ Basic VM command Describe the command and split it apart into sepatate sections. +TCP port forwarding +========================================================== + +If you want to forward an SSH port use the following options:: + + -net user,hostfwd=tcp::2222-:22 \ + +If you need to forward multiple TCP ports, add another ``hostfwd`` entry after a +comma like this:: + + -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::51822-:51822 \ Exchange files with the host using samba [#shared-folder]_ ========================================================== |