devs looking to get involved?

2014-02-07 Thread Marcus
I occasionally have some minor improvement that I need to make to
whatever version of cloudstack we're currently running. This is almost
always behind what is currently being developed, and I don't always
feel like I have time to rebase/refactor it for master. I'm wondering
if there are any individuals out there who are looking for ways to
contribute that I can hand off these little projects to and mentor a
bit. You get an easy project to get your feet wet and I get the
improvements into master without using up time. :-) Maybe this sounds
like laziness on my part, but it seemed like a good idea.

I can post a patch that works for one version, and you can rework it
and test against master. Respond if you're interested, there may be
others who have easy work to farm off as well.

An example, I've made some improvements to the template downloader,
when the first 1M of the template is pulled we attempt to verify that
the image is actually what we think it is (qcow2 or vmdk or whatever)
by looking at the data. Up until now we just check file extension. It
also contains a new TemplateUtils class that has:

+public static boolean isCorrectExtension(String path, String ext) {
+if (path.toLowerCase().endsWith(ext)
+|| path.toLowerCase().endsWith(ext + ".gz")
+|| path.toLowerCase().endsWith(ext + ".bz2")
+|| path.toLowerCase().endsWith(ext + ".zip")) {
+return true;
+}
+return false;
+}

Which can be used to clean up the likes of:

private void checkFormat(String format, String url) {

if((!url.toLowerCase().endsWith("vhd"))&&(!url.toLowerCase().endsWith("vhd.zip"))

&&(!url.toLowerCase().endsWith("vhd.bz2"))&&(!url.toLowerCase().endsWith("vhd.gz"))

&&(!url.toLowerCase().endsWith("qcow2"))&&(!url.toLowerCase().endsWith("qcow2.zip"))

&&(!url.toLowerCase().endsWith("qcow2.bz2"))&&(!url.toLowerCase().endsWith("qcow2.gz"))

&&(!url.toLowerCase().endsWith("ova"))&&(!url.toLowerCase().endsWith("ova.zip"))

&&(!url.toLowerCase().endsWith("ova.bz2"))&&(!url.toLowerCase().endsWith("ova.gz"))

&&(!url.toLowerCase().endsWith("tar"))&&(!url.toLowerCase().endsWith("tar.zip"))

&&(!url.toLowerCase().endsWith("tar.bz2"))&&(!url.toLowerCase().endsWith("tar.gz"))
&&(!url.toLowerCase().endsWith("vmdk")) &&
(!url.toLowerCase().endsWith("vmdk.gz"))
&&(!url.toLowerCase().endsWith("vmdk.zip")) &&
(!url.toLowerCase().endsWith("vmdk.bz2")) &&
(!url.toLowerCase().endsWith("img"))
&&(!url.toLowerCase().endsWith("img.gz")) &&
(!url.toLowerCase().endsWith("img.zip")) &&
(!url.toLowerCase().endsWith("img.bz2"))
&&(!url.toLowerCase().endsWith("raw")) &&
(!url.toLowerCase().endsWith("raw.gz")) &&
(!url.toLowerCase().endsWith("raw.bz2"))
&&(!url.toLowerCase().endsWith("raw.zip"))){
throw new InvalidParameterValueException("Please specify a
valid " + format.toLowerCase());
}
if ((format.equalsIgnoreCase("vhd")
 && (!url.toLowerCase().endsWith("vhd")
 && !url.toLowerCase().endsWith("vhd.zip")
 && !url.toLowerCase().endsWith("vhd.bz2")
 && !url.toLowerCase().endsWith("vhd.gz")))
|| (format.equalsIgnoreCase("vhdx")
 && (!url.toLowerCase().endsWith("vhdx")
 && !url.toLowerCase().endsWith("vhdx.zip")
 && !url.toLowerCase().endsWith("vhdx.bz2")
 && !url.toLowerCase().endsWith("vhdx.gz")))
|| (format.equalsIgnoreCase("qcow2")
 && (!url.toLowerCase().endsWith("qcow2")
 && !url.toLowerCase().endsWith("qcow2.zip")
 && !url.toLowerCase().endsWith("qcow2.bz2")
 && !url.toLowerCase().endsWith("qcow2.gz")))
|| (format.equalsIgnoreCase("ova")
 && (!url.toLowerCase().endsWith("ova")
 && !url.toLowerCase().endsWith("ova.zip")
 && !url.toLowerCase().endsWith("ova.bz2")
 && !url.toLowerCase().endsWith("ova.gz")))
|| (format.equalsIgnoreCase("tar")
 && (!url.toLowerCase().endsWith("tar")
 && !url.toLowerCase().endsWith("tar.zip")
 && !url.toLowerCase().endsWith("tar.bz2")
 && !url.toLowerCase().endsWith("tar.gz")))
|| (format.equalsIgnoreCase("raw")
 && (!url.toLowerCase().endsWith("img")
 && !url.toLowerCase().endsWith("img.zip")
 && !url.toLowerCase().endsWith("img.bz2")
 && !url.toLowerCase().endsWith("img.gz")
 && !url.toLowerCase().endsWith("raw")
 && !url.toLowerCase().endsWith("raw.bz2")
 && !url.toLowerCase().endsW

Re: Where can I download CS 4.3

2014-02-07 Thread motty cruz
sure, Thanks


On Fri, Feb 7, 2014 at 3:24 PM, Nux!  wrote:

> On 07.02.2014 23:21, motty cruz wrote:
>
>> Thanks Nux!
>>
>> by the way is it easy to downgrade from 4.2.1 to CS 4.1?
>>
>
> I have no idea, I would imagine downgrades to be quite tricky.. You should
> send a different email on this and not mix subjects.
>
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>


Re: Where can I download CS 4.3

2014-02-07 Thread Nux!

On 07.02.2014 23:21, motty cruz wrote:

Thanks Nux!

by the way is it easy to downgrade from 4.2.1 to CS 4.1?


I have no idea, I would imagine downgrades to be quite tricky.. You 
should send a different email on this and not mix subjects.


--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Where can I download CS 4.3

2014-02-07 Thread motty cruz
Thanks Nux!

by the way is it easy to downgrade from 4.2.1 to CS 4.1?

Thank you very much!


On Fri, Feb 7, 2014 at 3:18 PM, Nux!  wrote:

> On 07.02.2014 23:05, motty cruz wrote:
>
>> Hello, Can someone please provide the link to download Cloudstack 4.3.
>>
>> Thanks,
>>
>
> Motty, 4.3 is still under development and it's not stable.
> You can get it from here:
> https://dist.apache.org/repos/dist/dev/cloudstack/4.3.0/
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>


Re: Where can I download CS 4.3

2014-02-07 Thread Nux!

On 07.02.2014 23:05, motty cruz wrote:

Hello, Can someone please provide the link to download Cloudstack 4.3.

Thanks,


Motty, 4.3 is still under development and it's not stable.
You can get it from here:
https://dist.apache.org/repos/dist/dev/cloudstack/4.3.0/

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Where can I download CS 4.3

2014-02-07 Thread motty cruz
Hello, Can someone please provide the link to download Cloudstack 4.3.

Thanks,


Primary and Secondary Storages for VMware

2014-02-07 Thread José Egas López

Hi there, just a question:

I'm working with CS 4.2.1 and ESXi 5.1.
Which is the best way for adding an storage on this type of implementation?
I mean, if I'm using VMware, is it necessary to configure an NFS Server 
(CentOS NFS Server in my case)?

Or, how can I do about adding storage to CS with VMware?
Thanks!

--

*

José

*



FARMAENLACE ha procesado su mensaje y esta limpio
No imprima este mail a menos que sea necesario



Re: Importing VMDKs

2014-02-07 Thread Abraham Hoffman
Hi Dan,

This sounds more like an infrastructure question than a Cloudstack
question. However:

1. DR environments should implement the best practice of being
geographically separate from the primary site (both for security and
failure concerns). If you *must* have your DR on premises, make sure you
are aware of the risks.
2. KVM, QEMU, Libvirt, is a fantastic option when comparing to the VMware
suite of tools. Number one reason? It's free. KVM also supports migrating
VMDK images to QCOW2 or other formats.

If you would like to chat on the phone about your project, I am a
co-founder of a startup in Arizona called "ExpertZero". We are currently
building a data center to support United Way Tucson's VDI deployment as
well as working with a number of National Companies. Overall we will be
supporting 3,800 VDI instances by Q1 of next year, and are using CentOS,
KVM, CloudStack and our custom software to do it.

Send me an E-mail at abe [at] expertzero [dot] com if you would like some
help. I would be happy to work with you gratis on the project and give you
some free advice.

Abe Hoffman
ExpertZero | "Simple Cloud Desktops"
Co-Founder - Chief Cloud Architect


On Fri, Feb 7, 2014 at 10:19 AM, Dan Belkie  wrote:

> Hey all!
> Brand new to the list, and looking for a private cloud solution for onsite.
>
> In my current office environment I have a pretty large VMware Virtual
> Centre deployment, and I am looking to DR it to a private cloud that I will
> be building. Yes I could just duplicate my VMware environment in the second
> location and use SRM or something like that, but the private cloud solution
> will have 3 main purposes:
>
> 1) DR for my existing VMware environment.
> 2) Test and Dev for users in the office where the DR site will be hosted.
> (so brand new... now VMware involved).
> 3) I would like to save money on my VMware licensing.
>
> Now that I have set the stage... I am looking to determine how and what the
> process is for taking a VMDK from my VMware environment, and importing it
> to a private cloud. I have been searching if this is possible with
> cloudstack, and I cant find too much. I would prefer to not have to go
> through a long import process if at all possible.
>
> If this is possible can someone point me to some whitepapers or
> documentation on how this is done?
>
> Thanks!
> Dan
>


Importing VMDKs

2014-02-07 Thread Dan Belkie
Hey all!
Brand new to the list, and looking for a private cloud solution for onsite.

In my current office environment I have a pretty large VMware Virtual
Centre deployment, and I am looking to DR it to a private cloud that I will
be building. Yes I could just duplicate my VMware environment in the second
location and use SRM or something like that, but the private cloud solution
will have 3 main purposes:

1) DR for my existing VMware environment.
2) Test and Dev for users in the office where the DR site will be hosted.
(so brand new... now VMware involved).
3) I would like to save money on my VMware licensing.

Now that I have set the stage... I am looking to determine how and what the
process is for taking a VMDK from my VMware environment, and importing it
to a private cloud. I have been searching if this is possible with
cloudstack, and I cant find too much. I would prefer to not have to go
through a long import process if at all possible.

If this is possible can someone point me to some whitepapers or
documentation on how this is done?

Thanks!
Dan


Re: Not able to add primary Storage Cloudstack 4.3

2014-02-07 Thread Tejas Gadaria
Hi Paul,

I have just join dev-list. So didn't received your mail but I show your
mail in mail-archive. I think I am not using latest system templete iso.

I have downloaded system vm template from
http://download.cloud.com/templates/4.3/systemvm64template-2013-12-23-hyperv.vhd.bz2
please suggest where can I download latest system vm template for hyperv .
I found http://jenkins.buildacloud.org/view/4.3/job/cloudstack-4.3-systemvm/but
hyperv is not available.

While creating SSVM and CPVM, its not able identify any cloudastack
element,except Zone id. and at some point it was searching for Xen
hypervisor, though I was working with hyperv. Now I am not able to delete
SSMV and CPVM, it's in Expunging state since last hour. expunge delay = 60

Regards,
Tejas




On Fri, Feb 7, 2014 at 5:04 PM, Paul Angus  wrote:

> Tejas,
>
> Check out the dev list I've just posted an issue with the system vms not
> starting - you might be having the same issue.  check the agent log for:
>
> ERROR HypervResource.HypervResourceController
> [6b05182a-efa1-4105-bc5c-0a49c55674f0] - com.cloud.agent.api.StartCommand
> fail on exceptionObject reference not set to an instance of an object.
> System.NullReferenceException: Object reference not set to an instance of
> an object.
>at HypervResource.WmiCallsV2.DeployVirtualMachine(Object jsonObj,
> String systemVmIso)
>at HypervResource.HypervResourceController.StartCommand(Object cmd)
>
>
> Regards,
>
> Paul Angus
> Cloud Architect
> S: +44 20 3603 0540 | M: +447711418784 | T: @CloudyAngus
> paul.an...@shapeblue.com
>
> -Original Message-
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
> Sent: 07 February 2014 11:31
> To: Rajesh Battala
> Cc: users@cloudstack.apache.org; d...@cloudstack.apache.org
> Subject: Re: Not able to add primary Storage Cloudstack 4.3
>
> Hi Rajesh,
>
> Thanks for providing API.
> I have successfully attached primary storage to cloudstack.
>
> I am facing problem with SSVM and CPVM also, probably I will initiate new
> mail-trail ssytem vm issues.
>
> Reards,
> Tejas
>
>
>
>
> On Thu, Feb 6, 2014 at 12:27 PM, Rajesh Battala
> wrote:
>
> >  Tejas,
> >
> > This is how the api command looks like to create primary and secondary
> > storage.
> >
> >
> >
> >
> > command=createStoragePool&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&
> > podId=896cff2e-d51e-454b-97ed-cab078bf3be2&clusterid=3785c58a-d891-448
> > 2-9e6f-72f2060b80d3&name=ps&scope=cluster&url=cifs%3A%2F%2F10.102.192.
> > 150%2Fsmb-share%2Frajesh%2Fprimary%3Fuser%3DAdministrator%26domain%3DB
> > LR&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&_=139166689
> > 6777
> >
> >
> >
> >
> >
> >
> > command=addImageStore&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs
> > 7Zws%3D&name=sec&provider=SMB&zoneid=581bc2b6-0295-40e0-90ed-2717e239c
> > 2b6&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fsecondary%3
> > Fuser%3DAdministrator%26domain%3DBLR&_=1391666908684
> >
> >
> >
> >
> >
> >
> >
> > in the wizard specify the path as
> >
> >   "/smb-share/rajesh/primary"
> >
> > Similar for secondary.
> >
> > Provide credentials and domain name in the wizard.
> >
> >
> >
> > Make sure you were able to access the share from the hyperv hosts
> > before adding them to CS.
> >
> >
> >
> > Thanks
> >
> > Rajesh Battala
> >
> >
> >
> >
> >
> > *From:* Tejas Gadaria [mailto:refond.g...@gmail.com]
> > *Sent:* Thursday, February 6, 2014 11:03 AM
> > *To:* users@cloudstack.apache.org
> > *Cc:* Rajesh Battala; d...@cloudstack.apache.org
> >
> > *Subject:* Re: Not able to add primary Storage Cloudstack 4.3
> >
> >
> >
> > Hi,
> >
> > I am not able to attach primary storage in Cloudstack as cifs.
> >
> > So what I am doing wrong OR what are the issues with primary storage.?
> >
> > Regards
> >
> > Tejas
> >
> >
> >
> > On Wed, Feb 5, 2014 at 4:35 PM, Tejas Gadaria 
> > wrote:
> >
> > Hi Paul,
> >
> > forgot to mention,
> >
> > hyper-v agent is running.
> >
> > Regards,
> >
> > Tejas
> >
> >
> >
> > On Wed, Feb 5, 2014 at 4:33 PM, Tejas Gadaria 
> > wrote:
> >
> > Hi Paul,
> >
> > yesterday when I was trying to add secondary storage with
> > /hcloud/secondary , In logs I was not able to see much activity, but
> > storage got attached.
> >
> > I have uploaded screenshot in previous  mail.
> >
> > I have reattached the secondary storage, and it logs are Trying to add
> > a new data store at cifs://
> > 10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com to
> > data center 3
> > 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> > (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue
> > 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> > (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue
> >
> > I have not enable the zone yet.
> >
> > In attached screenshot of secondary storage in previous mail
> >
> > protocol:cifs
> >
> > provider : NFS
> >
> > I suspect, it because I have taken chunk of NFS datastore, mounted and
> > share it via Windows fie server (Standalone)
> >
> >

RE: Not able to add primary Storage Cloudstack 4.3

2014-02-07 Thread Paul Angus
Tejas,

Check out the dev list I've just posted an issue with the system vms not 
starting - you might be having the same issue.  check the agent log for:

ERROR HypervResource.HypervResourceController 
[6b05182a-efa1-4105-bc5c-0a49c55674f0] - com.cloud.agent.api.StartCommand fail 
on exceptionObject reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an 
object.
   at HypervResource.WmiCallsV2.DeployVirtualMachine(Object jsonObj, String 
systemVmIso)
   at HypervResource.HypervResourceController.StartCommand(Object cmd)


Regards,

Paul Angus
Cloud Architect
S: +44 20 3603 0540 | M: +447711418784 | T: @CloudyAngus
paul.an...@shapeblue.com

-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com]
Sent: 07 February 2014 11:31
To: Rajesh Battala
Cc: users@cloudstack.apache.org; d...@cloudstack.apache.org
Subject: Re: Not able to add primary Storage Cloudstack 4.3

Hi Rajesh,

Thanks for providing API.
I have successfully attached primary storage to cloudstack.

I am facing problem with SSVM and CPVM also, probably I will initiate new 
mail-trail ssytem vm issues.

Reards,
Tejas




On Thu, Feb 6, 2014 at 12:27 PM, Rajesh Battala
wrote:

>  Tejas,
>
> This is how the api command looks like to create primary and secondary
> storage.
>
>
>
>
> command=createStoragePool&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&
> podId=896cff2e-d51e-454b-97ed-cab078bf3be2&clusterid=3785c58a-d891-448
> 2-9e6f-72f2060b80d3&name=ps&scope=cluster&url=cifs%3A%2F%2F10.102.192.
> 150%2Fsmb-share%2Frajesh%2Fprimary%3Fuser%3DAdministrator%26domain%3DB
> LR&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&_=139166689
> 6777
>
>
>
>
>
>
> command=addImageStore&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs
> 7Zws%3D&name=sec&provider=SMB&zoneid=581bc2b6-0295-40e0-90ed-2717e239c
> 2b6&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fsecondary%3
> Fuser%3DAdministrator%26domain%3DBLR&_=1391666908684
>
>
>
>
>
>
>
> in the wizard specify the path as
>
>   "/smb-share/rajesh/primary"
>
> Similar for secondary.
>
> Provide credentials and domain name in the wizard.
>
>
>
> Make sure you were able to access the share from the hyperv hosts
> before adding them to CS.
>
>
>
> Thanks
>
> Rajesh Battala
>
>
>
>
>
> *From:* Tejas Gadaria [mailto:refond.g...@gmail.com]
> *Sent:* Thursday, February 6, 2014 11:03 AM
> *To:* users@cloudstack.apache.org
> *Cc:* Rajesh Battala; d...@cloudstack.apache.org
>
> *Subject:* Re: Not able to add primary Storage Cloudstack 4.3
>
>
>
> Hi,
>
> I am not able to attach primary storage in Cloudstack as cifs.
>
> So what I am doing wrong OR what are the issues with primary storage.?
>
> Regards
>
> Tejas
>
>
>
> On Wed, Feb 5, 2014 at 4:35 PM, Tejas Gadaria 
> wrote:
>
> Hi Paul,
>
> forgot to mention,
>
> hyper-v agent is running.
>
> Regards,
>
> Tejas
>
>
>
> On Wed, Feb 5, 2014 at 4:33 PM, Tejas Gadaria 
> wrote:
>
> Hi Paul,
>
> yesterday when I was trying to add secondary storage with
> /hcloud/secondary , In logs I was not able to see much activity, but
> storage got attached.
>
> I have uploaded screenshot in previous  mail.
>
> I have reattached the secondary storage, and it logs are Trying to add
> a new data store at cifs://
> 10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com to
> data center 3
> 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue
> 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue
>
> I have not enable the zone yet.
>
> In attached screenshot of secondary storage in previous mail
>
> protocol:cifs
>
> provider : NFS
>
> I suspect, it because I have taken chunk of NFS datastore, mounted and
> share it via Windows fie server (Standalone)
>
>
> please find logs in attached file.
>
>
>
> Regards,
>
> Tejas
>
>
>
> On Tue, Feb 4, 2014 at 5:52 PM, Paul Angus 
> wrote:
>
> Hey Tejas,
>
>
> cifs%3A%2F%2F10.129.151.155hcloud%2Fsecondary%3Fuser%3Dadministrator%2
> 6domain%3Dnwx.com
>
> Theres a "/" ("%2F") missing between 10.129.151.155 and hcloud - my
> recollection is that primary and secondary storage UIs are not
> consistent, add the secondary path as /hcloud/secondary
>
> re primary - is the agent service running? it doesn't seem to (always)
> automatically start even when it's set to automatic in services.
>
> Regards,
>
> Paul Angus
> Cloud Architect
> S: +44 20 3603 0540 | M: +447711418784 | T: @CloudyAngus
>
> paul.an...@shapeblue.com
>
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>
> Sent: 04 February 2014 12:15
>
> To: users@cloudstack.apache.org
> Cc: rajesh.batt...@citrix.com; d...@cloudstack.apache.org
> Subject: Re: Not able to add primary Storage Cloudstack 4.3
>
> Hi Paul,
> I tried with "hcloud/primary" and
> primary storage shows Unsupported command issued.
>
> secondary storage shows Failed to add data store: cifs URI missing
> host a

Re: Not able to add primary Storage Cloudstack 4.3

2014-02-07 Thread Tejas Gadaria
Hi Rajesh,

Thanks for providing API.
I have successfully attached primary storage to cloudstack.

I am facing problem with SSVM and CPVM also, probably I will initiate new
mail-trail ssytem vm issues.

Reards,
Tejas




On Thu, Feb 6, 2014 at 12:27 PM, Rajesh Battala
wrote:

>  Tejas,
>
> This is how the api command looks like to create primary and secondary
> storage.
>
>
>
>
> command=createStoragePool&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&podId=896cff2e-d51e-454b-97ed-cab078bf3be2&clusterid=3785c58a-d891-4482-9e6f-72f2060b80d3&name=ps&scope=cluster&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fprimary%3Fuser%3DAdministrator%26domain%3DBLR&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&_=1391666896777
>
>
>
>
>
>
> command=addImageStore&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&name=sec&provider=SMB&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fsecondary%3Fuser%3DAdministrator%26domain%3DBLR&_=1391666908684
>
>
>
>
>
>
>
> in the wizard specify the path as
>
>   "/smb-share/rajesh/primary"
>
> Similar for secondary.
>
> Provide credentials and domain name in the wizard.
>
>
>
> Make sure you were able to access the share from the hyperv hosts before
> adding them to CS.
>
>
>
> Thanks
>
> Rajesh Battala
>
>
>
>
>
> *From:* Tejas Gadaria [mailto:refond.g...@gmail.com]
> *Sent:* Thursday, February 6, 2014 11:03 AM
> *To:* users@cloudstack.apache.org
> *Cc:* Rajesh Battala; d...@cloudstack.apache.org
>
> *Subject:* Re: Not able to add primary Storage Cloudstack 4.3
>
>
>
> Hi,
>
> I am not able to attach primary storage in Cloudstack as cifs.
>
> So what I am doing wrong OR what are the issues with primary storage.?
>
> Regards
>
> Tejas
>
>
>
> On Wed, Feb 5, 2014 at 4:35 PM, Tejas Gadaria 
> wrote:
>
> Hi Paul,
>
> forgot to mention,
>
> hyper-v agent is running.
>
> Regards,
>
> Tejas
>
>
>
> On Wed, Feb 5, 2014 at 4:33 PM, Tejas Gadaria 
> wrote:
>
> Hi Paul,
>
> yesterday when I was trying to add secondary storage with
> /hcloud/secondary , In logs I was not able to see much activity, but
> storage got attached.
>
> I have uploaded screenshot in previous  mail.
>
> I have reattached the secondary storage, and it logs are
> Trying to add a new data store at cifs://
> 10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com to data
> center 3
> 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue
> 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils]
> (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue
>
> I have not enable the zone yet.
>
> In attached screenshot of secondary storage in previous mail
>
> protocol:cifs
>
> provider : NFS
>
> I suspect, it because I have taken chunk of NFS datastore, mounted and
> share it via Windows fie server (Standalone)
>
>
> please find logs in attached file.
>
>
>
> Regards,
>
> Tejas
>
>
>
> On Tue, Feb 4, 2014 at 5:52 PM, Paul Angus 
> wrote:
>
> Hey Tejas,
>
>
> cifs%3A%2F%2F10.129.151.155hcloud%2Fsecondary%3Fuser%3Dadministrator%26domain%3Dnwx.com
>
> Theres a "/" ("%2F") missing between 10.129.151.155 and hcloud - my
> recollection is that primary and secondary storage UIs are not consistent,
> add the secondary path as /hcloud/secondary
>
> re primary - is the agent service running? it doesn't seem to (always)
> automatically start even when it's set to automatic in services.
>
> Regards,
>
> Paul Angus
> Cloud Architect
> S: +44 20 3603 0540 | M: +447711418784 | T: @CloudyAngus
>
> paul.an...@shapeblue.com
>
> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>
> Sent: 04 February 2014 12:15
>
> To: users@cloudstack.apache.org
> Cc: rajesh.batt...@citrix.com; d...@cloudstack.apache.org
> Subject: Re: Not able to add primary Storage Cloudstack 4.3
>
> Hi Paul,
> I tried with "hcloud/primary" and
> primary storage shows Unsupported command issued.
>
> secondary storage shows Failed to add data store: cifs URI missing host
> and/or path. Make sure it's of the format
> cifs://hostname/path?user=&password=
>
> After that I was trying to add secondary storage with /hcloud/secondary, I
> didn't show much activity in log.
> In Cloudstack console, secondary storage got added, but protocol is CIFS
> and provider is NFS.
>
> Please find attached logs. and screenshot from attached secondary storage.
>
> Regards,
> Tejas
>
> On Tue, Feb 4, 2014 at 12:29 PM, Paul Angus  > wrote:
> Tejas, You have hcloud\primary, it should be hcloud/primary
>
> Regards
>
> Paul Angus
> Cloud Architect
>
> S: +44 20 3603 0540>
> | M: +447711418784> | T: CloudyAngus
>
> paul.an...@shapeblue.com paul.an...@shapeblue.com>
>
> From: Tejas Gadaria [mailto:refond.g...@gmail.com refond.g...@gmail.com>]
>
> Sent: 04 February 2014 05:16
>
> To: users@cloudstack.apache.org
> Cc: rajesh.batt...@citrix.com

Re: Guest reports wrong amount of RAM with RAM overprovisioning

2014-02-07 Thread Nux!

On 07.02.2014 10:58, Andrija Panic wrote:

Great, thx for that info, seems a little bit like cheating :) , but is
needed in some scenarios...


Well, depends. In some circumstances KSM can make a big difference and 
you certainly can't sell VMs with 2 GB ram and not have your customers 
complaining they only got half of that. :)



--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Guest reports wrong amount of RAM with RAM overprovisioning

2014-02-07 Thread Andrija Panic
Great, thx for that info, seems a little bit like cheating :) , but is
needed in some scenarios...

Thanks


On 7 February 2014 11:54, Nux!  wrote:

> On 07.02.2014 10:44, Nux! wrote:
>
>> On 07.02.2014 08:43, Andrija Panic wrote:
>>
>>> hm, no, I have gave up on RAM overprovisioning, since I got no good
>>> response from any of the gurus here.
>>> If you find a solution, I would greatly appriciate it...
>>>
>>
>> Andrija,
>>
>> This is a known issue and it's how it works with other hypervisors,
>> too. This feature was not meant to be used in a public cloud (eg
>> selling VPSes) for obvious reasons, imo.
>> Starting with 4.3, thanks to Marcus Sorensen who wrote the patch,
>> we'll be able to ser overprovisioning AND not the the RAM shown inside
>> the guests messed with; basically it will rely on KSM for memory
>> deduplication. My advice is to start testing 4.3.
>>
>
> For more info read http://mail-archives.apache.
> org/mod_mbox/cloudstack-dev/201401.mbox/%3CCALFpzo7yx+N=RrbfUkwn7PHbf+Ra=
> 6880yqtjygjxd2yjt_...@mail.gmail.com%3E
>
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>



-- 

Andrija Panić
--
  http://admintweets.com
--


Re: Guest reports wrong amount of RAM with RAM overprovisioning

2014-02-07 Thread Nux!

On 07.02.2014 10:44, Nux! wrote:

On 07.02.2014 08:43, Andrija Panic wrote:

hm, no, I have gave up on RAM overprovisioning, since I got no good
response from any of the gurus here.
If you find a solution, I would greatly appriciate it...


Andrija,

This is a known issue and it's how it works with other hypervisors,
too. This feature was not meant to be used in a public cloud (eg
selling VPSes) for obvious reasons, imo.
Starting with 4.3, thanks to Marcus Sorensen who wrote the patch,
we'll be able to ser overprovisioning AND not the the RAM shown inside
the guests messed with; basically it will rely on KSM for memory
deduplication. My advice is to start testing 4.3.


For more info read 
http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201401.mbox/%3CCALFpzo7yx+N=RrbfUkwn7PHbf+Ra=6880yqtjygjxd2yjt_...@mail.gmail.com%3E


--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Guest reports wrong amount of RAM with RAM overprovisioning

2014-02-07 Thread Nux!

On 07.02.2014 08:43, Andrija Panic wrote:

hm, no, I have gave up on RAM overprovisioning, since I got no good
response from any of the gurus here.
If you find a solution, I would greatly appriciate it...


Andrija,

This is a known issue and it's how it works with other hypervisors, 
too. This feature was not meant to be used in a public cloud (eg selling 
VPSes) for obvious reasons, imo.
Starting with 4.3, thanks to Marcus Sorensen who wrote the patch, we'll 
be able to ser overprovisioning AND not the the RAM shown inside the 
guests messed with; basically it will rely on KSM for memory 
deduplication. My advice is to start testing 4.3.


--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Zone DNS, Virtual Routers, and DHCP

2014-02-07 Thread Geoff Higginbottom
Z,

For public DNS simply point it at 8.8.8.8 and 8.8.4.4

The internal DNS should not really be running in the cloud as it is used by 
components of the cloud and therefore may not be available when it's required, 
e.g.  during a power on after a outage etc.

We always virtualise the CloudStack Management & MySql servers, and if new DNS 
servers are required simply add 2 Internal DNS VMs at the same time.  These VMs 
run on a set if Hosts which are not part of the Cloud.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542 | S: +44 20 3603 0540 
| M: +447968161581

geoff.higginbot...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@cloudstackguru

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HS


On 7 Feb 2014, at 09:07, "Zack Payton" 
mailto:zpay...@gmail.com>> wrote:

Hi dudes,

I'm trying to host DNS off of one of the VMs that I have here in the KVM
cluster.
Any way to set a static IP for a server (or more preferably a static DHCP
lease)?
I tried changing the zone DNS IP to that of my DNS VM but I have to restart
the virtual routers which then causes my DNS VM to get a new IP.  Is the
only real solution here to run my DNS on bare metal?

Thanks,
Z
Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training
18th-19th February 2014, Brazil. 
Classroom
17th-23rd March 2014, Region A. Instructor led, 
On-line
24th-28th March 2014, Region B. Instructor led, 
On-line
16th-20th June 2014, Region A. Instructor led, 
On-line
23rd-27th June 2014, Region B. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: The snapshot chain is too long

2014-02-07 Thread France

Hi Yong,

I'm hitting the same problem nowdays. I guess i have left over snapshots 
from failed NFS storage, which was since replaced.
Did you coalesce snapshot chain by hand or did you delete the snapshots 
manually? If so, do you remember how?


Here are my snapshots, and there are currently no snapshot creation 
processes:

 xe vdi-list is-a-snapshot=true  | grep name-label
  name-label ( RW): XYZ_ROOT-385_20140125020342
  name-label ( RW): Template c2b3a07f-d16f-4abb-9162-55e4130a417c
  name-label ( RW): Template e80af9a4-e087-4220-977b-868fa4ec75b6
  name-label ( RW): XYZ_ROOT-385_20140121020342
  name-label ( RW): XYZ_ROOT-385_20140121020342
  name-label ( RW): XBBBC_20140206040441
  name-label ( RW): XYZ_ROOT-385_20140124020342
  name-label ( RW): OCWWW_2014011211
  name-label ( RW): XYZ_ROOT-385_20140122020342
  name-label ( RW): Template routing-1
  name-label ( RW): Template aa0bcd7c-4b03-4778-a038-da80fdfb7a43
  name-label ( RW): OCWWWX_ROOT-330_20140201130342
  name-label ( RW): Template e80af9a4-e087-4220-977b-868fa4ec75b6
  name-label ( RW): XYZ_ROOT-385_20140125020342
  name-label ( RW): XYZ_ROOT-385_20140123020342
  name-label ( RW): XYZ_ROOT-385_20140122020342
  name-label ( RW): Template 58e13a51-affa-4fe2-a66b-19e89091290d
  name-label ( RW): ABCCC_ROOT-334_20140201160342
  name-label ( RW): ANON_ROOT-324_20131121124532
  name-label ( RW): Template fc0262f2-7609-498b-a1ac-ed71e1ebe7f9
  name-label ( RW): XYZ_ROOT-385_20140125020342
  name-label ( RW): Template d768db3f-6d42-48f9-bdfb-7dceccef9f3e
  name-label ( RW): XYZ_ROOT-385_20140124020342
  name-label ( RW): Template fc0262f2-7609-498b-a1ac-ed71e1ebe7f9
  name-label ( RW): XYZ_ROOT-385_20140120020341
  name-label ( RW): detached_hrosci_20130513190437
  name-label ( RW): XYZ_ROOT-385_20140123020342
  name-label ( RW): XYZ_ROOT-385_20140124020342
  name-label ( RW): Template routing-1
  name-label ( RW): NGGQQQ_ROOT-423_20140202030342
  name-label ( RW): XYZ_ROOT-385_20140121020342
  name-label ( RW): SOME_work_ROOT-295_20130322150148
  name-label ( RW): XYZ_ROOT-385_20140122020342
  name-label ( RW): XYZ_ROOT-385_20140120020341
  name-label ( RW): Template 57d7c73c-ca06-4225-8a9f-7cc5776c5610
  name-label ( RW): XYZ_ROOT-385_20140122020342
  name-label ( RW): Template e80af9a4-e087-4220-977b-868fa4ec75b6
  name-label ( RW): Template 90d42566-b956-4d9d-9685-91e19b693f86
  name-label ( RW): Template c2b3a07f-d16f-4abb-9162-55e4130a417c
  name-label ( RW): XYZ_ROOT-385_20140120020341
  name-label ( RW): DDGGWW_ROOT-234_20140118030341
  name-label ( RW): Template 8f99eaf7-6d33-4097-8d19-9cafd681f124
  name-label ( RW): Template afa9d0a0-8242-443b-ac53-b0b1c760559c
  name-label ( RW): XYZ_ROOT-385_20140123020342
  name-label ( RW): NNGGNN_ROOT-351_20140205020342
  name-label ( RW): OOIIOO_ROOT-313_20131203084833
  name-label ( RW): Template routing-1
  name-label ( RW): Template 61d4df5b-bccf-4457-ad08-0ae57ea16a7e
  name-label ( RW): XYZ_ROOT-385_20140123020342
  name-label ( RW): TTGGTT_ROOT-233_20121213090209
  name-label ( RW): XYZ_ROOT-385_20140122020342
  name-label ( RW): XYZ_ROOT-385_20140120020341
  name-label ( RW): XYZ_ROOT-385_20140123020342
  name-label ( RW): Template 1feab759-b573-4227-8b12-8e9846ee4bd6
  name-label ( RW): Template 4e444f15-ac78-4b53-9899-c406478f99b2
  name-label ( RW): Template 690fa285-3317-45d6-a563-35ddd5af493e
  name-label ( RW): XYZ_ROOT-385_20140124020342
  name-label ( RW): XYZ_ROOT-385_20140121020342
  name-label ( RW): ABCCC_DATA-334_20140207020441
  name-label ( RW): Template 4e444f15-ac78-4b53-9899-c406478f99b2
  name-label ( RW): XYZ_ROOT-385_20140124020342
  name-label ( RW): Template c2b3a07f-d16f-4abb-9162-55e4130a417c
  name-label ( RW): Template c1e4d036-bd10-4b33-803a-9e34f2c755fe
  name-label ( RW): XYZ_ROOT-385_20140121020342
  name-label ( RW): XYZ_ROOT-385_20140120020341



On 16/7/13 12:29 PM, Yong Chen wrote:

Can anyone help please? Is below correct?

Yong


From: Yong Chen
Sent: Monday, 15 July 2013 11:58 AM
To: Cloudstack users mailing list
Subject: RE: The snapshot chain is too long

My understand of how snapshot works (XenServer as hypervisor) in CloudStack is:

1. User takes a snapshot of volume either manually or by schedule
2. CloudStack does API call to XS for taking a snapshot of the particular VHD - 
this happens on primary storage
3. CloudStack use SSVM to copy the newly created snapshot (VHD) from prima

Zone DNS, Virtual Routers, and DHCP

2014-02-07 Thread Zack Payton
Hi dudes,

I'm trying to host DNS off of one of the VMs that I have here in the KVM
cluster.
Any way to set a static IP for a server (or more preferably a static DHCP
lease)?
I tried changing the zone DNS IP to that of my DNS VM but I have to restart
the virtual routers which then causes my DNS VM to get a new IP.  Is the
only real solution here to run my DNS on bare metal?

Thanks,
Z


Re: Guest reports wrong amount of RAM with RAM overprovisioning

2014-02-07 Thread Andrija Panic
hm, no, I have gave up on RAM overprovisioning, since I got no good
response from any of the gurus here.
If you find a solution, I would greatly appriciate it...

Thanks,


On 6 February 2014 21:42, motty cruz  wrote:

> Hi Andrija, did you resolve issue you were having with RAM and
> over-provision? I'm having same issues. my cluster is a KVM, I have
> CONFIG_VIRTIO_BALLOON=y
> in /boot/config-'uname -r'
>
> Thanks
>
>
> On Thu, Oct 24, 2013 at 2:03 PM, Andrija Panic  >wrote:
>
> > Just lowered overprovisioning of RAM from 2 to 1, and started the same VM
> > again, and I got good amount of RAM from inside the guest.
> >
> > when I do the   ps  aux thing from host, I get 100% same qemu-kvm
> > parameters, confirmed by diff...
> >
> > How is this possible ?
> >
> >
> > On 24 October 2013 22:53, Andrija Panic  wrote:
> >
> > > Hi,
> > >
> > > I have updated to CS 4.2 (not sure that my problem has to do anything
> > with
> > > that...)
> > > I have RAM overprovisioning level of 2 on Cluster level.
> > >
> > > And after I start VM with compute ofering of 2GHZ (1x2gHz) and 2GB of
> > ram,
> > > it does invoke qemu-kvm with good parameters (2048M), but inside my VM
> > when
> > > doing top, or free -m, it reports rougly 50% of that amount:
> > >
> > > Here is the ps axu | grep vname #from host on which VM is running:
> > >
> > > root 17264  5.9  2.1 3447568 1090636 ? Sl   22:35   0:23
> > > /usr/libexec/qemu-kvm -name i-2-248-VM -S -M rhel6.4.0 -enable-kvm *-m
> > > 2048 -*smp 1,sockets=1,cores=1,threads=1 -uuid
> > 45087776-1238-4255-a87f-7ae6bcddc4a3
> > > -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/
> > > var/lib/libvirt/qemu/i-2-248-VM.monitor,server,nowait -mon
> > > chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
> > > -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
> > > file=/var/lib/libvirt/images/aa0d036a-f814-4cd8-991f-
> > > d0a0ad21a7d4,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
> > > -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-
> > > virtio-disk0,id=virtio-disk0,bootindex=2 -drive
> > > if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,cache=none
> > > -device
> > ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1
> > > -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=36 -device
> > >
> >
> virtio-net-pci,netdev=hostnet0,id=net0,mac=06:b0:24:00:00:66,bus=pci.0,addr=0x3
> > > -chardev pty,id=charserial0 -device
> > isa-serial,chardev=charserial0,id=serial0
> > > -device usb-tablet,id=input0 -vnc0.0.0.0:12,password -vga cirrus
> -device
> > > virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
> > >
> > > From inside VM:
> > >
> > > # free -m
> > >  *total*   used   free sharedbuffers
> > > cached
> > > Mem:   *853* 92761  0  5
> > > 28
> > > -/+ buffers/cache: 58795
> > > Swap: 4095  0   4095
> > >
> > > Same for top.
> > > Not sure what is happening, has to do something with RAM
> overprovisioning
> > > factor ?
> > > How is this possible, when qemu-kvm parameteres seems fine (-m 2048)
> > >
> > > Thanks,
> > > --
> > >
> > > Andrija Panić
> > >
> >
> >
> >
> > --
> >
> > Andrija Panić
> > --
> >   http://admintweets.com
> > --
> >
>



-- 

Andrija Panić
--
  http://admintweets.com
--