Difference between revisions of "Xen"

From HoerupWiki
Jump to: navigation, search
(Accessing VNC Consoles)
Line 10: Line 10:
 
## Append following line to /etc/rc.local
 
## Append following line to /etc/rc.local
 
## iptables --insert INPUT -p tcp --dport 5900:5999 -j ACCEPT
 
## iptables --insert INPUT -p tcp --dport 5900:5999 -j ACCEPT
 
+
# Set vncterm to listen on all interfaces instread of 127.0.0.1
 +
## Edit /opt/xensource/libexec/vncterm-wrapper
 +
## Alter the VNCTERM_LISTEN variable to "-v 0.0.0.0:1"
  
 
=Running XenCenter on linux - doesnt work=
 
=Running XenCenter on linux - doesnt work=

Revision as of 12:04, 20 May 2012

Accessing VNC Consoles

All the vm consoles on xenserver are per default only accessible via the http(s) interface, but with some few tricks you can access them directly:

All commands are done via SSH on xenserver

Warning - this bypasses a lot of xenservers security measures

  1. Allow VNC ports through firewall
    1. Append following line to /etc/rc.local
    2. iptables --insert INPUT -p tcp --dport 5900:5999 -j ACCEPT
  2. Set vncterm to listen on all interfaces instread of 127.0.0.1
    1. Edit /opt/xensource/libexec/vncterm-wrapper
    2. Alter the VNCTERM_LISTEN variable to "-v 0.0.0.0:1"

Running XenCenter on linux - doesnt work

  1. Download Xencenter from 6.0 550
  2. Install wine > 1.2 (apt-get install wine1.3 or what ever you got)
  3. Download winetricks: wget http://winetricks.org/winetricks
  4. Use winetricks to install .net: sh winetricks dotnet2 Use winetricks to install mono: sh winetricsk mono210
  5. Install XenCenter from msi: wine start XenServer-6.0.0-XenCenter.msi
  6. use wine to launch mono and xencenter: wine "C:\\Program Files\\Mono-2.10.6\\bin\\mono.exe" "c:\\XenCenter\\XenCenterMain.exe"