Hi Vlad,

I was facing the same issue when I installed cloudstack for the first
time..My reason being that I was behind a authenticated proxy server so was
not able to ping outside world directly. What I did was download the
templates and host them locally. First of all there are three global
settings u will need to change. management.network.cidr, host and
secstorage.allowed.internal.sites. U can find these in the global settings
tab on the left hand side.
I'll giv u my network configuration and then u can just replace the IP
addresses and try using the same technique. My host is on 172.31.101.202
and my default gateway is 172.31.100.1 and netmask is 255.255.252.0

So management.network.cidr = 172.31.100.0/22
     host = 172.31.101.202
     secstorage.allowed.internal.sites = 172.31.100.0/22

after setting these values restart your management server from the terminal

*service cloudstack-management restart*

now download the template or iso you want to upload to cloudstack. We
assume here you downloaded it to your Downloads directory in your home
folder...Start the http server on that directly using python

*cd ~/Downloads*
*python -m SimpleHTTPServer 12345*
{12345 is the port number here)

to check whether the server is started go to your browser and enter
address *http://localhost:12345/
<http://localhost:12345/>* to check whether the server is strtted correctly
or not. U should see a list of all the files in your Downloads directly
listed on the browser.. Just right click on the template u just downloaded
and select "copy link location"

Next open cloudstack and in the address for the mirror of the template
paste the path you just copied..Fill in other entries as required in the
form.

This should get you started I guess..

Regards

On Thu, Dec 11, 2014 at 2:58 AM, Somesh Naidu <somesh.na...@citrix.com>
wrote:

> Vlad,
>
> Two things,
> a. looking up the specific error message in ssvm logs
> (/var/log/cloud/cloud.out) should give a better insight on what's happening
> (not working).
> b. running ssvm-check.sh will test this for you (if you can mount sec
> storage within the SSVM).
>
> The below link will provide you with lot more troubleshooting tips:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting
>
> -----Original Message-----
> From: Vladislav Nazarenko [mailto:vladislav.nazare...@gmail.com]
> Sent: Wednesday, December 10, 2014 3:10 PM
> To: users@cloudstack.apache.org
> Subject: Re: Not able to upload templates: Connection timed out
>
> Hi Guys,
>
> thanx a lot for your prompt responses:
>
> @Dave:
>   The image(http://IP/CentOS-6-x86_64-vanilla-kvm.qcow2.bz2) is
> available and can be downloaded (tested with wget)
>
> @Tejas: Hypervisor hosts  are able to mount the secondary storage
> How can I debug this on the SSVM?
>
> Kind regards
> Vlad
>
> On 10.12.2014 20:44, Tejas Sheth wrote:
> > Hi Vlad,
> >
> >    I was also getting the same error few days ago, for me the issue was
> my
> > SSVM was not able to mount Secondary storage.
> > Make sure that all your hypervisor hosts and system vms are able to
> access
> > nfs secondary storage.
> >
> > Thanks,
> > Tejas
> >
> >
> > On Thu, Dec 11, 2014 at 1:07 AM, Dave Dunaway <dave.duna...@gmail.com>
> > wrote:
> >
> >> Hey Vlado,
> >>
> >> Check out your download URL ....
> >>
> >> "http://IP/CentOS-6-x86_64-vanilla-kvm.qcow2.bz2
> >> <http://ip/CentOS-6-x86_64-vanilla-kvm.qcow2.bz2>"
> >>
> >>
> >>
> >> On Wed, Dec 10, 2014 at 1:56 PM, Vladislav Nazarenko <
> >> vladislav.nazare...@gmail.com> wrote:
> >>
> >>> Hi Everybody,
> >>>
> >>> need help with a fresh installed cloudstack with basic setup.
> >>>
> >>> System VMs are running. Trying to upload a template a see the following
> >> in
> >>> /var/log/cloudstack/management/management-server.log
> >>>
> >>> 2014-12-10 18:35:22,043 DEBUG [c.c.a.t.Request] (Timer-13:ctx-8ce1d6ae)
> >>> Seq 3-8582734989861322876: Sending  { Cmd , MgmtId: 207379926576, via:
> >>> 3(s-2-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.
> >>> storage.command.DownloadProgressCommand":{"jobId":"2683e976-bd26-450d-
> >>> 8774-092665b1233e","request":"GET_STATUS","hvm":true,"
> >>> description":"CENTOS","maxDownloadSizeInBytes":53687091200,"id":209,"
> >>> resourceType":"TEMPLATE","installPath":"template/tmpl/2/
> >>> 209","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"
> >>> nfs://IP/secondary","_role":"Image"}},"url":"http://IP/
> >>> CentOS-6-x86_64-vanilla-kvm.qcow2.bz2","format":"QCOW2","
> >>> accountId":2,"name":"209-2-4a99674a-acce-36e0-b2f6-
> >>> e12a7ad15e6b","secUrl":"nfs://IP/secondary","wait":0}}] }
> >>>
> >>> Please advice
> >>> Vlad
> >>>
> >>>
>
>

Reply via email to