Steps to access XENServer from XENCenter on a different subnet
[+] On the Router
1) Port forward on the router (virtual servers) ports 443, 22, 80, 5900-6000
2) setup DMZ on the router with the subnet address of your xenserver
[+] On the Xenserver
3) edit this file /opt/xensource/libexec/qemu-dm-wrapper
- after the line "qemu_args = ['qemu-dm-%d'%domid] + argv[2:]"
- add "qemu_args.append("-vnc")"
- add "qemu_args.append("0.0.0.0:1")"
4) restart xapi (run: xe-toolstack-restart)
5) run: "netstat -tulpn", verify that all qemu process listening on ports 59xx are set to localhost (i.e. 127.0.0.1:5901)
6) run: "iptables -I RH-Firewall-1-INPUT -m tcp -p tcp --dport 5900:6900 -j ACCEPT" (opens the firewall for vnc)
[+] REBOOT
本文档提供了从不同子网通过XENCenter访问XENServer的步骤。首先需要在路由器上进行端口转发设置,并建立DMZ区域;然后修改XENServer上的配置文件并重启服务,开放VNC连接所需的防火墙端口。
1798

被折叠的 条评论
为什么被折叠?



