> -----Original Message-----
> From: Donal Lafferty [mailto:[email protected]]
> Sent: Wednesday, June 26, 2013 10:01 AM
> To: [email protected]
> 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 import into
hyperV. Currently, we can add NFS as staging area, possible you can add CIFS as
staging area also.