OpenVZ
From dghartung.com/docs
Contents |
TOC
Install
yum install vzctl vzquota vzpkg vzyum vzrpm43-python \ vzrpm44-python vztmpl-fedora-core-4 vztmpl-fedora-core-5
Calculate VMGUARPAGES
Decide how much total RAM (in MB) you need for your vps, call this "M"
Decide how much physical RAM (in MB) you are willing to give the vps, call this "K"
Use the following formula to calculate your VMGUARPAGES
V = VMGUARPAGES to enter into you {VEID}.conf file
V = ((((K * 2^20)/1024)-(M * 1024))/-4)
vmguarpages
I took the total of the amount of RAM and SWAP I wanted to designate and added them together 112mb RAM + 200mb SWAP = 312mb TOTAL
"pages" settings are in 4kb increments, my total vmguarpages is 312,000kb so divide by 4 and get 78125
312,000kb / 4 = 78125
VMGUARPAGES="6144:78125"
privvvmpages
This setting should less than the vmguarpages setting, following the above example :
Kernel Build
Most of the content here is taken from this site : http://www.howtoforge.com/kernel_compilation_fedora
yum install fedora-rpmdevtools unifdef qt qt-devel cd ~ mkdir rpmbuild echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros fedora-buildrpmtree
