OpenVZ Forum


Home » General » Support » vzyum problem
vzyum problem [message #1040] Sat, 28 January 2006 11:32 Go to next message
ttucholka is currently offline  ttucholka
Messages: 12
Registered: January 2006
Junior Member
I have a centos-4-i386-minimal installed at ID 101

When I try to run vzyum I get:

root@server [/]# vzyum 101 update
ERROR: No such OS template: update

Did I miss something?
Re: vzyum problem [message #1041 is a reply to message #1040] Sat, 28 January 2006 12:21 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

First, the name of template printed in error message is invalid. It should be "ERROR: No such OS template: centos-4-i386-minimal"

Second, it looks like you do not have metadata for centos-4-i386 installed. Get the rpm from http://download.openvz.org/template/metadata/centos-4/ and install using rpm -ihv.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzyum problem [message #1042 is a reply to message #1041] Sat, 28 January 2006 12:24 Go to previous messageGo to next message
ttucholka is currently offline  ttucholka
Messages: 12
Registered: January 2006
Junior Member
I am running OpenVZ on RHEL 3

If I try to install the vztmpl-centos-4-2.0-2.i386.rpm, I get a few dependency errors:

warning: vztmpl-centos-4-2.0-2.i386.rpm: V3 DSA signature: NOKEY, key ID a7a1d4b6
error: Failed dependencies:
vzpkg >= 2.7.0-18 is needed by vztmpl-centos-4-2.0-2
vzrpm43 is needed by vztmpl-centos-4-2.0-2
vzrpm43-python is needed by vztmpl-centos-4-2.0-2
Re: vzyum problem [message #1044 is a reply to message #1042] Sat, 28 January 2006 12:34 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

That is right - you need to have all that stuff installed in order to update your VPS from the host system.

Alternative solution is to install yum inside a VPS and run yum update from within that VPS.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzyum problem [message #1046 is a reply to message #1044] Sat, 28 January 2006 12:37 Go to previous messageGo to next message
ttucholka is currently offline  ttucholka
Messages: 12
Registered: January 2006
Junior Member
That's what I ended up doing..

Inside the VPS I did

wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/python-s qlite-1.1.6-1.i386.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/python-e lementtree-1.2.6-4.i386.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/python-u rlgrabber-2.9.6-2.noarch.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/centos-y umconf-4-4.3.noarch.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/yum-2.4. 0-1.centos4.noarch.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/sqlite-3 .2.2-1.i386.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/libxml2- python-2.6.16-6.i386.rpm
wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/rpm-pyth on-4.3.3-11_nonptl.i386.rpm

rpm -Uvh *rpm

and yum is working perfectly inside the VPS..

Thanks for the help!

[Updated on: Sat, 28 January 2006 12:37]

Report message to a moderator

Re: vzyum problem [message #1055 is a reply to message #1041] Sat, 28 January 2006 23:57 Go to previous messageGo to next message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
I get this error:

root@hera:/usr/src# vzyum 1000 update
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/4/i386/config/yum.conf --installroot /vz/root/1000 --vps=1000 update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.1 (#1, Apr 10 2005, 22:30:36)
[GCC 3.3.5]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.


I know just about nothing about Python. The VPS 1000 is just a fresh new VPS made from the OpenVZ stock Fedora Core 4.
Re: vzyum problem [message #1056 is a reply to message #1055] Sat, 28 January 2006 23:58 Go to previous messageGo to next message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
https://lists.dulug.duke.edu/pipermail/yum/2005-September/00 7567.html

From that URL:
Quote:

As the error message indicates, you probably don't have the
python-elementtree package installed. What does "rpm -q
python-elementtree" show?

If python-elementree is installed, try installing Yum from source RPM.
That seems to work better for most people. Instructions have been posted
(probably more than once) to this list. See the list archives.
Re: vzyum problem [message #1057 is a reply to message #1056] Sun, 29 January 2006 00:15 Go to previous message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
If you don't use RPMs, get the source for ElementTree from http://effbot.org/zone/element-index.htm. I used elementtree-1.2.6-20050316.tar.gz. To install it, run: "python setup.py install" from the extracted elementtree-1.2.6-20050316 directory.

You will also need cElementTree, which is from http://effbot.org/zone/celementtree.htm. I used cElementTree-1.0.5-20051216.tar.gz. To install it, run: "python setup.py install" from the extracted cElementTree-1.0.5-20051216 directory.

.. Of course then it complains about "urlgrabber".

I got urlgrabber from http://ftp.debian.org/debian/pool/main/u/urlgrabber/urlgrabb er_2.9.7.orig.tar.gz and installed it the same way as ElementTree.

Now it seems to work just fine!
Previous Topic: kernel oops.
Next Topic: Networking Problems
Goto Forum:
  


Current Time: Tue Nov 19 02:37:46 GMT 2024

Total time taken to generate the page: 0.02986 seconds