2008-07-03 05:18:42 +04:00
#*******************************************************************************
# OpenNebula Configuration file
#*******************************************************************************
2008-06-17 20:27:32 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Daemon configuration attributes
#-------------------------------------------------------------------------------
# HOST_MONITORING_INTERVAL: Time in seconds between host monitorization
2008-12-02 20:43:12 +03:00
#
2008-07-03 05:18:42 +04:00
# VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization
2008-06-17 20:27:32 +04:00
#
2008-11-13 19:21:17 +03:00
# VM_DIR: Remote path to store the VM images, it should be shared between all
2009-02-15 03:24:39 +03:00
# the cluster nodes to perform live migrations. This variable is the default
# for all the hosts in the cluster.
#
2008-07-03 05:18:42 +04:00
# PORT: Port where oned will listen for xmlrpc calls.
2008-06-17 20:27:32 +04:00
#
2010-05-05 02:21:28 +04:00
# DB: Configuration attributes for the database backend
# backend : can be sqlite or mysql (default is sqlite)
# server : (mysql) host name or an IP address for the MySQL server
# user : (mysql) user's MySQL login ID
# passwd : (mysql) the password for user
# db_name : (mysql) the database name
#
2010-03-05 21:43:34 +03:00
# VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
# VMID
#
2008-07-03 05:18:42 +04:00
# DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-06-17 20:27:32 +04:00
2009-07-16 21:14:01 +04:00
HOST_MONITORING_INTERVAL = 60
2008-12-02 20:43:12 +03:00
2009-07-16 21:14:01 +04:00
VM_POLLING_INTERVAL = 60
2008-06-17 20:27:32 +04:00
2009-07-16 21:14:01 +04:00
#VM_DIR=/srv/cloud/one/var
2008-06-17 20:27:32 +04:00
PORT=2633
2010-05-05 02:21:28 +04:00
DB = [ backend = "sqlite" ]
# Sample configuration for MySQL
# DB = [ backend = "mysql",
# server = "localhost",
# user = "oneadmin",
# passwd = "oneadmin",
# db_name = "opennebula" ]
2010-03-05 21:43:34 +03:00
VNC_BASE_PORT = 5000
2008-07-03 05:20:39 +04:00
DEBUG_LEVEL=3
2008-07-03 05:18:42 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
# Physical Networks configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-12-02 20:43:12 +03:00
# NETWORK_SIZE: Here you can define the default size for the virtual networks
2008-11-13 19:21:17 +03:00
#
2009-02-15 03:24:39 +03:00
# MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
# addresses is defined here (this can be overrided by the Virtual Network
2008-12-02 20:43:12 +03:00
# template)
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
2008-12-02 20:43:12 +03:00
NETWORK_SIZE = 254
2008-11-13 19:21:17 +03:00
2008-12-02 20:43:12 +03:00
MAC_PREFIX = "00:03"
2008-11-13 19:21:17 +03:00
2010-06-01 20:00:44 +04:00
#*******************************************************************************
# Image Repository Configuration
#*******************************************************************************
2010-06-25 21:17:17 +04:00
# IMAGE_REPOSITORY_PATH: Define the path to the image repository, by default
2010-06-01 20:00:44 +04:00
# is set to $ONE_LOCATION/var
#
# DEFAULT_IMAGE_TYPE: This can take values
# OS Image file holding an operating system
# CDROM Image file holding a CDROM
2010-06-25 21:17:17 +04:00
# DATABLOCK Image file holding a datablock,
2010-06-01 20:00:44 +04:00
# always created as an empty block
# DEFAULT_DEVICE_PREFIX: This can be set to
# hd IDE prefix
# sd SCSI
# xvd XEN Virtual Disk
# vd KVM virtual disk
#*******************************************************************************
2010-06-25 21:17:17 +04:00
#IMAGE_REPOSITORY_PATH =
2010-06-01 20:00:44 +04:00
DEFAULT_IMAGE_TYPE = "OS"
DEFAULT_DEVICE_PREFIX = "hd"
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Information Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more information managers with different configurations but make
2008-07-03 05:18:42 +04:00
# sure it has different names.
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# name : name for this information manager
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# executable: path of the information driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 17:58:51 +03:00
#
# arguments : for the driver executable, usually a probe configuration file,
# can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
2009-07-16 21:14:01 +04:00
#IM_MAD = [
# name = "im_xen",
# executable = "one_im_ssh",
# arguments = "im_xen/im_xen.conf" ]
2008-07-04 20:55:49 +04:00
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
# KVM Information Driver Manager sample configuration
#-------------------------------------------------------------------------------
2009-07-16 21:14:01 +04:00
IM_MAD = [
name = "im_kvm",
executable = "one_im_ssh",
arguments = "im_kvm/im_kvm.conf" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# EC2 Information Driver Manager sample configuration
#-------------------------------------------------------------------------------
2009-03-07 03:50:05 +03:00
#IM_MAD = [
2008-12-02 20:43:12 +03:00
# name = "im_ec2",
2009-01-02 17:58:51 +03:00
# executable = "one_im_ec2",
2009-03-07 03:50:05 +03:00
# arguments = "im_ec2/im_ec2.conf" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2008-07-19 02:14:06 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
# Virtualization Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more virtualization managers with different configurations but
2008-07-03 05:18:42 +04:00
# make sure it has different names.
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# name : name of the virtual machine manager driver
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# executable: path of the virtualization driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 17:58:51 +03:00
#
2008-07-03 05:18:42 +04:00
# arguments : for the driver executable
2009-01-02 17:58:51 +03:00
#
2009-02-15 03:24:39 +03:00
# default : default values and configuration parameters for the driver, can
2009-01-02 17:58:51 +03:00
# be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#
2009-02-15 03:24:39 +03:00
# type : driver type, supported drivers: xen, kvm, xml
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-07-03 05:18:42 +04:00
2009-07-16 21:14:01 +04:00
#VM_MAD = [
# name = "vmm_xen",
# executable = "one_vmm_xen",
# default = "vmm_xen/vmm_xen.conf",
# type = "xen" ]
2008-07-04 15:55:31 +04:00
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
# KVM Virtualization Driver Manager sample configuration
#-------------------------------------------------------------------------------
2009-07-16 21:14:01 +04:00
VM_MAD = [
name = "vmm_kvm",
executable = "one_vmm_kvm",
default = "vmm_kvm/vmm_kvm.conf",
type = "kvm" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# EC2 Virtualization Driver Manager sample configuration
2009-02-15 03:24:39 +03:00
# arguments: default values for the EC2 driver, can be an absolute path or
# relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
# installed in /).
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2009-03-07 03:50:05 +03:00
#VM_MAD = [
# name = "vmm_ec2",
# executable = "one_vmm_ec2",
# arguments = "vmm_ec2/vmm_ec2.conf",
# type = "xml" ]
2008-12-02 20:43:12 +03:00
#-------------------------------------------------------------------------------
2008-07-04 20:55:49 +04:00
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
# Transfer Manager Driver Configuration
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2009-02-15 03:24:39 +03:00
# You can add more transfer managers with different configurations but make
2008-11-13 19:21:17 +03:00
# sure it has different names.
2009-01-02 17:58:51 +03:00
# name : name for this transfer driver
#
2009-02-15 03:24:39 +03:00
# executable: path of the transfer driver executable, can be an
2009-01-02 17:58:51 +03:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 03:24:39 +03:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 17:58:51 +03:00
#
# arguments : for the driver executable, usually a commands configuration file
# , can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
2009-04-05 03:10:02 +04:00
#*******************************************************************************
2008-11-13 19:21:17 +03:00
2009-07-16 21:14:01 +04:00
#TM_MAD = [
# name = "tm_ssh",
# executable = "one_tm",
# arguments = "tm_ssh/tm_ssh.conf" ]
2008-07-04 20:55:49 +04:00
2008-12-02 18:32:16 +03:00
#-------------------------------------------------------------------------------
# NFS Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
2009-07-16 21:14:01 +04:00
TM_MAD = [
name = "tm_nfs",
executable = "one_tm",
arguments = "tm_nfs/tm_nfs.conf" ]
2008-12-02 18:32:16 +03:00
#-------------------------------------------------------------------------------
2008-12-02 18:52:03 +03:00
#-------------------------------------------------------------------------------
# Dummy Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
2009-03-07 03:50:05 +03:00
#TM_MAD = [
# name = "tm_dummy",
# executable = "one_tm",
# arguments = "tm_dummy/tm_dummy.conf" ]
2008-12-02 18:52:03 +03:00
#-------------------------------------------------------------------------------
2009-04-04 03:34:33 +04:00
2009-10-16 17:50:56 +04:00
#-------------------------------------------------------------------------------
# LVM Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
# name = "tm_lvm",
# executable = "one_tm",
# arguments = "tm_lvm/tm_lvm.conf" ]
#-------------------------------------------------------------------------------
2009-04-05 03:10:02 +04:00
#*******************************************************************************
# Hook Manager Configuration
#*******************************************************************************
# The Driver (HM_MAD), used to execute the Hooks
2009-04-04 03:34:33 +04:00
# executable: path of the hook driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
2009-04-10 03:31:41 +04:00
# arguments : for the driver executable, can be an absolute path or relative
# to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
2009-04-04 03:34:33 +04:00
# in /)
2009-04-05 03:10:02 +04:00
#
# Virtual Machine Hooks (VM_HOOK) defined by:
2009-04-10 03:31:41 +04:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
2009-04-05 03:10:02 +04:00
# - CREATE, when the VM is created (onevm create)
2009-04-10 03:31:41 +04:00
# - RUNNING, after the VM is successfully booted
# - SHUTDOWN, after the VM is shutdown
# - STOP, after the VM is stopped (including VM image transfers)
2009-10-28 23:12:53 +03:00
# - DONE, after the VM is deleted or shutdown
2009-04-05 03:10:02 +04:00
# command : use absolute path here
# arguments : for the hook. You can access to VM template variables with $
2009-10-28 23:12:53 +03:00
# - $ATTR, the value of an attribute e.g. $NAME or $VMID
2009-04-05 03:10:02 +04:00
# - $ATTR[VAR], the value of a vector e.g. $NIC[MAC]
2009-04-10 03:31:41 +04:00
# - $ATTR[VAR, COND], same of previous but COND select between
2009-04-05 03:10:02 +04:00
# multiple ATTRs e.g. $NIC[MAC, NETWORK="Public"]
2009-04-10 03:31:41 +04:00
# remote : values,
# - YES, The hook is executed in the host where the VM was
# allocated
# - NO, The hook is executed in the OpenNebula server (default)
2009-04-04 03:34:33 +04:00
#-------------------------------------------------------------------------------
HM_MAD = [
executable = "one_hm" ]
2009-04-10 03:31:41 +04:00
#-------------------------------- Hook Examples --------------------------------
2009-04-05 03:10:02 +04:00
#VM_HOOK = [
# name = "dhcp",
# on = "create",
# command = "/bin/echo",
2009-10-28 23:12:53 +03:00
# arguments = "$NAME > /tmp/test.$VMID" ]
2009-04-05 03:10:02 +04:00
#-------------------------------------------------------------------------------
2009-04-10 03:31:41 +04:00
#VM_HOOK = [
# name = "ebtables",
# on = "running",
# command = "/usr/local/one/bin/set_net",
# arguments = '$NIC[MAC, Network = "Private"]',
# remote = "yes" ]
#-------------------------------------------------------------------------------
#VM_HOOK = [
# name = "mail",
# on = "running",
# command = "/usr/local/one/bin/send_mail",
2009-10-28 23:12:53 +03:00
# arguments = "$VMID $NAME",
2009-04-10 03:31:41 +04:00
# remote = "no" ]
#------------------------------------------------------------------------------