[Users] finding out the HN name from inside the VC
Is there a more elegant way of finding the host name or anything about the host node from inside the container than scripting something in /etc/vz/conf/vps.mount ? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] finding out the HN name from inside the VC
Hi Aleksandar, Is there a more elegant way of finding the host name or anything about the host node from inside the container than scripting something in /etc/vz/conf/vps.mount ? Don't know if it helps, but with the commands below you can at least fin out the IP of the HN from inside a container: ping -t 1 -c 1 1.2.3.4 | grep exceed | cut -d -f 2 -- With best regards Michael Stauber ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] finding out the HN name from inside the VC
Hey, Aleksandar Ivanisevic schrieb: Is there a more elegant way of finding the host name or anything about the host node from inside the container than scripting something in /etc/vz/conf/vps.mount ? if you are only searching for the hostname you could use cat /proc/sys/kernel/virt_osrelease | sed s,openvz,$(uname -n),g /proc/sys/kernel/virt_osrelease and cat /proc/sys/kernel/virt_osrelease at the CT side. cheers flip ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
[Users] Re: finding out the HN name from inside the VC
Michael Stauber mstau...@blueonyx.it writes: Hi Aleksandar, Is there a more elegant way of finding the host name or anything about the host node from inside the container than scripting something in /etc/vz/conf/vps.mount ? Don't know if it helps, but with the commands below you can at least fin out the IP of the HN from inside a container: ping -t 1 -c 1 1.2.3.4 | grep exceed | cut -d -f 2 Heh, neat ;) Does this actually work with veth, too? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
[Users] Re: finding out the HN name from inside the VC
Philipp Wehrheim flips...@gmx.net writes: Hey, Aleksandar Ivanisevic schrieb: Is there a more elegant way of finding the host name or anything about the host node from inside the container than scripting something in /etc/vz/conf/vps.mount ? if you are only searching for the hostname you could use cat /proc/sys/kernel/virt_osrelease | sed s,openvz,$(uname -n),g /proc/sys/kernel/virt_osrelease and cat /proc/sys/kernel/virt_osrelease I'm using RHEL/Centos kernel so my osrelease looks like $ cat /proc/sys/kernel/virt_osrelease 2.6.18-164.11.1.el5.028stab068.3 so your sed doesn't really work, but the general idea is also neat, although I'm not really sure what side efects can messing with uname -r have. I guess glibc and others only check the main version so I can write anythin in there as long as it starts with 2.6.18-, right? ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Article on LXC
Mihamina, - Mihamina Rakotomandimby miham...@gulfsat.mg wrote: I heard (need confirmation) that openVZ developpers are more and more working on LXC development. Is that true? I don't analyse the mainline Linux kernel periodically to see what developers with an @openvz.org email address have been contributing so I don't have any figures for you... but Parallels (the company that sponsors OpenVZ from their Virtuozzo product) has shown up as a top company (in the top 12) and one of their developers has also been in the top 15 of individual contributors to the mainline kernel on a few releases. So generally speaking, they are big contributors to the mainline kernel. containers are really the combination of many different features in many different subsytems in the kernel so it may not be obvious that all of the work they contribute is directly related to containers or LXC. For example, here are some contributions from the last few weeks: http://lwn.net/Articles/375565/ http://lwn.net/Articles/373994/ http://lwn.net/Articles/374547/ http://lwn.net/Articles/373513/ So far as real stats, some time ago I had an email conversation with Kir Kolyshkin who is the OpenVZ Project manager and I asked how to find out what OpenVZ has contributed and he gave me some commandline tips... that I must admit I haven't followed through on. The figures he shows in his examples are dated but you get the idea. Here's the quote: - - - - - [my question to him] 5) I know that Parallels has been a major contributor to the mainline Linux kernel... and that the company has appeared in the to 10 list a couple of times. I've seen some blog postings from you on the subject. Do you have numbers for the last few kernels? I haven't really noticed Parallels mentioned in the LWN weekly kernel page... in the Virtualization and Containers catagory... so I'm wondering if a significant number of the features contributed are more general purpose. Could you give me a rundown of the kernel contributions contributed by Parallels say... in the last year? [Kir's answer] See, it's easy if you have 2.6 git tree: $ cd git/linux-2.6 $ git pull # wanna latest stuff $ # Here we have all of our guys $ PAT='@openvz.org|@parallels.com|@sw.ru|@swsoft.com|@sw.com.sg|adobriyan@|kuznet@|gorcunov@' $ git log --pretty=short --no-merges --since=1 year ago | grep ^Author: | egrep $PAT | wc -l 866 $ # and the total number of patches is... $ git log --since=1 year ago --pretty=short --no-merges | grep ^Author: | wc -l 49684 Now by dividing 866/49684 you'll get about 0.017 or 1.7%. This is Parallels contribution. Same thing you can do for any kernel, say let's take a look at 2.6.28: $ git log v2.6.27..v2.6.28 --pretty=short --no-merges | grep ^Author: | wc -l 9048 $ git log v2.6.27..v2.6.28 --pretty=short --no-merges | grep ^Author: | egrep $PAT | wc -l 210 End result is 2.3%. - - - - - I hope that gives you enough info to answer your question. In general, Parallels and OpenVZ have said that they want to get containers in the mainline ASAP so they can discontinue supporting their huge, mature, out-of-tree patch that has no chance of ever being included in the mainline. Lots of other stakeholders are contributing as well including some developers from IBM, Google, and elsewhere. TYL, -- Scott Dowdle 704 Church Street Belgrade, MT 59714 (406)388-0827 [home] (406)994-3931 [work] ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Article on LXC
On Mon, Mar 1, 2010 at 5:35 PM, Scott Dowdle dow...@montanalinux.orgwrote: Mihamina, - Mihamina Rakotomandimby miham...@gulfsat.mg wrote: I heard (need confirmation) that openVZ developpers are more and more working on LXC development. Is that true? I don't analyse the mainline Linux kernel periodically to see what developers with an @openvz.org email address have been contributing so I don't have any figures for you... but Parallels (the company that sponsors OpenVZ from their Virtuozzo product) has shown up as a top company (in the top 12) and one of their developers has also been in the top 15 of individual contributors to the mainline kernel on a few releases. So generally speaking, they are big contributors to the mainline kernel. Just right now I've updated the OpenVz wiki graph that illustrates the number of patches from OpenVZ developers were merged into mainstream Linux kernel. http://wiki.openvz.org/w/index.php?title=File:Kernel_patches_stats.pngoldid=8276 -- Marc ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users