Statistics
| Branch: | Tag: | Revision:

one / share / etc / oned.conf @ 4f4b8ab4

History | View | Annotate | Download (19.1 KB)

1
#*******************************************************************************
2
#                       OpenNebula Configuration file
3
#*******************************************************************************
4

    
5
#*******************************************************************************
6
# Daemon configuration attributes
7
#-------------------------------------------------------------------------------
8
#  MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions.
9
#  HOST_MONITORING_INTERVAL and VM_POLLING_INTERVAL can not have smaller values
10
#  than MANAGER_TIMER.
11
#
12
#  HOST_MONITORING_INTERVAL: Time in seconds between host monitorization.
13
#
14
#  VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization.
15
#  (use 0 to disable VM monitoring).
16
#
17
#  VM_DIR: Remote path to store the VM images, it should be shared between all
18
#  the cluster nodes to perform live migrations. This variable is the default
19
#  for all the hosts in the cluster. VM_DIR IS ONLY FOR THE NODES AND *NOT* THE 
20
#  FRONT-END
21
#
22
#  SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
23
#  scripts.
24
#
25
#  PORT: Port where oned will listen for xmlrpc calls.
26
#
27
#  DB: Configuration attributes for the database backend
28
#   backend : can be sqlite or mysql (default is sqlite)
29
#   server  : (mysql) host name or an IP address for the MySQL server
30
#   port    : (mysql) port for the connection to the server.
31
#                     If set to 0, the default port is used.
32
#   user    : (mysql) user's MySQL login ID
33
#   passwd  : (mysql) the password for user
34
#   db_name : (mysql) the database name
35
#
36
#  VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
37
#  VMID
38
#
39
#  DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
40
#*******************************************************************************
41

    
42
#MANAGER_TIMER=30
43

    
44
HOST_MONITORING_INTERVAL = 600
45

    
46
VM_POLLING_INTERVAL      = 600
47

    
48
#VM_DIR=/srv/cloud/one/var
49

    
50
SCRIPTS_REMOTE_DIR=/var/tmp/one
51

    
52
PORT=2633
53

    
54
DB = [ backend = "sqlite" ]
55

    
56
# Sample configuration for MySQL
57
# DB = [ backend = "mysql",
58
#        server  = "localhost",
59
#        port    = 0,
60
#        user    = "oneadmin",
61
#        passwd  = "oneadmin",
62
#        db_name = "opennebula" ]
63

    
64
VNC_BASE_PORT = 5900
65

    
66
DEBUG_LEVEL=3
67

    
68
#*******************************************************************************
69
# Physical Networks configuration
70
#*******************************************************************************
71
#  NETWORK_SIZE: Here you can define the default size for the virtual networks
72
#
73
#  MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
74
#  addresses is defined here (this can be overrided by the Virtual Network
75
#  template)
76
#*******************************************************************************
77

    
78
NETWORK_SIZE = 254
79

    
80
MAC_PREFIX   = "02:00"
81

    
82
#*******************************************************************************
83
# Image Repository Configuration
84
#*******************************************************************************
85
#  DEFAULT_IMAGE_TYPE: This can take values
86
#       OS        Image file holding an operating system
87
#       CDROM     Image file holding a CDROM
88
#       DATABLOCK Image file holding a datablock,
89
#                 always created as an empty block
90
#  DEFAULT_DEVICE_PREFIX: This can be set to
91
#       hd        IDE prefix
92
#       sd        SCSI
93
#       xvd       XEN Virtual Disk
94
#       vd        KVM virtual disk
95
#*******************************************************************************
96
DEFAULT_IMAGE_TYPE    = "OS"
97
DEFAULT_DEVICE_PREFIX = "hd"
98

    
99
#*******************************************************************************
100
# Information Driver Configuration
101
#*******************************************************************************
102
# You can add more information managers with different configurations but make
103
# sure it has different names.
104
#
105
#   name      : name for this information manager
106
#
107
#   executable: path of the information driver executable, can be an
108
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
109
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
110
#
111
#   arguments : for the driver executable, usually a probe configuration file,
112
#               can be an absolute path or relative to $ONE_LOCATION/etc (or
113
#               /etc/one/ if OpenNebula was installed in /)
114
#*******************************************************************************
115

    
116
#-------------------------------------------------------------------------------
117
#  KVM Information Driver Manager Configuration
118
#    -r number of retries when monitoring a host
119
#    -t number of threads, i.e. number of hosts monitored at the same time
120
#-------------------------------------------------------------------------------
121
IM_MAD = [
122
      name       = "im_kvm",
123
      executable = "one_im_ssh",
124
      arguments  = "-r 0 -t 15 kvm" ]
125
#-------------------------------------------------------------------------------
126

    
127
#-------------------------------------------------------------------------------
128
#  XEN Information Driver Manager Configuration
129
#    -r number of retries when monitoring a host
130
#    -t number of threads, i.e. number of hosts monitored at the same time
131
#-------------------------------------------------------------------------------
132
#IM_MAD = [
133
#    name       = "im_xen",
134
#    executable = "one_im_ssh",
135
#    arguments  = "xen" ]
136
#-------------------------------------------------------------------------------
137

    
138
#-------------------------------------------------------------------------------
139
#  EC2 Information Driver Manager Configuration
140
#-------------------------------------------------------------------------------
141
#IM_MAD = [
142
#      name       = "im_ec2",
143
#      executable = "one_im_ec2",
144
#      arguments  = "im_ec2/im_ec2.conf" ]
145
#-------------------------------------------------------------------------------
146

    
147
#-----------------------------------------------------------------------------
148
#  Ganglia Information Driver Manager Configuration
149
#-----------------------------------------------------------------------------
150
#IM_MAD = [
151
#      name       = "im_ganglia",
152
#      executable = "one_im_sh",
153
#      arguments  = "ganglia" ]
154
#-----------------------------------------------------------------------------
155

    
156
#-------------------------------------------------------------------------------
157
#  Dummy Information Driver Manager Configuration
158
#-------------------------------------------------------------------------------
159
#IM_MAD = [ name="im_dummy", executable="one_im_dummy"]
160
#-------------------------------------------------------------------------------
161

    
162
#*******************************************************************************
163
# Virtualization Driver Configuration
164
#*******************************************************************************
165
# You can add more virtualization managers with different configurations but
166
# make sure it has different names.
167
#
168
#   name      : name of the virtual machine manager driver
169
#
170
#   executable: path of the virtualization driver executable, can be an
171
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
172
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
173
#
174
#   arguments : for the driver executable
175
#
176
#   default   : default values and configuration parameters for the driver, can
177
#               be an absolute path or relative to $ONE_LOCATION/etc (or
178
#               /etc/one/ if OpenNebula was installed in /)
179
#
180
#   type      : driver type, supported drivers: xen, kvm, xml
181
#*******************************************************************************
182

    
183
#-------------------------------------------------------------------------------
184
#  KVM Virtualization Driver Manager Configuration
185
#    -r number of retries when monitoring a host
186
#    -t number of threads, i.e. number of hosts monitored at the same time
187
#    -p name of the poll probe (executed locally)
188
#-------------------------------------------------------------------------------
189
VM_MAD = [
190
    name       = "vmm_kvm",
191
    executable = "one_vmm_ssh",
192
    arguments  = "-t 15 -r 0 kvm",
193
    default    = "vmm_ssh/vmm_ssh_kvm.conf",
194
    type       = "kvm" ]
195
#-------------------------------------------------------------------------------
196

    
197
#-------------------------------------------------------------------------------
198
#  XEN Virtualization Driver Manager Configuration
199
#    -r number of retries when monitoring a host
200
#    -t number of threads, i.e. number of hosts monitored at the same time
201
#    -l do not perform the VM polling in the node
202
#    -p name of the poll probe (executed locally)
203
#-------------------------------------------------------------------------------
204
#VM_MAD = [
205
#    name       = "vmm_xen",
206
#    executable = "one_vmm_ssh",
207
#    arguments  = "xen",
208
#    default    = "vmm_ssh/vmm_ssh_xen.conf",
209
#    type       = "xen" ]
210
#-------------------------------------------------------------------------------
211

    
212
#-------------------------------------------------------------------------------
213
#  EC2 Virtualization Driver Manager Configuration
214
#    arguments: default values for the EC2 driver, can be an absolute path or
215
#               relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
216
#               installed in /).
217
#-------------------------------------------------------------------------------
218
#VM_MAD = [
219
#    name       = "vmm_ec2",
220
#    executable = "one_vmm_ec2",
221
#    arguments  = "vmm_ec2/vmm_ec2.conf",
222
#    type       = "xml" ]
223
#-------------------------------------------------------------------------------
224

    
225
#-------------------------------------------------------------------------------
226
#  Dummy Virtualization Driver Configuration
227
#-------------------------------------------------------------------------------
228
#VM_MAD = [ name="vmm_dummy", executable="one_vmm_dummy", type="xml" ]
229
#-------------------------------------------------------------------------------
230

    
231
#*******************************************************************************
232
# Transfer Manager Driver Configuration
233
#*******************************************************************************
234
# You can add more transfer managers with different configurations but make
235
# sure it has different names.
236
#   name      : name for this transfer driver
237
#
238
#   executable: path of the transfer driver executable, can be an
239
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
240
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
241
#
242
#   arguments : for the driver executable, usually a commands configuration file
243
#               , can be an absolute path or relative to $ONE_LOCATION/etc (or
244
#               /etc/one/ if OpenNebula was installed in /)
245
#*******************************************************************************
246

    
247
#-------------------------------------------------------------------------------
248
# NFS Transfer Manager Driver Configuration
249
#-------------------------------------------------------------------------------
250
TM_MAD = [
251
    name       = "tm_nfs",
252
    executable = "one_tm",
253
    arguments  = "tm_nfs/tm_nfs.conf" ]
254
#-------------------------------------------------------------------------------
255

    
256
#-------------------------------------------------------------------------------
257
# SSH Transfer Manager Driver Configuration
258
#-------------------------------------------------------------------------------
259
#TM_MAD = [
260
#    name       = "tm_ssh",
261
#    executable = "one_tm",
262
#    arguments  = "tm_ssh/tm_ssh.conf" ]
263
#-------------------------------------------------------------------------------
264

    
265
#-------------------------------------------------------------------------------
266
# Dummy Transfer Manager Driver Configuration
267
#-------------------------------------------------------------------------------
268
#TM_MAD = [
269
#    name       = "tm_dummy",
270
#    executable = "one_tm",
271
#    arguments  = "tm_dummy/tm_dummy.conf" ]
272
#-------------------------------------------------------------------------------
273

    
274
#-------------------------------------------------------------------------------
275
# LVM Transfer Manager Driver Configuration
276
#-------------------------------------------------------------------------------
277
#TM_MAD = [
278
#    name       = "tm_lvm",
279
#    executable = "one_tm",
280
#    arguments  = "tm_lvm/tm_lvm.conf" ]
281
#-------------------------------------------------------------------------------
282

    
283
#*******************************************************************************
284
# Image Manager Driver Configuration
285
#*******************************************************************************
286
# Drivers to manage the image repository, specialized for the storage backend
287
#   executable: path of the transfer driver executable, can be an
288
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
289
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
290
#
291
#   arguments : for the driver executable
292
#*******************************************************************************
293
#-------------------------------------------------------------------------------
294
# FS based Image Manager Driver Configuration
295
#    -t number of threads, i.e. number of repo operations at the same time
296
#-------------------------------------------------------------------------------
297
IMAGE_MAD = [
298
    executable = "one_image",
299
    arguments  = "fs -t 15" ]
300
#-------------------------------------------------------------------------------
301

    
302
#*******************************************************************************
303
# Hook Manager Configuration
304
#*******************************************************************************
305
# The Driver (HM_MAD), used to execute the Hooks
306
#   executable: path of the hook driver executable, can be an
307
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
308
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
309
#
310
#   arguments : for the driver executable, can be an absolute path or relative
311
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
312
#               in /)
313
#
314
# Virtual Machine Hooks (VM_HOOK) defined by:
315
#   name      : for the hook, useful to track the hook (OPTIONAL)
316
#   on        : when the hook should be executed,
317
#               - CREATE, when the VM is created (onevm create)
318
#               - RUNNING, after the VM is successfully booted
319
#               - SHUTDOWN, after the VM is shutdown
320
#               - STOP, after the VM is stopped (including VM image transfers)
321
#               - DONE, after the VM is deleted or shutdown
322
#               - FAILED, when the VM enters the failed state
323
#   command   : path can be absolute or relative to $ONE_LOCATION/share/hooks
324
#               case of self-contained installation or relative to
325
#               /usr/share/one/hooks in case of system-wide installation
326
#   arguments : for the hook. You can access to VM information with $
327
#               - $VMID, the ID of the virtual machine
328
#               - $TEMPLATE, the VM template in xml and base64 encoded
329
#   remote    : values,
330
#               - YES, The hook is executed in the host where the VM was
331
#                 allocated
332
#               - NO, The hook is executed in the OpenNebula server (default)
333
#
334
#
335
# Host Hooks (HOST_HOOK) defined by:
336
#   name      : for the hook, useful to track the hook (OPTIONAL)
337
#   on        : when the hook should be executed,
338
#               - CREATE, when the Host is created (onehost create)
339
#               - ERROR, when the Host enters the error state
340
#               - DISABLE, when the Host is disabled
341
#   command   : path can be absolute or relative to $ONE_LOCATION/share/hooks
342
#               case of self-contained installation or relative to
343
#               /usr/share/one/hooks in case of system-wide installation
344
#   arguments : for the hook. You can use the following Host information:
345
#               - $HID, the ID of the host
346
#               - $TEMPLATE, the Host template in xml and base64 encoded
347
#   remote    : values,
348
#               - YES, The hook is executed in the host
349
#               - NO, The hook is executed in the OpenNebula server (default)
350
#-------------------------------------------------------------------------------
351

    
352
HM_MAD = [
353
    executable = "one_hm" ]
354

    
355
#-------------------------------------------------------------------------------
356

    
357
#------------------------------ Fault Tolerance Hooks --------------------------
358
# This hook is used to perform recovery actions when a host fails. The VMs
359
# running in the host can be deleted (use -d option) or resubmitted (-r) in
360
# other host
361
# Last argument (force) can be "y", so suspended VMs in the host will be 
362
# resubmitted/deleted, or "n", so suspended VMs in the host will be ignored
363
#
364
#HOST_HOOK = [
365
#    name      = "error",
366
#    on        = "ERROR",
367
#    command   = "host_error.rb",
368
#    arguments = "$HID -r n",
369
#    remote    = "no" ]
370
#-------------------------------------------------------------------------------
371
# This two hooks can be used to automatically delete or resubmit VMs that reach
372
# the "failed" state. This way, the administrator doesn't have to interact
373
# manually to release its resources or retry the deployment.
374
#
375
# Only one of them should be uncommented.
376
#-------------------------------------------------------------------------------
377
#
378
#VM_HOOK = [
379
#   name      = "on_failure_delete",
380
#   on        = "FAILED",
381
#   command   = "/usr/bin/env onevm delete",
382
#   arguments = "$VMID" ]
383
#
384
#VM_HOOK = [
385
#   name      = "on_failure_resubmit",
386
#   on        = "FAILED",
387
#   command   = "/usr/bin/env onevm resubmit",
388
#   arguments = "$VMID" ]
389
#-------------------------------------------------------------------------------
390

    
391
#-------------------------------- ebtables Hook---------------------------------
392
# You can use these two hooks to isolate networks at the ethernet level so the
393
# traffic generated in different virtual networks can not be seen in others.
394
#
395
# All the network configuration will be done in the cluster nodes, these are the
396
# additional requisites:
397
#  - ebtables package installed
398
#  - sudoers configured so oneadmin can execute ebtables without password
399
#
400
# NOTE: Change the first command for ebtables-xen if you are using Xen
401
#
402
#VM_HOOK = [
403
#    name      = "ebtables-start",
404
#    on        = "running",
405
#    command   = "ebtables-kvm", # or ebtables-xen 
406
#    arguments = "one-$VMID",
407
#    remote    = "yes" ]
408
#
409
#VM_HOOK = [
410
#    name      = "ebtables-flush",
411
#    on        = "done",
412
#    command   = "ebtables-flush",
413
#    arguments = "",
414
#    remote    = "yes" ]
415
#-------------------------------------------------------------------------------
416

    
417
#*******************************************************************************
418
# Auth Manager Configuration
419
#*******************************************************************************
420
# The Driver (AUTHM_MAD) that will be used to authenticate and authorize
421
# OpenNebula requests. If not defined OpenNebula will use the built-in auth
422
# policies
423
#   executable: path of the auth driver executable, can be an
424
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
425
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
426
#
427
#   arguments : for the driver executable, can be an absolute path or relative
428
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
429
#               in /)
430
#-------------------------------------------------------------------------------
431

    
432
#AUTH_MAD = [
433
#    executable = "one_auth_mad" ]