It is currently Fri Mar 29, 2024 7:22 am

News News of OpenVZ related

Site map of OpenVZ related » Forum : OpenVZ related

Here one can find interesting information about OpenVZ management and maintenance. OpenVZ control panels information also goes here
Forum rules
All information is given AS IS

Error: ploop-lib conflicts with vzkernel

When running "yum update" on OpenVZ carrier server you might face the following error which prevents update process:
...
...
--> Processing Conflict: ploop-lib-1.6-1.x86_64 conflicts vzkernel < 2.6.32-042stab061.1
--> Finished Dependency Resolution
Error: ploop-lib conflicts with vzkernel

To resolve it use "yum shell":
Code: Select all
# yum shell
> update vzctl
> remove ploop\*
> run
> quit

Such sequence of actions will allow you to resolve runtime dependencies.
===============================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================================================================================================
Installing: ...
Read more : Error: ploop-lib conflicts with vzkernel | Views : 10286 | Replies : 0


Page cache isolation

New strict page cache isolation feature, appeared in the kernel 042stab068.8 and later kernels.
The feature disables bouncing page cache pages between host and containers on physpages shortage in container. The internal reclaimer will drop cached data if container exceeded its physpages limit and pagecache isolation is turned on.
Current state can be obtained by reading the /proc/bc/<id>/debug:pagecache_isolation file. It is disabled by default.
http://wiki.openvz.org/Page_cache_isolation
Read more : Page cache isolation | Views : 5740 | Replies : 0


vzubc utility - human-readable user beancounters output

vzubc − CLI utilitu to show user beancounters (UBC) in a human-readable format. It is a part of vzctl since 3.0.27 version.

# vzubc -h
Usage: vzubc [option ...] [<ctid> ...]

-w, --watch:
Run itself under watch(1) (a la top mode, Ctrl-C to exit).
-wd: show differences between runs
-wn <time>: refresh every <time> seconds
-q, --quiet:
Quiet mode (only show beancounters with fails and close to limits).
-qh <ratio>: quiet threshold for held/limit ratio ...
Read more : vzubc utility - human-readable user beancounters output | Views : 6659 | Replies : 0


Debian6: script 'S10vzquota' missing LSB tags and overrides

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594783

OpenVZ generates /etc/init.d/vzquota on every reboot of a container. Since
Debian6/Squeeze makes use of insserv, it's required that all startup scripts include LSB tags.
If you don't this results in the following errors when trying to install software (via apt-get):
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script 'vzquota' missing LSB tags and overrides
insserv: There is a loop between service vzquota ...
Read more : Debian6: script 'S10vzquota' missing LSB tags and overrides | Views : 5419 | Replies : 0


OpenVZ quota bug OpenVZ quota bug

Can't find filesystem to check or filesystem not mounted with quota option
http://bugzilla.openvz.org/show_bug.cgi?id=1904

(0) Traditionally, /etc/mtab is a symlink to /proc/mounts in all the templates
we provide. This is for df utility to work.

(1) When quotaugidlimit is set, vzctl used to (via set_ugid_quota.sh dist
script that creates /etc/init.d/vzquota script inside a CT) delink /etc/mtab
and make it a file with grpquota,usrquota options, for quota* utilities to
work.

(2) Newer quota tools (quota-3.17 in Fedora ...
Read more : OpenVZ quota bug | Views : 2914 | Replies : 0


Control panels for OpenVZ/Xen

Free software / Open source

    fosvm (Free Open Source Virtual Machine manager): Uses php and bash scripts, monitors bandwidth, Version 0.03a. Last updated 2009-05-18.
    OpenVZ Web Panel : Version 1.1. Written on Ruby. Automatic installer, pretty interface, multiserver & multilingual support. Released: 2010-05-23.
    Proxmox Virtual Environment: including bare-metal ISO installer. Requires 64bit Processor.
    unxsVZ OpenVZ Infrastructure Manager: Includes autonomic UBC adjusting and per container traffic graphs. Supports hot-spare clones and mount/umount conf file templates. Very ...
Read more : Control panels for OpenVZ/Xen | Views : 4902 | Replies : 0


OpenVZ Action Scripts

OpenVZ Action Scripts

There might be situations when you need to do additional actions when a particular VPS is
started or stopped. For example, if you want to be able to access the Host OS file system (or part
of it) from VPS 101, then you can bind mount it inside the VPS manually from the Host OS.
However, after you restart the VPS, your mount disappears, and you should manually type the
mount command ...
Read more : OpenVZ Action Scripts | Views : 4477 | Replies : 0


Bash alias for nice vzlist output

For nice vzlist output on the carrier server following bash alias should be set:

File /root/.bashrc
Code: Select all
alias vzlist="vzlist -o veid,ip,hostname,numproc,numfile,numflock,numtcpsock,kmemsize,physpages,laverage -a"

Special thanks to Vladimir B.
Read more : Bash alias for nice vzlist output | Views : 2439 | Replies : 0


OpenVZ VPS fake SWAP inside it

In case if we need swap for running some specific software, we can do the following inside VPS:

1) Create the fake-swap.sh shell-script:
Code: Select all
#!/bin/bash

SWAP="${1:-512}"

NEW="$[SWAP*1024]"; TEMP="${NEW//?/ }"; OLD="${TEMP:1}0"

umount /proc/meminfo 2> /dev/null
sed "/^Swap\(Total\|Free\):/s,$OLD,$NEW," /proc/meminfo > /etc/fake_meminfo
mount --bind /etc/fake_meminfo /proc/meminfo

free -m

2) Make script executable;
As you can see from script's code the default size of swap will be 512Mb, but if you need more bigger swap you may run ...
Read more : OpenVZ VPS fake SWAP inside it | Views : 6350 | Replies : 1




 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron