{"id":6812,"date":"2014-04-23T08:08:40","date_gmt":"2014-04-23T08:08:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-openvz-collection-of-common-programming-errors\/"},"modified":"2014-04-23T08:08:40","modified_gmt":"2014-04-23T08:08:40","slug":"problem-about-openvz-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-openvz-collection-of-common-programming-errors\/","title":{"rendered":"problem about openvz-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/688e2bfc7e90c68f67d07406c26e7543?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndanlefree<br \/>\nlinux vps openvz<br \/>\nBeen trying to install OpenVPN on a VPS but come into a few problems when trying to start the openvpn server:Service deferred error: IPTablesServiceBase: failed to run iptables-restore [status=1]: [&#8216;FATAL: Could not load \/lib\/modules\/2.6.18-028stab070.14\/modules.dep: No such file or directory&#8217;, &#8216;FATAL: Could not load \/lib\/modules\/2.6.18-028stab070.14\/modules.dep: No such file or directory&#8217;, &#8216;iptables-restore: line 46 failed&#8217;]: internet\/base:1175,internet\/base:752,internet\/process:45,internet\/pro<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b9d81c68cc6f5a87f29225767be1ef2d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1710563<br \/>\ncentos vps java openvz<br \/>\nPossible Duplicate:Linux out of memory on VPS I have a OpenVZ VPS running CentOS 6.3 64 bit and when I try to install JRE 7 64bit using the command:rpm -Uvh java.rpmIt gives me this error:Preparing&#8230; ########################################### [100%]1:jre ########################################### [100%] Unpacking JAR files&#8230;rt.jar&#8230; Error: Could not open input file: \/usr\/java\/jre1.7.0_09\/lib\/rt.packjsse.jar&#8230; Error: Could not open input file: \/usr\/java\/j<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/303ee8d24a8776dcf67b30c1d4e8b064?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njanneb<br \/>\nlinux iptables openvz ubuntu-9.10 kernel-modules<br \/>\nAfter an unsuccessful p2v migration of my Ubuntu server to an OpenVZ container which I am stack with I thought I would give a try to a reinstall based on a clean OpenVZ template for Ubuntu 9.10 (from the OpenVZ wiki)When I try to load my iptables rules on the VM machine I&#8217;ve been getting errors which I believe are related to kernel modules not being loaded on the VM from the \/vz\/XXX.conf template model.I&#8217;ve been testing with a few post I&#8217;ve found but I was stack with the error:WARNING: Deprecate<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2db1a2fa5de52ef7e4c13589588cf0a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRob Jinman<br \/>\njava tomcat ubuntu openvz<br \/>\nIt&#8217;s well known that Java and OpenVZ don&#8217;t get along well due to the way memory is managed in OpenVZ &#8212; the Java runtime reserves more memory than there is available, or something. This is typically solved by setting a maximum heap size, like so: export _JAVA_OPTIONS=&#8221;-Xmx128m&#8221;I have two OpenVZ VPSs with the same company; one is based in the USA, and the other in Germany. The American one is running Ubuntu 11 and Tomcat, and the usual fix works perfectly well &#8212; without it though, Tomcat will oc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dbc0213274e77756df9b0871cbf6f5c8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStephen Searles<br \/>\nubuntu java apt openvz<br \/>\nI&#8217;m constantly encountering an error related to Java and certificates on my Ubuntu server running in OpenVZ when installing things from apt-get. I&#8217;m pretty sure it has to do with how Java allocates memory. I know the fail counter for privvmpages is very high, so the problem must be that Java is hitting this limit.I have read that the server VM will allocate a lot of memory up front to preempt performance issues, but that the client VM doesn&#8217;t do this and might be better for what I&#8217;m doing. I mes<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6fe445ade58d0845ab308e7b198bda05?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncoldice4<br \/>\nubuntu mysql debian openvz<br \/>\nI have a OpenVZ Server with 4GB RAM and have tried to install MySQL on several distros (Ubuntu 12.04 64Bit, Ubuntu 12.10 64Bit, Debian 7 64Bit) and I always get the same errors:130718 6:57:27 [Note] Plugin &#8216;FEDERATED&#8217; is disabled. 130718 6:57:27 InnoDB: The InnoDB memory heap is disabled 130718 6:57:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins 130718 6:57:27 InnoDB: Compressed tables use zlib 1.2.7 130718 6:57:27 InnoDB: Using Linux native AIO 130718 6:57:27 InnoDB: Warning: io<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f29c52b473cdb62bd8e8102f75fd0620?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOliver Joseph Ash<br \/>\ncentos vpn openvz pptp<br \/>\nI am trying to get PPTP installation up and running on my VPS. I have followed various guides, however, I am unable to connect to the VPN once it&#8217;s setup.I checked my VPS&#8217; \/var\/log\/messages and I found this:1832 Dec 2 23:38:55 server9987 pptpd[1470]: CTRL: Client 86.8.79.197 control connection started 1833 Dec 2 23:38:55 server9987 pptpd[1470]: CTRL: Starting call (launching pppd, opening GRE) 1834 Dec 2 23:38:55 server9987 pppd[1471]: Plugin \/usr\/lib\/pptpd\/pptpd-logwtmp.so loaded. 1835 Dec<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4b7e8a3c6104cebef96f884625fba65a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAleksandr Levchuk<br \/>\nlinux virtualization performance xen openvz<br \/>\nThere is a Xen vs. KVM in performance question on ServerFault.What will be the speed difference if the choice is between Xen and OpenVZ?Searching for such benchmarks does not show any results newer than 2008.What would be some important performance measurements to compare OpenVZ against Xen?Some may say &#8220;you&#8217;re comparing oranges and pineapples&#8221; but I have to choose 1 of the 2 and it needs to be a wise choice. Performance is most important to us. We may switch away from OpenVZ because Xen is more<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/05f0988fdea73df0c8c31eb14ea64641?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMike S.<br \/>\nlinux debian vps java openvz<br \/>\nFor a school project, I&#8217;ve registered a free VPS on a hosting provider (pipni.cz). It has 256MB RAM:Mem: 262144k total, 148104k used, 114040k free, 0k buffersIt&#8217;s running on Debian Squeeze.I always get this error when I run a Java program:Error occurred during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine.I tried to use Xms, Xmx, Xss with low values and still same result. ulimit -v gives me &#8220;unlimited&#8221;.My application wil<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ca8e21ae6937e987468d61a4e1784879?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmiHost<br \/>\napache2 django openvz<br \/>\nIn Ubuntu (and Debian, and other distro) there is a few Apache packages (mpm-event, mpm-prefork, mpm-worker). Which is the most suitable for hosting Django mod_wsgi application on single CPU server? Which package is best choice for OpenVZ container?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/76e59746c03e64deff4d85f71d3e1afc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nquanta<br \/>\nlinux root openvz privileges vim<br \/>\nSince pty is limited, I want to modify the content of \/proc\/sys\/kernel\/pty\/max. The original value in max is 4096, and now I want to modify it to 10000.[root@home pty]# pwd \/proc\/sys\/kernel\/pty [root@home pty]# ls -lh total 0 -rw-r&#8211;r&#8211; 1 root root 0 Aug 13 11:24 max -r&#8211;r&#8211;r&#8211; 1 root root 0 Aug 13 11:24 nr vim maxI edit the max file directly, using root, but it fails. I use :w! in vim, but then I see the following picture:so I tried to chmod max first, but that also failed:[root@home pty]# chmo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9503dcaf4671f85821bf7fc36897e16b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfreedrull<br \/>\nmemory virtualization openvz<br \/>\nWe&#8217;re having a lot of memory problems on a new OpenVZ box. It is supposed to have 1 gig of memory, I&#8217;m not sure how much of that is burstable or guaranteed memory. Programs in general seem to take up more virtual memory than they do on my box at home, and on our other OpenVZ box.I wrote this simple C program:#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt;int main(){char *thingy = malloc(500);getchar():return 0; }So it simply allocates 500 bytes and then returns. I ran the program on 3 compute<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4e82d67825d8c507e235e7a1594555c3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndavidreedernst<br \/>\nlinux vps openvz virtuozzo<br \/>\nShort Version: Are there any official guidelines on what the kmemsize barrier and limit should be set to for a container in Virtuozzo\/OpenVZ intended to be used as a Web server? We&#8217;ve found posts in blogs and forums that say that kmemsize should be at least 10% of vmguarpages (after they are converted to the same units). Sadly, nothing we&#8217;ve found cited an authoritative reference (or even a reason) for this 10% assertion. Any idea where that 10% idea comes from?Long Version: A client of mine<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d10981e46b870350b7d4c64840ae51ef?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMadHatter<br \/>\ncentos kernel openvz<br \/>\nMy server is keep crashing. It happens randomly every few days tough.Today it happened while I was logged in trough SSH and it said:Message from syslogd@ at Mon Apr 15 14:43:42 2013 &#8230; ns213921 kernel: journal commit I\/O errorI was able to pull up more info from &#8220;\/var\/log\/dmesg&#8221;:kernel: journal commit I\/O errorenced inode 430312962 ext3_orphan_cleanup: deleting unreferenced inode 430473321 ext3_orphan_cleanup: deleting unreferenced inode 430312977 ext3_orphan_cleanup: deleting unreferenced inod<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/eed8337939641eac5ad0b570bd6acf96?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsaepia<br \/>\nlvm openvz proxmox<br \/>\nI use Proxmox 2.2 for making OpenVZ containers.It ships with a tool called vzdump that can create backups of OpenVZ containers on the fly. It uses snapshot functionality of LVM to create temporary &#8220;fork&#8221; of filesystem for backup purposes.Unfortunately it sometimes crashes with one container that performs a lot of disk operations. As far as I know most probably it is because LVM has limited space that it can use for storing changes made to the volume during snapshot.I&#8217;ve tried to increase snapsho<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6660b11915eb8a3f1916c7c8bc9710d3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAmr Mostafa<br \/>\nvirtualization xen openvz<br \/>\nEvery time I need to create VPSs out of one of our machines, I (re)think the virtualization technologies, and seem to end up with OpenVZ being the most suitable for performance reasons when all I want is clean separation between VPSs. All running GNU\/Linux.The question I have is, for a scenario with the following facts, when is it ever more advisable to go for Xen? Here goes the situational facts:I trust everyone who will be using the VPSs, the issue of virtualization security is not a concern T<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2086f63f0c1ac9fe50190849114d8394?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nizx<br \/>\n12.04 server kernel vps openvz<br \/>\nI upgraded my server installation form 11.04 to 11.10, then to 12.04 over ssh. All seems almost ok &#8211; but there is a small issue with glibc, which is messing up my apt.I tried sudo apt-get install -f but it does not get what it needs. I am running in a OpenVZ virtual machine.How can I fix my apt dependencies?sysadmin@svr:~$ sudo apt-get update Ign http:\/\/archive.canonical.com precise InRelease Ign http:\/\/archive.ubuntu.com precise InRelease Ign http:\/\/archive.ubuntu.com precise-updates InRelease<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f9a77e4fcd411cd94f9f4ab1a932e74d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nReece45<br \/>\nlinux apache2 cpanel openvz<br \/>\nOn my way to the office this morning, every website on our shared VPS started giving the same error (several times, not the typical memory_limit error which is fatal):Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0The shared server is a 64-bit OpenVZ container running cPanel. There are only ~6 VPSes on the host&#8211; this is the largest one at only 4GB. The host itself has 24GB RAM. As the below graphs show, the memory usage on the host and VPS are both rather low. CPU Usa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/70e2d856076103cfff53bbb2739f0bac?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nxsaero00<br \/>\niptables openvz<br \/>\nThis is related to the question I asked before. Now I am getting a different error.iptables: Unknown error 18446744073709551615when trying to apply a simple rule in VZ containeriptables -t nat -A PREROUTING -p tcp &#8211;dport 80 -j REDIRECT &#8211;to-port 8080I have done everything that was suggested to do on hardware node and container but the error persists.On hardware node:\/etc\/sysconfig\/iptables-configIPTABLES_MODULES=&#8221;ip_conntrack_netbios_ns ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7497d58f658b1894b9acbd876b4f2b87?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOliver Seeliger<br \/>\nxserver openvz<br \/>\nI&#8217;v set up an Ubuntu 12.04 from the precreated OpenVZ template. The host system is configured as follows: # $ cat \/etc\/issue Debian GNU\/Linux 6.0# $ uname -a Linux openvz-02 2.6.32-16-pve #1 SMP Fri Nov 9 11:42:51 CET 2012 x86_64 GNU\/Linux# $ apt-cache showpkg proxmox-ve-2.6.32 Package: proxmox-ve-2.6.32# $ tail -n 3 \/etc\/apt\/sources.list # PVE packages provided by proxmox.com deb http:\/\/download.proxmox.com\/debian squeeze pveFor a software project I need a minimal xserver and followed the instr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fc763c6ff6c160ddad05741e87e517b6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBill the Lizard<br \/>\njava openvz<br \/>\nI&#8217;ve had a whole line of messes with java and .jar files. I&#8217;ve tried both OpenJDK (from software installer) and about three repositories for Sun.\/Desktop# java -jar -Xmx1024m ss.jar Exception in thread &#8220;main&#8221; java.awt.HeadlessExceptionat java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)at java.awt.Window.&lt;init&gt;(Window.java:476)at java.awt.Frame.&lt;init&gt;(Frame.java:419)at java.awt.Frame.&lt;init&gt;(Frame.java:384)at javax.swing.JFrame.&lt;init&gt;(JFrame<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>danlefree linux vps openvz Been trying to install OpenVPN on a VPS but come into a few problems when trying to start the openvpn server:Service deferred error: IPTablesServiceBase: failed to run iptables-restore [status=1]: [&#8216;FATAL: Could not load \/lib\/modules\/2.6.18-028stab070.14\/modules.dep: No such file or directory&#8217;, &#8216;FATAL: Could not load \/lib\/modules\/2.6.18-028stab070.14\/modules.dep: No such file or directory&#8217;, &#8216;iptables-restore: line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6812","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6812"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6812\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}