Skip to content

Rhaptos Software Development

Personal tools
You are here: Home » Documentation » System Administration Documentation » Xen instance care and feeding

Xen instance care and feeding

Document Actions
How we're using Xen instances for testing and development

Xen Basics

  • must be root on Xen host (Dom0 in xen-speak, yoda currently)
  • xm is the master command
  • xm list shows currently running images
  • configs live in /etc/xen
  • bits live in yoda:/var/local/xen/domains
  • start instance: xm create [pathtoconfig]
  • console access: xm console imagename
  • exit console: crtl-]
  • ssh access: get IP from ifconfig inside image ssh root@IP from yoda

How to copy a Xen Image

A Xen image consists of a disk.img and swap.img file located in the /var/local/xen/domains/imagename directory and a config file in the /etc/xen directory called imagename.cfg.

  1. cd /var/local/xen/domains
  2. cp -R src_image dest_image
  3. cd /etc/xen
  4. sed 's/src_image/dest_image/g' < src_image.cfg > dest_image.cfg

Available Xen Images

On yoda and wakizashi the following images are available:

etchtemplate.local
A debian 4.0r2 (etch) VM with all the pre-requisite packages needed to install Rhaptos. This VM is used as the base VM for Rhaptos install testing. When it boots, it is on IP 192.168.1.93 and has SSH running so that root can login from yoda without a password
etchvirgin.local
A debian 4.0r2 (etch) VM without any special packages installed for Rhaptos. It comes up on 192.168.1.93 and has SSH running.

On only wakizashi:

etchtest.local
A debian 4.0r2 (etch) VM copy of etchtemplate.local, for testing. May be overwritten at anytime by QA.

Created by reedstrm
Last modified 2008-03-14 15:44