From: opensides Date: Sun, 9 Mar 2008 15:54:39 +0000 (+0000) Subject: - First import of the xen.schema and docs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59ecbea15163dfa7d74295774c2b5f0045d46970;p=gosa.git - First import of the xen.schema and docs git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5-plugins@9473 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/xen/doc/french-explanation b/xen/doc/french-explanation new file mode 100644 index 000000000..83cf6589a --- /dev/null +++ b/xen/doc/french-explanation @@ -0,0 +1,40 @@ +Principe de XEN + +1 serveur physique qui contient l'hyperviseur XEN c'est le dom0 +X serveur virtuel lancer par l'hyperviseur : ce sont les DomuU + +les outils de création de machine xen s'appelle les xen-tools +ils permettent de créer une machine virtuelle en ligne de commande + +xen-tools est configuré par avance en spécifiant certaines options +d'installation ( volume de stockage des machines, quel miroir prendre +pour l'installation , la passerelle par defaut et compagnie ) + +les xen-tools génére un fichier de ce type : + +kernel = '/boot/vmlinuz-2.6.16-xen' +ramdisk = '/boot/initrd.img' +memory = 128 +name = 'ldap-slave1' +root = '/dev/hda1 ro' +disk = [ 'phy:VGdomU/ldap-slave1-root,hda1,w', +'phy:VGdomU/ldap-slave1-swap,hda2,w' ] +vif = ['ip=XX.XXX.XXX.XXX.XXX'] + +c'est ce fichier qui peut être LDAP-ifie + +On peut aussi ldap-ifie le statut de la machine virtuelle : +shutdown = arret +pause = pause +create = demarrage +destroy = crash + +dasn ce cas gosa peut devenir centre de gestion Xen + +Le but du schema xen est de : + +Pour les DomU +-> stocker les paramètre des domU +-> eventuellement les gérer ( arreter, mettre en pause, demarrer ou +redemarrer) + diff --git a/xen/doc/machintest.cfg b/xen/doc/machintest.cfg new file mode 100644 index 000000000..13bffaef5 --- /dev/null +++ b/xen/doc/machintest.cfg @@ -0,0 +1,40 @@ +# +# Configuration file for the Xen instance testmachine created on +# Mon Nov 19 15:37:54 2007. +# + + +# +# Kernel + memory size +# +kernel = '/boot/vmlinuz-2.6.18-4-xen-686' +ramdisk = '/boot/initrd.img-2.6.18-4-xen-686' + +memory = '1024' +vcpus = '2' + + +# +# Disk device(s). +# +root = '/dev/sda1 ro' + +disk = [ 'phy:VGdomU/testmachine-disk,w', 'phy:testmachine-swap,sda2,w' ] + +# +# Hostname +# +name = 'testmachine-disk' + + +# +# Networking +# +vif = [ 'ip=XXX.XXX.XXX.XXX' ] + +# +# Behaviour +# +on_poweroff = 'destroy' +on_reboot = 'restart' +on_crash = 'restart' diff --git a/xen/doc/xen-tools.conf b/xen/doc/xen-tools.conf new file mode 100644 index 000000000..0621555d2 --- /dev/null +++ b/xen/doc/xen-tools.conf @@ -0,0 +1,191 @@ +# +# /etc/xen-tools/xen-tools.conf +# +# Global configuration file for the scripts included with Xen-tools. +# +# Values may be set here so they don't need to be specified upon the +# command line. +# +# Steve +# -- +# + + + +# +## +# Output directory for storing loopback images. +# +# If you choose to use loopback images, which are simple to manage but +# slower than LVM partitions, then specify a directory here and uncomment +# the line. +# +# New instances will be stored in subdirectories named after their +# hostnames. +# +## +# dir = /home/xen +# + +# +## +# +# If you don't wish to use loopback images then you may specify an +# LVM volume group here instead +# +## +# lvm = skx-vg + +lvm = VGdomU +# +## +# +# Installation method. +# +# There are four different methods you can use to install a new copy +# of Linux to use in your Xen guest domain: +# +# - Installation via the debootstrap command. +# - Installation via the rpmstrap command. +# - Installation by copying a directory containing a previous installation. +# - Installation by untarring a previously archived image. +# +# NOTE That if you use the "untar", or "copy" options you should ensure +# that the image you're left with matches the 'dist' setting later in +# this file. +# +# Note that you can only uncomment one method - they are mutually exclusive. +# However the command line installation method will allow you to override +# the choice you make here. +# +## +# +# copy = /path/to/pristine/image + +debootstrap = 1 + +# rpmstrap = 1 +# tar = /path/to/img.tar +# + +# +## +# Command definitions. +## +# +# The "debootstrap" and "rpmstrap" commands are hardwired, but if you +# wish to alter the commands invoked when using the "--copy" + "--tar" +# options you can adjust these two settings: +# +# --copy: +# copy-cmd = /bin/cp -a $src/* $dest +# +# --tar: +# tar-cmd = /bin/tar --numeric-owner -xvf $src +# +# + + + +# +## +# Disk and Sizing options. +## +# +size = 1Gb # Disk image size. +memory = 128Mb # Memory size +swap = 1Gb # Swap size +# noswap = 1 # Don't use swap at all for the new system. +fs = ext3 # use the EXT3 filesystem for the disk image. +dist = etch # Default distribution to install. +image = sparse # Specify sparse vs. full disk images. + +# +# Currently supported and tested distributions include: +# +# sid - Debian +# sarge - Debian +# etch - Debian +# dapper - Ubuntu +# centos4 - CentOS 4 +# fedora-core4 - Fedora Core 4 (codname stentz) +# + + + +## +# Networking setup values. +## + +# +# Uncomment and adjust these network settings if you wish to give your +# new instances static IP addresses. +# +gateway = 192.168.1.1 +netmask = 255.255.255.0 +# + +# +# Uncomment this if you wish the images to use DHCP +# +# dhcp = 1 + + +## +# Misc options +## + +# +# Uncomment the following line if you wish to disable the caching +# of downloaded .deb files when using debootstrap to install images. +# +# cache = no +# + +# +# Uncomment the following line if you wish to interactively setup +# a new root password for images. +# +# passwd = 1 + +# +# If you'd like all accounts on your host system which are not present +# on the guest system to be copied over then uncomment the following line. +# +# accounts = 1 +# + +# +# Default kernel and ramdisk to use for the virtual servers +# +#kernel = /boot/vmlinuz-2.6.16-2-xen-686 +#initrd = /boot/initrd.img-2.6.16-2-xen-686 + +kernel = /boot/vmlinuz-2.6.18-4-xen-686 +initrd = /boot/initrd.img-2.6.18-4-xen-686 + +# +# The architecture to use when using debootstrap or rpmstrap. +# +# This is most useful on 64 bit host machines, for other systems it +# doesn't need to be used. +# +# arch=i386 +# + +# +# The default mirror for debootstrap which can be used to install +# Debian Sid, Sarge, and Etch. +# +mirror = http://ftp2.fr.debian.org/debian/ + +# +# A mirror suitable for use when installing the Dapper release of Ubuntu. +# +# mirror = http://gb.archive.ubuntu.com/ubuntu/ + +# +# Uncomment if you wish newly created images to boot once they've been +# created. +# +# boot = 1 diff --git a/xen/schema/xen.schema b/xen/schema/xen.schema new file mode 100644 index 000000000..8b8aafd66 --- /dev/null +++ b/xen/schema/xen.schema @@ -0,0 +1,143 @@ +# VERSION 0.1 Antoine .gallavardin@cemagref.fr +# Schema file wiche contains xen parameters + + + +# DESCRIPTION FOR DOMU + +# memory allowed to a DomU in Mo +# ex : 128 +# obligatory +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.1 NAME 'gosaXenDomuMem' + DESC 'Memory allowed to a DomU' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# Max memory allowed to a DomU +# Used by Xen Xen but Don't used by xen-tools +# optional +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.2 NAME 'gosaXenDomuMemMax' + DESC 'Max Memory allowed to a DomU' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# Kernel version use (DomO use by default) +# like vmlinuz +# don't use in commande line by xen-tools +# parameters is stored in global conf file : /etc/xen-tools/xen-tools.cfg +# obligatory +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.3 NAME 'gosaXenDomuKernel' + DESC 'Kernel version use (DomO use by default)' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# RamDisk version use (DomO use by default) +# like initrd.img +# don't use in commande line by xen-tools ( xen-create-image ) +# parameters is stored in global conf file : /etc/xen-tools/xen-tools.cfg +# optional ( depend of tuype of kernel used) +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.4 NAME 'gosaXenDomuRamDisk' + DESC 'RamDisk version use (DomO use by default)' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + + +# Networking interface status dhcp or not +# used by command line : xen-create-image +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.8 NAME 'gosaXenDomuNetworkStatus' + DESC 'Networkinf interface status (DHCP or not)' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# Block device +# XEN-TOOL create by default 2 block device -disk and -swap +# for the moment there is no special parameter in order to create specific block device for /var ou /home +# specified in .conf + + +# Dom0 server used for this domU +# must be filled +# server must contains xen-tools correctly installed +attributetype ( 1.3.6.1.4.1.22262.1.1.10.9 NAME 'gosaXenDomuServerDom0' + DESC 'Dom0 server used for this domU' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + + +# DomU : Installation Method +# it depends of type of linux +# it could be deb, rpm +# specified inb xen-tools.conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.11 NAME 'gosaXenDomuInstallMethod' + DESC 'Installation Method for DomU' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# DomU : Installation Version +# Feisty or gutsy or etch ( see xen-tools.conf for more information ) +# specified inb xen-tools.conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.12 NAME 'gosaXenDomuInstallVersion' + DESC 'Installation Version for DomU' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + + + +# ACTION FOR MANAGING DOMU + +# action when DomO is halting +# don't use by xen-tools +# post install parameters +# what do Xen on this domU when domU is halting ? +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.5 NAME 'gosaXenDomuActionDom0Halt' + DESC 'action when DomO is halting' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# action when DomO is shutdowning +# don't use by xen-tools +# post install parameters +# what do Xen on this domU when domU is shutdowning ? +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.6 NAME 'gosaXenDomuActionDom0Shutdown' + DESC 'action when DomO is Shutdowning' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + +# action when DomO is rebootingus +# don't use by xen-tools +# post install parameters +# what do Xen on this domU when domU is rebooting ? +# specified in .conf +attributetype ( 1.3.6.1.4.1.22262.1.1.10.7 NAME 'gosaXenDomuActionDom0Reboot' + DESC 'action when DomO is Rebooting' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + + +# DomU action : Pause Halt Reboot +# don't use by xen-tools +# post install Action +attributetype ( 1.3.6.1.4.1.22262.1.1.10.10 NAME 'gosaXenDomuAction' + DESC 'DomU action : Pause Halt Reboot' + EQUALITY caseExactIA5Match + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) +