Advanced Configuration
From SolusVM
The new advanced.conf was introduced in version 1.2.07. This config allows you to control certain parts of the master and slaves. The advanced.conf is located in /usr/local/solusvm/data/ on both the master and slave.
Contents |
Variables
General
Hard Drive
HDD=""
This setting allows you to define a comma seperated array of disks or partitions for RRDtool graphing.
example:
HDD="sda,sdb,sdc"
Interface
INTERFACE=""
This setting allows you to define the public network interface of your server and is used for RRDtool and bandwidth throttling.
example:
INTERFACE="eth1"
Xen Specific
Xen Memory Check Offsets
This setting allows you to define an offset for the free memory check used in the xen creation process. Because of the way xen allocates memory, it can sometimes report a slightly out of sync result due to a limitation in Xen itself. You should only need to set these up once, and you only need to define them on your master advanced.conf.
XENMEMORYOFFSETMINUS_<NODEID>="" XENMEMORYOFFSETPLUS_<NODEID>=""
example:
XENMEMORYOFFSETMINUS_1="104857600" // minus 100MB of ram from the total
Please note, you don't have to use both settings but you MUST specify the amount in Bytes only!
Xen Reserved Logical Volume Group
This setting allows you to reserve part of your logical volume group.
XENLVMRESERVED_<NODEID>=""
example:
XENLVMRESERVED_1="53687091200" // This will reserve 50GB of space
Please note, you MUST specify the amount in Bytes only!
Xen PV Bridge
XENPVBRIDGE=""
This setting allows you to define the default bridge used by your xen pv virtual servers.
example:
XENPVBRIDGE="xenbr1"
Xen HVM Bridge
XENHVMBRIDGE=""
This setting allows you to define the default bridge used by your xen hvm virtual servers.
example:
XENHVMBRIDGE="xenbr1"
Xen PV Custom Kernel per Template
XENPVOS_template.tar.gz="Kernel|Ramdisk|Modules|Device"
This setting allows you to define a custom kernel on a per template basis.
You only need to configure these settings in the advanced.conf on your master server.
Please note the following locations:
Kernel must be in /boot on the host node.
Ramdisk must be in /boot on the host node. If the kernel does not require a ramdisk you can enter - (minus symbol) in it's place.
Modules must be kernel modules folder in /lib/modules on the host node.
Device should be defined as sda or xvda, the partition numbers will be added automatically.
example:
XENPVOS_centos-5.2-i386.tar.gz="vmlinuz-2.6.31.6|initrd-2.6.31.6.img|2.6.31.6|xvda"
Logging
RRD Stats
This setting will allow you to log any RRDtool errors. This only needs to be set on the master.
LOGSTATS="1"
Log location /usr/local/solusvm/log/stats.log
