OpenVZ Forum



Members   Search      Help    Register    Login    Home
Today's Messages (off)  | Unanswered Messages (on)

Forum: Support
 Topic: 1st hop in traceroute from a OpenVZ container shows private interface IP
1st hop in traceroute from a OpenVZ container shows private interface IP [message #42725] Mon, 16 May 2011 07:42
alamar is currently offline alamar
Messages: 3
Registered: February 2009
Junior Member
From: *adsl.alicedsl.de
(proxmox 1.6 here. Linux vpsnode01-nk 2.6.32-4-pve #1 SMP Thu Oct 21 09:35:29 CEST 2010 x86_64 GNU/Linux )
From within OpenVZ containers I see the private space (rfc 1918) address
of the drbdlink interface as first hop and not of my publicly connected interface (eth0/vmbr0)

From within container a traceroute looks like this:

/# traceroute -n www.heise.de
traceroute to www.heise.de (193.99.144.85), 30 hops max, 40 byte packets
1 10.0.23.2 0.033 ms 0.007 ms 0.007 ms
2 217.x.99.13 2.206 ms 2.243 ms 2.285 ms

why is the first hope (the hostnode) displayed with the private address of drbdlink interface?
(I would expect it to be 217.x.50.8 at least that's what I want)

ip addr show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:25:90:1d:30:9e brd ff:ff:ff:ff:ff:ff
inet6 fe80::225:90ff:fe1d:309e/64 scope link
valid_lft forever preferred_lft forever
3: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:1b:21:7b:4e:46 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:25:90:1d:30:9f brd ff:ff:ff:ff:ff:ff
5: drbdlink: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1b:21:7b:4e:47 brd ff:ff:ff:ff:ff:ff
inet 10.0.23.2/24 brd 10.0.23.255 scope global drbdlink
inet 10.0.23.12/24 brd 10.0.23.255 scope global secondary drbdlink:0
inet6 fe80::21b:21ff:fe7b:4e47/64 scope link
valid_lft forever preferred_lft forever
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 00:25:90:1d:30:9e brd ff:ff:ff:ff:ff:ff
inet 217.x.50.8/24 brd 217.x.50.255 scope global vmbr0
inet 217.x.50.10/32 brd 217.x.50.138 scope global vmbr0
inet6 fe80::225:90ff:fe1d:309e/64 scope link
valid_lft forever preferred_lft forever
7: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void


brctl show:
bridge name bridge id STP enabled interfaces
vmbr0 8000.0025901d309e no eth0

ip ro show:

217.x.50.11 dev venet0 scope link
217.x.50.254 dev venet0 scope link
217.x.50.14 dev venet0 scope link
217.x.50.15 dev venet0 scope link
217.x.50.12 dev venet0 scope link
217.x.50.13 dev venet0 scope link
10.0.23.0/24 dev drbdlink proto kernel scope link src 10.0.23.2
217.x.50.0/24 dev vmbr0 proto kernel scope link src 217.x.50.8
default via 217.x.50.1 dev vmbr0

x is always the same.
 Topic: auto stop vps with high load
auto stop vps with high load [message #42719] Sun, 15 May 2011 04:55
gozargah is currently offline gozargah
Messages: 32
Registered: June 2008
Member
From: 217.219.60*
As you know, by "vzlist -o vpsid,laverage" in openvz can see vps load.
I need to a batch script for auto stop/restart any vps with more than 25 load.
Who can help me please?
 Topic: Centos5 CT has no networking
Centos5 CT has no networking [message #42717] Sat, 14 May 2011 03:32
randolph is currently offline randolph
Messages: 2
Registered: May 2011
Location: Australia
Junior Member

From: *vic.bigpond.net.au
I have just installed Ubuntu 10.4 as my HN on my new sandy bridge based i5
This required compiling kernel-2.6.32.14-ovz32 to tame the sandy bridge chipset - no kernel earlier then 2.6.27 has a chance of this.

(I just noted the ovz32 part of the name - does that mean its 32 bit ?)

All works well (mostly): the HN is stable and tweaked according to instructions.
Proof of this is that ubuntu 10.4 CT works perfectly with full networking)

However, the centos5 CT does not start the network service. instead it reports that both lo and venet0 do not seem to be present.

ifconfig returns null
iptables -t nat -L
cant initialise and suggests that I may need to use insmod or upgrade the kernel.

Is this an incompatibility between the HN 2.6.32 kernel and the earlier centos kernel?

Thanks in advance
 Topic: mount problem
mount problem [message #42701] Thu, 12 May 2011 13:54
williamt is currently offline williamt
Messages: 4
Registered: April 2011
Junior Member
From: *vpn.sonic.net
We are trying to make a NFS mount from the HN appear within a container.
We got it working by adding mount and umount scripts. However we are having some issues.

1.mount
#!/bin/sh

source /etc/vz/vz.conf
source ${VE_CONFFILE}

mount -n --bind /nfs/apps/wiki ${VE_ROOT}/nfs/webroot

1.umount
#!/bin/sh
echo "UMOUNT IS RUNNING"  <-- for testing see below
source /etc/vz/vz.conf
source ${VE_CONFFILE}

umount ${VE_ROOT}/nfs/webroot


The problem I am seeing is that the umount script is sometimes getting called on startup and I believe
it's causing the mount to not appear in the container. Whats weird is if I comment out the umount
line I never see my echo statement ran on startup. However with umount uncommented I always
see the echo statement. This seems like strange behavior that I can't explain. I was hoping someone
else had some ideas.

Normal stop start with mount/umount scripts:
# vzctl stop 1
Stopping container ...
Container was stopped
RTNETLINK answers: Network is unreachable
UMOUNT IS RUNNING
umount: /vz/root/1/nfs/webroot: not mounted
Error executing umount script /etc/vz/conf/1.umount
_[/etc/vz/conf]_(root@a.apps)_
# 
_[/etc/vz/conf]_(root@a.apps)_
# vzctl start 1
Warning: configuration file for distribution SL-6.0-x86_64-minimal not found, using defaults from /etc/vz/dists/default
Starting container ...
UMOUNT IS RUNNING
umount: /vz/root/1/nfs/webroot: not mounted
Error executing umount script /etc/vz/conf/1.umount
Adding IP address(es): 64.142.109.98 69.12.208.32
RTNETLINK answers: Network is unreachable
RTNETLINK answers: Network is unreachable
Setting CPU units: 1000
Setting devices
Set hostname: wiki.a.apps.sonic.net
File resolv.conf was modified
Container start in progress...
_[/etc/vz/conf]_(root@a.apps)_


NFS mount will only be there if I do a sevice vz restart. After that a stop/start will not mount my NFS mount in the container
From the "UMOUNT IS RUNNING" you can see that it is running the 1.umount script on start and stop

However, If I comment out the umount stuff it only runs that script on stop:
# vzctl stop 1
Stopping container ...
Container was stopped
RTNETLINK answers: Network is unreachable
UMOUNT IS RUNNING
Container is unmounted
_[/etc/vz/conf]_(root@a.apps)_

# vzctl start 1
Warning: configuration file for distribution SL-6.0-x86_64-minimal not found, using defaults from /etc/vz/dists/default
Starting container ...
Container is mounted
Adding IP address(es): 64.142.109.98 69.12.208.32
RTNETLINK answers: Network is unreachable
RTNETLINK answers: Network is unreachable
Setting CPU units: 1000
Setting devices
Set hostname: wiki.a.apps.sonic.net
File resolv.conf was modified
Container start in progress...


My NFS Mount is there.

So if I comment out the 1.umount script everything works.
Im pretty sure I want to be able to umount things on shutdown.
Any ideas whats going on?


# rpm -qa |grep vzctl
vzctl-3.0.26.3-1.x86_64
vzctl-lib-3.0.26.3-1.x86_64

# rpm -qa |grep vzkernel
vzkernel-2.6.32-042test012.1.x86_64

# cat /etc/redhat-release
Scientific Linux release 6.0 (Carbon)

Thanks,
William
 Topic: CPU scheduler rhel5 vs. rhel6
CPU scheduler rhel5 vs. rhel6 [message #42674] Tue, 10 May 2011 17:03
Tuxi is currently offline Tuxi
Messages: 4
Registered: May 2011
Junior Member
From: *dip.t-dialin.net
Hello,

i am searching for a solution to get cpu scheduler of rhel5 into a new kernel rhel6.

I want to limit cpu cores per virtual server(important) and also limiting cpu limit with cpulimit. Users need exclusive cpu cores. Is it possible to modify a rhel6 kernel to get these features?

Thanks for every help!
 Topic: Is SHM and mmap supported?
Is SHM and mmap supported? [message #42672] Tue, 10 May 2011 15:41
edekzkrainykredek is currently offline edekzkrainykredek
Messages: 1
Registered: May 2011
Junior Member
From: *dynamic.gprs.plus.pl
Hi,

I encounter problems when I try to run GStreamer and PulseAudio within OpenVZ container. I got errors like

shm_open() - function not implemented etc.

mmap()ing memory also fails.

Is SHM and mmap disabled in the OpenVZ kernel or maybe I am doing something wrong?
 Topic: problems start suse virtual servers
problems start suse virtual servers [message #42671] Tue, 10 May 2011 11:52
kolia is currently offline kolia
Messages: 1
Registered: May 2011
Junior Member
From: *dip.t-dialin.net
hi,

i am running debian queeze and 2.6.32-5-openvz-amd64 kernel.

Debian is running well as virtual server.

SuSE ( taken precreated suse 11.3 image from openvz download page )
is starting:

Starting container ...
Container is mounted
Adding IP address(es): 10.1.2.3
Setting CPU units: 10000
Set hostname: susetest
File resolv.conf was modified
Container start in progress...

It shows up in the list privided by vzlist for 2-3 seconds and then it just vanishes from the vzlist provided list.

So the suse vps can not be started.

In the config i filled in

OSTEMPLATE="suse"

should be right.

Is there any specific trick or any idea where to search ?

Its all plain installed squeeze.

Thank you Smile
 Topic: Shutdown sequence
Shutdown sequence [message #42643] Sun, 08 May 2011 19:37
proto is currently offline proto
Messages: 2
Registered: November 2007
Junior Member
From: *dsl.teksavvy.com
I have OpenVZ containers running on TOP of a DRBD block device.

Looking at these 2 files:
grep chkconfig /etc/init.d/vz
# chkconfig: 2345 96 88
grep chkconfig /etc/init.d/drbd
# chkconfig: 2345 70 08

I can see that it is expected to see the shutdown sequence like this:

/etc/rc0.d/K08drbd
/etc/rc0.d/K88vz

This seems like an error to me.

K08drbd tries to unmount the filesystems BEFORE K88vz has shutdown the containers.

To me, OpenVZ shutdown should start MUCH earlier, something like this:
grep chkconfig /etc/init.d/vz
# chkconfig: 2345 96 05

Any feedback is welcome.

Proto
 Topic: openVZ+Ubuntu build issue
openVZ+Ubuntu build issue [message #42631] Sat, 07 May 2011 19:37
sixstringsg is currently offline sixstringsg
Messages: 1
Registered: May 2011
Junior Member
From: *dllstx.fios.verizon.net
I'm trying to compile a software from source, and whenever I get to a memory/processor intensive part, I get the error "ionice: ioprio_set failed: Operation not permitted" and I haven't found a way to fix it. Any ideas?
 Topic: Iptables the owner module from HN
Iptables the owner module from HN [message #42599] Wed, 04 May 2011 14:56
alevchuk is currently offline alevchuk
Messages: 22
Registered: February 2007
Location: University of California,...
Junior Member
From: *dhcp.losa.ca.charter.com
My NH is networkless. The containers are networked via NETDEV and I can add and remove them from different networks with brctl from the HN.

I would like to block all traffic of a specific user.

From the container I would do it like this:
iptables -A OUTPUT -m owner --uid-owner {UID} -j REJECT

Is there a way to do that from the HN?
 Topic: HA cluster with DRBD and Heartbeat + VE with LAPM ?
HA cluster with DRBD and Heartbeat + VE with LAPM ? [message #42598] Wed, 04 May 2011 08:40
tsndcb is currently offline tsndcb
Messages: 4
Registered: May 2011
Junior Member
From: *fbx.proxad.net
Hi all,

I wanted to know if some body has always done this configuration (because I tried to done it)

I've two RHEL 5.5 servers (HN)with openvz (ovzkernel-2.6.18-238.9.1.el5.028stab089.1.x86_64.rpm)

I've follow this howto HAclusterwithDRBDandHeartbeat on the wiki with drbd 8.3.10,pacemaker-1.0.11 and heartbeat-3.0.3.

Configuration seems OK

I've a VE with LAMP (Apache + php + mysql)

Actually, I've done two drbd "FS" /vz and /data, on /vz there are OS + binary for (apache, php, mysql ...) on /data there are data for apache and mysql database.

My question is how the "primary" VE must to migrate on the secondary HN when the first HN failed ?

Must I need to use drbd only for /data and need to setup an other VE on the secondary HN it use only data ? Or must must I need to used drbd for /vz and /data ? I wanted to done a fail-over configuration.

thanks in advanced for your clarify answer.
 Topic: Load spikes issue
Load spikes issue [message #42510] Mon, 25 April 2011 08:33
noc_engg is currently offline noc_engg
Messages: 1
Registered: April 2011
Location: US
Junior Member
From: *200.19.3.icanconnect.com
We had load spikes issue on our server having OS ubuntu 9.04 with kernel 2.6.24-7-pve and pve-manager 1.3-1. Load used to reach to 4.0-5.0 multiple times in a day, without any Virutal Container running on the server.

To resolve load spike issue, we have upgraded the system to proxmox kernel 2.6.24-10-pve and pve-manager: 1.5-8, but still same issue persist, even though there was no Virtual Container running.

However, when we booted the system with the Ubuntu kernel 2.6.28-11-server the load average on the server is below 0.2.

Server is having 2 Intel Quad Core i7 Xeon processor (Hyperthreaded so the OS sees a total of 16 processors) and 72GB DDR3 Memory.

Please help me to figure out the issue and let me know if you need more information.
 Topic: openvz + cpanel = high load
openvz + cpanel = high load [message #42439] Mon, 18 April 2011 10:13
nehro is currently offline nehro
Messages: 6
Registered: April 2011
Junior Member
From: 89.35.164*
hello,
im using openvz to host 1 vps for cpanel and i have serious issues with the high load on the vps.
every tiny action i make on vps, leads the load very high

the cpanel and some friends tryes to fix it but they couldnt

i read here; forum.openvz.org/index.php?t=msg&goto=12058&

but it did not helped me

current vps utilization; 27000
power of the node; 1068770
cpu units 7
ram available 8 gb


tell me please what to check or what info to provide.

regards
 Topic: reboot web panel
reboot web panel [message #42428] Sat, 16 April 2011 03:52
sHaggY_caT is currently offline sHaggY_caT
Messages: 144
Registered: August 2008
Location: Moscow, Russian Federatio...
Senior Member

From: *p-t-k.net
Hi!
We need very simple reboot web panel to end users-administrators of OVZ containers.
We use Puppet to manage HardwareNode, and don't have big and coplex web-based management of OpenVZ.
But, end-users need simple panel.

I may use php script, writed myself, but... i think, it's not true, if is any web panel, with good design and without security bugs..


IT-outsource for UNIX servers,
http://ha-systems.ru

[Updated on: Sat, 16 April 2011 03:52]

Report message to a moderator

 Topic: REDIRECT does not work to server running inside a container
REDIRECT does not work to server running inside a container [message #42419] Thu, 14 April 2011 12:31
fsschmidt is currently offline fsschmidt
Messages: 1
Registered: April 2011
Location: Brasil
Junior Member
From: *17.93.67.static.host.gvt.net.br
Hi, I'm using Openvz on a Debian Squeeze system and created a container to deploy a squid server (also with debian squeeze template).

When I mark the ip address and port of my proxy server in the browsers of the clients it works perfectly, but I need to use transparent proxy so I created a rule on my firewall to redirect connections on the port 80 to my proxy server: iptables -t nat -I PREROUTING -i eth0 -s 192.168.100.0/24 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.100.249:3128

This redirection does not work to my squid server running on a container, but works if I redirect to my old proxy server running on a physical machine. What have I misunderstood?

My best regards,
Fabio S. Schmidt
EspĂ­rito Santo - Brazil
 Topic: Assigning virtual server networking to specific ethX:Y on actual server
Assigning virtual server networking to specific ethX:Y on actual server [message #42409] Wed, 13 April 2011 12:25
janusmccarthy is currently offline janusmccarthy
Messages: 2
Registered: April 2011
Location: West Coast
Junior Member
From: *lv.lv.cox.net
I have two network devices eth0, and eth1.

Eth0 is our internal network.

Eth1 has several subinterfaces, eth1:1-4, which corresponds to public IPs.

I'd like to assign a virtual server to a specific eth1 subinterface.

How would I do this?
 Topic: Crash After Live Migration - DFS1339: Retrying delayed mount in 16 seconds
Crash After Live Migration - DFS1339: Retrying delayed mount in 16 seconds [message #42400] Tue, 12 April 2011 21:23
andre is currently offline andre
Messages: 20
Registered: January 2008
Junior Member
From: *user.veloxzone.com.br
Hello,

We've experienced this same behavior yesterday and today (on different hardwares). I am not sure but I believe we were migrating the same VE (yesterday from ServerX to ServerY and today from ServerY to ServerZ).

After doing a live migration of a container we saw on dmesg:

DFS1339: resuming daemon started
DFS1339: Retrying delayed mount in 16 seconds
DFS1339: Retrying delayed mount in 32 seconds


Not sure if this was related, but I tried to restart this container as soon as I saw these messages and the hardware crashed while I was seeing:

"vzctl restart 1339
Restarting container
Stopping container ...
"

I believe we got a kernel panic since it rebooted itself (we have panic=10) and server got back few minutes later.

Any hints?


2.6.18-194.26.1.el5.028stab081.1 #1 SMP Thu Dec 23 20:17:23 MSK 2010 x86_64 x86_64 x86_64 GNU/Linux

ovzkernel-2.6.18-194.26.1.el5.028stab081.1
vzctl-lib-3.0.26.1-1
vzctl-3.0.26.1-1
vzquota-3.0.12-1

 Topic: Unable to add netdev for network device with subinterface
Unable to add netdev for network device with subinterface [message #42399] Tue, 12 April 2011 21:06
janusmccarthy is currently offline janusmccarthy
Messages: 2
Registered: April 2011
Location: West Coast
Junior Member
From: *lv.lv.cox.net
I have the following setup:

A server, that has 16 different subinterfaces eth1:1-eth1:16. This was designed by someone who still has control over this area, and I have minimal access to changes with regards to this configuration.

I'm attempting to configure eth1:16 for use with OVZ. It appears as though I have netdev configured incorrectly, and the error is causing the template start to fail.

My guess is it has to do with the subinterface. I can't find any information about using subinterfaces in the users guide.

Question: How do you configure an network interface with a subinterface.

It looks like venet or veth might be able to solve this, but I'm not familiar with their configuration, and not sure how to use it entirely. I didn't see much help in the user guide.

Data:
Below is the trace when trying to start the server.

Adding IP address(es): 10.1.1.101
UB limits were set successfully
Unable to add netdev eth1:16: No such process
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Stopping container ...
Container was stopped
Container is unmounted


This is the result of `dmesg | tail`

CT: 101: started
ve_dev_add: device eth1:16 not found
CT: 101: stopped
 Topic: gnome on debian 5 (lenny)
gnome on debian 5 (lenny) [message #42388] Sun, 10 April 2011 05:44
atariCndyFlp is currently offline atariCndyFlp
Messages: 4
Registered: April 2011
Junior Member
From: *117.169.230.root.lu
I'm having lots of problems trying to get gnome installed. Has anyone been able to install gnome-desktop on a debian 5 (lenny) container?

I'm getting:

/dev/mem: Permission denied

and also noticing that resolv.conf gets trashed when running:
tasksel install gnome-desktop --new-install

[Updated on: Sun, 10 April 2011 05:50]

Report message to a moderator

 Topic: Server Crashed
Server Crashed [message #42386] Sat, 09 April 2011 09:02
freakn is currently offline freakn
Messages: 1
Registered: April 2011
Junior Member
From: *as16215.net
Hello,

my SolusVM Slave with OpenVZ crashed all 4-5 hours.


Apr 9 21:01:09 node2 kernel: [<ffffffff801f633c>] (usb_hcd_irq+0x0/0x55)
Apr 9 21:01:09 node2 kernel: Disabling IRQ #209
Apr 9 22:20:38 node2 kernel: CT: 108: stopped
Apr 9 22:20:52 node2 kernel: CT: 108: started
Apr 9 22:20:53 node2 kernel: CT: 108: stopped
Apr 9 22:20:54 node2 kernel: CT: 108: started
Apr 9 22:21:19 node2 kernel: CT: 108: stopped
Apr 9 22:21:19 node2 kernel: CT: 108: started
Apr 9 22:23:06 node2 kernel: CT: 108: stopped
Apr 9 22:23:15 node2 kernel: CT: 108: started
Apr 9 22:23:15 node2 kernel: CT: 108: stopped
Apr 9 22:23:16 node2 kernel: CT: 108: started
Apr 9 22:24:40 node2 kernel: CT: 108: stopped
Apr 9 22:24:41 node2 kernel: CT: 108: started
Apr 9 22:37:13 node2 kernel: CT: 108: stopped
Apr 9 22:37:21 node2 kernel: CT: 108: started
Apr 9 22:37:23 node2 kernel: CT: 108: stopped
Apr 9 22:37:24 node2 kernel: CT: 108: started
Apr 9 23:16:35 node2 kernel: CT: 109: started

Apr 9 23:37:55 node2 syslogd 1.4.1: restart.


have you any ideas?
 Topic: vzmigrate Error: Failed to load 2nd level quota
vzmigrate Error: Failed to load 2nd level quota [message #42379] Fri, 08 April 2011 13:58
algorithms is currently offline algorithms
Messages: 1
Registered: April 2011
Junior Member
From: *ctinets.com
I think I've experienced this problem for nearly one year.

I typed this (IP is fake, just for demo):

 
# vzmigrate -v --online 50.65.153.78 869 

OPT:-v
OPT:--online
OPT:50.65.153.78
Starting online migration of CT 869 to 50.65.153.78
OpenVZ is running...
    Loading /etc/vz/vz.conf and /etc/vz/conf/869.conf files
    Check IPs on destination node: 50.65.153.78
Preparing remote node
    Copying config file
869.conf                                                100% 1764     1.7KB/s   00:00
Saved parameters for CT 869
    Creating remote container root dir
    Creating remote container private dir
Initializing remote quota
    Quota init
    Turning remote quota on
Syncing private
Live migrating container...
    Suspending container
Setting up checkpoint...
        suspend...
        get context...
Checkpointing completed succesfully
    Dumping container
Setting up checkpoint...
        join context..
        dump...
Checkpointing completed succesfully
    Copying dumpfile
dump.869                                                100%   40MB  13.5MB/s   00:03
    Syncing private (2nd pass)
Syncing 2nd level quota
    Dumping 2nd level quota
    Copying 2nd level quota
quotadump.869                                           100% 1103     1.1KB/s   00:00
    Load 2nd level quota
Too many ('s.
Too many )'s.
Error:  Failed to load 2nd level quota
Resuming...


after searching a lot:
I tried:

# vzctl set 869 --quotaugidlimit 100 --save


And it is no use and still the same 2nd level quota problem.

I also tried turning off quota:

# vzctl stop 869
# vzquota drop 869
# vzctl start 869

And then migrate again, it doesn't work and still the same 2nd level quota problem.

Both old HN and new HN run the same kernels:
Linux demo.com 2.6.18-194.26.1.el5.028stab081.1PAE #1 SMP Thu Dec 23 21:08:29 MSK 2010 i686 i686 i386 GNU/Linux

I followed exactly what it is said here:
wiki.openvz.org/Migration_from_one_HN_to_another

Your help will be highly appreciated.

 Topic: Suspending VE, breaks Oracle
Suspending VE, breaks Oracle [message #42376] Thu, 07 April 2011 15:08
normanu is currently offline normanu
Messages: 5
Registered: January 2011
Junior Member
From: *adsl.wanadoo.nl
Hi Im trying to backup with the ezvzdump script over a network.
But when the script suspends the VE oracle breaks and needs a restart.

Is this a known problem, is there anything I can do against this ?
 Topic: Second NIC
Second NIC [message #42364] Wed, 06 April 2011 08:03
vincent1975 is currently offline vincent1975
Messages: 2
Registered: April 2011
Junior Member
From: *71.254-189.intelco.ca
Hello,
I have one OpenVZ host server (created before from somebody else) with only one NIC (eth0) and one venet (venet0) and public IP address (67.55.98.6 for example) assigned to this NIC. And of course several containers with own public addresses. (101 with 67.55.98.10; 102 with 67.55.98.11, 67.55.98.12; 103 with 67.55.98.13, 67.55.98.14; 104 with 67.55.98.15for example, etc)
Now I want to add second NIC (eth1) to the host machine with private IP address (192.168.1.200 for example). For several of the guest machines I want to change the IP address from the public one to the private one (for 101 and 104 for example) and of course all the traffic for these two machines should go through the eth1 and 192.168.1.1 for gateway in this scenario. From the rest of the guest machines I want to keep the existent configuration.
Please advise me how to configure this. I searched for information, but actually I didn't find anything suitable.
Thank you in advance!
 Topic: Snort can't capture packets on venet0:0 interface
Snort can't capture packets on venet0:0 interface [message #42354] Tue, 05 April 2011 12:44
ivani is currently offline ivani
Messages: 2
Registered: April 2011
Location: Sao Paulo, Brazil
Junior Member
From: *static.spo.virtua.com.br
Hi folks.

I just joined in this forum... I'm newbie with Snort running in virtual machines and I have a doubt.

I've googled many sites, lists, but I'm lost about a weird error.
I've installed and configured the snort 2.9.4 but I can't start it.

This is my interface:

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:XXX.XXX.XXX.XXX P-t-P:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

I did a test with snort:

snort -vv -i venet0:0
Running in packet dump mode

--== Initializing Snort ==--
Initializing Output Plugins!
pcap DAQ configured to passive.
Acquiring network traffic from "venet0:0".
Decoding Linux SLL

--== Initialization Complete ==--

,,_ -*> Snort! <*-
o" )~ Version 2.9.0.4 IPv6 GRE (Build 110)
'''' By Martin Roesch & The Snort Team:
Copyright (C) 1998-2011 Sourcefire, Inc., et al.
Using libpcap version 1.1.1
Using PCRE version: 6.6 06-Feb-2006
Using ZLIB version: 1.2.3

Commencing packet processing (pid=5776)
Can't acquire (-1) - cooked-mode frame doesn't have room for sll header!

And the snort can't start.

I don't know which kind of Linux is running on the parent host.
I've installed the CentOS 5.5, and this is output of uname:

uname -a
Linux snortlab 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17 19:10:36 MSD 2010 i686 i686 i386 GNU/Linux

Someone can help me?

Thank in advance.

Regards,

Ivani
 Topic: Second NIC config
Second NIC config [message #42352] Tue, 05 April 2011 12:10
vincent1975 is currently offline vincent1975
Messages: 2
Registered: April 2011
Junior Member
From: *71.254-189.intelco.ca
Hello,
I have one OpenVZ host server (created before from somebody else) with only one NIC (eth0) and one venet (venet0) and public IP address (67.55.98.6 for example) assigned to this NIC. And of course several containers with own public addresses. (101 with 67.55.98.10; 102 with 67.55.98.11, 67.55.98.12; 103 with 67.55.98.13, 67.55.98.14; 104 with 67.55.98.15for example, etc)
Now I want to add second NIC (eth1) to the host machine with private IP address (192.168.1.200 for example). For several of the guest machines I want to change the IP address from the public one to the private one (for 101 and 104 for example) and of course all the traffic for these two machines should go through the eth1 and 192.168.1.1 for gateway in this scenario. From the rest of the guest machines I want to keep the existent configuration.
Please advise me how to configure this. I searched for information, but actually I didn't find anything suitable.
Thank you in advance!
 Topic: How to use a simple NAT ?
How to use a simple NAT ? [message #42351] Tue, 05 April 2011 11:44
nicolaaas is currently offline nicolaaas
Messages: 1
Registered: April 2011
Location: France
Junior Member
From: *fbx.proxad.net
Hi,

I am trying to do a simple network using NAT.
My CT0 have a public IP and I want to share it with 3 VM, I have followed this : wiki.openvz.org/Using_NAT_for_container_with_private_IPs

CT0 public IP : X.X.140.213
CTX Network : 192.168.0.0/24

I can ping my VM and I can access my VM using SSH through NAT but VM can't ping anything on the internet. I think this is a strange behavior.

Here is my sysctl :
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.ip_forward = 1
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0


Iptables on CT0 : (very unsecure for testing)
#!/bin/sh
iptables -t filter -F
iptables -t filter -X
iptables -t filter -P INPUT ACCEPT
iptables -t filter -P FORWARD ACCEPT
iptables -t filter -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to X.X.140.213
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
iptables -A INPUT -i venet0 -j ACCEPT

# SSH CT1 (port 2221)
iptables -t nat -I PREROUTING -p tcp -d X.X.140.213 --dport 2221 -j DNAT --to 192.168.0.1:22
iptables -I FORWARD -p tcp -d 192.168.0.1 --dport 2221

# SSH CT2 (port 2222)
iptables -t nat -I PREROUTING -p tcp -d X.X.140.213 --dport 2222 -j DNAT --to 192.168.0.2:22
iptables -I FORWARD -p tcp -d 192.168.0.2 --dport 2221


By the way I set up CT using OpenVZ Web Panel.

What do I missunderstand ?
Thanks.
 Topic: bzip2 compression for vzdump
bzip2 compression for vzdump [message #42340] Sun, 03 April 2011 09:06
narcisgarcia is currently offline narcisgarcia
Messages: 32
Registered: May 2009
Member
From: *iberbanda.es
Is there any way to change gzip to bzip2 compression in vzdump backups?

Narcis Garcia
 Topic: maxlat missing?
maxlat missing? [message #42329] Fri, 01 April 2011 05:53
tehh is currently offline tehh
Messages: 1
Registered: April 2011
Junior Member
From: 78.90.16*
Hello,

Is there a particular reason that the maxlat field in /proc/vz/vestat isn't updated no matter what happens in a container/ve?

 Topic: Kernel Parameters in HN and VN
Kernel Parameters in HN and VN [message #42308] Wed, 30 March 2011 14:09
shatter is currently offline shatter
Messages: 18
Registered: September 2009
Location: Germany
Junior Member
From: *dip.t-dialin.net
Hi *,

trying to install Oracle 11g on a Centos-5-64 container, I run into a peculiar problem: the kernel parameters "semmsl" and "semopm" are too small (100/32) - inside the container, although it's big enough (250/256) on the HN:

On VN:
[root@dhsrv1003vz ~]#  ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 100
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 7992
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384



On Host:
nwivz:/# ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 1024
max semaphores per array = 250
max semaphores system wide = 256000
max ops per semop call = 256
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 7992
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

nwivz:/#


Is there a way to configure the VM so it uses the settings of the HN?

Thanx,

Joachim
 Topic: HN crashed with "general protection fault: 0000 [1] SMP"
HN crashed with "general protection fault: 0000 [1] SMP" [message #42297] Wed, 30 March 2011 08:25
sebas is currently offline sebas
Messages: 11
Registered: March 2010
Location: Lithuania, Vilnius
Junior Member

From: *metasite.lt
Here what I've found in /var/log/messages

Mar 30 06:25:02 openvz rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="5308" x-info="http://www.rsyslog.com"] restart
Mar 30 10:10:01 openvz kernel: CPU: 4
Mar 30 10:10:01 openvz kernel: Modules linked in: vzethdev vznetdev simfs vzrst vzcpt vzdquota vzmon vzdev ipt_REDIRECT nf_nat_irc nf_nat_ftp iptable_nat nf_nat xt_helper xt_state xt_conntrack nf_conntrack_irc nf_conntrack_ftp xt_length ipt_LOG ipt_ttl xt_tcpmss xt_TCPMSS ipt_REJECT xt_DSCP xt_dscp xt_multiport xt_limit iptable_mangle iptable_filter ip_tables ipv6 bridge stp tun nf_conntrack_ipv4 nf_conntrack xt_tcpudp x_tables arc4 ecb crypto_blkcipher ppp_mppe ppp_deflate zlib_deflate ppp_async ppp_generic slhc crc_ccitt loop i2c_i801 i2c_core pcspkr button joydev ext3 jbd mbcache raid1 raid0 sd_mod ata_piix pata_acpi ata_generic libata ehci_hcd mptsas uhci_hcd e1000e mptscsih mptbase scsi_transport_sas scsi_mod [last unloaded: scsi_wait_scan]
Mar 30 10:10:01 openvz kernel: Pid: 23307, comm: cron Not tainted 2.6.27-chistyakov.1 #1 chistyakov
Mar 30 10:10:01 openvz kernel: RIP: 0010:[<ffffffff810928ea>]  [<ffffffff810928ea>] __kmalloc+0x95/0x109
Mar 30 10:10:01 openvz kernel: RSP: 0018:ffff880104dcbef8  EFLAGS: 00010086
Mar 30 10:10:01 openvz kernel: RAX: 0000000000000000 RBX: ff8801edd5854000 RCX: ffffffff8103e6ed
Mar 30 10:10:01 openvz kernel: RDX: ffff880028058a40 RSI: 0000000000000000 RDI: ff8801edd5854000
Mar 30 10:10:01 openvz kernel: RBP: ffffffff81448df0 R08: 0000000000000000 R09: 0000000000000000
Mar 30 10:10:01 openvz kernel: R10: 00007fffcdab20d0 R11: 0000000000000202 R12: 00000000000200d0
Mar 30 10:10:01 openvz kernel: R13: 0000000000000282 R14: 00000000000000c0 R15: 0000000000000000
Mar 30 10:10:01 openvz kernel: FS:  00007f9c1e13d770(0000) GS:ffff8801ee879d00(0000) knlGS:0000000000000000
Mar 30 10:10:01 openvz kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 30 10:10:01 openvz kernel: CR2: 00007f9c1d84dd60 CR3: 000000036d582000 CR4: 00000000000006a0
Mar 30 10:10:01 openvz kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Mar 30 10:10:01 openvz kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Mar 30 10:10:01 openvz kernel: Process cron (pid: 23307, veid=0, threadinfo ffff880104dca000, task ffff8801d4188ea0)
Mar 30 10:10:01 openvz kernel: Stack:  0000000000000001 000000000061a900 00000000ffffffff 0000000000000001
Mar 30 10:10:01 openvz kernel: 0000000000000000 ffffffff8103e6ed 00000000ffffffff 0000000000000001
Mar 30 10:10:01 openvz kernel: 000000000061a900 00000000ffffffff 0000000000618118 ffffffff8103ea50
Mar 30 10:10:01 openvz kernel: Call Trace:
Mar 30 10:10:01 openvz kernel: [<ffffffff8103e6ed>] ? groups_alloc+0x32/0xce
Mar 30 10:10:01 openvz kernel: [<ffffffff8103ea50>] ? sys_setgroups+0x38/0xd7
Mar 30 10:10:01 openvz kernel: [<ffffffff8100c00b>] ? system_call_fastpath+0x16/0x1b


found that smbd did this in one container:
Mar 30 10:10:27 openvz kernel: general protection fault: 0000 [3] SMP
Mar 30 10:10:27 openvz kernel: CPU: 4
Mar 30 10:10:27 openvz kernel: Modules linked in: vzethdev vznetdev simfs vzrst vzcpt vzdquota vzmon vzdev ipt_REDIRECT nf_nat_irc nf_nat_ftp iptable_nat nf_nat xt_helper xt_state xt_conntrack nf_conntrack_irc nf_conntrack_ftp xt_length ipt_LOG ipt_ttl xt_tcpmss xt_TCPMSS ipt_REJECT xt_DSCP xt_dscp xt_multiport xt_limit iptable_mangle iptable_filter ip_tables ipv6 bridge stp tun nf_conntrack_ipv4 nf_conntrack xt_tcpudp x_tables arc4 ecb crypto_blkcipher ppp_mppe ppp_deflate zlib_deflate ppp_async ppp_generic slhc crc_ccitt loop i2c_i801 i2c_core pcspkr button joydev ext3 jbd mbcache raid1 raid0 sd_mod ata_piix pata_acpi ata_generic libata ehci_hcd mptsas uhci_hcd e1000e mptscsih mptbase scsi_transport_sas scsi_mod [last unloaded: scsi_wait_scan]
Mar 30 10:10:27 openvz kernel: Pid: 23383, comm: smbd Tainted: G      D   2.6.27-chistyakov.1 #1 chistyakov
Mar 30 10:10:27 openvz kernel: RIP: 0010:[<ffffffff810928ea>]  [<ffffffff810928ea>] __kmalloc+0x95/0x109
Mar 30 10:10:27 openvz kernel: RSP: 0018:ffff8801a3593ef8  EFLAGS: 00010086
Mar 30 10:10:27 openvz kernel: RAX: 0000000000000000 RBX: ff8801edd5854000 RCX: ffffffff8103e6ed
Mar 30 10:10:27 openvz kernel: RDX: ffff880028058a40 RSI: 0000000000000000 RDI: ff8801edd5854000
Mar 30 10:10:27 openvz kernel: RBP: ffffffff81448df0 R08: 0000000000000000 R09: 0000000000000000
Mar 30 10:10:27 openvz kernel: R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000200d0
Mar 30 10:10:27 openvz kernel: R13: 0000000000000282 R14: 00000000000000c0 R15: 0000000000000000
Mar 30 10:10:27 openvz kernel: FS:  00007f3bce77f710(0000) GS:ffff8801ee879d00(0000) knlGS:0000000000000000
Mar 30 10:10:27 openvz kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Mar 30 10:10:27 openvz kernel: CR2: 00007f3bcbc163a0 CR3: 0000000104c19000 CR4: 00000000000006a0
Mar 30 10:10:27 openvz kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Mar 30 10:10:27 openvz kernel: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Mar 30 10:10:27 openvz kernel: Process smbd (pid: 23383, veid=253, threadinfo ffff8801a3592000, task ffff8801d418abe0)
Mar 30 10:10:27 openvz kernel: Stack:  0000000000000000 0000000000000000 0000000000000000 0000000000000001
Mar 30 10:10:27 openvz kernel: 0000000000000000 ffffffff8103e6ed 0000000000000000 0000000000000000
Mar 30 10:10:27 openvz kernel: 0000000000000000 0000000000000000 0000000000000000 ffffffff8103ea50
Mar 30 10:10:27 openvz kernel: Call Trace:
Mar 30 10:10:27 openvz kernel: [<ffffffff8103e6ed>] ? groups_alloc+0x32/0xce
Mar 30 10:10:27 openvz kernel: [<ffffffff8103ea50>] ? sys_setgroups+0x38/0xd7
Mar 30 10:10:27 openvz kernel: [<ffffffff8100c00b>] ? system_call_fastpath+0x16/0x1b


found that munin did this:
/var/log/syslog:Mar 30 10:10:01 openvz /USR/SBIN/CRON[23307]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
/var/log/syslog:Mar 30 10:10:01 openvz kernel: Pid: 23307, comm: cron Not tainted 2.6.27-chistyakov.1 #1 chistyakov
/var/log/syslog:Mar 30 10:10:01 openvz kernel: Process cron (pid: 23307, veid=0, threadinfo ffff880104dca000, task ffff8801d4188ea0)




I'm using 2.6.27-chistyakov.1 on debian 5.0.3

Any ideas what can cause this?

[Updated on: Wed, 30 March 2011 09:30]

Report message to a moderator

 Topic: DAHDI doesn't compile with OVZ Kernel
DAHDI doesn't compile with OVZ Kernel [message #42266] Tue, 29 March 2011 02:18
AlexFox is currently offline AlexFox
Messages: 3
Registered: August 2010
Junior Member
From: *iburst.co.za
Hi,

I recently upgraded my OVZ kernel, and had to recompile the DAHDI driver for Asterisk on the host machine, but I get to following error now:

In file included from /usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux/dri vers/dahdi/xpp/xpd.h:31,
from /usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux/dri vers/dahdi/xpp/card_bri.c:29:
include/linux/device.h:410: error: expected identifier or '(' before 'const'
make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux/dr ivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux/dr ivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/ linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-238.5.1.el5.028stab085.3-x86_64'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux'
make: *** [all] Error 2

When I do the same compile on the standard CentOS kernel, or a previous version of OVZ, it compiles without any errors.

Can anyone help out please.

OS: Centos 5.5
DAHDI version: 2.4.1
OVZ Kernel: 2.6.18-238.5.1.el5.028stab085.3
Software Package installed for compile:
ovzkernel.x86_64
ovzkernel-devel.x86_64
 Topic: RHEL6 042test008.1 number of CPUs
RHEL6 042test008.1 number of CPUs [message #42264] Mon, 28 March 2011 20:17
txqzr4 is currently offline txqzr4
Messages: 6
Registered: March 2011
Junior Member
From: 63.231.241*
I am running RHEL6 042test008.1, but the parameter for specifying the number of CPUs within a container doesn't seem to work.

If I set it to something like 1, I still see all node CPUs with the 'top' command, whereas I would expect to see 1 CPU.

vzctl.log shows the expected output, i.e. "Setting CPUs: 1".

Is this a known issue? I searched the forum but didn't find any applicable posts.

 Topic: vzquota and rsync backup
vzquota and rsync backup [message #42249] Fri, 25 March 2011 11:52
sebas is currently offline sebas
Messages: 11
Registered: March 2010
Location: Lithuania, Vilnius
Junior Member

From: *metasite.lt
Hello,

I need to setup backup solution. The fastest way is to just rsync update files to backup server. But the problem is, that I need to reinitialize quota when trying to start container using just rsynced files from running HN. Reinitializing quota takes a lot of time. Is it possible to turn off quota while starting container, and then turn it on, on new running container.

vzdump isn't the solution, cause it takes a lot of time to dump and then to transfer files to backup server. Maybe there is any solution to run dump only changed files to already existing tar?
 Topic: Slow start when VE have lots of IPs
Slow start when VE have lots of IPs [message #42247] Fri, 25 March 2011 10:24
fernandomm is currently offline fernandomm
Messages: 11
Registered: November 2009
Junior Member
From: *58.36.66.dynamic.adsl.gvt.net.br
Hi,

I have a VE with 300+ IPs assigned to it. The start process ( not VE boot ) takes about 15 minutes.

The process that takes time is /bin/sh /usr/lib/vzctl/scripts/vps-net_add

Is there a way to make this run in background? I usually don't need all IPs upfront, only the first one.

Thanks!
 Topic: Need help with a exec command
Need help with a exec command [message #42232] Tue, 22 March 2011 11:28
B3rt is currently offline B3rt
Messages: 2
Registered: July 2009
Junior Member
From: *static.chello.nl
I want to execute a perl commando using the exec command but I cannot get the syntax correct.

vzctl exec 12345 "/usr/bin/perl \-pi\~ \-e \'\$\_=\"servername=my.hostname.here\\n\" if /\^servername=/\' /usr/local/directadmin/conf/directadmin.conf" 


When i execute the above commando i get the following error:
Can't find string terminator "'" anywhere before EOF at -e line 1.

I tried several options and combinations but i cannot get it correct, it keeps giving an error.

The following command works within the VZ container itself:
 /usr/bin/perl -pi~ -e '$_="servername=my.hostname.here\n" if /^servername=/' /usr/local/directadmin/conf/directadmin.conf

So this command should be executed from the hardware node (outside the VZ container) using the vzctl exec command.

Can someone see the error here?
Thx for any help.
 Topic: [IPVS] try to install ipvs into VE
[IPVS] try to install ipvs into VE [message #42227] Mon, 21 March 2011 06:10
skyangel is currently offline skyangel
Messages: 1
Registered: March 2011
Junior Member
From: 160.92.7*
Hi,

I am trying to set up an ipvs server into a VE.
I'am following the wiki:
But it's not enough.

To do that, i set up a network configuration like this:

On ipvs VE = VE1, I configure a veth device with mac address:

NETIF=" ifname=eth0,mac=00:0C:29:CA:90:9B,host_ifname=veth170002.0,h ost_mac=00:0C:29:3F:6D:E0 "

On hardware node, i configured a bridge device:

vzbr0 Link encap:Ethernet HWaddr 00:0C:29:3F:XX:XX
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.252.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:178105 errors:0 dropped:0 overruns:0 frame:0
TX packets:30025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11312394 (10.7 MiB) TX bytes:2568442 (2.4 MiB)


with interfaces:

brctl show
bridge name bridge id STP enabled interfaces
vzbr0 8000.000c293f6de0 no veth170002.0
bond0.1031

and bond0.1031
bond0.1031 Link encap:Ethernet HWaddr 00:1B:78:79:XX:XX
inet6 addr: fe80::21b:78ff:fe79:d114/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:931247 errors:0 dropped:0 overruns:0 frame:0
TX packets:975025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:115739325 (110.3 MiB) TX bytes:100705549 (96.0 MiB)


I switch on the capa NET_ADMIn on VE.


The same for applicative VE= VE2. I added a VIP on lo mode. XX.XX.XX.1


I installed a ipvs server onton VE1. And my rules is loaded:

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP XX.XX.XX.1:ldap rr
-> XX.XX.XX.XX:ldap Route 1 0 0

So, VE1 is listening on VIP on HME interface, like eth0.

On my VE2, i'am listening on port 389 on VIP.



But,
I 'm not available to do a telnet on VIP:389 since another HWN
[root@HWN ~]# telnet XX.XX.XX.1 389
Trying XX.XX.XX.1...
telnet: connect to address XX.XX.XX.1:389 Connection refused


My keepalived conf:

global_defs {
notification_email {
mail@mail.com
}
notification_email_from keepalived@hwn
smtp_server ZZ.ZZ.ZZ.ZZ
smtp_connect_timeout 30
}

vrrp_instance SSP_ECHAN {
state BACKUP
interface eth0
virtual_router_id 59
priority 99
advert_int 5
smtp_alert
authentication {
auth_type PASS
auth_pass SSP_ECHAN
}
virtual_ipaddress {
XX.XX.XX.1
}
}

virtual_server XX.XX.XX.1 389 {
delay_loop 30
lb_algo rr
lb_kind DR
protocol TCP
ha_suspend
virtualhost XX.XX.XX.1

real_server XX.XX.XX.XX 389 {
weight 1

AGENT_CHECK {
nb_retry 4
frequency 20
}
}

}


If you have an idea, please help me Smile

Thx ahead.




 Topic: vzctl needs a "lint" command
vzctl needs a "lint" command [message #42217] Sat, 19 March 2011 01:08
mperkel is currently offline mperkel
Messages: 243
Registered: December 2006
Senior Member
From: *snfcca.dsl-w.verizon.net
I have a suggestion. How about a "lint" command to test/fix containers for compatibility? I don't know how many of you are like me but I run Fedora containers and every release or so they change something the breaks OpenVZ.

I upgrade with Yum

So - most of these things are easily fixed by deleting/modifying a few simple files. It would be nice to have a utility that did that for me so that I could run vzctl lint <veid> and it would diagnose/fix the container.

my 2 rubles ....


 Topic: vps configuration for vps to run cpanel
vps configuration for vps to run cpanel [message #42205] Thu, 17 March 2011 10:21
stackerhush is currently offline stackerhush
Messages: 3
Registered: September 2010
Junior Member
From: *213.160.106.static.host.gvt.net.br
Hi,

I want some advice to the best way to configure my server:

i have 17 small vps with 256mb with very small usage and 1 vps running cpanel that i want to give most of resoucers.

my server: dual Intel Harpertown E5405 with 12gb ram.
kernel version: 2.6.18-194.26.1.el5.028stab081.1

i have solusvm installed and this server is for private use so i don't have problems with abusers.

My question is how to optimize resouces to run cpanel with best performance because i'm seen php scripts and mysql to run very slow inside the vps with cpanel.

solusvm (running php too) runs very very fast so i'm thinking thats the problem is because my vps to run cpanel is configured with small resources.

here the config for that vps:
guaratee ram: 4096
burst: 6144
CPU Units: 10000
cpu cores: 16
CPU %: 4400
io/priority: 5

some tip to fix this issue?

thanks,
stacker
 Topic: Unable to patch with feoktistov
Unable to patch with feoktistov [message #42145] Tue, 08 March 2011 10:27
fruitwerks is currently offline fruitwerks
Messages: 4
Registered: March 2011
Junior Member
From: *hot.res.rr.com
Hello, I am currently running the atkov patch on 2.6.32.11.

I have attempted to install the feoktistov patch to vanilla sources with no success, I have tried 2.6.32, 2.6.32.27 through 2.6.32.32.

I most cases I could not see openvz in the virtualization section in menuconfig. 2.6.32 could not even run menuconfig.

I am on Debian, but the dist supplied kernels do not boot so I have been forced to compile my own.

Can someone document the proper steps for patching with feoktistov under a kernel version newer than 2.6.32.11?

Thanks All!
 Topic: Problem with limit od CPU.
Problem with limit od CPU. [message #42143] Sun, 06 March 2011 13:46
andegrand is currently offline andegrand
Messages: 1
Registered: March 2011
Junior Member
From: *neoplus.adsl.tpnet.pl
Hello,
I am using the new debian release and the kernel 2.6.26-2-openvz-686.

When i create a container, I put in numer of cpu's.

I use CPUS et CPULIMIT parameters and with HTOP command i can see all the cpu offered by the hardware.

Is there anybody who know if it is possible to limit this ressource ? And which kernel has to be used on Debian to limit it ?

Regards
Pages (70): [ «    3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18    »]


Current Time: Thu May 23 04:35:57 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers