Hey Pierre-Luc,

The content of the .zip is just the .vhd, and they are the same.

$ cd ~/Downloads; mkdir foo; cd foo
$ unzip ../systemvmtemplate-4.4.0-hyperv.vhd.zip 
Archive:  ../systemvmtemplate-4.4.0-hyperv.vhd.zip
 inflating: systemvmtemplate-4.4.0-3-hyperv.vhd  
$ ls -al systemvmtemplate-4.4.0-3-hyperv.vhd 
../systemvmtemplate-4.4.0-hyperv.vhd
-rw-r--r--@ 1 lsimons  SBP\Domain Users  1082401792 Jul 29 10:34 
../systemvmtemplate-4.4.0-hyperv.vhd
-rw-------@ 1 lsimons  SBP\Domain Users  1082401792 Jul 23 12:29 
systemvmtemplate-4.4.0-3-hyperv.vhd
$ md5 systemvmtemplate-4.4.0-3-hyperv.vhd
MD5 (systemvmtemplate-4.4.0-3-hyperv.vhd) = 1b1ab6680127eb7d641e4c692f33d8f3
$ md5 ../systemvmtemplate-4.4.0-hyperv.vhd
MD5 (../systemvmtemplate-4.4.0-hyperv.vhd) = 1b1ab6680127eb7d641e4c692f33d8f3

Looking at your pastebin

        • [root@fresh-acs44 secondary]# 
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt 
-m /data/secondary -u 
http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.0-hyperv.vhd.zip
 -h hyperv -F
        • --2014-07-28 21:25:03--  
http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.0-hyperv.vhd.zip
        • Resolving cloudstack.apt-get.eu... 109.72.87.236, 
2a00:f10:101::2c:91ed
        • Connecting to cloudstack.apt-get.eu|109.72.87.236|:80... connected.
        • HTTP request sent, awaiting response... 200 OK
        • Length: 283419356 (270M) [application/zip]
        • Saving to: 
`/usr/share/cloudstack-common/scripts/storage/secondary/1d085142-6fed-4158-ae29-60bd67478ce4.vhd'
        •  
        • 
100%[===================================================================================================================>]
 283,419,356 1.41M/s   in 3m 57s  
        •  
        • 2014-07-28 21:29:01 (1.14 MB/s) - 
`/usr/share/cloudstack-common/scripts/storage/secondary/1d085142-6fed-4158-ae29-60bd67478ce4.vhd'saved
 [283419356/283419356]
        •  
        • File 
/usr/share/cloudstack-common/scripts/storage/secondary/1d085142-6fed-4158-ae29-60bd67478ce4.vhd
 does not appear to be compressed
        • Moving to 
/data/secondary/template/tmpl/1/9///1d085142-6fed-4158-ae29-60bd67478ce4.vhd...could
 take a while
        • Successfully installed system VM template  to 
/data/secondary/template/tmpl/1/9/

it seems like you assumed cloud-install-sys-tmplt would figure out it was 
downloading a zip and unzip it, BUT, it simply saved the .zip as if it was a 
.vhd, and didn’t attempt to unzip.


cheers,


Leo

On Jul 29, 2014, at 3:53 AM, Pierre-Luc Dion <pd...@cloudops.com> wrote:
> there is 2 hyper-V systemvm template availables: .vhd, .vhd.zip at
> http://cloudstack.apt-get.eu/systemvm/4.4/
> 
> So, I've download both, but it turn out that the template .vhd file don't
> have the same size at the end of the process in both cases. Please see the
> cut&paste result.
> 
> http://pastebin.com/wDLExzs3
> 
> Can't test them, I don't have hyperV, but could we have the same issue with
> the KVM template?
> 
> 
> 
> *Pierre-Luc DION*

Reply via email to