[Users] Re: help me ,thanks
Hi, please check your vzlist settings: # vzlist o veid -H to # vzlist -Ho ctid ( Option veid can be deprecated in future) # vzlist -H -o ctid Bye, Thorsten On 10/24/2011 01:40 PM, schrieb 张立洪: dears: I want run phoronix-test-suite test all vps performance,and need running phoronix-test-suite benchmark in vps concurrently. commands as follows: # for i in `vzlist o veid -H`; do \ echo VPS $i; vzctl exec $i phoronix-test-suite run pts/test ; done but is shows error vzlist o veid -His bad CT ID. please tell me why? what is posting password? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Where to upload Squeeze templates?
Hi, please contact k...@openvz.org for include your squeezed debian template to contrib Btw, squeeze is frozen, so some critical bugs are uploaded to squeeze to stablize the testing in the next time, so the template is going to be outdated! And in this script on github, the security repository for squeeze are not included: a line like: (...) deb http://ftp.de.debian.org/debian-security squeeze/updates main non-free [contrib] (...) is missing on apt/sources.list Bye, Thorsten On Tue, 23 Nov 2010 11:32:06 +0100, Benjamin Henrion b...@udev.org wrote: Hi, I have done some templates for Debian squeeze with the following script: https://github.com/zoobab/openvz-scripts/blob/master/create-template-debian-squeeze-amd64.sh Do you know where I can upload them? Any incoming directory on ftp.openvz.org? Best, -- Benjamin Henrion bhenrion at ffii.org FFII Brussels - +32-484-566109 - +32-2-4148403 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://openvz.org/mailman/listinfo/users
Re: [Users] Trouble w/ OOM-Killers
Hi, plz show you user_beancounters of this ct (as root)% cat /proc/bc/ctid/resources Bye, Thorsten -- Thorsten Schifferdecker OpenVZ Power User On Thu, 30 Sep 2010 18:24:17 +0200, Enrico Weigelt weig...@metux.de wrote: Hi folks, I'm running a small mail server (sendmail + spamassassin) in an ovz container, which gives me frequently OOM killers (*much* more often than a normal setbrk() fails). I'd guess certain limits aren't set correctly. What could be wrong ? uname -a: Linux caprica.metux.de 2.6.32.12-default #6 SMP Mon Jun 7 17:19:01 CEST 2010 x86_64 Dual-Core AMD Opteron(tm) Processor 1218 HE AuthenticAMD GNU/Linux conf: KMEMSIZE=84372700:94790164 LOCKEDPAGES=256:256 PRIVVMPAGES=25553600:25963200 SHMPAGES=21504:21504 NUMPROC=1024:1400 PHYSPAGES=0:9223372036854775807 VMGUARPAGES=33792:9223372036854775807 OOMGUARPAGES=26112:9223372036854775807 NUMTCPSOCK=2048:2048 NUMFLOCK=4096:5096 NUMPTY=28:32 NUMSIGINFO=256:256 TCPSNDBUF=2720320:3703360 TCPRCVBUF=2720320:3703360 OTHERSOCKBUF=1126080:2097152 DGRAMRCVBUF=262144:262144 NUMOTHERSOCK=360:360 DCACHESIZE=3409920:3624960 NUMFILE=32000:4 AVNUMPROC=280:280 NUMIPTENT=128:128 DISKSPACE=8048576:9153024 DISKINODES=40:42 QUOTATIME=0 thx -- -- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weig...@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 -- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Capturing the PID of every VE during startup / shutdown.
Hi Daniel, a simple solution can be, take a look to /proc of running contaier from ct0. path-to-ct-root/proc/1/stat e.g. $ awk '{ print $1 }' /var/lib/vz/root/20123/proc/1/stat 28858 ^_real pid at ct0 Hope this helps. Bye, Thorsten On Sun, 16 May 2010 19:43:58 +1000, Daniel Pittman dan...@rimspace.net wrote: G'day. We are currently looking into doing more monitoring and management of our VEs from the hardware node, and as part of that we would like to have access to a reasonably reliable mapping of VE id to VE init process PID on the host node. (This would be, basically, the equivalent of /var/run/foo.pid, where foo was the VEID, and the PID was the host-node PID of the init process.) (...) ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] High Load
Hi, ven...@dedicados.com.mx schrieb: how to know, wich proccess belong to wich container??? simple, check the proc fs: $ grep envID /proc/PID/status $ vzpid PID (vzpid, part of vzctl, use the envID of process) for more about procs and containers, these progs can help: $ htop (config - add CTID to list, sort colums with CTID) $ vzps -E CTID axf (part of vzprocps) $ vztop -E CTID rpm pkg can be found at: http://download.openvz.org/contrib/utils/ deb pkg cat be found at: http://debian.systs.org/debian/pool/openvz/v/vzprocps/ Bye, Thorsten ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Cannot stop or restart container
Hi, and any entries logged in kern.log/dmesg as well ? Bye, Thorsten Steven Crothers schrieb: What template are you using and where did you get it from? I recently had a similar result from an Archlinux template, however I would need to know more about the container to be able to relate it to my case. Can you vzctl enter it? -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gregor at HostGIS Sent: Tuesday, March 30, 2010 3:53 PM To: OpenVZ Maling List Subject: [Users] Cannot stop or restart container Hey guys. I reported a bug some months ago, not being able to stop and restart a container, getting a timeout instead. When I reported the bug months ago, I was unable to replicate it at the time. But here it is once again: I cannot stop or restart the VE. This clip shows the results which I see: # vzctl restart Customer Restarting container Stopping container ... Unable to stop container: operation timed out # vzlist Customer CTID NPROC STATUS IP_ADDR HOSTNAME 84 3 running - Customer The 3 processes, I don't know what they are but they may be related to this, and may be a clue: After the initial vzctl restart, it got down to 1 process before it timed out. I ran vzctl exec Customer ps ax and now I notice that the NPROC increments each time I do this. However from the HN, ps ax | grep ps only shows the one 'ps' which I am running, not the ones in the VE. Any thoughts on how I can finally stop this thing and restart it? Note that this is a production HN with production VEs, so rebooting it is not an attractive option. HN OS is Fedora 9 Kernel is 2.6.24.ovz009.1 vzctl-3.0.23-1.x86_64 vzctl-lib-3.0.23-1.x86_64 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Mail server
Hi, can you please post more infos about your configuration, esp. - ct configuration != os template # grep ^OSTEMPLATE /etc/vz/conf/CTID.conf e.g your ct config is used for GNU\Debian System but container holds a CentOS, it's possible you've used a wrong os template for your system. ostmpl = dist-version-arch-info // .tar.gz precreated located in /vz/template/cache - any fails (counter) logged ? # cat /proc/bc/CTID/resources - which kind of software are used ? - can you provide any error of relevant logs files ? Bye, Thorsten mattias schrieb: Don't try to install a mail server based on mysql You only recive errors like /etc/network/interfaces no souch file or directory ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Re: [Debian] Nfs In VE
Hi, Arturas Skauronas wrote: On Fri, Feb 12, 2010 at 12:19 PM, Ola Lundqvist o...@debian.org wrote: Hi Greory It's my actual, will it's possible to use better way locks You can try to include the modules inside the VE but I do not think it is supported in the current kernel. You can also try to load the modules in the main server (VE container) and see if it works. But I have seen a bit to many error reports about this so I can not tell if it works or not. http://bugzilla.openvz.org/show_bug.cgi?id=1406 so as I understand you will have to wait a month or two ... and the vzctl nfsd feature See: http://git.openvz.org/?p=vzctl;a=commit;h=006623ef9b5a19b50c83f53e32fd8bf055dc48bd Bye, Thorsten Schifferdecker ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Setting defaults for templates...
Hi, add capability and more settings to your ct template config file, like: $ echo 'CAPABILITY=SYS_ADMIN:on ' /etc/vz/conf/ve-your-CT_template_name.conf-sample And deploy it ... // some capa need a restart $ vzctl set CTID --applyconfig template_cfg [...] or use on your creation: $ vzctl create CTID --config template_cfg [...] Bye, Thorsten Robert B wrote: I have a template that I use which needs a certain capability enabled each time I deploy it. Is there an easy way to set this capability inside the template itself? I am sick of having to use this every time: vzctl set # --capa sys_admin:on --save If there's a way to script this, that would be even better because I could automate a few more things... Thanks! -- Robert ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Seeing Boot Progress for Guest VM
Hi Dietmar, ... have you send the patch to bugzilla ...? Bye, Thorsten Scott Dowdle schrieb: Greetings, Kir, are you reading this? If so, can you state why this patch has been rejected? Any chance we can get it added to mainline vzctl? - Dietmar Maurer diet...@proxmox.com wrote: You can find the current sources at: ftp://pve.proxmox.com/sources/vzctl_2009-12-22.tar.gz -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gordan Bobic Sent: Dienstag, 29. Dezember 2009 11:04 To: users@openvz.org Subject: Re: [Users] Seeing Boot Progress for Guest VM Dietmar Maurer wrote: I have sent a patch to this list a year ago, called 'init-logger'. We use it in proxmox ve (pve.proxmox.com) to display init output. Is this the most up to date version? http://www.mail-archive.com/users@openvz.org/msg02191.html ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Openwall Linux (OWL) switches to OpenVZ kernel
Hi, Scott Dowdle schrieb: Greetings, I just noticed this: http://www.openwall.com/Owl/ I haven't used Openwall myself but I'm guessing someone from Openwall might be on this mailing list. If so, please introduce yourself. What kernel version/branch are you guys using? TYL, - http://www.openwall.com/Owl/CHANGES-current.shtml ---8... The default kernel has been replaced with OpenVZ's latest from their rhel5 branch, with some modifications of our own (mostly for better compatibility with the Owl userland, as well as for security). Formally, this was forked off Linux 2.6.18 (originally by Red Hat), but the changes are so extensive that this is actually an up-to-date kernel branch/version on its own, including Red Hat's back-ports of security fixes (and a lot more) and OpenVZ's container-based virtualization. This kernel branch is currently maintained by both Red Hat (for RHEL5) and OpenVZ. The specific version number we're currently using is 2.6.18-128.2.1.el5.028stab064.8-owl0.2. ---8... Seem that the last OpenVZ linux kernel security update to version 028stab066.7 is not yet released in their repository. Bye, Thorsten ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] What happened to the FZA Debian Kernels?
Hi, the fzakernels are not longer supported and removed yesterday after release of the security update of stable OpenVZ Linux kernels. Please use the ovzkernel-2.6.18-686-ent (028stab064.8) : linux-image-2.6.18-20-ovz-686-ent linux-headers-2.6.18-20-ovz-686-ent Thanks, Thorsten JR Richardson schrieb: deb http://download.openvz.org/debian-systs etch openvz I just downloaded these yesterday: linux-headers-2.6.18-14-fza-686-bigmem - Header files related to OpenVZ Linux kernel, specifically, linux-image-2.6.18-14-fza-686-bigmem - OpenVZ Linux kernel binary image for version 2.6.18-14-fza-686-bigmem They are gone today. Are they moved to another repository or should I be using linux-headers-2.6.18-20-ovz-686-ent instead? Thanks. JR -- JR Richardson Engineering for the Masses ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Shutdown problems
Hi, can you please fill a bug at bugzilla.openvz.org and add info about: - what template OS is used - any log entries in syslog (kern|dmesg).log - which raid controller Bye, Thorsten HostGIS Support schrieb: I emailed on the topic before, and have never found a solution -- nor indeed, more than one other corroboration of the problem's existence. But now, I have freed up a while server with OpenVZ where we can experiment with it at will. The problem: Shutting down a VPS gives me a timeout after several minutes. Although all processes in the container are dead, the container itself will not finish shutting down. The veth device never goes down, the container cannot be restarted, the phantom VPS will hang around until I power-cycle the server. This interrupts shutdowns too: init 0 and reboot never, ever work; they do nothing, they don't turn anything off; and I have to pull the plug. Worse, this happens reliably -- I don't dare shut down a VPS unless it's a migration, and I can manually complete the migration and startup, then power-cycle the origin HN. BUT... Now we have a machine and some IPs with OpenVZ, and my current project is to figure this thing out so we can reboot with confidence. Where do we start and who's with me? :) ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] chkpnt: Error: d_path is invisible /var/lock
reHi, please post your kernel version and used OS Template. Bye, Thorsten Anthony - wrote: Hi, I'm trying to use the vzctl chkpnt/restore commands. Here is what I get : 1st chkpnt OK: sudo vzctl chkpnt 100 --dumpfile dump1 Setting up checkpoint... suspend... dump... kill... VE is unmounted Checkpointing completed succesfully restore OK: sudo vzctl restore 100 --dumpfile dump1 Restoring VE ... Warning: distribution not specified default used /etc/vz/dists/default Starting VE ... VE is mounted undump... Setting CPU units: 10561 Configure meminfo: 138288 Configure veth devices: hnsTap0 hnsTap1 resume... VE start in progress... Restoring completed succesfully and the 2nd chkpnt fails: sudo vzctl chkpnt 100 --dumpfile dump1 Setting up checkpoint... suspend... dump... Can not dump VE: Invalid argument Error: d_path is invisible /var/lock Checkpointing failed What is the problem with /var/lock ? ls -lh /var/lock total 0 drwxr-xr-x 2 www-data root 40 2009-09-10 09:15 apache2 -rw-r--r-- 1 root root 0 2009-09-10 09:15 vz Thanks Anthony ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] halting a VE
Hi Daniel, See vzctl man page, subsection Checkpointing and restore, like: 1) checkpoint container: # vzctl chkpnt CTID [more-options] 2) restore container: # vzctl restore CTID [more-options] Btw. vzmigrate use this feature for zero-down time migration. Bye, Thorsten -- Thorsten Schifferdecker OpenVZ Power User with a swirl http://debian.systs.org/ Daniel Lüdeking schrieb: Hello, i have a simple question about openVZ. is it possible to halt and resume a virtual service instance? Regards, Daniel ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] ubuntu precreated template problem
remove the /etc/network/interfaces.template loopback entries: auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up ip route replace 127.0.0.0/8 dev lo and restart the container ... or remove entries in /etc/network/interfaces and restart networking or ifup lo Seem to affected all precreated debian and ubunutu distros at http://download.openvz.org/template/precreated/ only Bye, Thorsten -- OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ dan schrieb: I'm having problems with the precreated 8.04-x86 template. After setting the normal ipaddress/hostname/gateway settings and starting the template, I get no networking. The CentOS template works fine, so its not my networking setup. If I modify the /etc/network/interfaces file to be like a typical system, networking will restart without error, but I cannot access the network still. The host node is Ubuntu 8.04. Ideas? Suggestions? dan == r...@www:/# /etc/init.d/networking restart * Reconfiguring network interfaces... /etc/network/interfaces:14: interface lo declared allow-auto twice ifdown: couldn't read interfaces file /etc/network/interfaces /etc/network/interfaces:14: interface lo declared allow-auto twice ifup: couldn't read interfaces file /etc/network/interfaces [fail] == r...@www:/# cat /etc/network/interfaces # This configuration file is auto-generated. # WARNING: Do not edit this file, otherwise your changes will be lost. # Please edit template /etc/network/interfaces.template instead. auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up ip route replace 127.0.0.0/8 dev lo # Auto generated interfaces auto lo iface lo inet loopback auto venet0 iface venet0 inet static address 127.0.0.1 netmask 255.255.255.255 broadcast 0.0.0.0 up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0 up route add default gw 192.0.2.1 auto venet0:0 iface venet0:0 inet static address 192.168.1.237 netmask 255.255.255.255 broadcast 0.0.0.0 = ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] network card
Hi Matthias, setup containers network $ man vzctl section Network related parameters venet(work) : $ vzctl set ctid --ipadd IPv4|IPv6 ... \ [--nameserver nameserver] ...\ --save veth(ernet): $ vzctl set ctid --netif_add eth0 ... \ [--nameserver nameserver] ...\ --save and more at http://wiki.openvz.org/Category:Networking Bye, Thorsten -- OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ mattias schrieb: help my ct dosent find any network no lo nothing ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] sshproxy + debian lenny inside openvz container
Pongracz Istvan schrieb: 2009. 01. 22, csütörtök keltezéssel 13.57-kor Scott Dowdle ezt írta: Istvan, My first question would be... are their any container UBC errors? Hi, Scott and other, thank you! Unfortunatelly there are no UBC errors. I already checked it. :( Limits are really high, compared to the maximum used values. I try to compare the working system (inside Virtualbox) with the openvz container. I tried to check the lsof, while running them, maybe I will use strace to track them... What if there is a difference in the /dev between native and VE? Thank you guys! István please post version of this 2.6.24 OpenVZ kernel $ cat /proc/vz/version Bye, Thorsten -- OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] df showing zero space used
Hi, which kind of filesystem is used for /vz, it is not an ext3, right ? On Fri, 21 Nov 2008 16:46:13 +0200, Garith Dugmore [EMAIL PROTECTED] wrote: Hello fellow openvz users, Would anyone know why a 'df -h' is showing zero space used? proxy:/var/cache# df -h FilesystemSize Used Avail Use% Mounted on simfs 100G 0 100G 0% / tmpfs 2.0G 0 2.0G 0% /lib/init/rw tmpfs 2.0G 0 2.0G 0% /dev/shm Bye, Thorsten -- Thorsten Schifferdecker OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Re: Announcement: Proxmox Virtual Environment 1.0 -Firststable release
Hi, it possible to install pve on i386 as well, the minimun packages and the most pve scripts are written in perl, only useing pve with OpenVZ no kvm is needed. On Fri, 21 Nov 2008 17:54:11 +0100, Dietmar Maurer [EMAIL PROTECTED] wrote: what is the minimum HW requirements for Proxmox? Can it be installed on an AMD 686 single core CPU? (just for testing/learning of course... :-) http://pve.proxmox.com/wiki/Installation#System_requirements So an old AMD 686 will not work. - Dietmar Bye, Thorsten -- Thorsten Schifferdecker OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Re: Announcement: Proxmox Virtual Environment 1.0-Firststable release
Hi Dietmar, On Fri, 21 Nov 2008 20:06:25 +0100, Dietmar Maurer [EMAIL PROTECTED] wrote: @Dietmar: Btw can you plz describe where the source is downloadable ? ftp://pve.proxmox.com/sources/ But before you start the i386 port think twice - there are many useful things you can do instead ;-) ... ok, what can we i do ;-) Bye, Thorsten -- Thorsten Schifferdecker OpenVZ Power User with a swirl http://debian.systs.org/category/openvz/ ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] is vzctl newer than 3.0.22 available?
Hi, see git repository at http://git.openvz.org/?p=vzctl, commit Add brigde parameter to --netif options, this wiki page add the option, too Regards, Thorsten -- OpenVZ Poweruser with a swirl http://debian.systs.org/category/openvz/ Am Sa, 27.09.2008, 09:16, schrieb Alexander Piavka: Hi, I saw there a are serveral references to vzctl newer than 3.0.22, for example at http://wiki.openvz.org/Virtual_Ethernet_device#syntax_vzctl_version_.3E_3.0.22 But it is not available for download. In the git log http://git.openvz.org/?p=vzctl;a=shortlog I see there were no relaeases since 3.0.22, maybe it's time for new release? Meanwhile which url should I specifiy to checkout the latest vzctl commit? Thanks Alex ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
[Users] patch : make webvz more distro independent
Hi Shuaib, please add this patch for webvz: On RPM distros /etc/sysconfig/vz-scripts/ is a symbolic link to /etc/vz/conf/ other distro use the /etc/vz/conf/ directory. See more http://git.openvz.org/?p=vzctl;a=blob;f=vzctl.spec;h=076ed1d894720e9da567b0e2d7c626824a7ac1bb;hb=164d72740e68f53dfae33e30a8bb68d3618c37f3 Regards, Thorsten -- Thorsten Schifferdecker OpenVZ Poweruser with a swirl http://debian.systs.org/category/openvz/diff --git a/app/controllers/configfile_controller.rb b/app/controllers/configfile_controller.rb index 88dd94e..0919178 100644 --- a/app/controllers/configfile_controller.rb +++ b/app/controllers/configfile_controller.rb @@ -27,21 +27,21 @@ class ConfigfileController ApplicationController def edit_conf_file @file_name = params[:conf_name] - path = /etc/sysconfig/vz-scripts/[EMAIL PROTECTED] + path = /etc/vz/conf/[EMAIL PROTECTED] cnf = Vps.new @conf_file = cnf.read_sample_conf_file(path) end def delete_conf_file @file_name = params[:conf_name] -`rm -rf /etc/sysconfig/vz-scripts/[EMAIL PROTECTED] +`rm -rf /etc/vz/conf/[EMAIL PROTECTED] flash[:notice] = [EMAIL PROTECTED] configuration file was deleted. redirect_to :action = :list_conf_file end =begin def validate_conf_file @file_name = params[:conf_name] - output = `vzcfgvalidate /etc/sysconfig/vz-scripts/[EMAIL PROTECTED] + output = `vzcfgvalidate /etc/vz/conf/[EMAIL PROTECTED] flash[:notice] = output redirect_to :action = :list_conf_file end diff --git a/app/models/vps.rb b/app/models/vps.rb index 6fbdebe..416add9 100644 --- a/app/models/vps.rb +++ b/app/models/vps.rb @@ -17,7 +17,7 @@ class Vps ActiveRecord::Base end def read_conf_file(vps_id) - file = File.open(/etc/sysconfig/vz-scripts/#{vps_id}.conf, r) + file = File.open(/etc/vz/conf/#{vps_id}.conf, r) extract_values(file) end @@ -27,7 +27,7 @@ class Vps ActiveRecord::Base end def write_to_conf_file(name, conf_file) - new_file = File.open(/etc/sysconfig/vz-scripts/ve-#{name}.conf-sample, w) + new_file = File.open(/etc/vz/conf/ve-#{name}.conf-sample, w) for k, v in conf_file unless k[\n] @text = k.to_s+=+v.to_s___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] patch : make webvz more distro independent
Hi, Am Mo, 22.09.2008, 06:31, schrieb Pongracz Istvan: 2008. 09. 22, hétfÅ keltezéssel 03.48-kor Thorsten Schifferdecker ezt Ãrta: Hi Shuaib, please add this patch for webvz: On RPM distros /etc/sysconfig/vz-scripts/ is a symbolic link to /etc/vz/conf/ other distro use the /etc/vz/conf/ directory. Hi Thorsten, for gentoo installation, I made a small howto to the gentoo-wiki: http://gentoo-wiki.com/index.php?title=HOWTO_to_Get_WebVZ_2.0_on_Gentoo_to_Administrate_OpenVZ [...] Perfect, with this patch, step 3 isn't needed anymore! Regards, Thorsten -- Thorsten Schifferdecker OpenVZ Poweruser with a swirl http://debian.systs.org/category/openvz ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] New vzpkg, templates and package caching daemon
Hello Robert, i've built a debian vzpkg2 package, but need the source of pkg-cacher as well, but cannot be download from http://gforge.opensource-sw.net/projects/pkg_cacher. So please fix, that the packge depends are working, Thanks and by, Thorsten -- Thorsten Schifferdecker [EMAIL PROTECTED] Am Sa, 6.09.2008, 05:27, schrieb Robert Nelson: I have a preliminary version of the new vzenpkg utilities ready for testing. These new tools support creating templates for 32 and 64 bit flavours of the following: Centos 4 and 5, Fedora 7, 8 and 9, Debian Sarge and Etch, Ubuntu Feisty, Gutsy and Hardy. They are extensible and will eventually support OpenSUSE and Gentoo. In addition, I've created pkg-cacher, a transparent caching proxy daemon optimized for Debian and RPM packages. It is based on apt-cacher version 1.6.4 available with Debian. This version has been modified to understand RedHat RPM repositiories. It also adds support for the HTTP Range header and deals correctly with files which have the same name but different content on different distributions or in some cases different versions of the same distribution. The pkg-cacher source is available on http://gforge.opensource-sw.net/projects/pkg_cacher. The source for the new vzpkg and templates is available on git.opensource-sw.net. You can browse the source using the url http://git.opensource-sw.net/. In order to clone the updated source use the command git clone http://git.opensource-sw.net/git/vzpkg;. The templates are available using git clone http://git.opensource-sw.net/git/vztmpl;. In order to make installation easy I've setup repositories for 32 and 64 bit versions of CentOS 4, 5 and Fedora 7, 8 and 9. I'll be producing packages for Debian and Ubuntu as HN later. Please let me know of any issues or suggestions. Step by step installation instructions are below: Existing install) Backup your existing /vz/template directory Uninstall vzpkg and any vztmpl-* packages. New install) wget http://download.openvz.org/openvz.repo -P /etc/yum.repos.d Enable appropriate OpenVZ kernel yum install vzctl service vz start echo -n 1 /proc/sys/net/ipv4/ip_forward For CentOS: wget http://repo.opensource-sw.net/ossw_centos.repo -P /etc/yum.repos.d For Fedora: wget http://repo.opensource-sw.net/ossw_fedora.repo -P /etc/yum.repos.d yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu yum install pkg-cacher Add the following to /etc/vz/vz.conf # # Replace hostname with the IP address or name of the server running pkg-cacher. # Don't use localhost, it must be a name resolvable from within the container. VZPKG_CACHE_HOST=hostname:3142 # # Network information for updating templates for Debian, Ubuntu # and other distributions that need network access. # # Adjust these to suit your network. # # Temporary static IP address used by the container while updating the # cached template. VZPKG_IPADDR=192.168.1.100 # # Default domain suffix to append to host names that aren't fully qualified. VZPKG_SEARCH=example.com # # List of DNS servers VZPKG_DNS=192.168.1.2,192.168.1.3 # cd /etc/vz/dists cp fedora-8.conf fedora-9.conf ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Official Debian OpenVZ Kernels available
Hi, use the git sources at : http://git.openvz.org/?p=linux-2.6.26-openvz;a=summary Regards, Thorsten -- Thorsten Schifferdecker [EMAIL PROTECTED] Am Do, 28.08.2008, 13:17, schrieb patrick daures: Hi, I would like to use the a 2.6.26 OpenVZ kernel on a Mandriva. I'm looking for the sources in order to compile everything by miself. Where could I find the sources ? Thank you ! 2008/8/27, Roberto Mello [EMAIL PROTECTED]: On Wed, Aug 27, 2008 at 1:28 PM, Suno Ano [EMAIL PROTECTED] wrote: I just wanted to say, starting with 2.6.26, Debian is now providing precompiled kernels (as well as user-space tools vzquota and vzctl) from its official mirrors: Fantastic news! Thanks for sharing. For now, precreated OS templates for lenny also known as Debian 5.0 can be found here http://forzza.systs.org/ostemplates/ Beauty. What scares me about downloading templates is that I don't know how to check whether the template is intact. It would be nice if one could double check using Debian's own fingerprints. Anyone know if that can be done? Roberto -- http://blog.divisiblebyfour.org/ ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users -- Patrick DAURES 4TC Résidence de Staël 17 rue de Bruxelles 69100 Villeurbanne tél: (+33)607267043 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users -- Gruss / Regards, Thorsten Schifferdecker ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] vzctl start
Hi, Am Do, 28.08.2008, 14:26, schrieb Papp Tamás: Roberto Mello wrote: On Thu, Aug 28, 2008 at 2:57 AM, Papp Tamás [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I mounted a /var partition under /vz/100/root, which should contain the /var related files. vzctl start, and I created a test file under it. But the file was not appeared on the partition, but under the private system. How exactly did you mount it? mount /dev/VG1/var /vz/100/root/var vzctl start 100 Or what do you mean, how? Also when I start the VE, I see the root with the same size as private, but after the I stop it, it's clean. Is this with something like mount -o bind? $VZ/root/$VE is populated dynamically when the VE is started. What does it mean populated? When the container with ID is started, the privat area /vz/private/$ID is mounted to /vz/root/$ID and then the container get started. For mounting partion use the /vz/root/$ID/ Tree: like: HW_NODE|CT0 $ mount /dev/VG1/var /vz/root/100/var HW_NODE|CT0 $ vzct exec 100 ls /var (show the content in /dev/VG1/var) Thank you, tamas ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users Regards, Thorsten -- [EMAIL PROTECTED] Thorsten Schifferdecker ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: AW: [Users] Iptables problem Debian HN / CentOS VE
Hi Lorenzo, have you restart the container; after the iptables modules are loaded on CT0 (hardwarenode) ? Regards, Thorsten -- Thorsten Schifferdecker [EMAIL PROTECTED] Am Do, 28.08.2008, 17:14, schrieb Lorenzo Quatrini: Dietmar Maurer ha scritto: by default all iptables modules that are loaded in the host system are accessible inside a container so I guess that will not help? You're right: I added xt_tcpudp xt_state and also checked that nf_conntrack_ipv4 was there on /etc/vz/vz.conf Also the above modules are loaded on HN, but still no luck. When I try to load a rule wich use state I get an error on VM and on HN an entry on /var/log/messages: Aug 28 17:09:19 localhost kernel: can't load conntrack support for proto=2 I googled for the error, but I didn't find any interesting (apart xt_tcpudp and nf_conntrack_ipv4) Any Idea? -- Regards Lorenzo Quatrini ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Kernel Developement books?
Hi Dietmar, for a first glance http://git.openvz.org/?p=linux-2.6.24-openvz;a=blob_plain;f=Documentation/cgroups.txt;hb=HEAD Gruss / Regards, Thorsten Schifferdecker Am Di, 10.06.2008, 07:29, schrieb Dietmar Maurer: Hi all, Are there any good books around concerning linux kernel developement - with up to date infos for new 2.6 features like cgroups? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Problem starting Ubuntu 8.04
Hi, since ubuntu-7.10 change init to upstart you need vzctl-3.0.22 or greater, see http://wiki.openvz.org/Ubuntu_Gutsy_template_creation#vzctl and http://bugzilla.openvz.org/662 Gruss / Regards, Thorsten Schifferdecker Am So, 25.05.2008, 21:49, schrieb Abhinav Lele: Hi, I am trying to run a ubuntu 8.04 template on Debian Stable (Etch) with 2.6.18 kernel. I compiled the kernel with openvz patch and have downloaded ubuntu-8.04-minimal template from the openvz site. I created a new VE by the following commands # vzctl create 111 --ostemplate ubuntu-8.04-i386-minimal # vzctl set 111 --ipadd 10.0.0.1 --save # vzctl set 111 --hostname u8 --save # vzctl start 111 But i always get VPSID 111 exist mounted down when i use vzctl status 111 What could be the problem ? Any help/pointers would be very helpful -Abhinav ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] IPv6 ??
Hi, for official IPv6 i'm useing sixxs as tunnelbroker, these steps i've done connect a Debian OpenVZ system to a IPv6 Network for the VE with a venet0 interface: 1) Setup an IPv6 Tunnel (- https://noc.sixxs.net/ ) Relevant IPv6 settings in /etc/network/interfaces [...] # device: sixxs ipv6 tunnel with static IPv6 auto sixxs iface sixxs inet6 v4tunnel address your_assigned_IPv6_ADDRESS netmask 64 endpoint IPv4_ADDRESS_of_tunnelbroker ttl 64 up ip link set mtu 1280 dev sixxs up ip route add default via IPv6_ADDRESS_of_tunnelbroker dev sixxs [...] VE_0$ ifup sixxs 2) Setup OpenVZ with IPv6 : # enable IPv6 forwarding for all Interfaces VE_0$ sysctl -q -w net.ipv6.conf.all.forwarding=1 # enable IPv6 in /etc/vz/vz.conf - IPV6=yes # and restart OpenVZ Subsystem, so venet has a IPv6 Address VE_0$ /etc/init.d/vz restart # give a VE an IPv6 address, you need a IPv6 subnet ( https://noc.sixxs.net/ ) VE_0$ vzctl set VEID --ipadd IPv6_ADDRESS [--yes] 3) Test it If you connected to an official IPv6 network, you can test it, by pinging debian.systs.org ( 2001:6f8:109a::1a01 ) or visit IPv6 sites like http://www.kame.net and see the dancing turtle ;-) Bye, Thorsten -- Thorsten Schifferdecker [EMAIL PROTECTED] ---//--- Am Do, 24.01.2008, 18:29, schrieb Benoit Branciard: Temporarily giving up messing with veth devices (forgot dhcpd server for now), I concentrated on setting up a basic VS with both IPv4 and IPv6 addresses, using standard venet device. I'm using Debian Etch hardware node with debian.systs.org packages. So I did: - install packages and reboot as necessary : fzakernel-2.6.18-686 vzctl vzctl-ostmpl-debian vzdump vzprocps vzquota - ensure /etc/sysctl.conf contains : net.ipv4.conf.default.forwarding = 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 - ensure /etc/vz/vz.conf contains: IPV6=yes - create VS : vzctl create 112 --ipadd XXX.YYY.ZZZ.12 --ipadd xxx:yyy:::12 --hostname brahma-vps112 (default template is debian-4.0-i386-minimal, hardware node has only one physical interface activated, on the same subnet as VS) - start VS : vzctl start 112 Result: - IPv4 VS works as expected (ping succeeds from hardware node, external server in same subnet, external server on another subnet). - IPv6 VS doesn't work !!! (ping6 works *only* between VS and hardware node, not from external sources; VS has IPv6 address correctly defined, as per ifconfig). Am I missing something ? I suspected it may be useful to set sysctl net.ipv6.conf.iface.forwarding to 1, but : - this turns the box in router mode, disabling RA acceptance from default router (annoying) - this doesn't work either !! ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] post-start and stop scripts
Hello Jakob, please read the OpenVZ User Guide, at page 88 OpenVZ Action Scripts. Bye, Thorsten Am Mi, 9.01.2008, 11:55, schrieb Jakob Goldbach: Hi, I've seached the docs in vain on executing scripts on start or stop of the VE. I'm doing a bind mount on the HN to the mounted VE ($VZROOT/root/101/mnt/..) as descriped in http://wiki.openvz.org/Mounting_filesystems. I want to automate this during start and stop of the VE. Ideally the start script should run after the VPS is mounted but before it is started. Likewise during stop - an umount after the VPS has stopped but before it is umounted. Is this possible ? /Jakob # vzctl start 222 Starting VPS ... VPS is mounted -- start hook here --- Adding IP address(es): 172.16.4.9 Setting CPU units: 1000 Set hostname: test1 VPS start in progress... # vzctl stop 222 Stopping VPS ... VPS was stopped -- stop hook here -- VPS is unmounted ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users -- Thorsten Schifferdecker email [EMAIL PROTECTED] phone +49 (0) 911 50 63 69 82 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] a simple utility to execute something on all VEs
Hi Gregor, i suggest to use vzlist, insteed looking to /etc/vz/conf, so only command will execute on running ve's and it's you dont like execute command on VE 0, there's a 0.conf in /etc/vz/conf, too ;-) # for veid in `vzlist -Hoveid`; do vzctl exec $veid command; done Bye, Thorsten Gregor Mosheh wrote: http://wiki.openvz.org/ExecuteInAllVEs Simple but useful. If anybody has further enhancements, that'd be spiffy. ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Live Migration Fails
Hi Pablo, yep, since the last git commit to vzmigrate (- http://git.openvz.org/?p=vzctl;a=commitdiff;h=ebd5fb00a4eb0134d7ef4ebfdc0b6ae43d07d8fd ), the extended test command was removed, so change at line 382: if [ $? != 20 $? != 21 $? != 0 ]; then to: if [[ $? != 20 $? != 21 $? != 0 ]]; then Bye, Thorsten Pablo L. Arturi wrote: Hello guys, does anyone knows why while trying to migrate a VE I get this error? [EMAIL PROTECTED] ~]# vzmigrate -r no --online --keep-dst -v 10.0.10.251 111 OPT:-r OPT:--online OPT:--keep-dst OPT:-v OPT:10.0.10.251 Starting online migration of VE 111 on 10.0.10.251 OpenVZ is running... Loading /etc/vz/vz.conf and /etc/vz/conf/111.conf files Check IPs on destination node: 190.2.55.204 10.0.10.204 Preparing remote node Copying config file 111.conf 100% 882 0.9KB/s 00:00 Saved parameters for VE 111 /usr/sbin/vzmigrate: line 382: [: missing `]' Creating remote VE root dir Creating remote VE private dir VZ disk quota disabled -- skipping quota migration Syncing private Live migrating VE Suspending VE Setting up checkpoint... suspend... get context... Checkpointing completed succesfully Dumping VE Setting up checkpoint... join context.. dump... Can not dump VE: Invalid argument iptables-save exited with 255 Checkpointing failed Error: Failed to dump VE Resuming... Running: /usr/lib/vzctl/scripts/vps-net_add put context The migration is from [EMAIL PROTECTED] to [EMAIL PROTECTED] This is HWN configurations: [EMAIL PROTECTED] ~]# uname -a Linux localhost.localdomain 2.6.18-ovz028stab035.1-smp #1 SMP Sat Jun 9 12:15:32 MSD 2007 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] ~]# rpm -qa | grep vz vzrpm44-4.4.1-22.5 vzrpm43-python-4.3.3-7_nonptl.6 vzyum-2.4.0-11 vzpkg-2.7.0-18 vztmpl-fedora-core-3-2.0-2 vztmpl-fedora-core-5-2.0-2 vzctl-3.0.22-1 ovzkernel-smp-2.6.9-023stab032.1 ovzkernel-smp-2.6.16-026test020.1 vzrpm44-python-4.4.1-22.5 vzrpm43-4.3.3-7_nonptl.6 vztmpl-centos-4-2.0-2 vztmpl-fedora-core-4-2.0-2 kernel-smp-2.6.18-ovz028stab035.1 vzctl-lib-3.0.22-1 vzquota-3.0.11-1 [EMAIL PROTECTED] ~]# uname -a Linux ovz98.dnsba.com 2.6.18-53.el5.028stab051.1 #1 SMP Fri Nov 30 03:05:22 MSK 2007 i686 athlon i386 GNU/Linux [EMAIL PROTECTED] ~]# rpm -qa | grep vz ovzkernel-2.6.18-8.1.4.el5.028stab035.1 vzrpm44-4.4.1-22.5 vzrpm43-python-4.3.3-7_nonptl.6 vzyum-2.4.0-11 vztmpl-centos-4-2.0-2 vztmpl-fedora-core-4-2.0-2 vzctl-3.0.22-1 ovzkernel-2.6.18-53.el5.028stab051.1 vzrpm44-python-4.4.1-22.5 vzrpm43-4.3.3-7_nonptl.6 vzpkg-2.7.0-18 vztmpl-fedora-core-3-2.0-2 vztmpl-fedora-core-5-2.0-2 vzctl-lib-3.0.22-1 vzquota-3.0.11-1 Any idea? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Question on openvz install on ubuntu
Hi, Am Di, 11.12.2007, 17:43, schrieb Kir Kolyshkin: [...] provide separate articles for Sarge and Etch. Can somebody work on it? I' ll do it ;-) Regards, Thorsten ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Question on openvz install on ubuntu
Hi Amba, for ubunutu, you should use: # wget http://debian.systs.org/dso_archiv_signing_key.asc -q -O - | sudo apt-key add - Bye, Thorsten ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Question on openvz install on ubuntu
Can you please post the ubunutu version is used and what linux kernels is booted. Amba Giri wrote: Thanks Thorsten. Unfortuntely, I am still running into the following problem On reboot, iget the error msg 'Statrting OpenVZ: failed to load module vzmon..failed' I also did a 'sudo apt-get install vzctl vzquota vzdump vzctl-ostmpl-debian' but that did not fix above problem. Also, vzctl-ostmpl-debian could not be found. Thanks again for your assistance Amba On 12/11/07, *Thorsten Schifferdecker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Amba, for ubunutu, you should use: # wget http://debian.systs.org/dso_archiv_signing_key.asc -q -O - | sudo apt-key add - Bye, Thorsten ___ Users mailing list Users@openvz.org mailto:Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] perl LOCALE issue- and solution
Hi, or Disable overideing LC_* variables in /etc/ssh/sshd_config: # Allow client to pass locale environment variables AcceptEnv LANG LC_* to #AcceptEnv LANG LC_* so default LC ist used. Regards, Thorsten Am Mo, 10.12.2007, 12:55, schrieb Kirill Korotaev: was it -minimal template? Some of templates AFAIK have removed locales, since locales take really much space (~20Mb) while not needed in most cases (except for the default C one). Thanks, Kirill Michael Klatsky wrote: Hello all- I ran into a puzzling issue and found a solution- but I am wondering what the root cause really was, and whether others have run into this: After create a VE using the repo provided centos-4-i386-default template, I entered the VE via ssh. When running perl (any perl script), I got the message: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = en_US:en, LC_ALL = (unset), LANG = en_US are supported and installed on your system. perl: warning: Falling back to the standard locale (C) After doing a bit of hunting on methods to set this, including these pages: http://www.in-ulm.de/~mascheck/locale/#short http://perldoc.perl.org/perllocale.html#Permanently-fixing-your-system's-locale-configuration I started looking closely at glibc-common, as when I did locale -a I got the message that locale directories could not be found. I checked, and indeed- rpm -q glibc-common reported that the package was installed. However, after checking some of the files included that should have existed, I found that the local dirs were not there (example: /usr/lib/locale/en_US/LC_TIME). So, I grabbed the glibc-common rpm and did a rpm -ivh --force, and voila- all was properly installed. The purpose of my post is to document this for others who may have run into this, and t solicit any theories as to why that package was phantomly installed. Significantly, other than the locale issue- the system was operating properly. Thanks- and so far quite impressed ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users -- Thorsten Schifferdecker email [EMAIL PROTECTED] phone +49 (0) 911 50 63 69 82 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
amd (automounter) on fza or ovz debian kernels (was: Re: [Users] Kernel 2.6.18-openvz-13-39.1d1-amd64 oops)
Hello Frank, E Frank Ball III wrote: I've had your fzakernel-2.6.18-686 kernel running on two boxes for a month now, and it works great. No more crashes. Perfect! ;-) I'm a little confused by something, your website also has the ovzkernel-2.6.18 kernel that appears to be the same version (028stab48.1) and is 23 minutes newer than the fzakernel. What's the difference? I tried that one, but my automounter (amd) doesn't work on the host anymore (it does work in the VEs). The main difference between fza and ovz: fza used the debian kernel config plus openvz ovz used the orignal kernel config from openvz.org The time difference are releated to the build-queue only. Plz post the loaded modules at your Hdw-Node, on which kernel work the automounter-daemon ? Bye, Thorsten ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] venet0: hw csum failure.
Hi Darius, what OpenVZ kernel is used a pre- or self-built and which version ? Thorsten Am Mo, 19.11.2007, 13:55, schrieb Dariush Pietrzak: Hi, I get something like this: venet0: hw csum failure. Call Trace: IRQ [8024aba4] __skb_checksum_complete+0x4a/0x62 [88221ce0] :ip_conntrack:tcp_error+0x18a/0x26b [8021980b] tcp_rcv_established+0x114/0x9e6 [88221060] :ip_conntrack:ip_conntrack_in+0xae/0x4f9 [80231f8f] nf_iterate+0x41/0x7d [8039b93f] ip_rcv_finish+0x0/0x2ca [80254346] nf_hook_slow+0x78/0xe8 [8039b93f] ip_rcv_finish+0x0/0x2ca [80233395] ip_rcv+0x286/0x58a [8021e879] netif_receive_skb+0x370/0x41d [8022eb8a] process_backlog+0x84/0x101 [8020bdce] net_rx_action+0xa4/0x1b1 [8021029f] __do_softirq+0x98/0x138 [8025bf24] call_softirq+0x1c/0x28 [80265c3f] do_softirq+0x2c/0x7d [80265dd4] do_IRQ+0x144/0x14d [80254a82] mwait_idle+0x0/0x4a [8025b249] ret_from_intr+0x0/0xa EOI [80254ab8] mwait_idle+0x36/0x4a [80246ad1] cpu_idle+0x60/0x7f [8052d623] start_secondary+0x445/0x454 the machine seems to be running perfectly fine, though it is rather worrying venet0: hw csum failure. Call Trace: IRQ [8024aba4] __skb_checksum_complete+0x4a/0x62 [88221ce0] :ip_conntrack:tcp_error+0x18a/0x26b [80279957] __wake_up_common+0x3e/0x68 [88221060] :ip_conntrack:ip_conntrack_in+0xae/0x4f9 [80231f8f] nf_iterate+0x41/0x7d [8039b93f] ip_rcv_finish+0x0/0x2ca [80254346] nf_hook_slow+0x78/0xe8 [8039b93f] ip_rcv_finish+0x0/0x2ca [80233395] ip_rcv+0x286/0x58a [8021e879] netif_receive_skb+0x370/0x41d [8022eb8a] process_backlog+0x84/0x101 [8020bdce] net_rx_action+0xa4/0x1b1 [8021029f] __do_softirq+0x98/0x138 [8025bf24] call_softirq+0x1c/0x28 EOI [80265c3f] do_softirq+0x2c/0x7d [8022a054] local_bh_enable+0x88/0x9a [8022e016] dev_queue_xmit+0x23b/0x25c [8022feb8] ip_output+0x278/0x2a9 [80232415] ip_queue_xmit+0x403/0x467 [8022fea4] ip_output+0x264/0x2a9 [80299716] ub_sock_tcp_chargesend+0x3d/0x157 [802204a5] tcp_transmit_skb+0x72b/0x763 [80248714] tso_fragment+0x1b1/0x20f [803a8d1a] tcp_push_one+0xed/0x11b [80224d82] tcp_sendmsg+0x8d2/0xb8b [8025248d] sock_sendmsg+0xd4/0xec [8022ea2d] sock_recvmsg+0xde/0xf6 [802921f6] autoremove_wake_function+0x0/0x2e [8020c3bb] do_sync_read+0xc7/0x104 [8037928a] sys_sendto+0x11c/0x14f [802921f6] autoremove_wake_function+0x0/0x2e [8025da37] __sched_text_start+0x167/0xdf7 [8025ad4e] system_call+0x7e/0x83 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Another kernel panic, Debian AMD64 with Supermicro hardware
Hi Jim, can you poste more info, or can it be solved by installing a new kernel, maybe this thread helps (- http://forum.openvz.org/index.php?t=msgth=4186start=0; ) Bye, Thorsten Jim Archer wrote: Oh, and the last message on the console was: Kernel panic - not syncing: Aiee, killing intrrupt handler! --On Monday, November 12, 2007 12:39 PM -0500 Jim Archer [EMAIL PROTECTED] wrote: Hi All... I thought this issue was resolved with the last kernel upgrade I did, but this morning at about 6:25AM Eastern (I think) one of my OpenVZ machines experienced a kernel panic. The kernel is: actual:/var/log# uname -a Linux actual.registrationtek.com 2.6.18-openvz-13-39.1d1-amd64 #1 SMP Sat Sep 29 15:02:55 MSD 2007 x86_64 GNU/Linux This is Debian Etch AMD64 running on Supermicro hardware. The messages log is not much help. I rebooted at about noon: Nov 12 05:43:37 actual -- MARK -- Nov 12 06:03:37 actual -- MARK -- Nov 12 06:23:37 actual -- MARK -- Nov 12 06:27:29 actual syslogd 1.4.1#18: restart. Nov 12 12:00:44 actual syslogd 1.4.1#18: restart. Nov 12 12:00:44 actual kernel: klogd 1.4.1#18, log source = /proc/kmsg started. . . . Same for syslog. Here are the last few lines: syslog.0: Nov 12 06:10:01 actual /USR/SBIN/CRON[30765]: (root) CMD (/home/jim/check-vps-wrapper.sh) Nov 12 06:10:01 actual /USR/SBIN/CRON[30763]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean) Nov 12 06:10:01 actual /USR/SBIN/CRON[30761]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot) Nov 12 06:15:01 actual /USR/SBIN/CRON[31270]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot) Nov 12 06:15:01 actual /USR/SBIN/CRON[31272]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean) Nov 12 06:17:01 actual /USR/SBIN/CRON[31420]: (root) CMD ( cd / run-parts --report /etc/cron.hourly) Nov 12 06:20:01 actual /USR/SBIN/CRON[31566]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot) Nov 12 06:20:01 actual /USR/SBIN/CRON[31568]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean) Nov 12 06:20:01 actual /USR/SBIN/CRON[31570]: (root) CMD (/home/jim/check-vps-wrapper.sh) Nov 12 06:25:01 actual /USR/SBIN/CRON[409]: (root) CMD (test -x /usr/sbin/anacron || ( cd / run-parts --report /etc/cron.daily )) Nov 12 06:25:01 actual /USR/SBIN/CRON[411]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot) Nov 12 06:25:01 actual /USR/SBIN/CRON[417]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean) syslog: Nov 12 06:27:29 actual syslogd 1.4.1#18: restart. Nov 12 12:00:44 actual syslogd 1.4.1#18: restart. Nov 12 12:00:44 actual kernel: klogd 1.4.1#18, log source = /proc/kmsg started. Nov 12 12:00:44 actual kernel: Bootdata ok (command line is root=/dev/mapper/VG--RAID-LV1 ro ) ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] VE stuck when shutting down.
Hi, it's known and resolved bug, see http://bugzilla.openvz.org/show_bug.cgi?id=561 Please install the new Debian OpenVZ kernel; can be downloaded at http://download.openvz.org/debian/dists/etch/main/binary-i386/base/ Regards, Thorsten E Frank Ball III schrieb: I was trying to get OpenVZ running on a Debian etch host (kernel 2.6.18-openvz-13-1etch4-686). I was just about done getting my template setup and when I shut down the VE it got stuck and I got this spew. (see below). This server has been up and running without a fault for 3 years without VZ, so I'm very skeptical that it's a hardware problem. How do I unstick the VE? It won't stop or start. The only vz process I see with ps is this: root 9063 1 0 Sep19 ?00:00:00 [vzmond] It is unkillable, kill -9 does nothing. This isn't a server that I can reboot frequently. How can I recover from this? Thank you, Sep 19 22:34:48 kamajii kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 0034 Sep 19 22:34:48 kamajii kernel: printing eip: Sep 19 22:34:48 kamajii kernel: d0b9eb54 Sep 19 22:34:48 kamajii kernel: *pde = Sep 19 22:34:48 kamajii kernel: Oops: [#1] Sep 19 22:34:48 kamajii kernel: SMP Sep 19 22:34:48 kamajii kernel: Modules linked in: ip6table_filter ip6_tables simfs vznetdev vzethdev vzrst vzcpt vzdquota vzmon vzdev ipv6 ppdev lp iptable_raw xt_policy xt_multiport ipt_ULOG ipt_TTL ipt_ttl ipt_TOS ipt_tos ipt_TCPMSS ipt_SAME ipt_REJECT ipt_REDIRECT ipt_recent ipt_owner ipt_NETMAP ipt_MASQUERADE ipt_LOG ipt_iprange ipt_hashlimit ipt_ECN ipt_ecn ipt_DSCP ipt_dscp ipt_CLUSTERIP ipt_ah ipt_addrtype ip_nat_tftp ip_nat_snmp_basic ip_nat_pptp ip_nat_irc ip_nat_ftp ip_nat_amanda ip_conntrack_tftp ip_conntrack_pptp ip_conntrack_netbios_ns ip_conntrack_irc ip_conntrack_ftp ts_kmp ip_conntrack_amanda xt_tcpmss xt_pkttype xt_physdev bridge xt_NFQUEUE xt_MARK xt_mark xt_mac xt_limit xt_length xt_helper xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY xt_tcpudp xt_state iptable_nat ip_nat ip_conntrack iptable_mangle nfnetlink iptable_filter ip_tables x_tables dm_snapshot dm_mirror dm_mod tsdev snd_mpu401 snd_mpu401_uart parport_pc snd_rawmidi snd_seq_device sn! d soundcore floppy analog gameport parp Sep 19 22:34:48 kamajii kernel: rt psmouse serio_raw rtc i2c_piix4 i2c_core intel_agp agpgart pcspkr shpchp pci_hotplug evdev ext3 jbd mbcache ide_cd cdrom ide_disk 3c59x pcnet32 mii aic7xxx uhci_hcd scsi_transport_spi scsi_mod usbcore piix generic ide_core processor Sep 19 22:34:48 kamajii kernel: CPU:1, VCPU: 0.0 Sep 19 22:34:48 kamajii kernel: EIP:0060:[d0b9eb54]Not tainted VLI Sep 19 22:34:48 kamajii kernel: EFLAGS: 00010282 (2.6.18-openvz-13-1etch4-686 #1) Sep 19 22:34:48 kamajii kernel: EIP is at ip6t_unregister_table+0x7/0x14b [ip6_tables] Sep 19 22:34:48 kamajii kernel: eax: ebx: ecx: c847fa98 edx: c847fa98 Sep 19 22:34:48 kamajii kernel: esi: cd8bf000 edi: 0007 ebp: esp: ceb4bf68 Sep 19 22:34:48 kamajii kernel: ds: 007b es: 007b ss: 0068 Sep 19 22:34:48 kamajii kernel: Process vzmond/777 (pid: 22585, veid: 0, ti=ceb4a000 task=c36b93e0 task.ti=ceb4a000) Sep 19 22:34:48 kamajii kernel: Stack: cf2d5640 c12ba200 d0b80f18 0003 cd8bf000 0007 Sep 19 22:34:48 kamajii kernel:d0b80029 d0bbcbb7 cd8bf000 cd8bf028 c02cc100 d0bbe048 Sep 19 22:34:48 kamajii kernel:ceb4bfce cd8bf000 d0bbe11d ceb4bfce ceb4bfce 0012 d0bbfe15 Sep 19 22:34:48 kamajii kernel: Call Trace: Sep 19 22:34:48 kamajii kernel: [d0b80029] fini_ip6table_filter+0x29/0x43 [ip6table_filter] Sep 19 22:34:48 kamajii kernel: [d0bbcbb7] do_ve_iptables+0xa95/0xf42 [vzmon] Sep 19 22:34:48 kamajii kernel: [d0bbe048] env_cleanup+0xa3/0x150 [vzmon] Sep 19 22:34:48 kamajii kernel: [d0bbe11d] vzmond_helper+0x28/0x34 [vzmon] Sep 19 22:34:48 kamajii kernel: [d0bbe0f5] vzmond_helper+0x0/0x34 [vzmon] Sep 19 22:34:48 kamajii kernel: [c0100c75] kernel_thread_helper+0x5/0xb Sep 19 22:34:48 kamajii kernel: Code: 0f 85 e2 fe ff ff 8b 44 24 04 89 38 eb 0c bb fe ff ff ff eb 05 bb b6 ff ff ff 83 c4 10 89 d8 5b 5e 5f 5d c3 55 57 56 53 83 ec 10 8b 50 34 89 54 24 08 e8 a9 7e f1 ff 89 04 24 89 e0 25 00 e0 ff Sep 19 22:34:48 kamajii kernel: EIP: [d0b9eb54] ip6t_unregister_table+0x7/0x14b [ip6_tables] SS:ESP 0068:ceb4bf68 Sep 19 22:34:48 kamajii kernel: d0b9eb54 ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] IPv6 with venet
Hi Jan, Jan Tomasek schrieb: Vitaliy Gusev wrote: Please check /proc/sys/net/ipv6/conf/all/forwarding [...] Problem is that when I do: echo 1 /proc/sys/net/ipv6/conf/all/forwarding HW node stops responding on IPv6 ping, reason probably is that setting that removes default GW: Router Advertisements (=autoconfiguration) are ignored on setting forward to 1 to IPv6 proc settings and your (automatic) default route ( ::0 ), is set to a RA IPv6 (link-local) address, is gone. for Debian you can set IPv6 (addy and route) on your VE0 (hardware node): --8--( /etc/network/interfaces )-- [...] iface DEVICE [...] iface DEVICE inet6 static address IPv6_ADDRESS netmask NETMASK gateway IPv6_ADDRESS_of_your_GATEWAY # set IPv6 forwarding here or in /etc/sysctl.conf # read man page of interfaces (5) [...] --8-- Regards, Thorsten Schifferdecker ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] kernel errors in syslog
/0x7a0 Jul 6 03:05:23 server01 kernel: [c013842a] ub_slab_charge+0x7a/0x140 Jul 6 03:05:23 server01 kernel: [c03fc6b6] inet_csk_get_port+0x136/0x280 Jul 6 03:05:23 server01 kernel: [c041ccd9] inet_bind+0xd9/0x210 Jul 6 03:05:23 server01 kernel: [c013c1ef] pb_free+0x1f/0x30 Jul 6 03:05:23 server01 kernel: [c01506dd] __get_free_pages+0x2d/0x50 Jul 6 03:05:23 server01 kernel: [c0189657] copy_mount_options+0x47/0x130 Jul 6 03:05:23 server01 kernel: [c018b058] sys_mount+0x98/0xe0 Jul 6 03:05:23 server01 kernel: [c0103083] syscall_call+0x7/0xb Jul 6 03:05:23 server01 kernel: lockd_up: create thread failed, error=-1 some other info: server01:~# uname -a Linux server01 2.6.18-028stab035.1-ovz #1 Wed Jun 13 21:25:54 CEST 2007 i686 GNU/Linux server01:~# cat /proc/version Linux version 2.6.18-028stab035.1-ovz ([EMAIL PROTECTED]) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Wed Jun 13 21:25:54 CEST 2007 using debian etch with packages from systs.org - are the CentOS kernels more stable? Regards, Thorsten Schifferdecker ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] trouble with veth device in combination with long veid
Hi, or export the right VEID from /proc/vz/veth: /proc/vz/veth : MAC_VE0 veth_dev_on_VE0 mac_dev_VE dev_VE VEID deny Attached a workaround patch, to solve this issue. Regards, Thorsten Kristian F. Høgh schrieb: On Thursday den 7. June 2007 11:32:39 Kirill Korotaev wrote: Kristian F. Høgh wrote: On Wednesday den 6. June 2007 17:14:57 Nils Domrose wrote: Hi, we are facing a problem with veth device in combination with long veids. if we configure a veth device as described in the wiki, we are unable to start that VE with the following error: In veth.c a buffer with length 11 is allocated. The buffer is used as follows: snprintf(buf, sizeof(buf), VEID=%d, veid); As 6 characters are used for static content (VEID= + '\0'), only 5 characters are left. Your VEID (249104) is 6 characters long. Apply the following patch, and you should be running. (An alternative is to limit your VEID in the range 100 to = 9) --- a/src/lib/veth.c +++ b/src/lib/veth.c @@ -90,7 +90,7 @@ static int veth_dev_remove(vps_handler *h, envid_t veid, veth_dev *dev) static int run_vznetcfg(envid_t veid, veth_dev *dev) { int ret; - char buf[11]; + char buf[12]; char *argv[] = {VZNETCFG, init, veth, NULL, NULL}; char *env[2]; (Last line is empty) In kernel if name is limited to 16 bytes, i.e. to 15 chars (plus zero). 4 chars for veth, I call my veth interfaces ve${VEID}.0, ve${VEID}.1 ... So VEID 1234 will have an interface called ve1234.0 in VE0 (eth0 in VE 1234) so 11 chars for number. VEID is int, so limited to 2^32, which is no more then 10 chars length. So everything should be fine except this silly bug in vzctl. What if I call my veth interfase abcdefghij${VEID} ? (Or do I misunderstand?) Why have you chosen 12 instead of 11? AFAICS it should be sizeof(VEID=) + 10 + 1 (for \0) = 16 I chose 12 because 11 was to small :-) It was ment as a workaround. 16 must be right. Thanks, Kirill Regards, Kristian. ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users --- /usr/sbin/vznetcfg 2007-06-07 16:53:46.728284477 +0200 +++ /usr/sbin/vznetcfg.new 2007-06-07 16:54:20.879074560 +0200 @@ -32,6 +32,7 @@ } # Call the external script if defined if [ -n ${EXTERNAL_SCRIPT} -a -x ${EXTERNAL_SCRIPT} ]; then + VEID=`awk /$3/ {print \\$5} /proc/vz/veth` export VEID exec ${EXTERNAL_SCRIPT} $@ fi ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] IPv6 support in VE
Hi, adding is ok, but when i want delete a IPv6 with --ipdel, it shows: # vzctl set VEID --ipdel fc00::1 [--save] Warning: ipv6 support disabled ---* Deleting IP address(es): Configure meminfo: 49152 Saved parameters for VE VEID Regards, Thorsten Jan, With venet, you use the same ipadd command, for example: vzctl set VEID --ipadd fc00::01 --save Before that, make sure that * your kernel is compiled with IPv6 * ipv6 module is loaded (if IPv6 is compiled as a module) * IPV6 set to yes in /etc/vz/vz.conf Kirill Korotaev wrote: Jan, venet supports IPv6 addresses as well. it's just an article concerning veth only :) Thanks, Kirill Jan Tomasek wrote: Hello, what is state of IPv6 support inside VE? I found: http://wiki.openvz.org/Virtual_Ethernet_device#Virtual_ethernet_device_with_IPv6 but that looks quite complicated comparing to IPv4 where I just need to use `vzctl --ipadd 1.2.3.4` and that is all. Do I have to go with veth or is there chance how to configure IPv6 on venet? Thanks for sugestions ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Need help understanding kernel version numbers
Hi, 028.18.1 - the digits show me, this is a OpenVZ 028(test0)18.1 patch imho a good overview about 2.6.18 OpenVZ kernelpatches and -images listed at http://download.openvz.org/kernel/branches/2.6.18/ Regards, Thorsten Jim Archer schrieb: Ah, thanks very much Thorsten, I see how it works now. Is there a way to tell from the version number if a deb file has a test kernel or a stable one? --On Wednesday, April 11, 2007 11:44 AM +0200 Thorsten Schifferdecker [EMAIL PROTECTED] wrote: Hi Jim, Ola has updated the debianized OpenVZ Linux kernel to new Debian Linux Kernel Source : linux-image-2.6.18-openvz-amd64_028.18-2.6.18-12-1_amd64.deb : linux-image-2.6.18-openvz-amd64 ... 028.18.1 \_ OpenVZ Kernel Patch 028test018.1 (- http://packages.debian.org/stable/devel/kernel-patch-openvz ) 2.6.18-12-1 \_ Debian Linux Kernel Source (- http://packages.debian.org/stable/devel/linux-source-2.6.18) Regards, Thorsten Jim Archer schrieb: Hi All... I have always been confused by the kernel version numbers and I finally decided to just look stupid and ask. I am currently running: actual:/home/jim/openvz/kernels# uname -a Linux actual.registrationtek.com 2.6.18-openvz-amd64 #1 SMP Mon Mar 12 21:59:13 UTC 2007 x86_64 GNU/Linux actual:/home/jim/openvz/kernels# The file name for the deb package for this version is: linux-image-2.6.18-openvz-amd64_028.18-2.6.18-11-1_amd64.deb I see that there is now: linux-image-2.6.18-openvz-amd64_028.18.1-2.6.18-12-1_amd64.deb This file has a date of April 11, 2007, so I know it's newer. But how can I tell from the version numbers? Both are 028.18 but the newer one has a lower number, .1-2, than the older one, which has 6. So what's the proper way to parse this? Also, is there a posted list of changes? I'm running OpenVZ in production now and so prefer not to risk an upgrade and reboot unless necessary. Thanks! Jim ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] VZDump problem
Hi, this one of serveral known bugs, which are fixed in vzdump-0.2-2, so please update to vzdump (0.3-1). Bye, Thorsten Schifferdecker -- [EMAIL PROTECTED] First, I wish to thank the contributor of VZDump, which looks like a fine utility. I am having a little trouble with it though. I am running OpenVZ on a Debian Etch machine with a 2.6.18 kernel. When I try to use VZDump it complains that it can not find the VPS I specified. Am I doing something wrong? Thanks... actual:/etc/vz/conf# vzlist VEID NPROC STATUS IP_ADDR HOSTNAME 101 11 running 72.46.65.29 nsp3.abcde.com 102 11 running 72.46.65.30 nsp4.abcde.com 103 14 running 72.46.65.46 mail6.abcde.com 104 21 running 72.46.65.47 mail5.abcde.com 105 26 running 72.46.65.48 whois.abcde.com 1000 4 running 72.46.66.10 vps1000.abcde.com actual:/etc/vz/conf# vzdump 1000 ERROR: unable to find VPS '1000' usage: /usr/bin/vzdump OPTIONS [--all | VPSID] --compress compress dump file (gzip) --dumpdir DIR store resulting files in DIR --xdeltacreate differential backup using xdelta --mailto EMAIL send notification mail to EMAIL --stop stop/start VPS if running --suspend suspend/resume VPS when running --snapshot use LVM snapshot when running --restore FILENAME restore FILENAME actual:/etc/vz/conf# ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users