Skip to content

Instantly share code, notes, and snippets.

@ashee
Created April 14, 2011 18:06

Revisions

  1. ashee created this gist Apr 14, 2011.
    29 changes: 29 additions & 0 deletions kvm guest - vnc over ssh tunnel.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    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