access xenserver outside of localhost

来源:互联网 发布:罗振宇说人工智能 编辑:程序博客网 时间:2024/06/05 20:14
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


https://gist.github.com/quend/e614c7eb96058709ebf7

0 0