Last active
August 29, 2015 14:22
-
-
Save quend/e614c7eb96058709ebf7 to your computer and use it in GitHub Desktop.
access xenserver outside of localhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment