[DESY Home] [DESY IT Home] [DESY IT Physics Computing] [Grid Computing at DESY] [DESY Computing Seminar] [Imprint]

Grid Computing at DESY DESY

[Home] [Monitor] [Grid@DESY] [Certs & VOs] [VOMS] [User Guide] [FAQ] [Install Guides] [Admin Guide] [Talks & Conferences] [Glossary] [Documentation] [Links]

In order to ensure response in case of problems, use the Global Grid User Support GGUS and/or your VO support rather than private e-mail contacts or internal mailing lists.

Using the XenCenter for managing virtual Xen machines on the XEN servers


The Xen hosts are provided by Stefan Bujack and Markus Wengert. Please ask them in case of questions or addional questions.

Before you use the XenCenter: Make sure there is a template in Quattor, which implies that the virtual machine is in QIP.

From the IP to the MAC adress: An example:

IP:    131.169.223. 83
MAC: 02:11:69:22:30:83

Access to the XenServer GUI:
Connect to it-xencenter01.win.desy.de via remote desktop (xfreerdp). If you are not in the DESY internal net, the following SSH tunnel can help you:

xfreerdp -u _user_ -d win.desy.de -g 1280x1024 it-xencenter01.desy.de
Open Xenserver, if the Grid cluster is not visible: Add Server with the following details:
User name root
Password ... Ask Andreas

Creating a new Virtual Machine

Klick on New VM

Chose an adequate template (CentOS 5.3 x64 is right for SL5.3 64 bit)

Name the machine. Must not necessarily be the hostname, but that helps.

Fill in the Install URL (contained in the KiskStart file) and the Advanced OS Boot Parameters (which contains the location of the KickStart file. Check server IP!)

Automatically is OK, you can migrate machines later if necessary.

Set NUmber of vCPUs and initial memory as needed.

Chose the netapp (netapp11 and netap22 at the moment, variate a bit) and the size. The usual template if 40 GB, the default of 8 GB will not work.

Delete all network interfaces except interface 0, and set the MAC addess manually to the above scheme

Start the VM (initial build and startup takes some time, but usually not more than 2-3 minutes)

You can watch the progress in the console.

Deleting a VM

You can easily delete a VM when it is stopped, doing a right-click and selecting the option. Make sure you switch on Delte attached virtual disks.

You can reinstall a previously deleted machine by simply following the steps detailed above. No intervention in Quattor should be necessary.

Installing the Xen Guest Tools

The machine you created above is fully functional. However, in order to increase performance and enable live migration and snapshots, the Xen Guest Tools must be installed.

Select the DVD Drive image xs-tools.iso. In this case, this is mounted under /dev/xvdd.

Perform the following actions:
  ssh root@yournewvirtualmachine 

    mount /dev/dvd  /mnt
    cd /mnt/Linux/
    rpm -ivh xe-guest-utilities-5.6.100-647.x86_64.rpm
    rpm -ivh xe-guest-utilities-xenstore-5.6.100-647.x86_64.rpm
    cd /
    umount /mnt/

    cat /opt/misc/tools/xe-utilities.sh
mount /dev/xvdd /mnt
cd /mnt/Linux
ls -l
rpm -ivh xe-guest-utilities-xenstore-6.2.0-1133.x86_64.rpm xe-guest-utilities-6.2.0-1133.x86_64.rpm
cd /
umount /mnt

and unselect the DVD Drive image set before.

XenCenter Management

Falls es haengende Prozesse auf einem Hypervisor gibt, kannst du den
toolstack neu starten. Es bleiben alle VMs am Leben, es werden dann nur
haengende tasks entfernt. Wenn du dann ein VM neu starten willst, die
bei einem normalen reboot nicht geantwortet hat, kannst du auch force
reboot machen.

Dafuer gehst du mit der rechten Maustaste auf den Hypervisor und
drueckst Restart Toolstack. Oder auf der console sagst du:

[root@grid-xen2 ~]# xe-toolstack-restart
Executing xe-toolstack-restart
Stopping xapi: ..                                          [  OK  ]
Stopping the v6 licensing daemon:                          [  OK  ]
Stopping the memory ballooning daemon:                     [  OK  ]
Stopping perfmon:                                          [  OK  ]
Stopping the xenopsd daemon:                               [FAILED]
Stopping XCP RRDD plugin xcp-rrdd-iostat:                  [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-squeezed:                [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-xenpm:                   [  OK  ]
Stopping the XCP RRDD daemon:                              [  OK  ]
Stopping the XCP networking daemon:                        [  OK  ]
Stopping the fork/exec daemon:                             [  OK  ]
Starting the fork/exec daemon:                             [  OK  ]
Starting the XCP networking daemon: .                      [  OK  ]
Starting the XCP RRDD daemon:                              [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-iostat:                  [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-squeezed:                [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-xenpm:                   [  OK  ]
Starting the xenopsd daemon:                               [  OK  ]
Starting perfmon:                                          [  OK  ]
Starting the memory ballooning daemon:                     [  OK  ]
Starting the v6 licensing daemon:                          [  OK  ]
Starting xapi: OK                                          [  OK  ]


Regularly used strings:

Install from URL:


Advanced OS boot parameters:

ks= graphical utf8







# preparation
 foreman: http://nims.desy.de/centos/7/x86_64/os/
          ks grid srv xvda
 wboom:   pup pup-grid grid_core itxen centos7-foreman vms=it-xen vm=xen adm=it-xen-admins esd=zdv_grid ngs=no
 qip:     qip foreman_Linux

# Xen

# guest tool
mount /dev/sr0 /mnt

Recovery: (in XenCenter)

  1. mount ubuntu desktop iso
  2. start vm in recovery mode
  3. mount xvda2 /mnt
  4. datei kopiert.
by the DESY Grid Team: http://grid.desy.de/