Set up of an OpenSuse 11.1 container on Virtuozzo 4.6

Problem:
Set up of an OpenSuse container on Virtuozzo 4.6 is broken…


Solution:

When trying to install the container the usual way, you get these error messages:
mkdir suse
cd suse
wget http://downloads.swsoft.com/cgi-bin/getfile.pl/suse/11.1/x86_64/suse-11.1-x86_64-ez-4.0.0-6.swsoft.noarch.rpm
rpm -ihv *
vzpkg create cache suse-11.1-x86_64
Creation OS template cache for suse-11.1-x86_64 template
Error: URL $SUSE_SERVER/download/suse-11.1 contents undefined variable
You can define this variable in /etc/vztt/url.map.
See Virtuozzo Installation Guide for more details.

So we set in /etc/vztt/url.map the variable
$SUSE_SERVER http://download.opensuse.org

But we still get an error:
Creation OS template cache for suse-11.1-x86_64 template
Loading "rpm2vzrpm" plugin
Cleaning up xml metadata
0 metadata files removed
Loading "rpm2vzrpm" plugin
Making cache files for all metadata files.
This may take a while depending on the speed of this computer
Setting up repositories
http://download.opensuse.org/distribution/11.1/repo/oss/suse/repodata/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base0
failure: repodata/repomd.xml from base0: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base0: [Errno 256] No more mirrors to try.
Error: /usr/share/vzyum/bin/yum failed, exitcode=1

We go to
cd /vz/template/suse/11.1/x86_64/config/os/default/

and edit the repositories file:
$SUSE_SERVER/distribution/11.1/repo/oss/suse/

and try another vzpkg create cache suse-11.1-x86_64:
yes, better luck this time:
...
Finished.
OS template suse-11.1-x86_64 cache was created