Forked from ashee/kvm guest - vnc over ssh tunnel.sh
Created
February 25, 2017 17:15
-
-
Save virtualadrian/265cdbc5a6c5dec6aecc38f0163430e8 to your computer and use it in GitHub Desktop.
How to connect vnc viewer to a kvm guest over ssh tunnel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| amitava@bonjovi:~$ sudo virsh | |
| Welcome to virsh, the virtualization interactive terminal. | |
| Type: 'help' for help with commands | |
| 'quit' to quit | |
| virsh # start latticegrid-demo | |
| Domain latticegrid-demo started | |
| virsh # list | |
| Id Name State | |
| ---------------------------------- | |
| 2 latticegrid-demo running | |
| virsh # vncdisplay 2 | |
| :0 | |
| virsh # | |
| # So guest is on vncport :0 (i.e. 5900:0) | |
| # Create ssh tunnel to that port | |
| ashee:~ amitava$ ssh -L 5900:127.0.0.1:5900 bonjovi | |
| # Now fire up Chicken of the VNC and select the following settings | |
| # Host: locahost | |
| # Display: 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment