Xen 
 
Home Products Support Community News
 
   

Xen Demo Laptop

At Cambridge we have a IBM Thinkpad T42, with 2Gb of RAM, we use as a demo laptop.

Here is some information on how we set it up.

Partitions

On disk we have 2 paritions: 100mb ext3 mounted /boot in dom0, and an LVM partition consuming the rest of the hard disk. On this LVM partition are the root and swaps for all the domains (inc dom0).

Domains

  1. Domain-0: CentOS 4 ip: 192.168.0.1 root: /dev/VG00/CentOS_Root, 4gb

  2. Domain-1: Debian Sarge ip: 192.168.0.11 root: /dev/VG00/Debian_Root, 2gb

    Problems I had: see DebianSarge

  3. Domain-2: Fedora Core 4 ip: 192.168.0.12 root: /dev/VG00/Fedora_Root, 2gb

  4. Domain-3: SUSE Pro 9.3 ip; 192.168.0.13 root: /dev/VG00/SUSE_Root, 2gb

VNC

  • The domains are setup with reverse VNC, so that when they boot they automatically bring up a VNC terminal, with login prompt.
  • In domain 0, all you have to do is add vnc='yes' to you xm config file. This will start up a VNC client listening on a certain port, then pass the address and port of this client to the domU on the kernel command line.

  • Infomation and scripts for this can be found in the tools/examples/vnc/ directory in the repository.
  • The settings for domUs vary between the window managers they use:

XDM

  • /etc/X11/xdm/Xserver Add line:

:0 Xvnc -geometry 800x600 -depth 24
  • And comment out any other lines
  • /etc/X11/xdm/Xsetup Needs to have:

#!/bin/bash
LISTENER=`cat /proc/cmdline | sed -n 's/.*VNC_VIEWER=\([^ ]*\) *.*/\1/p'`
if [ -n "$LISTENER" ] ; then
    /usr/bin/vncconnect $LISTENER
fi

GDM

  • /etc/X11/gdm/gdm.conf

    Under [servers] heading, add this line, and comment out others like it:

0=VNC
  • Before the [server-Standard] section, add:

[server-VNC]
name=VNC server
command=/usr/bin/Xvnc -geometry 800x600 -depth 24
flexible=true
  • /etc/X11/gdm/Init/:0

    Either symbolic link this to /etc/X11/xdm/Xsetup and add to Xsetup what is specified above, or just put the above code for Xsetup in this file.

    In Fedora and RHEL, there is no vncconnect program. Instead, use

vncconfig -connect $LISTENER

KDM

XenDemoLaptop (last edited 2005-10-30 18:11:48 by host-192-168-0-10-bcn-london)