...
echo "/opt/storage/secondary *(rw,no_subtree_check,no_root_squash,fsid=0)" > /etc/exports
fileSvr="http://nfs1download.lab.vmopscloud.com/templates/devcloud/"
wget $fileSvr/vmtemplatesdefaulttemplates/1/dc68eb4c-228c-4a78-84fa-b80ae178fbfd.vhd -P /opt/storage/secondary/template/tmpl/1/1/
wget $fileSvr/vmtemplatesdefaulttemplates/1/template.properties -P /opt/storage/secondary/template/tmpl/1/1/
...
Optional: get a sample centos/vm template (~50MB) for testing on your host-os:
wget http://nfs1.lab.vmops.com/templates/devcloud/vmtemplates/5/ce5b212e-215a-3461-94fb-814a635b2215bhaisaab.org/vms/cent.vhd
A SSVM template is required in the secondary storage (chicken-egg problem), as CloudStack runs the SSVM from NFS and then SSVM then mounts the NFS as secondary storage, make sure the 'host' in global settings is correctly set to your management server IP and at port 8250 it is reachable.
We wish to use NAT as our default interface.
...