I found the problem. Look the code here:
http://fossies.org/dox/apache-cloudstack-4.1.1-src /XcpOssResource_8java_source.html line 86, if the CS cannot find a local SR it throws that error. So, I created a local SR on the machine and everything ran smoothly. I just do not know why the CS needs a local SR instead of using the primary SR that was configured and why this information is not written on the official installation guide. Thanks for your help Marty. 2013/9/3 Marty Sweet <msweet....@gmail.com> > Rafael, secondary storage is only mounted when required. > Please could you attach the full management log and the agent setup log? > > Thanks, > Marty > > > On Tue, Sep 3, 2013 at 2:14 AM, Rafael Weingartner < > rafaelweingart...@gmail.com> wrote: > > > I noticed something, the secondary storage was not add as a shared > storage > > on the hypervisor. I do not know, I thought it should right ? > > > > > > 2013/9/2 Rafael Weingartner <rafaelweingart...@gmail.com> > > > > > Just an update, the CS has written some vhd files on the primary > storage, > > > I guess those are the vhd for the system VMs. So, it means it is > > everything > > > ok with the NFS primary storage. > > > > > > > > > 2013/9/2 Rafael Weingartner <rafaelweingart...@gmail.com> > > > > > >> Actually that is also my doubt. I haven't set any local storage just a > > >> shared NFS storage as a primary storage and also another NFS storage > as > > >> the secondary storage. > > >> > > >> I checked, the primary storage is mounted on the hypervisor, and it is > > >> working. > > >> I have read something about a very similar error here: > > >> > https://issues.apache.org/jira/browse/CLOUDSTACK-1508#comment-13756254 > > >> > > >> they said there it could be a problem with vhd-util that was not sent > to > > >> the hypervisor, but I do not know where I should put it on a xen > server > > >> that is also using the XCP TOOLSTACK. > > >> > > >> > > >> 2013/9/2 Marty Sweet <msweet....@gmail.com> > > >> > > >>> Hi, > > >>> > > >>> It looks like your issue is with the local storage, as opposed to > > >>> resources. > > >>> Personally, I don't know exactly what 'can not find local sr' means > but > > >>> I'm > > >>> sure someone can chip in. > > >>> > > >>> In the meantime, I would check what you have defined as primary > storage > > >>> on > > >>> cloudstack and that it is functioning correctly on the hypervisor. > > >>> > > >>> Marty > > >>> > > >>> On Monday, September 2, 2013, Rafael Weingartner wrote: > > >>> > > >>> > Hi, > > >>> > I have just deployed CS and I am configuring my first host on it. > > But, > > >>> so > > >>> > far I hasn't been able to deploy the SSVM and CPVM. I keep getting > > >>> error > > >>> > such as InsufficientServerCapacityExce > > >>> > ption and something like > > >>> > "2013-09-02 17:38:47,763 DEBUG [xen.resource.CitrixResourceBase] > > >>> > (DirectAgent-25:null) VBD 91334f20-f5f9-4775-132d-26b22f4c0f34 > > created > > >>> for > > >>> > Vol[4|ROOT|b0fdba4a-0f64-46a9-9892-c2312a364f24|2147483648] > > >>> > 2013-09-02 17:38:47,763 WARN [xen.resource.CitrixResourceBase] > > >>> > (DirectAgent-25:null) Catch Exception: class > > >>> > com.cloud.utils.exception.CloudRuntimeException due to > > >>> > com.cloud.utils.exception.CloudRuntimeException: can not find local > > sr > > >>> > com.cloud.utils.exception.CloudRuntimeException: can not find local > > sr" > > >>> > > > >>> > I am actually not understanding why it is throwing those errors, > the > > >>> host > > >>> > that I added to the CS has 7GB of RAM and a Xeon quad core > processor. > > >>> So, I > > >>> > guess it shouldn't have problems with resource to deploy just > these 2 > > >>> VMs. > > >>> > > > >>> > I also attached the management server.log if you like to take a > look > > >>> > > > >>> > > > >>> > -- > > >>> > Rafael Weingartner > > >>> > > > >>> > > >> > > >> > > >> > > >> -- > > >> Rafael Weingartner > > >> > > > > > > > > > > > > -- > > > Rafael Weingartner > > > > > > > > > > > -- > > Rafael Weingartner > > > -- Rafael Weingartner