Xen instance care and feeding
How we're using Xen instances for testing and development
Xen Basics
- must be root on Xen host (Dom0 in xen-speak, yoda currently)
xmis the master commandxm listshows 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 imagessh root@IPfrom 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.
cd /var/local/xen/domainscp -R src_image dest_imagecd /etc/xensed '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.
