Re: [Users] Kernel crash when removing vznetdev module

2013-01-22 Thread Vasily Averin
https://bugzilla.openvz.org/show_bug.cgi?id=2487 ?

On 01/22/2013 05:33 PM, Benjamin Henrion wrote:
 Hi,
 
 With a RH machine with the stable openvz kernel, I managed to crash
 the machine with this:
 
 root@203 /etc/vz/conf [26]# rmmod vznetdev
 ERROR: Module vznetdev is in use
 root@203 /etc/vz/conf [27]# /etc/init.d/vz stop
 Suspending CT 207
 Suspending CT 207
 Suspending CT 207
 Shutting down CT 207
 Bringing down interface venet0:[  OK  ]
 Stopping OpenVZ:   [  OK  ]
 root@203 /etc/vz/conf [28]# rmmod vznetdev
 ERROR: Module vznetdev does not exist in /proc/modules
 root@203 /etc/vz/conf [29]# /etc/init.d/vz start^C
 root@203 /etc/vz/conf [29]# vzctl set 207 --onboot no
 WARNING: Settings were not saved to config (use --save flag)
 root@203 /etc/vz/conf [30]# vzctl set 207 --onboot no --save
 CT configuration saved to /etc/vz/conf/207.conf
 root@203 /etc/vz/conf [31]# /etc/init.d/vz start
 Starting OpenVZ:   [  OK  ]
 Applying OOM adjustments:  [  OK  ]
 Bringing up interface venet0:  [  OK  ]
 root@203 /etc/vz/conf [32]# rmmod vznetdev
 root@203 /etc/vz/conf [33]# vzctl start 207
 Starting container...
 Container is mounted
 Setting CPU units: 1000
 
 -  Kernel panic
 

___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] Kernel crash when removing vznetdev module

2013-01-22 Thread Vladimir Davydov
On Jan 22, 2013, at 5:33 PM, Benjamin Henrion b...@udev.org wrote:

 Hi,
 
 With a RH machine with the stable openvz kernel, I managed to crash
 the machine with this:
 
 root@203 /etc/vz/conf [26]# rmmod vznetdev
 ERROR: Module vznetdev is in use
 root@203 /etc/vz/conf [27]# /etc/init.d/vz stop
 Suspending CT 207
 Suspending CT 207
 Suspending CT 207
 Shutting down CT 207
 Bringing down interface venet0:[  OK  ]
 Stopping OpenVZ:   [  OK  ]
 root@203 /etc/vz/conf [28]# rmmod vznetdev
 ERROR: Module vznetdev does not exist in /proc/modules
 root@203 /etc/vz/conf [29]# /etc/init.d/vz start^C
 root@203 /etc/vz/conf [29]# vzctl set 207 --onboot no
 WARNING: Settings were not saved to config (use --save flag)
 root@203 /etc/vz/conf [30]# vzctl set 207 --onboot no --save
 CT configuration saved to /etc/vz/conf/207.conf
 root@203 /etc/vz/conf [31]# /etc/init.d/vz start
 Starting OpenVZ:   [  OK  ]
 Applying OOM adjustments:  [  OK  ]
 Bringing up interface venet0:  [  OK  ]
 root@203 /etc/vz/conf [32]# rmmod vznetdev
 root@203 /etc/vz/conf [33]# vzctl start 207
 Starting container...
 Container is mounted
 Setting CPU units: 1000
 
 -  Kernel panic

Not very informative. Where is the kernel log?

Anyway, I guess it is already filed:

https://bugzilla.openvz.org/show_bug.cgi?id=2487

 
 -- 
 Benjamin Henrion bhenrion at ffii.org
 FFII Brussels - +32-484-566109 - +32-2-3500762
 In July 2005, after several failed attempts to legalise software
 patents in Europe, the patent establishment changed its strategy.
 Instead of explicitly seeking to sanction the patentability of
 software, they are now seeking to create a central European patent
 court, which would establish and enforce patentability rules in their
 favor, without any possibility of correction by competing courts or
 democratically elected legislators.
 ___
 Users mailing list
 Users@openvz.org
 https://lists.openvz.org/mailman/listinfo/users


___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] Kernel crash when removing vznetdev module

2013-01-22 Thread Benjamin Henrion
On Tue, Jan 22, 2013 at 2:57 PM, Vladimir Davydov
vdavy...@parallels.com wrote:
 On Jan 22, 2013, at 5:33 PM, Benjamin Henrion b...@udev.org wrote:

 Hi,

 With a RH machine with the stable openvz kernel, I managed to crash
 the machine with this:

 root@203 /etc/vz/conf [26]# rmmod vznetdev
 ERROR: Module vznetdev is in use
 root@203 /etc/vz/conf [27]# /etc/init.d/vz stop
 Suspending CT 207
 Suspending CT 207
 Suspending CT 207
 Shutting down CT 207
 Bringing down interface venet0:[  OK  ]
 Stopping OpenVZ:   [  OK  ]
 root@203 /etc/vz/conf [28]# rmmod vznetdev
 ERROR: Module vznetdev does not exist in /proc/modules
 root@203 /etc/vz/conf [29]# /etc/init.d/vz start^C
 root@203 /etc/vz/conf [29]# vzctl set 207 --onboot no
 WARNING: Settings were not saved to config (use --save flag)
 root@203 /etc/vz/conf [30]# vzctl set 207 --onboot no --save
 CT configuration saved to /etc/vz/conf/207.conf
 root@203 /etc/vz/conf [31]# /etc/init.d/vz start
 Starting OpenVZ:   [  OK  ]
 Applying OOM adjustments:  [  OK  ]
 Bringing up interface venet0:  [  OK  ]
 root@203 /etc/vz/conf [32]# rmmod vznetdev
 root@203 /etc/vz/conf [33]# vzctl start 207
 Starting container...
 Container is mounted
 Setting CPU units: 1000

 -  Kernel panic

 Not very informative. Where is the kernel log?

Sorry, I was in SSH, will try to catch the kernel messages.

-- 
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-3500762
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] Add automatically veth101.1 to the vzbr0 bridge?

2013-01-22 Thread Benjamin Henrion
On Tue, Jan 22, 2013 at 4:06 PM, Benjamin Henrion b...@udev.org wrote:
 Hi,

 Is there an automatic method to add  veth101.1 to the vzbr0 bridge
 when I restart a CT?

 Some people are using the .mount script, but it looks like very hackish:

 http://forum.openvz.org/index.php?t=msggoto=39029;

 Any better way to do it?

More preciselly, I am looking to do the same as the Debian config on Redhat:

http://wiki.openvz.org/Virtual_Ethernet_device#Independent_Virtual_Ethernet_communication_through_the_bridge

auto vzbr0
iface vzbr0 inet static
bridge_ports eth0
bridge_fd 0
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.254

Any equivalent under RH63?

-- 
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-3500762
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] Add automatically veth101.1 to the vzbr0 bridge?

2013-01-22 Thread Benjamin Henrion
On Tue, Jan 22, 2013 at 4:14 PM, Benjamin Henrion b...@udev.org wrote:
 On Tue, Jan 22, 2013 at 4:06 PM, Benjamin Henrion b...@udev.org wrote:
 Hi,

 Is there an automatic method to add  veth101.1 to the vzbr0 bridge
 when I restart a CT?

 Some people are using the .mount script, but it looks like very hackish:

 http://forum.openvz.org/index.php?t=msggoto=39029;

 Any better way to do it?

 More preciselly, I am looking to do the same as the Debian config on Redhat:

 http://wiki.openvz.org/Virtual_Ethernet_device#Independent_Virtual_Ethernet_communication_through_the_bridge

 auto vzbr0
 iface vzbr0 inet static
 bridge_ports eth0
 bridge_fd 0
 address 192.168.1.100
 netmask 255.255.255.0
 gateway 192.168.1.254

 Any equivalent under RH63?

Sorry, the solution was just adding that file:

cat /etc/vz/vznet.conf

#!/bin/bash
EXTERNAL_SCRIPT=/usr/sbin/vznetaddbr

-- 
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-3500762
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] Add automatically veth101.1 to the vzbr0 bridge?

2013-01-22 Thread CoolCold
Isn't it what you are looking for
https://sites.google.com/site/ghidit/how-to-2/configure-bridging-on-centos
?

On Tue, Jan 22, 2013 at 7:14 PM, Benjamin Henrion b...@udev.org wrote:
 On Tue, Jan 22, 2013 at 4:06 PM, Benjamin Henrion b...@udev.org wrote:
 Hi,

 Is there an automatic method to add  veth101.1 to the vzbr0 bridge
 when I restart a CT?

 Some people are using the .mount script, but it looks like very hackish:

 http://forum.openvz.org/index.php?t=msggoto=39029;

 Any better way to do it?

 More preciselly, I am looking to do the same as the Debian config on Redhat:

 http://wiki.openvz.org/Virtual_Ethernet_device#Independent_Virtual_Ethernet_communication_through_the_bridge

 auto vzbr0
 iface vzbr0 inet static
 bridge_ports eth0
 bridge_fd 0
 address 192.168.1.100
 netmask 255.255.255.0
 gateway 192.168.1.254

 Any equivalent under RH63?

 --
 Benjamin Henrion bhenrion at ffii.org
 FFII Brussels - +32-484-566109 - +32-2-3500762
 In July 2005, after several failed attempts to legalise software
 patents in Europe, the patent establishment changed its strategy.
 Instead of explicitly seeking to sanction the patentability of
 software, they are now seeking to create a central European patent
 court, which would establish and enforce patentability rules in their
 favor, without any possibility of correction by competing courts or
 democratically elected legislators.
 ___
 Users mailing list
 Users@openvz.org
 https://lists.openvz.org/mailman/listinfo/users



-- 
Best regards,
[COOLCOLD-RIPN]
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users