mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
feature #1112: Configuration parameters for the System Datastore
This commit is contained in:
parent
dacef3d104
commit
2d31a94115
@ -84,8 +84,15 @@ NETWORK_SIZE = 254
|
||||
MAC_PREFIX = "02:00"
|
||||
|
||||
#*******************************************************************************
|
||||
# Image Repository Configuration
|
||||
# DataStore Configuration
|
||||
#*******************************************************************************
|
||||
# SYSTEM_DS
|
||||
# base_path : Base path for the system datastore. The system datastore
|
||||
# keeps the images (or reference to) of running or stopped VMs.
|
||||
# The images are stored in the form base_path/<vm_id>.
|
||||
# type : SSH: non shared, will limit live_migration
|
||||
# SHARED: needs to be exported and mounted in the hosts
|
||||
#
|
||||
# DEFAULT_IMAGE_TYPE: This can take values
|
||||
# OS Image file holding an operating system
|
||||
# CDROM Image file holding a CDROM
|
||||
@ -97,6 +104,12 @@ MAC_PREFIX = "02:00"
|
||||
# xvd XEN Virtual Disk
|
||||
# vd KVM virtual disk
|
||||
#*******************************************************************************
|
||||
|
||||
SYSTEM_DS = [
|
||||
base_path = "/var/lib/one/system_ds",
|
||||
type = "shared"
|
||||
]
|
||||
|
||||
DEFAULT_IMAGE_TYPE = "OS"
|
||||
DEFAULT_DEVICE_PREFIX = "hd"
|
||||
|
||||
|
@ -186,6 +186,14 @@ void OpenNebulaTemplate::set_conf_default()
|
||||
# DEFAULT_DEVICE_PREFIX
|
||||
#*******************************************************************************
|
||||
*/
|
||||
//SYSTEM_DS
|
||||
vvalue.clear();
|
||||
vvalue.insert(make_pair("BASE_PATH","/var/lib/one/system_ds"));
|
||||
vvalue.insert(make_pair("TYPE","shared"));
|
||||
|
||||
vattribute = new VectorAttribute("SYSTEM_DS",vvalue);
|
||||
conf_default.insert(make_pair(attribute->name(),vattribute));
|
||||
|
||||
//DEFAULT_IMAGE_TYPE
|
||||
value = "OS";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user