cannot find command vzctl [message #30833] |
Sun, 08 June 2008 11:21  |
mojiz
Messages: 2 Registered: June 2008
|
Junior Member |
|
|
Hi
I have installed OpenVZ on a Fedora 8.
When I run the command vzctl I get:
bash: vzctl: command not found
the uname -a returns:
Linux myhostname 2.6.18-53.1.19.el5.028stab053.14 #1 SMP Thu May 8 20:43:27 MSD 2008 i686 i686 i386 GNU/Linux
I've already installed vzctl & vzquota using yum but I don't know if I've booted into the right kernel or not.
I'm a newbie in openvz. Could you please tell me what's wrong.
Thanks
Mojiz
|
|
|
Re: cannot find command vzctl [message #30834 is a reply to message #30833] |
Sun, 08 June 2008 11:37   |
|
Yes, this is the right kernel.
vzctl is located in /usr/sbin, so make sure (a) you are root (b) /usr/sbin is in your PATH. Usually if you use sudo or su it is not there; if you login as root it is there...
To check, run echo $PATH and if /usr/sbin is not in the list, add it like this:
export PATH=$PATH:/usr/sbin
Alternatively, run vzctl using the full path, i.e.
/usr/sbin/vzctl
Kir Kolyshkin
[Updated on: Sun, 08 June 2008 11:39] Report message to a moderator
|
|
|
|
|
|
|