LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 06-03-2011, 07:40 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
openvz node with only one vps

I have an openvz server with 2Gb ram and would like to configure a vps for use all server resources (no swap).

I run:

vzsplit -n 1 -f vps1 -s 0

and have this setup:

Configuration file generated by vzsplit for 1 containers
on HN with total amount of physical mem 1998 Mb
low memory 1998 Mb, swap size 0 Mb, Max treads 8000
Resourse commit level 0:
Free resource distribution. Any parameters may be
Primary parameters


Secondary parameters


Auxiliary parameters


When I start a new vps with this setup the vps run out of memory.

The "free" command show only 1.2 Gb ram available,

Are this setup the optimal for my vps ?

Are the memory parameters correct ?

I suspect that vzsplit is generating bad memory settings for my vps.

Thanks in advance.

Old 06-03-2011, 12:52 PM   #2
Senior Member
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 1,160

Rep: Reputation: 299Reputation: 299Reputation: 299

What template or OS did you use to populate this virtual? What is it running?
Old 06-03-2011, 05:06 PM   #3
LQ Newbie
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled

It's a Centos 5.6 template.

Old 06-06-2011, 11:10 AM   #4
Senior Member
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 1,160

Rep: Reputation: 299Reputation: 299Reputation: 299

1. Are youo using the most recent version of OVZ and the utilities?

2. I have never used '-n 1' with vzsplit. I recommend using '-n 2' for this instance to leave enough resource for the HOST to run properly. Remember, if the host has problems EVERY guest has problems!

3. I would not worry about swap. As long as swap is set up well on the host, the default settings for the guest work better (for most things) than any way you are going to manipulate them.

4. WHERE are you getting the OOM error? Is it from the guest, or from the host?

I have taken a blade with 512 Mb ram and 80Gig of hard space and made it an OpenVZ host with three guests (no X-windows, running web servers managed via web and command-line only) without errors. Your machine should not be underpowered for this unless you are running something big and nasty.

After you create your new split config, but before you create the guest, check your new file against the sample. You want to do a sanity check against the values, and make sure that none are missing in your new file. Vzsplit is a tool, not a solution: it has no way to read your mind or determine your preferences.

The OpenVZ site has forums and how-to documents (some WIKI style) that you can use as a resource for advice about values that you think may be wrong or misleading. Asking for help there may get the attention of the developers, who have the most recent data and advice.

Alas: I have NOT tried making a CentOS guest at version 5.6 using that template, so I have no test data to relate. I hope someone who does will chime it here.........

Last edited by wpeckham; 06-06-2011 at 11:12 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] URGENT::Unable to open pty: Permission denied while trying to login to vps node dontob Linux - Newbie 2 03-08-2011 06:14 AM
OpenVZ and Slackware running on vps astanton Slackware 1 03-08-2011 03:08 AM
VPS Host Node Security tuftystick Linux - Security 12 01-23-2009 05:24 AM
vps node locks up? I_AM Linux - Networking 1 10-09-2008 02:35 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 11:00 AM

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration