OpenVZ Forum


Home » General » Support » create openvz container (create openvz container)
icon9.gif  create openvz container [message #44529] Tue, 13 December 2011 08:50 Go to next message
cheitac is currently offline  cheitac
Messages: 17
Registered: June 2011
Location: Tbilisi
Junior Member
Hi All!

I cannot create openvz container after kernel update to 2.6.18-274.7.1.el5.028stab095.1. I'm using centos5 on host system and containers are centos too.

vzctl create 130 --ostemplate centos-5-x86_64-default-5.7-20110914
Creating container private area (centos-5-x86_64-default-5.7-20110914)
Warning: Temp dir /vz/private/130.tmp already exists, deleting
tar: Skipping to next header

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error exit delayed from previous errors
vps-create ERROR: Error in tar --numeric-owner -Sp -z -xf /vz/template/cache/centos-5-x86_64-default-5.7-20110914.tar. gz
Creation of container private area failed

Someone knows something about that?

Re: create openvz container [message #44533 is a reply to message #44529] Tue, 13 December 2011 11:26 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Well, this is a tar error and it sounds ambiguous... My guess is that it's something disk space / quota related or perhaps related to your template...

Do you have enough disk space? Is your template corrupted?
Re: create openvz container [message #44534 is a reply to message #44533] Tue, 13 December 2011 11:40 Go to previous messageGo to next message
cheitac is currently offline  cheitac
Messages: 17
Registered: June 2011
Location: Tbilisi
Junior Member
yes i have 300GB on /vz partition, and enough space on other partitions. the template works fine on other servers.

I noticed that some archives are corrupted in some vps-s on same server. is there any way to find what happens?
Re: create openvz container [message #44568 is a reply to message #44534] Wed, 14 December 2011 22:30 Go to previous messageGo to next message
mustardman is currently offline  mustardman
Messages: 91
Registered: October 2009
Member
Not sure if this is related but templates must conform to a certain format.

Cut/paste from http://www.powerpbx.org/content/rhel-openvz-template-install-guide

From command line on the actual node.
Stop the container by typing vzctl stop $CTID.
Make sure you are in the /vz/private/$CTID folder.
cd /vz/private/$CTID

Finally, package up the new template by typing:
tar -czvf /vz/template/cache/centos-5-<ARCH>-<DISTRO>.tar.gz ./

"centos-5" can also be "centos-6" or "scientificlinux-6" or ? OpenVZ expects the format "OS + "-" + "version".
<ARCH> is also mandatory and MUST be one of the following:
i386, x86, x86_64

<DISTRO> can be whatever you want it to be.

The template is ready for use.
Re: create openvz container [message #44574 is a reply to message #44568] Thu, 15 December 2011 11:13 Go to previous message
cheitac is currently offline  cheitac
Messages: 17
Registered: June 2011
Location: Tbilisi
Junior Member
Thank you. i try all before i posted here. it looks like tar error.
Previous Topic: How about memory
Next Topic: Accidentally destroyed container
Goto Forum:
  


Current Time: Sat Nov 02 12:01:28 GMT 2024

Total time taken to generate the page: 0.03172 seconds