OpenVZ Forum


Home » General » Support » Howto install vzyum using debian sarge host-node
Howto install vzyum using debian sarge host-node [message #4886] Tue, 01 August 2006 16:10 Go to next message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
Hi.

I Have problems install vzyum on my hostnode debian sarge.

------------------------------------------------------------ ----
host-node:/home/fox# vzyum 101 apache
/usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
Warning: Variable VE_ROOT not found in /etc/sysconfig/vz; using empty string.
/usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
Warning: Variable VE_PRIVATE not found in /etc/sysconfig/vz; using empty string.
ERROR: VPS 101 not running; you should start it first
host-node:/home/fox#
------------------------------------------------------------ ----


Fernando

Re: Howto install vzyum using debian sarge host-node [message #4890 is a reply to message #4886] Tue, 01 August 2006 20:01 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

sure you have vzctl package installed? Rolling Eyes


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Howto install vzyum using debian sarge host-node [message #4891 is a reply to message #4890] Tue, 01 August 2006 20:08 Go to previous messageGo to next message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
Yea,

Remember i need install vzyum on a Debian 3.1 (sarge) HOST NODE. i need use yum on a fedora VPS hosted on this node.

----------------------------------------------
host-node:~# vzctl --version
vzctl version 3.0.10
host-node:~#

host-node:~# vzyum 101 install yum
/usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
Warning: Variable VE_ROOT not found in /etc/sysconfig/vz; using empty string.
/usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
Warning: Variable VE_PRIVATE not found in /etc/sysconfig/vz; using empty string.
/usr/bin/vzyum: line 1: /etc/sysconfig/vz-scripts//101.conf: No existe el fichero o el directorio
ERROR: OSTEMPLATE is not set for VPS 101!
host-node:~#
---------------------------------------------------

Fernando
Re: Howto install vzyum using debian sarge host-node [message #4893 is a reply to message #4886] Tue, 01 August 2006 20:15 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

update...

odd.. you should have /etc/vz/conf linked to /etc/sysconfig/vz-scripts directory and /etc/sysconfig/vz linked to /etc/vz/vz.conf if you installed vzctl package correctly. How did you installed it?


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png

[Updated on: Tue, 01 August 2006 20:28]

Report message to a moderator

Re: Howto install vzyum using debian sarge host-node [message #4894 is a reply to message #4893] Tue, 01 August 2006 20:36 Go to previous messageGo to next message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
ok iam solved the variables problem creating the /etc/sysconfig/vz file with this variables and linking /etc/vz/conf to /etc/sysconfig/vz-scripts.

But show this error
host-node:~# vzyum 106 yum
ERROR: No such OS template: yum
host-node:~#


Fernando
Re: Howto install vzyum using debian sarge host-node [message #4895 is a reply to message #4886] Tue, 01 August 2006 21:06 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

alright, there is no such command for yum as "yum" Laughing
check the man page for possible commands, like "vzyum <veid> install somepackage"




Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Howto install vzyum using debian sarge host-node [message #4896 is a reply to message #4895] Tue, 01 August 2006 21:10 Go to previous messageGo to next message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
i think The error is vzyum catch the parameter install as the OS template.


host-node:~# vzyum 106 install apache
ERROR: No such OS template: install
host-node:~#

Any idea?

Tanks for the help


Fernando
Re: Howto install vzyum using debian sarge host-node [message #4898 is a reply to message #4896] Tue, 01 August 2006 21:51 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

show us contents of /etc/vz/vz.conf please, also "ls -la /etc/vz/conf"


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Howto install vzyum using debian sarge host-node [message #4899 is a reply to message #4898] Tue, 01 August 2006 23:17 Go to previous messageGo to next message
foxxfiles is currently offline  foxxfiles
Messages: 12
Registered: July 2006
Junior Member
Hi

I Try linking /etc/vz/vz.conf to /etc/sysconfig/vz (on the config file exist all variables need) But dont work.

host-node:/home/fox# ln -s /etc/vz/vz.conf /etc/sysconfig/vz
host-node:/home/fox# vzyum 106 install apache
ERROR: No such OS template: install
host-node:/home/fox#


conf dir
-----------------------------------------------------
host-node:/home/fox# ls /etc/vz/conf
0.conf 104.conf 108.conf 112.conf 116.conf.destroyed
101.conf 105.conf 109.conf 113.conf ve-light.conf-sample
102.conf 106.conf 110.conf 114.conf ve-vps.basic.conf-sample
103.conf 107.conf 111.conf 115.conf.destroyed
host-node:/home/fox# cat /etc/vz/
-------------------------------------------------------

vz.conf file

------------------------------------------------------------ --
## Global parameters
#
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
#
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0

## Disk quota parameters
#
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
#
TEMPLATE=/var/lib/vz/template

## Defaults for VEs
#
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="debian-3.1-i386-minimal"

## Load vzwdog module
#
VZWDOG="no"

## Load ipTables Modules
#
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mang le ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"

# EOF
------------------------------------------------------

Fernando
Re: Howto install vzyum using debian sarge host-node [message #5533 is a reply to message #4886] Tue, 22 August 2006 21:03 Go to previous messageGo to next message
hm2k is currently offline  hm2k
Messages: 32
Registered: August 2006
Location: UK
Member
I have seen a similar problem to this, however on CentOS4.

This topic appears to remain unresolved, but with no further comments, so I ask if the creator solved it on their own.

Thanks.
Re: Howto install vzyum using debian sarge host-node [message #5534 is a reply to message #4890] Tue, 22 August 2006 22:28 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

... the solution is printed on the "screen"

>host-node:~# vzyum 106 install apache
>ERROR: No such OS template: install

Have you install the template metadata from "http://download.openvz.org/template/metadata/" ?

@foxxfile: depends on which fedora core you have installed!
@hm2k: centos4 ->"http://download.openvz.org/template/metadata/centos-4/"
Re: Howto install vzyum using debian sarge host-node [message #5535 is a reply to message #5534] Tue, 22 August 2006 22:33 Go to previous messageGo to next message
hm2k is currently offline  hm2k
Messages: 32
Registered: August 2006
Location: UK
Member
I see, thats confusing as it could refer to http://openvz.org/download/template/cache/ or http://openvz.org/download/template/repocache/ or http://openvz.org/download/template/metadata/

As they are all "templates"... its a little unclear.

However problem solved, it WAS the metadata that was missing.
Re: Howto install vzyum using debian sarge host-node [message #5536 is a reply to message #5535] Tue, 22 August 2006 22:39 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

For better unterstanding: Wink

http://wiki.openvz.org/OS_template_metadata

Re: Howto install vzyum using debian sarge host-node [message #5537 is a reply to message #4886] Tue, 22 August 2006 22:46 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

> /usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
> Warning: Variable VE_ROOT not found in /etc/sysconfig/vz; using empty string.
> /usr/bin/vzyum: line 1: /etc/sysconfig/vz: No existe el fichero o el directorio
>Warning: Variable VE_PRIVATE not found in /etc/sysconfig/vz; using empty string.
>/usr/bin/vzyum: line 1: /etc/sysconfig/vz-scripts//101.conf: No

another possible solution:
Change the entry of the given file to the the right paths!
(-> file:/usr/share/vzpkg/functions)

# Some handy definitions, need 4 Debian and vzpkg!
# mod. tsd@debian.systs.org
#
VZCTL=/usr/sbin/vzctl
VZLOCKDIR=/var/lib/vz/lock
VECFGDIR=/etc/vz/conf
VZCFG=/etc/vz/vz.conf
VZLIB_SCRIPTDIR=/usr/share/vzctl/scripts

[Updated on: Tue, 22 August 2006 22:48]

Report message to a moderator

Previous Topic: performance loss after update
Next Topic: how can i creat my Template
Goto Forum:
  


Current Time: Mon Jul 15 10:38:36 GMT 2024

Total time taken to generate the page: 0.02426 seconds