Build web base KVM console with noVNC and SSH Tunnel

Description


noVNC is a HTML5 VNC client that runs well in any modern browser including mobile browsers (iOS and Android).


Many companies, projects and products have integrated noVNC including Ganeti Web Manager, OpenStack,OpenNebula, LibVNCServer, and ThinLinc. See the Projects and Companies wiki page for a more complete list with additional info and links.


But VMs typically located in a private network behind firewall, thus we can build a KVM Hub and forward the port from the Hub which have public visibilities to all the VMs via the private interface.


Step1: Establish Port forward to the garget VM from the KVM Hub.
ssh  -N -fR 10.124.116.109:49003:10.113.82.141:3388 sshhub@10.124.116.109
ssh  -NfL 10.113.82.141:3388:10.3.40.176:5917 sshhub@10.113.82.141


Step2:
Use the launch script to start a mini-webserver and the WebSockets proxy (websockify). The --vnc option is used to specify the location of a running VNC server:


./utils/launch.sh --vnc 10.124.116.109:49003


Point your browser to the cut-and-paste URL that is output by the launch script. Enter a password if the VNC server has one configured. Hit the Connect button and enjoy!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值