Editing Install vzpkg2 and pkg-cacher
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=== Introduction === | === Introduction === | ||
+ | |||
+ | 2008/11/19: This is still unfinished, a work in progress, give me a couple days or email me through wiki if you have questions or concerns -BurnMage | ||
Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher. So far they will create and update a large range of containers, including both 32bit and 64bit of the following: | Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher. So far they will create and update a large range of containers, including both 32bit and 64bit of the following: | ||
Line 51: | Line 53: | ||
yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu | yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu | ||
− | yum install pkg-cacher-sa | + | yum install pkg-cacher-sa |
=====<u>Configure vzpkg2</u>===== | =====<u>Configure vzpkg2</u>===== | ||
Line 72: | Line 74: | ||
service pkg-cacher restart | service pkg-cacher restart | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
====Debian Installs:==== | ====Debian Installs:==== | ||
Line 119: | Line 107: | ||
=====<u>Adding New Templates:</u>===== | =====<u>Adding New Templates:</u>===== | ||
− | + | At the time of writing the OS templates were only available in RPM format. To be able to install them, install yum: | |
+ | |||
+ | apt-get install yum | ||
+ | |||
+ | Then fetch the templates and install them: | ||
+ | |||
+ | wget http://repo.opensource-sw.net/centos/5/i386/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 | ||
+ | wget http://repo.opensource-sw.net/centos/5/i386/vztmpl2-debian-0.9.0-1.noarch.rpm | ||
+ | |||
+ | rpm -i --nodeps vztmpl2-*.rpm | ||
+ | |||
+ | Then move the templates to where Debian expects them: | ||
+ | |||
+ | mv /vz/template/* /var/lib/vz/template/ | ||
+ | |||
+ | Edit the /var/lib/vz/template/{centos,fedora,debian}/config/vzpkg.conf files as well to reference where Debian expects them. 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/ | ||
− | |||
=====<u>Configure vzpkg2</u>===== | =====<u>Configure vzpkg2</u>===== | ||
Line 135: | Line 141: | ||
=====<u>Configure pkg-cacher</u>===== | =====<u>Configure pkg-cacher</u>===== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Source=== | ===Source=== |