Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7667CC99E for ; Thu, 27 Jun 2013 15:30:50 +0000 (UTC) Received: (qmail 35436 invoked by uid 500); 27 Jun 2013 15:30:50 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 34973 invoked by uid 500); 27 Jun 2013 15:30:47 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 34965 invoked by uid 99); 27 Jun 2013 15:30:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 15:30:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of donal.lafferty@citrix.com designates 46.33.159.39 as permitted sender) Received: from [46.33.159.39] (HELO SMTP.EU.CITRIX.COM) (46.33.159.39) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 15:30:39 +0000 X-IronPort-AV: E=Sophos;i="4.87,953,1363132800"; d="scan'208";a="6130481" Received: from lonpex01cl03.citrite.net ([10.30.203.103]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA; 27 Jun 2013 15:30:18 +0000 Received: from LONPEX01CL02.citrite.net ([169.254.2.169]) by LONPEX01CL03.citrite.net ([169.254.3.204]) with mapi id 14.02.0342.004; Thu, 27 Jun 2013 16:30:17 +0100 From: Donal Lafferty To: "dev@cloudstack.apache.org" Subject: RE: Where should a system VM image be uncompressed? Thread-Topic: Where should a system VM image be uncompressed? Thread-Index: Ac5yjq9qRfekgMgfTayaCDZDWojqdwAPqlVAAB9AoHA= Date: Thu, 27 Jun 2013 15:30:17 +0000 Message-ID: <9ADDE3F979256644BED8F0D244BE51F0034506@LONPEX01CL02.citrite.net> References: <9ADDE3F979256644BED8F0D244BE51F003420F@LONPEX01CL02.citrite.net> <77B337AF224FD84CBF8401947098DD87055210@SJCPEX01CL01.citrite.net> In-Reply-To: <77B337AF224FD84CBF8401947098DD87055210@SJCPEX01CL01.citrite.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.30.203.1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Edison Su [mailto:Edison.su@citrix.com] > Sent: 27 June 2013 1:38 AM > To: dev@cloudstack.apache.org > Subject: RE: Where should a system VM image be uncompressed? >=20 >=20 >=20 > > -----Original Message----- > > From: Donal Lafferty [mailto:donal.lafferty@citrix.com] > > Sent: Wednesday, June 26, 2013 10:01 AM > > To: dev@cloudstack.apache.org > > Subject: Where should a system VM image be uncompressed? > > > > I noticed that the system VM template is stored in S3 as a .bz2. E.g. > > as a .vhd.bz2 when using a Hyper-V hypervisor. > > > > Naturally, you can't run a bz2. Nor can you make a thin copy of it, > > say if it's a downloaded as a TEMPLATE to a primary storage pool. > > > > Should it be uncompressed before it goes into S3, when it is copied > > from S3 to primary storage, or when a volume is created from the > TEMPLATE? > There are two options: > 1. Put an uncompressed template url into cloudstack db for HyperV system > vm template, and disable register compressed template/ISO into S3, if the > zone is for hyperV. If there is no staging area between S3 and primary > storage, there is no place to unzip template. > 2. Add a file system supported by hyperV as staging area, so that we can = copy > compressed template from S3 into that staging area, then unzip, and impor= t > into hyperV. Currently, we can add NFS as staging area, possible you can = add > CIFS as staging area also. [Donal Lafferty]=20 I would prefer to update the database for now, and introduce a staging area= in the future. There are NuGet packages from the authors of bzip2 and zlib that would allo= w an agent to uncompress files on a CIFS share provided their licensing ter= ms are acceptable. DL