eole-one-master/tmpl/vmm_exec_kvm.conf

47 lines
2.0 KiB
Plaintext
Raw Normal View History

# -------------------------------------------------------------------------- #
# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
# Default configuration attributes for the KVM driver
# (all domains will use these values as defaults). These values can
# be overridden in each VM template. Valid atributes are:
# - emulator
# - os [kernel,initrd,boot,root,kernel_cmd,arch]
# - vcpu
# - features [acpi, pae]
# - disk [driver, cache, io]
# - nic [filter, model]
# - raw
#EMULATOR = /usr/libexec/qemu-kvm
#VCPU = 1
OS = [ boot = "hd", arch = "x86_64" ]
FEATURES = [ PAE = "no", ACPI = "yes" ]
NIC = [ model = "virtio" ]
%if %%getVar('activer_onesinglenode','non') == 'oui'
%if %%getVar('one_disk_cache','non') == 'oui'
DISK = [ driver = "qcow2" , cache = "writeback", DEV_PREFIX="vd" ]
%else
DISK = [ driver = "qcow2" , cache = "none", DEV_PREFIX="vd" ]
%end if
%if %%getVar('one_video_driver', False)
RAW = "<devices><video><model type='%%one_video_driver' heads='1'/></video></devices>"
%end if
%end if