User Tools

Site Tools


virtualization:xenserver:xenserver_remote

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
virtualization:xenserver:xenserver_remote [2014/10/02 09:05]
gcooper created
virtualization:xenserver:xenserver_remote [2016/10/18 18:10] (current)
gcooper
Line 15: Line 15:
 ===== Remote XenCenter ===== ===== Remote XenCenter =====
  
-:!: You can get partial functionality by simply forwarding port 443 into the XenServer.+:!: For best security, you should limit access to your remote XenServer by source IP address in the firewall at the remote site.
  
-The easiest way I've found to access the console of a VM running on a XenServer behind NAT is:+You can get **partial functionality** by simply forwarding TCP port 443 into the remote XenServer, but not console access (XenServer or VM).  Even if you forward a non-standard port (i.e. 4443) in to port 443 on the XenServer, you can still add the remote server to XenCenter: 
 + 
 +''remote.host.or.ip:4443''  
 + 
 +===== Remote Console ===== 
 + 
 +<note tip>A **VPN connection** makes the following workaround unnecessary!</note> 
 + 
 +Without a VPN connection, the easiest way I've found to access the console of a VM running on a XenServer behind NAT is:
  
   - Enable remote SSH access directly to the XenServer   - Enable remote SSH access directly to the XenServer
-    * You can forward a non-standard port at the firewall (22222) to the standard port 22 at the XenServer+    * You can forward a non-standard port at the firewall (i.e. 22222) to the standard port 22 at the XenServer
   - To access a VM's console, you must tunnel through localhost (the XenServer)   - To access a VM's console, you must tunnel through localhost (the XenServer)
   - Use SSH port forwarding to forward a VM's VNC port (5901, 5902, 5903, etc.) to 'localhost'   - Use SSH port forwarding to forward a VM's VNC port (5901, 5902, 5903, etc.) to 'localhost'
Line 35: Line 43:
 </file> </file>
  
-Determine the VNC port of your target VM:+Determine the domain ID and VNC port of your target VM:
  
 <file> <file>
 xe vm-list xe vm-list
-xe vm-list name-label="<target-vm-name>" params=dom-id --minimal+list_domains
 netstat -lp|grep -w <domid> |awk '{print $4}'|cut -d: -f2 netstat -lp|grep -w <domid> |awk '{print $4}'|cut -d: -f2
 </file> </file>
  
-Now you can forward the port(s) and access the VNC console of the VM from other terminals on your remote workstation:+Now you can forward the port(s) and access the VNC console of the VM from another terminal on your remote workstation:
  
 <file> <file>
virtualization/xenserver/xenserver_remote.1412262326.txt.gz · Last modified: 2014/10/02 09:05 by gcooper