OpenVZ Forum - RDF feed
type: channel
items: yum command not found within openvz container
items: Re: yum command not found within openvz container

yum command not found within openvz container
type: item
description: I need to install LAMP stack(except L)on my OpenVZ container.However within the container yum command isn't found.So can I have it installed within the host instead.In that will a website hosted on it be accessible from within the container?
creator: ChaiVz
date: 2013-04-05T11:18:40-00:00

Re: yum command not found within openvz container
type: item
description: Hi, If you installed the base template from the hardware node, you would have done something like this: vzctl create 101 --ostemplate my-template-name --config basic If in fact you did that with a template from the precreated templates, I believe you would find that yum works as expected. Running an OpenVZ container within an OpenVZ container doesn't sound like a good idea to me, but I'm no expert. I hope this helps... Darin
creator: darinpeterson
date: 2013-04-05T18:14:19-00:00

Re: yum command not found within openvz container
type: item
description: Hi, Thanks for the reply .Yes, i did exactly that.But within the container it still says bash:'yum command not found'.Looks like this will prevent me from installing anything within the container. I don't intend to install a container within a container, but a web server within the container which needs a command like-'yum install httpd -y'.
creator: ChaiVz
date: 2013-04-08T02:15:38-00:00

Re: yum command not found within openvz container
type: item
description: Post the exact command you used to create a container, so we can see which template you've used... Please also post the output of the following commands, from within the container: ls -als /usr/bin/yum cat /etc/redhat-release
creator: Ales
date: 2013-04-08T11:32:32-00:00

Re: yum command not found within openvz container
type: item
description: Hello The command that I used to create the container is - 'vzctl create 101 --ostemplate ubuntu-12.04-x86.tar.gz --config basic' The output of command 'ls -als /usr/bin/yum ls:cannot access /usr/bin/yum :No such file or directory found cat /etc/redhat-release cat:/etc/redhat/release :No such file or directory found Thank you
creator: ChaiVz
date: 2013-04-09T02:04:01-00:00

Re: yum command not found within openvz container
type: item
description: You created a contaner with Ubuntu linux. Ubuntu is based on Debian and uses deb packages, not rpms. Yum doesn't exist on Ubuntu systems, use apt. I suggest starting with a how-to or a book about basic Ubuntu commands... Or create a CentOS 6 or Scientific Linux 6 container instead, if you're more familliar with yum and Red Hat based OS'es in general. Good luck!
creator: Ales
date: 2013-04-09T22:25:43-00:00

Re: yum command not found within openvz container
type: item
description: Ah,so that was the problem.I wasn't aware of these differences. Thanks a lot.
creator: ChaiVz
date: 2013-04-10T11:37:14-00:00