Pavel Emelyanov | 1 Sep 11:08 2008

Re: [Devel] OpenVZ & Linux-rt

Adeel Nazir wrote:
> Has anyone tried mixing Ingo Milnar's real-time patchset with the OpenVZ patches? 

Nope.

> Or if anyone has any ideas if there'd be conflicting issues between the 2 patchset's? 

Well, I guess there will be, but the only way to find it out for sure is
to try to patch it ;)

> I tried trivially applying the patches from both projects and there were a lot of
> places where the patching failed, requiring a manual review, 

So we already have an answer :)

> leading me to ask for 
> some details on what the openvz patchset really changes from the stock kernel?

The answer would be too big (I think we can even write a book about it), so
if you have any concrete questions, feel free to ask. But this one is too
generic to answer, sorry.

> Thanks
> 
> 
> Adeel

Thanks,
Pavel
(Continue reading)

jimbob palmer | 1 Sep 11:28 2008
Picon

openvz official templates

Hello,

Where can I find information on how the official openvz templates are created?

I am particularly interested in the changes that were made from the default.

e.g. Ubuntu 8.04 has had some changes to make /dev behave differently
- what are they?

Hope someone can help :)

Thanks

Jim
Joan | 1 Sep 14:38 2008
Picon

snmpd not working in Ubuntu guests due to bad add_ip.sh script

It's been a long time since it was posted on here:

http://forum.openvz.org/index.php?t=msg&th=817&start=0&

Only in debian / ubuntu, the  add_ip.sh script adds the ip 127.0.0.1
to every single interface.

net-snmp version 5.4.x doesn't start if there are two interfaces with
the same IP.
Furthermore, having different interfaces with the same ip, is to claim
for trouble.
Anyone could review the script and commit it to the svn.

NOTE: I've been using it for months now...
Suno Ano | 1 Sep 16:38 2008

Re: openvz official templates


 jimbob> Hello, Where can I find information on how the official openvz
 jimbob> templates are created?

http://wiki.openvz.org/Debian_template_creation
Robert Nelson | 6 Sep 05:27 2008

New vzpkg, templates and package caching daemon

I have a preliminary version of the new vzpkg 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 
(Continue reading)

Roberto Mello | 6 Sep 17:11 2008
Picon

Re: New vzpkg, templates and package caching daemon

On Fri, Sep 5, 2008 at 9:27 PM, Robert Nelson <robertn@...> wrote:
> I have a preliminary version of the new vzpkg 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.

Fantastic! Thanks for doing this and for sharing. Will definitely be
taking a look at this.

> 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.

In my experience I've found that just setting up Squid and telling my
different machines to use the proxy (Acquire::http::Proxy
"http://proxy.hostname:3128/";) has been the best pacakge caching
solution.

Works accross different packaging systems too.

(Continue reading)

Robert Nelson | 6 Sep 17:55 2008

Re: New vzpkg, templates and package caching daemon

Roberto Mello wrote:
On Fri, Sep 5, 2008 at 9:27 PM, Robert Nelson <robertn-A3cma5TjdNjEoQ4pXYTSrg@public.gmane.org> wrote:
I have a preliminary version of the new vzpkg 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.
Fantastic! Thanks for doing this and for sharing. Will definitely be taking a look at this.
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.
In my experience I've found that just setting up Squid and telling my different machines to use the proxy (Acquire::http::Proxy "http://proxy.hostname:3128/";) has been the best pacakge caching solution. Works accross different packaging systems too.

There are a few advantages of using pkg-cacher versus squid:

    It understands the difference between packages (static content) and metadata files (dynamic content).

    It only keeps a single copy of a package even if it is shared across multiple distributions. versions or accessed from multiple mirrors.

    Removal of stale packages can be based on whether the package is referenced by any repositories using the metadata.

This means less downloads and less disk usage. Even a 250 GB disk starts looking small once you deal with multiple distros, versions and mirrors :-)
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.
I can help with Debian packages if you need. Roberto
Thanks for the offer, the only reason I didn't release it at this time is I didn't have a Debian HN set up for testing yet.  Should be available in the next day or so.

_______________________________________________
Users mailing list
Users@...
https://openvz.org/mailman/listinfo/users
Thorsten Schifferdecker | 6 Sep 18:34 2008

Re: 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
tsd@...

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@...
> https://openvz.org/mailman/listinfo/users
Robert Nelson | 6 Sep 18:55 2008

Re: New vzpkg, templates and package caching daemon

Thorsten Schifferdecker wrote:
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,

Oops, sorry about that.  Fixed now.

Thanks and by, Thorsten -- Thorsten Schifferdecker tsd-F7Q/YMNgnyj2LHsj2/pLJA@public.gmane.org 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-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org https://openvz.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org https://openvz.org/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@...
https://openvz.org/mailman/listinfo/users
Robert Nelson | 7 Sep 23:41 2008

Debian Versions of pkg-cacher and vzpkg

I finished the packages of pkg-cacher and vzpkg for Debian HNs.  You can 
install them by adding the following lines to your /etc/apt/sources.list:

Etch:
    deb http://repo.opensource-sw.net/debian/ etch openvz
    deb-src http://repo.opensource-sw.net/debian/ etch openvz

Sarge
    deb http://repo.opensource-sw.net/debian/ sarge openvz
    deb-src http://repo.opensource-sw.net/debian/ sarge openvz

Then do
    apt-get update
    apt-get install pkg-cacher vzpkg2

The templates are turning out to be more of a problem and require some 
rethinking of how the templates are packaged.

In the mean time you can follow these steps:
    apt-get install yum

    wget 
http://repo.opensource-sw.net/centos/5/i386/vztmpl2-centos-0.9.0-1.noarch.rpm
    rpm -ihv vztmpl2-centos-0.9.0-1.noarch.rpm
    wget 
http://repo.opensource-sw.net/centos/5/i386/vztmpl2-fedora-0.9.0-1.noarch.rpm
    rpm -ihv vztmpl2-fedora-0.9.0-1.noarch.rpm
    wget 
http://repo.opensource-sw.net/centos/5/i386/vztmpl2-debian-0.9.0-1.noarch.rpm
    rpm -ihv vztmpl2-debian-0.9.0-1.noarch.rpm

    edit /var/lib/vz/template/{centos,fedora}/config/vzpkg.conf
       Change the line
          baseurl=file:///vz/template/$OS_NAME/$OS_VER/$OS_ARCH/vz-addons/
       to

baseurl=file:///var/lib/vz/template/$OS_NAME/$OS_VER/$OS_ARCH/vz-addons/

Then you should be able to create the template cache files normally.

Gmane