OpenVZ is an open source virtualization technology for Linux which utilities containers to run separate Linux based operating systems on a single machine. OpenVZ is typically used as it touts a low overhead, of around 1-3% of CPU, compared to other virtualization technologies.

learn more… | top users | synonyms

3
votes
2answers
2k views

Iptables port forwarding on OpenVZ CEntOS container

I am trying to setup a simple port forwarding on an OpenVZ container that is running CentOS 5.5. When I run a command I get errors. iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT ...
6
votes
2answers
7k views

Apache reaching MaxClients and locking the server

I currently have an Apache2 server running with mpm-prefork and mod_php on a OpenVZ VPS with 512M real / 1024M burstable RAM (no swap). After running some tests, I found that the maximum process size ...
8
votes
8answers
2k views

Which virtualization platforms should I choose, Xen or OpenVZ?

I am upgrading my shared hosting to VPS hosting, mainly to just add server administration skills to my development skills, so I'm facing a lot of new choices just signing up. I need to choose a ...
4
votes
4answers
5k views

PHP unable to allocate memory

On 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 ...
3
votes
3answers
3k views

Java VM problem in OpenVZ

I bought a vps for hosting my java needs. But I can't run java on it. Everything about java is correctly installed but when I try to run java ("java -version" forexample) I get this error : Error ...
3
votes
2answers
4k views

OpenVZ: share a folder between containers

I want to share a directory from an OpenVZ container to another container, how I could do that? do a symlink from /vz/private/109/common-stuff to /vz/private/108/common-stuff ? bind mount ...
2
votes
1answer
6k views

OpenVPN server running on openvz. How to write iptables rule without masquerade?

I am configuring a VPS which is running on openvz as an OpenVPN server using a tun interface. I am having some trouble with the iptables rule as MASQUERADE is not available. If MASQUERADE were ...
3
votes
1answer
232 views

Changing time or offsetting it in OpenVZ contained server

I am trying to run a VPS, a Debian box contained in an OpenVZ container. Obviously, I cannot use time --set or any such command, as the time must be set via the parent node. The owner of the parent ...
2
votes
1answer
835 views

How to run fsck on a simfs filesystem under openvz

How do you do a fsck on a simfs filesystem under OpenVZ? You're supposed to not run fsck on a mounted FS. Can you just fsck the image (/vz/private/100 or whatever it's called)? Sorry I can't tag ...
1
vote
4answers
906 views

OpenVZ Host is the source IP address rather than actual web surfers?

I am experiencing something a little bit odd. I'm running OpenZV on a CentOS 5 server. It appears that on containers the source IP address that say Apache webserver sees a request from is the OpenVZ ...
2
votes
2answers
373 views

apparmor not working ubuntu 11.04 insize OpenVZ

so it seems I have everything installed, but apparmor_status gives "apparmor module is not loaded." Also some apparmor scripts check for presence of /sys/module/apparmor and it is not there... Any ...
2
votes
1answer
863 views

openvz and iptables

http://wiki.openvz.org/Setting_up_an_iptables_firewall mentions to load xt_state before starting a container in order to run iptables in containers. so I ran modprobe xt_state on the host and ...
1
vote
1answer
478 views

OpenVPN routing for OpenVZ containers

I am trying to make OpenVPN tunnel accessible for all OVZ CT's running on the host. I have initialized the tunnel devise on the host server to remote VPN server. Although I have PING response from the ...
1
vote
4answers
469 views

OpenVZ Host is the source IP address rather than actual web surfers?

I have a problem with my VPS. Simple example: <?php $ip = $_SERVER['REMOTE_ADDR']; Echo "User IP : " . $ip; ?> That code should display the user IP address, but it's showing the HN IP ...
0
votes
1answer
1k views

Why is Linux choosing the wrong source ip address

and what to do to let it choose the right one? This all happens inside an OpenVZ container: The Host is Debian/Wheezy with Redhat/OpenVZ Kernel: root@mycl2:~# uname -a Linux mycl2 ...
0
votes
1answer
139 views

How do I add eth0 on centos 5 that is using openvz

I have a vps account with CentOS 5 installed. It uses OpenVZ for virtualization. Now I'm trying to install pptp service (using this guide) on it. I'm currently on Step 6 but I don't see any eth0 ...
0
votes
2answers
1k views

how to drop_caches in OpenVZ centos6 container

I have tried sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' sudo echo 3 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches echo 3 | sudo tee /proc/sys/vm/drop_caches and a ...
0
votes
1answer
384 views

OpenVZ kernel panic

I recently installed OpenVZ on my VMWare box (To do some testing) and I get the following: https://www.dropbox.com/s/p38btkv5j84bvsh/Capture.JPG the GRUB config is as follows: # grub.conf generated ...
0
votes
1answer
482 views

How to see what is causing failcnt on tcpsndbuf

I am seeing a failcnt on my tcpsndbuf by looking at the user beancounters. How am I able to see what is causing this failcnt? I am experiencing problems with my server and I think that it is as a ...