OpenVZ Forum


Home » General » Support » ( Solved) ERROR: No such OS template: install
( Solved) ERROR: No such OS template: install [message #23669] Wed, 21 November 2007 23:09 Go to next message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

I do:
[root@master2 root]# vzyum 2 install yum-3.1.7-2.fc7.noarch.rpm ERROR: No such OS template: install

Wiki says to "install the appropriate OS template metadata on the OpenVZ host, for example..."

I allready did it twice but i get the same error.
Any thoughts?

Thank you

[Updated on: Tue, 27 November 2007 13:39]

Report message to a moderator

Re: ERROR: No such OS template: install [message #23718 is a reply to message #23669] Fri, 23 November 2007 11:50 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Please show the output of the following commands:

1. rpm -qa | grep vztmpl
2. grep -i OSTEMPLATE /etc/vz/conf/2.conf
3. ls -l /vz/template/
4. vzlist -a

Thank You!
Re: ERROR: No such OS template: install [message #23733 is a reply to message #23718] Fri, 23 November 2007 15:14 Go to previous messageGo to next message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

[root@master2 ~]# rpm -qa | grep vztmpl
vztmpl-fedora-core-6-1.2-1

[root@master2 ~]# grep -i OSTEMPLATE /etc/vz/conf/2.conf
OSTEMPLATE="fedora-core-6-i686-default"

[root@master2 ~]# ls -l /vz/template/
total 8
drwxr-xr-x 2 root root 4096 Nov 22 02:04 cache
drwxr-xr-x 3 root root 4096 Nov 21 05:44 fedora-core

[root@master2 template]# vzlist -a
VEID NPROC STATUS IP_ADDR HOSTNAME
2 17 running 91.194.90.126 fc6

Thank YOU!

[Updated on: Fri, 23 November 2007 15:15]

Report message to a moderator

Re: ERROR: No such OS template: install [message #23734 is a reply to message #23733] Fri, 23 November 2007 15:55 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:

vztmpl-fedora-core-6-1.2-1

Can you please tell me where you have got this template?

Thank You!
Re: ERROR: No such OS template: install [message #23736 is a reply to message #23734] Fri, 23 November 2007 16:17 Go to previous messageGo to next message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

http://download.openvz.org/template/precreated/

http://download.openvz.org/template/precreated/fedora-core-6 -i686-default.tar.gz
Re: ERROR: No such OS template: install [message #23739 is a reply to message #23736] Sat, 24 November 2007 08:05 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1. Well, I understand that you use http://download.openvz.org/template/precreated/fedora-core-6 -i686-default.tar.gz precreated OS template cache.
2. But I also see that you have installed vztmpl-fedora-core-6-1.2-1 package. Please tell where have you got it?

P.S.
3. By the way, what version of vzpkg and vzyum do you use?
4. Can you please show the output of "uname -m"?

Thak You!
Re: ERROR: No such OS template: install [message #23744 is a reply to message #23739] Sat, 24 November 2007 15:54 Go to previous messageGo to next message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

uname -m
i686

[root@master2 ~]# yum search vztmpl
Loading "installonlyn" plugin
Setting up repositories
openvz-kernel-rhel5 100% |=========================| 951 B 00:00
openvz-utils 100% |=========================| 951 B 00:00
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 423 kB 00:00
updates : ################################################## 1137/1137
primary.xml.gz 100% |=========================| 1.7 MB 00:00
extras : ################################################## 5490/5490



vztmpl-centos-4.i386 2.0-2 openvz-utils
Matched from:
vztmpl-centos-4



vztmpl-fedora-7.i386 1.1-1 openvz-utils
Matched from:
vztmpl-fedora-7



vztmpl-fedora-core-6.i386 1.2-1 openvz-utils
Matched from:
vztmpl-fedora-core-6



vztmpl-fedora-core-3.i386 2.0-2 openvz-utils
Matched from:
vztmpl-fedora-core-3



vztmpl-fedora-core-4.i386 2.0-2 openvz-utils
Matched from:
vztmpl-fedora-core-4



vztmpl-fedora-core-5.i386 2.0-2 openvz-utils
Matched from:
vztmpl-fedora-core-5



vztmpl-fedora-core-6.i386 1.2-1 installed
Matched from:
vztmpl-fedora-core-6
[root@master2 ~]#
Re: ERROR: No such OS template: install [message #23766 is a reply to message #23744] Mon, 26 November 2007 09:34 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1. The current problem occurs in "/usr/share/vzpkg/functions" in
os2full function.
2. To avoid a problem I advise you to create a new template cache just type "vzpkgcache fedora-core-6" and then you get in /vz/template/cache directory appropriate cache (but it takes some time!).

P.S.(!!!)
But if you can wait a little time I think that you receive the full answer and the decision in this forum.

[Updated on: Mon, 26 November 2007 09:38]

Report message to a moderator

Re: ERROR: No such OS template: install [message #23768 is a reply to message #23669] Mon, 26 November 2007 09:53 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

vzyum 2 install yum-3.1.7-2.fc7.noarch.rpm


(This is unrelated to the problem you have, but you should not use the rpm file name as an argument to [vz]yum install -- use package name instead.)

Can you please run it this way:

bash -x vzyum 2 install yum

And provide us with the output?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: ERROR: No such OS template: install [message #23785 is a reply to message #23768] Mon, 26 November 2007 22:59 Go to previous messageGo to next message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

++ PROGNAME=vzyum
++ test -z ''
++ VZP_LOGFILE=/var/log/vzpkg.log
++ test -z ''
++ DEBUG_LEVEL=3
++ VZCTL=/usr/sbin/vzctl
++ VZLOCKDIR=/vz/lock
++ VECFGDIR=/etc/sysconfig/vz-scripts/
++ VZCFG=/etc/sysconfig/vz
++ VZLIB_SCRIPTDIR=/usr/lib/vzctl/scripts
++ YUM=/usr/share/vzyum/bin/yum
++ ARCHES='x86 i386 x86_64 ia64'
+ log4 Started vzyum 2 install yum
+ log 4 Started vzyum 2 install yum
+ local level=4
+ shift
+ test 4 -gt 3
+ return 0
+ set -e
+ test 3 -lt 2
+ get_veid 2
+ VEID=2
+ check_veid 2
+ '[' x2 = x0 ']'
+ echo 2
+ egrep -q '^[[:digit:]]+$'
++ get_vz_var VE_ROOT
++ local gotdef=1
+++ eval 'source /etc/sysconfig/vz && echo $VE_ROOT'
++++ source /etc/sysconfig/vz
+++++ VIRTUOZZO=yes
+++++ LOCKDIR=/vz/lock
+++++ DUMPDIR=/vz/dump
+++++ VE0CPUUNITS=1000
+++++ LOGGING=yes
+++++ LOGFILE=/var/log/vzctl.log
+++++ LOG_LEVEL=0
+++++ VERBOSE=0
+++++ DISK_QUOTA=yes
+++++ VZFASTBOOT=no
+++++ TEMPLATE=/vz/template
+++++ VE_ROOT=/vz/root/2
+++++ VE_PRIVATE=/vz/private/2
+++++ CONFIGFILE=vps.basic
+++++ DEF_OSTEMPLATE=fedora-core-6-i686-default
+++++ VZWDOG=no
+++++ IPTABLES='ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length'
+++++ IPV6=no
+++++ IP6TABLES='ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT'
++++ echo /vz/root/2
++ local value=/vz/root/2
++ test -z /vz/root/2
++ echo /vz/root/2
+ VE_ROOT=/vz/root/2
++ get_vz_var VE_PRIVATE
++ local gotdef=1
+++ eval 'source /etc/sysconfig/vz && echo $VE_PRIVATE'
++++ source /etc/sysconfig/vz
+++++ VIRTUOZZO=yes
+++++ LOCKDIR=/vz/lock
+++++ DUMPDIR=/vz/dump
+++++ VE0CPUUNITS=1000
+++++ LOGGING=yes
+++++ LOGFILE=/var/log/vzctl.log
+++++ LOG_LEVEL=0
+++++ VERBOSE=0
+++++ DISK_QUOTA=yes
+++++ VZFASTBOOT=no
+++++ TEMPLATE=/vz/template
+++++ VE_ROOT=/vz/root/2
+++++ VE_PRIVATE=/vz/private/2
+++++ CONFIGFILE=vps.basic
+++++ DEF_OSTEMPLATE=fedora-core-6-i686-default
+++++ VZWDOG=no
+++++ IPTABLES='ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length'
+++++ IPV6=no
+++++ IP6TABLES='ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT'
++++ echo /vz/private/2
++ local value=/vz/private/2
++ test -z /vz/private/2
++ echo /vz/private/2
+ VE_PRIVATE=/vz/private/2
+ shift
+ USER_ARGS='install yum'
++ /usr/sbin/vzctl status 2
+ STATUS='VEID 2 exist mounted running'
+ echo VEID 2 exist mounted running
+ grep -qw exist
+ echo VEID 2 exist mounted running
+ grep -qw running
+ get_ve_os_template 2
+ test -z 2
++ get_ve_var OSTEMPLATE
++ local vecfg=/etc/sysconfig/vz-scripts//2.conf
+++ eval 'source /etc/sysconfig/vz-scripts//2.conf && echo $OSTEMPLATE'
++++ source /etc/sysconfig/vz-scripts//2.conf
+++++ ONBOOT=yes
+++++ AVNUMPROC=40:40
+++++ NUMPROC=65:65
+++++ NUMTCPSOCK=80:80
+++++ NUMOTHERSOCK=80:80
+++++ VMGUARPAGES=6144:2147483647
+++++ KMEMSIZE=2211842:2359296
+++++ TCPSNDBUF=319488:524288
+++++ TCPRCVBUF=319488:524288
+++++ OTHERSOCKBUF=132096:336896
+++++ DGRAMRCVBUF=132096:132096
+++++ OOMGUARPAGES=6144:2147483647
+++++ LOCKEDPAGES=32:32
+++++ SHMPAGES=8192:8192
+++++ PRIVVMPAGES=200000:2200000
+++++ NUMFILE=2048:2048
+++++ NUMFLOCK=100:110
+++++ NUMPTY=16:16
+++++ NUMSIGINFO=256:256
+++++ DCACHESIZE=1048576:1097728
+++++ PHYSPAGES=0:2147483647
+++++ NUMIPTENT=128:128
+++++ DISKSPACE=9000000:9100000
+++++ DISKINODES=90000:91000
+++++ QUOTATIME=600
+++++ CPUUNITS=1550
+++++ VE_ROOT=/vz/root/2
+++++ VE_PRIVATE=/vz/private/2
+++++ OSTEMPLATE=fedora-core-6-i686-default
+++++ ORIGIN_SAMPLE=vps.basic
+++++ IP_ADDRESS=91.194.90.126
+++++ HOSTNAME=fc6
+++++ NAMESERVER=91.194.90.11
+++++ CPULIMIT=25
++++ echo fedora-core-6-i686-default
++ local value=fedora-core-6-i686-default
++ echo fedora-core-6-i686-default
+ OSTEMPLATE=fedora-core-6-i686-default
+ test -z fedora-core-6-i686-default
+ echo fedora-core-6-i686-default
+ fgrep -q /
++ get_vz_var TEMPLATE
++ local gotdef=1
+++ eval 'source /etc/sysconfig/vz && echo $TEMPLATE'
++++ source /etc/sysconfig/vz
+++++ VIRTUOZZO=yes
+++++ LOCKDIR=/vz/lock
+++++ DUMPDIR=/vz/dump
+++++ VE0CPUUNITS=1000
+++++ LOGGING=yes
+++++ LOGFILE=/var/log/vzctl.log
+++++ LOG_LEVEL=0
+++++ VERBOSE=0
+++++ DISK_QUOTA=yes
+++++ VZFASTBOOT=no
+++++ TEMPLATE=/vz/template
+++++ VE_ROOT=/vz/root/2
+++++ VE_PRIVATE=/vz/private/2
+++++ CONFIGFILE=vps.basic
+++++ DEF_OSTEMPLATE=fedora-core-6-i686-default
+++++ VZWDOG=no
+++++ IPTABLES='ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length'
+++++ IPV6=no
+++++ IP6TABLES='ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT'
++++ echo /vz/template
++ local value=/vz/template
++ test -z /vz/template
++ echo /vz/template
+ TEMPLATE=/vz/template
++ ost2full fedora-core-6-i686-default
++ local ost=fedora-core-6-i686-default oname over oset oarch tost tdir
++ local template=/vz/template
++ test -z /vz/template
++ for oarch in '$ARCHES'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ oarch=
++ for oarch in '$ARCHES'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ oarch=
++ for oarch in '$ARCHES'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ oarch=
++ for oarch in '$ARCHES'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ tost=fedora-core-6-i686-default
++ '[' fedora-core-6-i686-default = fedora-core-6-i686-default ']'
++ oarch=
++ '[' -z '' ']'
+++ get_arch
+++ case `uname -m` in
++++ uname -m
+++ echo i386
++ oarch=i386
++ '[' i386 == x86 ']'
++ oset=default
+++ echo fedora-core-6-i686-default
+++ sed 's@-\([^-][^-]*\)$@/\1@'
++ tdir=fedora-core-6-i686/default
++ test -d /vz/template/fedora-core-6-i686/default
+++ echo -n fedora-core-6-i686-default
+++ sed 's/[^-]//g'
+++ wc -c
++ test 4 -ge 2
+++ echo fedora-core-6-i686-default
+++ awk -F - '{print $NF}'
++ oset=default
++ tost=fedora-core-6-i686
+++ echo fedora-core-6-i686
+++ sed 's@-\([^-][^-]*\)$@/\1@'
++ tdir=fedora-core-6/i686
++ '[' -d /vz/template/fedora-core-6/i686 ']'
++ return 1
+ OST=
+ abort 'No such OS template: install'
+ log 1 No such OS template: install
+ local level=1
+ shift
+ test 1 -gt 3
+ local addstr
+ case $level in
+ addstr='ERROR: '
+ local 'msg=ERROR: No such OS template: install'
+ test 1 -lt 3
+ echo -e ERROR: No such OS template: install
ERROR: No such OS template: install
+ test -z /var/log/vzpkg.log
++ LANG=C
++ date '+%b %d %H:%M:%S'
+ local 'date=Nov 27 02:32:00'
+ local 'logmsg=Nov 27 02:32:00 [vzyum] ERROR: No such OS template: install'
+ echo -e 'Nov 27 02:32:00 [vzyum] ERROR: No such OS template: install'
+ exit 1
[root@master2 etc]#

[Updated on: Mon, 26 November 2007 22:59]

Report message to a moderator

Re: ERROR: No such OS template: install [message #23790 is a reply to message #23785] Mon, 26 November 2007 23:39 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

As a workaround, I recommend you to change i686 to i386 in OSTEMPLATE line in /etc/vz/conf/2.conf file.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: ERROR: No such OS template: install [message #23823 is a reply to message #23790] Tue, 27 November 2007 13:34 Go to previous message
soptom is currently offline  soptom
Messages: 34
Registered: October 2007
Location: Greece
Member

Perfect!
Thank you very much for your time and support.
Previous Topic: Build openvz kernel (2.6.22.X) for AMD64 Gutsy
Next Topic: Kernel oops
Goto Forum:
  


Current Time: Fri Jul 26 23:40:41 GMT 2024

Total time taken to generate the page: 0.03296 seconds