OpenVZ Forum


Home » General » Support » Can't create container with precreated template. Virtuozzo 7
icon5.gif  Can't create container with precreated template. Virtuozzo 7 [message #52112] Sun, 05 July 2015 07:56 Go to next message
alkaid is currently offline  alkaid
Messages: 3
Registered: July 2015
Junior Member
I just installed openvz virtuozzo 7 in a centos7 VM (in virtualbox, only add a repo virtuozzo/releases/7.0/x86_64/os/)

I download precreated template from /template/precreated/debian-8.0-x86_64-minimal.tar.gz

Place them in the /vz/template/cache

However, when I run vzctl --verbose create 101 --ostemplate debian-8.0-x86_64-minimal it can't create containers from cached template

I googled it but can't find a solution (even not found a similar error)

PLEASE HELP !!! Crying or Very Sad

[root@localhost ~]# vzctl --verbose create 101 --ostemplate debian-8.0-x86_64-minimal
running: /usr/sbin/vzpkg info -q --config ve-basic.conf-sample --ostemplate debian-8.0-x86_64-minimal --vefstype ext4 
command /usr/sbin/vzpkg exited with error 8
Unable to get appcache tarball name for ve-basic.conf-sample with ostemplate debian-8.0-x86_64-minimal
remove dir=/vz/private/101.private_temporary tmp=//del/vzctl-rm-me.XiRMdk4
Destroying Container private area: /vz/private/101
running: /usr/libexec/libvzctl/scripts/vz-stop 
Warning: Container is in old data format, unregistration skipped
Container private area was destroyed
Creation of Container private area failed
[root@localhost ~]# 


files in /vz/template/

[root@localhost ~]# ls /vz/template/cache/
debian-8.0-x86_64-minimal.tar.gz  debian-8.0-x86_64.tar.gz

Re: Can't create container with precreated template. Virtuozzo 7 [message #52115 is a reply to message #52112] Mon, 06 July 2015 08:30 Go to previous messageGo to next message
alkaid is currently offline  alkaid
Messages: 3
Registered: July 2015
Junior Member
my vz.conf

TEMPLATE=/vz/template
CONFIGFILE="basic"
DEF_OSTEMPLATE="debian-8.0-x86_64-minimal"


my /etc/vz/conf/ve-basic.conf-sample

# This is an example configuration file for so-called "basic" Container.
#<agent>: Configuration file for allocating 256 Mb of memory.
#
# Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.

VERSION="2"

ONBOOT="no"

PHYSPAGES="65536:65536"
SWAPPAGES="65536"
# Virtual memory overcommitment
# privvmpages = (ram + swap) * VM_OVERCOMMIT (unlimited if not specified)
#VM_OVERCOMMIT="1.5"

CPUUNITS="1000"

NETFILTER="stateless"

DISKSPACE="10485760:10485760"
DISKINODES="655360:655360"

QUOTATIME="0"
IP_ADDRESS="0.0.0.0"

ARCH="x86_64"
PLATFORM="linux"
Re: Can't create container with precreated template. Virtuozzo 7 [message #52118 is a reply to message #52112] Sun, 12 July 2015 12:02 Go to previous messageGo to next message
tyoma75 is currently offline  tyoma75
Messages: 1
Registered: July 2015
Junior Member
Hi,
I have same problem with kernel 3.10.0-123.1.2.vz7.5.25 (OpenVZ installed to fresh installed CentOS 7 current) on two types of different dedicated hardware (Intel and AMD CPU).
Re: Can't create container with precreated template. Virtuozzo 7 [message #52119 is a reply to message #52118] Mon, 13 July 2015 04:06 Go to previous messageGo to next message
alkaid is currently offline  alkaid
Messages: 3
Registered: July 2015
Junior Member
I haven't found a solution yet. I guess the new version of openvz may change its mechanism in creating containers from templates, but there are no documents available.
Re: Can't create container with precreated template. Virtuozzo 7 [message #52133 is a reply to message #52112] Sun, 02 August 2015 18:42 Go to previous messageGo to next message
sergeyb is currently offline  sergeyb
Messages: 22
Registered: March 2015
Location: Moscow
Junior Member

You don't need to use old precreated templates for OpenVZ.
Just run something like 'prlctl create 100 --ostemplate centos-6-x86_64 --vm-type=ct' and prlctl will cache OS template for you.
CentOS OS templates installed by default (as far as I remember):
[root@vz ~]# rpm -qa | grep ez
centos-6-x86_64-ez-7.0.0-1.vz7.noarch
centos-5-x86-ez-7.0.0-2.vz7.noarch

You can found other OS templates in Virtuozzo yum repository:

centos-5-x86-ez.noarch : Centos 5 (for ix86) Template set
centos-6-x86_64-ez.noarch : Centos 6 (for AMD64/Intel EM64T) Template set
centos-7-x86_64-ez.noarch : Centos 7 (for AMD64/Intel EM64T) Template set
debian-8.0-x86_64-ez.noarch : Debian 8.0 (for AMD64/Intel EM64T) Template set

More templates are coming.

We plan to publish Virtuozzo 7 documentation about template management soon, now published only User guide and README. See docs.openvz.org
If you want to know more about templates please refer to commercial Virtuozzo documentation.

P.S. and sorry for later answer
Re: Can't create container with precreated template. Virtuozzo 7 [message #52135 is a reply to message #52112] Mon, 10 August 2015 12:47 Go to previous messageGo to next message
MilesWeb
Messages: 3
Registered: May 2015
Location: UK
Junior Member
I think this is caused by invalid value of DISKINODES set in your config.

Re: Can't create container with precreated template. Virtuozzo 7 [message #52146 is a reply to message #52112] Tue, 18 August 2015 21:20 Go to previous messageGo to next message
toumin is currently offline  toumin
Messages: 2
Registered: August 2015
Junior Member
I had the same problem, found the answer here h_ttps://www.mail-archive.com/users@openvz.org/msg06001.html, so follow command works
[root@localhost vz]# prlctl create sash --ostemplate centos-7-x86_64 --vmtype ct
Creating the Virtuozzo Container...
The Container has been successfully created.
Re: Can't create container with precreated template. Virtuozzo 7 [message #52147 is a reply to message #52112] Tue, 18 August 2015 21:27 Go to previous message
toumin is currently offline  toumin
Messages: 2
Registered: August 2015
Junior Member
follow command works for me
[root@localhost vz]# prlctl create aaacname --ostemplate centos-7-x86_64 --vmtype ct
Creating the Virtuozzo Container...
The Container has been successfully created.


found in mail-list
h_tt_ps://__www__.mail-archive.com/users@openvz.org/msg06001.html
Previous Topic: HELP: cannot boot newer CentOS 6/OpenVZ kernels than 2.6.32-042stab094.7
Next Topic: outdated mirror still working
Goto Forum:
  


Current Time: Wed Jul 17 17:36:34 GMT 2024

Total time taken to generate the page: 0.02691 seconds