SolusVM 配置 noVNC HTML5 控制台服务

Kevin 教程 2,614 次浏览 44条评论

SolusVM 安装后默认可用 Java VNC 控制台,不过使用体验比较差。用户首先需要下载安装 Java,继而在软件设置里添加网址例外,不然默认安全级别将无法运行 SolusVM 的 JNLP 程序(没有签名)。即便是这样,也只限那些支持 Java 插件的老旧浏览器才能使用。

SolusVM Java noVNC

登录用户前台点击 VNC 进入,点击 Java VNC Client 启动连接,过程中会提示下载 JNLP 文件运行.建议使用 IE 浏览器操作,如果没有,可以安装 VNC 专用客户端(用页面里显示的信息连接)。例如 Windows 下有 RealVNC,Mac OS 有 ChickenVNC

SolusVM 用户前台虚拟机选项
SolusVM 用户前台 VNC 选项
SolusVM Java VNC Client
SolusVM Java VNC Client

SolusVM HTML5 noVNC

SolusVM 默认没有启用 HTML5 noVNC,需要手动配置,具体流程如下。

1. 登录 SolusVM 主控面板,菜单栏点击 Configuration -> Settings,在 Virtualization 和 Other 选项组完成以下几个设置。

启用 Html5 Serial Console
启用 Html5 Serial Console
设置 noVNC 及 WebSocket 运行位置
启用 noVNC 及设置 WebSocket 运行位置

如果网站使用了 CDN,注意修改图 2 中的 noVNC Socket Port,因为可能 CDN 不支持默认 7706 端口而导致无法连接。譬如 CloudFlare CDN 支持端口如下(CloudFlare 与百度合作的中国 CDN 节点只支持 80, 443 端口)。另外 CloudFlare 有个 Proxy Anything 端口转发服务(目前使用需申请并暂时只开放了 TCP 协议)。

HTTPS 443, 2053, 2083, 2087, 2096, 8443
HTTP 80, 8080, 8880, 2052, 2082, 2086, 2095

2. SSH 登录 SolusVM 主控服务器,安装必要的服务依赖软件包。

yum -y install python numpy python-ssl libgcc libgcc zlib zlib svmstack-nginx svmstack-nginx-serial-console-config svmstack-ssh-websocket

改名启用 config.ini 配置文件(如果没有,手动创建文件)。

mv /usr/local/solusvm/data/config.ini.example /usr/local/solusvm/data/config.ini

编辑该文件,在文件尾部加上下面两个 noVNC 参数设置。

vi /usr/local/solusvm/data/config.ini
[NOVNC]
;; Set this to true if you want noVNC to access the websocket with the remote servers hostname. All the hostnames must resolve correctly. Default (false) is to use the ip address of the remote server
use_remote_hostname = true

;; Set this to true if you want the socket on the host to forward packets across the public network
socket_dest_public = false

3. 检查 SolusVM 主控节点主机名是否设置正确,菜单栏 Nodes -> List Nodes,点击编辑图标查看。

如果没有设置正确(应设置主控面板使用的域名),SSH 登录主控服务器修改主机名(CentOS 6)。

修改/etc/sysconfig/network文件,将里面HOSTNAME值改为主机名,例如cp.example.com

然后运行下面命令

hostname "cp.example.com"

/etc/hosts文件里添加一行将服务器 IP 绑定到主机名。

56.56.56.34 cp.example.com

reboot重启服务器使设置生效。之后在 SolusVM 主控节点设置里更新主机名。

4. 将主控面板使用的域名 SSL 证书生成 cert.pem 文件放到 VNC 配置目录,并重启 Web 服务。

cd /usr/local/svmstack/nginx/ssl
cat ssl.key ssl.crt > /usr/local/solusvm/includes/nvnc/cert.pem
service svmstack-nginx restart

如果没有配置域名 SSL 证书,可参考之前 SolusVM 安装一文,里面有介绍。

5. 之后登录用户前台,测试 HTML5 noVNC 控制台连接是否正常。

HTML5 VNC Client SSL
HTML5 VNC Client SSL
HTML5 VNC 连接测试
HTML5 VNC 连接测试

评论列表

  1. #1

    Hi, very nice website, cheers!
    ——————————————————
    Need cheap and reliable hosting? Our shared plans start at $10 for an year and VPS plans for $6/Mo.
    ——————————————————
    Check here: https://www.reliable-webhosting.com/

  2. #2

    drugs that interact with bimatoprost https://carepro1st.com/

  3. #3

    ivermectin on ebay 50ml https://ivermectin.mlsmalta.com/

  4. #4

    does hydroxychloroquine affect kidneys https://hydroxychloroquine.webbfenix.com/

  5. #5

    ordering vidalista online https://vidalista40mg.mlsmalta.com/

  6. #6

    cialis dosage 20mg daily https://wisig.org/

  7. #7

    malaria treatment https://hydroxychloroquinee.com/

  8. #8

    amstyles.com https://amstyles.com/

  9. #9

    priligy 60 mg price https://ddapoxetine.com/

  10. #10

    hydroxychloroquine coronavirus success https://sale.azhydroxychloroquine.com/

  11. #11

    oral prednisone https://prednisone.bvsinfotech.com/

  12. #12

    generic tadalafil 40 mg https://tadalafil.cleckleyfloors.com/

  13. #13

    generic cialis free shipping https://tadalafili.com/

  14. #14

    acyclovir contraindications and side effects https://www.herpessymptomsinmen.org/productacyclovir/

  15. #15

    when to take hydroxychloroquine for covid 19 https://hydroxychloroquine.grassfed.us/

  16. #16

    when to take hydroxychloroquine for covid 19 https://hydroxychloroquine.wisig.org/

  17. #17

    online doctors prescriptions https://buymeds.mlsmalta.com/

  18. #18

    online doctors prescriptions https://edmeds.buszcentrum.com/

  19. #19

    hydroxychloroquine for arthritis https://hhydroxychloroquine.com/

  20. #20

    how much is a prescription of cialis https://cialis.cleckleyfloors.com/

  21. #21

    how much is a prescription of cialis https://cialis.studiowestinc.com/

  22. #22

    generic viagra http://viaaagra.com/

  23. #23

    vidalista without a doctors prescription http://vidallista.com/

  24. #24

    buy tadalafil generic https://www.lm360.us/

  25. #25

    cialis buy from india http://cialis.anafassia.com/

  26. #26

    Link exchange is nothing else however it is
    just placing the other person’s weblog link on your page at suitable place and other person will also do similar for you. https://cialis.webbfenix.com/tadalafil

  27. #27

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post…

    http://www.vreyrolinomit.com/

  28. #28

    tadalafil without a doctor’s prescription india https://cialis.stdstory.com/

  29. #29

    tadalafil without a doctor’s prescription india https://cialis.grassfed.us/

  30. #30

    Pretty! This has been an incredibly wonderful article. Thank you for providing these details. http://www.deinformedvoters.org/viagra-generic

  31. #31

    buy hydroxychloroquine in canada http://hydroxychloroquined.online/

  32. #32

    Excellent site. A lot of useful info here. I am sending it to several friends ans also sharing in delicious. And obviously, thanks on your effort!

    http://www.zortilonrel.com/

  33. #33

    Este site é realmente fantástico. Sempre que acesso eu encontro coisas boas Você também vai querer acessar o nosso site e descobrir detalhes! informaçõesexclusivas. Venha descobrir mais agora! 🙂

    https://corporality.global/

  34. #34

    Hey there would you mind letting me know which web host you’re using? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you recommend a good internet hosting provider at a honest price? Thank you, I appreciate it!

    https://www.youtube.com/watch?v=tm_FEaULxf8

  35. #35

    vidalista dosage information http://viidalista.co/

  36. #36

    Thank you for some other magnificent post. The place
    else may anybody get that type of info in such a perfect method of writing?
    I’ve a presentation next week, and I am at the
    look for such info. http://cialis.audiovideoninja.com/tadalafil

  37. #37

    You completed some good points there. I did a search on the issue and found nearly all persons will go along with with your blog.

    http://www.vreyrolinomit.com/

  38. #38

    Very nice info and right to the point. I don’t know if this is truly the best place to ask but do you folks have any ideea where to employ some professional writers? Thx 🙂

    https://allcreditcarloans.co/auto-finance-calculator/

  39. #39

    Very nice info and straight to the point. I am not sure if this is really the best place to ask but do you guys have any ideea where to employ some professional writers? Thank you 🙂

    https://www.onlinecasinobetrouwbaar.net/

  40. #40

    whoah this weblog is excellent i really like studying your articles.
    Keep up the great work! You realize, many persons are hunting round for this info, you could aid them greatly. http://hydroxychloroquinea.audiovideoninja.com/

  41. #41

    Have you ever heard of second life (sl for short). It is basically a online game where you can do anything you want. sl is literally my second life (pun intended lol). If you would like to see more you can see these second life authors and blogs

    http://www.avatarlanguages.com/mediacoverage.php

  42. #42

    mexican prednisone without dr prescription https://bvsinfotech.com/

  43. #43

    Have you ever heard of second life (sl for short). It is basically a video game where you can do anything you want. sl is literally my second life (pun intended lol). If you want to see more you can see these second life articles and blogs

    cogdogblog.com/2007/08/uncanny-dog-valley/

  44. #44

    Wonderful beat ! I wish to apprentice at the same time as you amend your website, how can i subscribe for a blog site?
    The account aided me a applicable deal. I had been tiny bit acquainted of this
    your broadcast provided brilliant transparent
    idea http://www.deinformedvoters.org/vidalista-online

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。