Setting up a new VM [message #15950] |
Thu, 16 August 2007 18:09  |
tutt
Messages: 19 Registered: April 2007
|
Junior Member |
|
|
I want to setup a new VM on a host node that has a full cPanel install on it and all the partitions are already setup. The VPS is going to have cPanel as well.
I have one big / partition and quotas are turned on. Is there a way for me to create a /vz partition as a file and use quotas on both? Otherwise, what can I do?
I have been setting up the vz like so:
vzctl create 123 --ostemplate centos-4-i386-minimal
vzctl set --ipadd 66.xx.xxx.186 --hostname xxxxxx.co.za
vzctl set 123 --onboot yes --save
vzctl set 123 --vmguarpages 65536 --save
vzctl set 123 --privvmpages 262144 --save
vzctl set 123 --kmemsize 12752512:12752512 --save
vzctl set 123 --diskspace 4000000000:4500000000 --save
The disk space parameter doesn't seem to have any effect. The VM always shows 100GB+ free. Also, I cannot install cPanel successfully. It whines about "Cannot Fork" and "Memory Allocation Failed". I have supplied plenty of kernel memory and RAM to the VM. What are your recommended settings for creating a small VPS (I want it to have 5GB of disk space actually) with 512MB of RAM that can support cPanel and be reliable?
|
|
|
|
|
|
|
|
Re: Setting up a new VM [message #16059 is a reply to message #16055] |
Mon, 20 August 2007 17:33   |
locutius
Messages: 125 Registered: August 2007
|
Senior Member |
|
|
OpenVZ will sit nicely on a HN with cPanel, no conflicts
but cPanel is a graphical web-based web-hosting control panel designed to make administration of websites easy, not a panel for controlling a VPS
you can always install cPanel into the VE like it is a real server
EDIT: your memory issues were all to do with the conservative settings in the VE default, apparently the authors of OpenVZ use their VPS for playing pong (black and white only) and think 24MB RAM is plenty
[Updated on: Mon, 20 August 2007 17:36] Report message to a moderator
|
|
|
|
Re: Setting up a new VM [message #16063 is a reply to message #16060] |
Mon, 20 August 2007 18:20   |
locutius
Messages: 125 Registered: August 2007
|
Senior Member |
|
|
no. i am saying the converse
cPanel will work correctly within an OpenVZ node
OpenVZ is a kernel. you replace your current kernel with the OpenVZ kernel then run whatever services you wish, without exception, as if you were operating the original non-VZ kernel. what you have gained is the capability to host VZ VPS. what you have lost is nothing
clever huh?
[Updated on: Mon, 20 August 2007 18:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Setting up a new VM [message #16084 is a reply to message #16081] |
Mon, 20 August 2007 21:48  |
locutius
Messages: 125 Registered: August 2007
|
Senior Member |
|
|
that sux (if it is right)
so best config is 2 x VPS
VPS101 = very large VE representing the HN
VPS102 = the other VE
run cPanel and the webhosting from VPS101
|
|
|