OpenVZ Forum


Home » Mailing lists » Users » . tar.gz.tar.gz not found while trying to create a container
. tar.gz.tar.gz not found while trying to create a container [message #42310] Wed, 30 March 2011 20:33 Go to next message
lemmingNO1 is currently offline  lemmingNO1
Messages: 5
Registered: March 2011
Location: Colorado
Junior Member
From: *parallels.com
Debian 6.0.1
kernel 2.6.32-5-openvz-amd64
tools vzctl version 3.0.24

I believe I followed the instructions found on Howtoforge for setting up
OpenVZ on Debian6.0 Squeeze (AMD64)...however, I must have made a
mistake in setting everything up for openvz or I must be violating some
rule I have missed...

I plan was to initially create 3 different containers, each containing a
different template, so I could later clone them as I needed them to
populate /vz as I built my project which is going to use quite a few
containers. So, I only did the first step in creating my first
container since it did not seem to me to need to need the rest of the
creation steps yet, since their sole purpose was to be cloned and then
the clone would be modified for active use:

# vzctl create 101 --ostemplate debian-6.0-amd64-minimal --config basic

That worked great! It made the debian container numbered 101. So, I
moved immediately to my second downloaded template choice--- here is my
command and what my putty terminal displayed as the result with the
problem highlighted in bold red in the printout:

root@ispy2:/var/lib/vz/template/cache# vzctl create 102 --ostemplate
ubuntu-10.04-minimal_10.04_amd64.tar.gz --config basic

Creating container private area
(ubuntu-10.04-minimal_10.04_amd64.tar.gz)

Cached OS
template /var/lib/vz/template/cache/ubuntu-10.04-minimal_10.04_amd64.
tar.gz.tar.gz not found

(NOTE: Notice there is a open space between amd64 and the first tar.gz
and note the repetition of .tar.gz which appears to be why the template
can not be found...i think.)

Creation of container private area failed

root@ispy2:/var/lib/vz/template/cache# ls

debian-6.0-amd64-minimal.tar.gz ubuntu-10.04-lamp_10.04_amd64.tar.gz
ubuntu-10.04-minimal_10.04_amd64.tar.gz

root@ispy2:/var/lib/vz/template/cache# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
101 6 running - -

What am I doing wrong to have vzctl think my template name has two
".tar.gz" instead of one? And why did it work the first time for 101 and
not the second time for 102?

Thanks!
Re: . tar.gz.tar.gz not found while trying to create a container [message #42313 is a reply to message #42310] Wed, 30 March 2011 20:48 Go to previous messageGo to next message
KriS83 is currently offline  KriS83
Messages: 12
Registered: October 2005
Junior Member
From: *parallels.com
Hi Terry,

Am 30.03.2011 22:33, schrieb Terry:
>
> root@ispy2:/var/lib/vz/template/cache# *vzctl create 102 --ostemplate
> ubuntu-10.04-minimal_10.04_amd64.tar.gz --config basic*
>
> Creating container private area (ubuntu-10.04-minimal_10.04_amd64.tar.gz)
>
> Cached OS template
> /var/lib/vz/template/cache/ubuntu-10.04-minimal_10.04_amd64* .
> tar.gz.tar.gz not found*
>

The correct command should be:
# vzctl create 102 --ostemplate ubuntu-10.04-minimal_10.04_amd64
--config basic

Please notice the striped tar.gz after "--ostemplate".

This should resolve your issue :)

With Debian you did it right :)

Regards
Kristian
Re: . tar.gz.tar.gz not found while trying to create a container [message #42315 is a reply to message #42310] Wed, 30 March 2011 20:51 Go to previous messageGo to next message
Bogdan-Stefan Rotariu is currently offline  Bogdan-Stefan Rotariu
Messages: 4
Registered: May 2008
Junior Member
From: *parallels.com
Hi,

> Debian 6.0.1
> kernel 2.6.32-5-openvz-amd64
> tools vzctl version 3.0.24
>

This command is correct, the template must be without the archive extension

> # vzctl create 101 --ostemplate debian-6.0-amd64-minimal --config basic
>

> root@ispy2:/var/lib/vz/template/cache# vzctl create 102 --ostemplate
> ubuntu-10.04-minimal_10.04_amd64.tar.gz --config basic

This is not, you did specify the .tar.gz extensions, remove them and it
should work.


Cheers !
Re: . tar.gz.tar.gz not found while trying to create a container [message #42316 is a reply to message #42310] Wed, 30 March 2011 20:54 Go to previous message
Sharp is currently offline  Sharp
Messages: 14
Registered: March 2011
Junior Member
From: *parallels.com
On Thu, Mar 31, 2011 at 12:33 AM, Terry <terry.kemmerer@gmail.com> wrote:

> root@ispy2:/var/lib/vz/template/cache# vzctl create 102 --ostemplate
> ubuntu-10.04-minimal_10.04_amd64.tar.gz --config basic
>
> Creating container private area (ubuntu-10.04-minimal_10.04_amd64.tar.gz)
>
> Cached OS template
> /var/lib/vz/template/cache/ubuntu-10.04-minimal_10.04_amd64. tar.gz.tar.gz
> not found

Try this command instead of yours:
vzctl create 102 --ostemplate ubuntu-10.04-minimal_10.04_amd64 --config basic

You need to specify your precreated template name without the
extension (.tar.gz).
Previous Topic: SOLVED ---&gt;. tar.gz.tar.gz not found while trying to create a container
Next Topic: vps from different Hardware Nodes can't access each others
Goto Forum:
  


Current Time: Sat Nov 17 04:45:05 GMT 2018