Skip to content

Instantly share code, notes, and snippets.

@quend
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quend/e614c7eb96058709ebf7 to your computer and use it in GitHub Desktop.
Save quend/e614c7eb96058709ebf7 to your computer and use it in GitHub Desktop.
access xenserver outside of localhost
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