In the last two weeks I have noticed a major issue concerning memory usage. HyperVM and Top (via console) report two very different amounts of memory being used. On a fresh rebuild, my overall usage should be no more then 22mb. However, HyperVM reports 45mb whereas Top reports 11mb. Notice the huge gap?
I was told by my VPS host that OpenVZ / HyperVM is to blame. The overwhelming issue is: if I pay for 256mb of ram and I'm being cut short, then I'm obviously over paying. What's more: how can I tell whether or not I'm being cut short?
Has anyone run across these problems in the last two weeks?
I am trying to create some vps using openvz but after creating the vps with the Centos basic template 304mb i can't ping the ip and i can't view the centos welcome page in my browser (using ip and not domain, so i don't need to change there anything yet) and the most important is that i can't connect to the vps using ssh
I aks for many good users about my problem but i don' found a solution yet.
I ask my DC about ip's and they told me that the ip's are routed in my server.
When you're creating VPS container, you can ssh with that IP and login with your username and password correct? But, what is the problem when I successfully created a VPS, and when trying ssh into it, I can't. Ok, here we go. I want to create a 2nd vps and will be using it as my DNS server. I enter a set of IPs into HyperVM's IPpool. First IP: x.x.x.178 Last IP: x.x.x.182 Resolv Entries (space Separated) : Gateway (IP): x.x.x.x.177 NetMask: 255.255.255.248
Then I created a vps resource plan. And then I created a VPS and it use the first IP from above. I want to connect to SSH and want to make it as my DNS server but seems the IP are not responding, it wasn't even live. So, what is the problem here? Where I did wrong? Just to let you know, I successfully created 1 VPS before that and it works without any hiccups. Got even whm/cpanel installed as well on it. The thing that I suspected is that my DC pulled the IPs off me and assigned them to other server. Waiting for their reply on this though.
As a provider of Virtual Private Servers im looking at ways to expand our business, I love the fact that we can offer our clients such a good service with the low price we presently charge but as a "Client" or "Potential Client" what would your views be on Virtuozzo?
Is it worth our business cutting our already low profits and going with Virtuozzo as our VPS Control Panel?
This is something we are very interested in doing and we feel it would be a big jump from the very low-end budget HyperVM/OpenVZ Approach.
Your Views on the Virtuozzo Vs HvM/OvZ would be very helpfull.
Would you rather buy a low priced Virtozzo VPS or an even lower priced HyperVM powered VPS? Im quite lost as to wether the financial investment would be worth it, I don't see how it wouldnt be as HyperVM is very buggy and really doesnt give a full sense of security in my personal opinion.
I need to move a slave server from one master to another, but when running "import HyperVM VPS" I get the classic error:
Quote:
Alert: The vpsid 470 : localhost exists on another server.
Please confirm exactly how to change the VPS ID for an OpenVZ VM as I've gone through all the LxLabs posts dealing with this subject and none of the proposed solutions work correctly.
Since OpenVZ offers both base RAM and burstable RAM to VMs, checking how much RAM is still available for assigning to VMs is still done manually by me.
Is there a way to list the total amount of base RAM that has been assigned, and the total amount of burstable RAM that has been assigned, so that you know how many more VMs you can create/host on a server?
Does anyone know how you can move an entire HyperVM (OpenVZ) Node to Virtuozzo. What has to be copied because we tried coping /vz/private/<VEID> and /etc/sysconfig/vz-scripts/<VEID> and we were not able to get the VE to start. We were getting an error:
Starting Container ... Can't mount: /vz/template:/vz/private/1110 /vz/root/1110: No such file or directory Container start failed
We tried rebooting the server as some other sites mention but still no luck. Any help is greatly appreciated because when we contacted Parallels they did not seem to have answer. (we are still waiting on a ticket reply though)
I had my box reinstalled with same OS as before, Centos x64. I am creating a NEW VPS and assigning it an IP from my Extended network (not primary) and the IPs are not pingable as if GATEWAY= was missing from the ifcfg config on network-scripts.
Its becoming more and more difficult to manage VPS using HyperVM and I am personally sick of the control panel design.
So does anyone have any great ideas to move all the VPS in HyperVM (OVZ) to Virtuozzo (PIM)?
If there isn't, I think I'll have to move all data across the orthodox way - which I clearly want to avoid.
PS: OVZ is on a different node from the VZ (duh!) but also will be utilizing different IP ranges. So, I think I need advice on changing IPs of the VEs too.
My company currently have some spam filtering problem with mailscanner and the Windows team was given a project to come up with a better solution to fight spams.
I work in Unix dept. I suggested to Windows admin I use ASSP personally and works great. I gave them the specs on my setups. Since the current front-end proxy is on RHEL, we all settled to try out ASSP on Ubuntu based server.
We scrap-find an older Dell PE 2850 we can use. I finally convinced company to deploy OpenVZ, this will be our first OpenVZ server public facing.
The Dell have two Intel 82541GI Gigabit NICs. We are VLAN-ing on Cisco switch level; eth0 will be on internal 10.0 network and eth1 on public port.
I already installed CentOS 5.2 plus HyperVM. I configured and brought up eth1 without TCP/IP, just on layer 2. Looks like OpenVZ is using eth0 right now.
For this new proxy, will be routing traffics through host eth1. What's the best way of going with this? The new proxy will be using veth so it will have its own MAC (for security reasons; and network team said this is mandatory).
Should I be using bridging? Or simple routing guests through VZ configured eth1 would work? Can anyone give me some ideas? I'm asking in WHT is because a lot of hosting companies probably have this setup already. I'm just absorbing ideas...
Anyone of the top of their head know how to fix the CPanel "Unlimited" Quota problem in CentOS/OpenVZ/HyperVM?
This post is not related to Infinitie, I personally have a few VPS servers I run and they are on CentOS 4.6 and the latest HyperVM, secondary quotas is enabled but I still keep having that problem where I cannot get quotas.
We're in the process of setting up our new VPS Server, and we can create a VPS with 256MB memory and with 512MB memory fine, but when creating one with 1GB memory, we get the error:
Could Not Start Vps, Reason: Unable to fork: Cannot allocate memory: Not enough resources to start environment: Container start failed:
Even though the server has 4GB RAM and no other VPS's running. Any ideas? Thanks.
[Edit]We now seem to get the problem for all our VPS's. I think it may be something to do with the Server not unallocating the memory, as we've provisioned and de-provisioned quite a few Servers
I have recently created a bunch of OS templates for HyperVM as their current set were hugely outdated / unsuitable.
The images tagged modernadmin all include preconfigured DenyHosts to prevent SSH brute forcing of your customers VPS.
Available are the following for OpenVZ: centos-5.2-i386-hostinabox-modernadmin.tar.gz530,147.2KB centos-5.2-i386-modernadmin.tar.gz109,654.2KB centos-5.2-x86_64-modernadmin.tar.gz134,665.8KB debian-4.0-i386-modernadmin.tar.gz61,153.3KB debian-4.0-x86_64-modernadmin.tar.gz143,096.5KB debian-5.0-i386-modernadmin.tar.gz75,740.6KB debian-5.0-x86_64-modernadmin.tar.gz159,226.4KB fedora-core-10-i386-modernadmin.tar.gz165,429.6KB fedora-core-10-x86_64-modernadmin.tar.gz174,693.8KB ubuntu-7.10-i386-modernadmin.tar.gz76,415.5KB ubuntu-7.10-x86_64-modernadmin.tar.gz76,133.2KB ubuntu-8.04-i386-modernadmin.tar.gz70,725.7KB ...
Few months ago I bought new small VPS box (OpenVZ, 128 MB RAM) in order to place there a new monitoring node of my site monitoring system. Such small amount of RAM is a challenge for operating system optimisation techniques (OpenVZ doesn’t have “swap” as Xen does).
First of all I discovered that apache2-mpm-worker (Apache implementation that uses threads) consumes more memory (100MB) than the classic version that use separate processes (20MB). I had to switch to apache2-mpm-prefork version then.
Next unpleasant suprise: small Python app eats 100MB of virtual memory! I checked that virtual (not resident) memory is taken into account by VPS. I applied some tools to locate memory bottleneck, but without success. Next I added logs with current memory usage to track call that causes big memory consumption. I tracked the following line:
server = WSGIServer(app)
is guilty for high memory increase. After few minutes of googling I located problem: default stack size for a thread. Details:This line creates few threads to handle concurrent calls
Stack size is counted towards virtual memory
Default stack size is very high on Linux (8MB)
Every thread uses separate stack => multi threaded application will use at least number_of_threads * 8MB virtual memory!
First solution: use limits.conf file. I altered /etc/security/limits.conf file and changed default stack size. But I couldn’t make this change to alter Python scripts called from Apache (any suggestions why?).
Second (working) solution: lower default stack size using ulimit. For processes launched from Apache I altered /etc/init.d/apache2 script and added:
ulimit -s 256
Now every thread (in apache / Python application) will use only 128 kB of virtual memory (I lowered VSZ from 70 MB to 17 MB this way). Now I have additional space to enlarge MySQL buffers to make DB operations faster.
There’s even better place to inject ulimit system-wide: you can insert this call in:
/etc/init.d/rc
script. Then ulimit will be applied to all daemons (as Apache) and all login sessions. I reduced virtual memory usage by 50% this way.
Note: you may increase stack size on stack overflow errors. In my opinion 256 kb is safe option for most systems, you may increase if in doubt. Still memory savings are big.
The time is always 4 hours off in my FTP client even though I select the correct timezone for the server (Central Timezone -4:00). I'm on Eastern Timezone -5:00. Server is running on proftpd. This never happens on other servers, only this one I moved to recently. It happens to other users too. I tried adding GMT ON and OFF in proftpd conf but to no avail.
I always set ftp client to use server time and it never had a problem with displaying the right time. So weird.
logged into ftp using firefox and it still shows the time 4 hours ahead of my time
Code: #%PAM-1.0 auth sufficient /lib/security/$ISA/pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #auth required /lib/security/$ISA/pam_wheel.so use_uid auth required /lib/security/$ISA/pam_stack.so service=system-auth account required /lib/security/$ISA/pam_stack.so service=system-auth password required /lib/security/$ISA/pam_stack.so service=system-auth # pam_selinux.so close must be first session rule session required /lib/security/$ISA/pam_selinux.so close session required /lib/security/$ISA/pam_stack.so service=system-auth # pam_selinux.so open and pam_xauth must be last two session rules session required /lib/security/$ISA/pam_selinux.so open session optional /lib/security/$ISA/pam_xauth.so id
what I can do about the following database error in mysql?
Incorrect key file for table '/tmp/#sql_(number of table.MYI); try to repair it
I've repaired, optimized and checked the database in phpmyadmin. Initially 2 tables were showing overhead, but the error message is for a temp table and I'm not sure how to try to repair a temp table.