RE: question about migrate VMs from xenserver 6.1 to cloudstack 3.0.2/4.1

2013-07-09 Thread Brian Galura
The method you describe is the only way I know how to do it. We have done a 
similar migration with some scripts around xe on xenserver and cloudmonkey for 
importing to cloudstack.

I'm interested to know if anyone else has tried this. We have 1000's of vms 
still to migrate from legacy xenserver into cloudstack. Maybe we can publish a 
tool for this that the community can maintain?

-Original Message-
From: William Jiang [mailto:william.ji...@manwin.com] 
Sent: Tuesday, July 09, 2013 7:30 AM
To: users@cloudstack.apache.org
Subject: question about migrate VMs from xenserver 6.1 to cloudstack 3.0.2/4.1

Hi,
We have a xenserver 6.1 pool with 6 hosts, there are total about 90 VMs. Some 
with one disk and others with 2 disk on NFS shared storage.
In the meanwhile, we have a cloudstack 3.0.2 with xenserver 6.0.2 hosts.(we had 
plan of upgrading to cloudstack 4.1&xenserver 6.1 soon) The storage is on iscsi.

My question is:
If I want move all the vms on xenserver pool to cloudstack, if there is a way 
for fast migration?
Or I have to migrate one by one?
For my understanding, I need export each vm in xenserver, then import it to 
cloudstack as template, and create instance from the imported template.
But in this process, it works only for one-disk vms, how about the vms with 2 
disks?
Any comments or suggestions will be greatly appreciated.

Thanks,
William
This e-mail may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations. Any distribution, use or copying of 
this e-mail or the information it contains by other than an intended recipient 
is unauthorized. If you received this e-mail in error, please advise me (by 
return e-mail or otherwise) immediately. Ce courrier électronique est 
confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations 
qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des 
renseignements qu'il contient par une personne autre que le (les) 
destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier 
électronique par erreur, veuillez m'en aviser immédiatement, par retour de 
courrier électronique ou par un autre moyen.


vm stuck in stopping state

2013-07-10 Thread Brian Galura
I am using the latest CloudPlatform with XenServer 6.1 and I have a Windows vm 
stuck in 'Stopping' state in the UI. This vm is no longer present on any 
hypervisor. I don't need this instance or its disk. How can I safely remove 
this from the UI and be confident its disk is also expunged?



RE: Deploying Virtual Appliances

2013-07-16 Thread Brian Galura
What type of virtual appliance are you using? What format is it provided in?

We recently had a problem with XS6.1 and Netscaler .xva appliances as the xva, 
does not expect a cdrom drive to be attached and hangs on boot.

From: Shanker Balan [mailto:shanker.ba...@shapeblue.com]
Sent: Tuesday, July 16, 2013 1:48 PM
To: 
Subject: Re: Deploying Virtual Appliances

On 16-Jul-2013, at 9:07 PM, Caleb Call 
mailto:calebc...@me.com>> wrote:


What's the process to deploy a virtual appliance in cloudstack?  I've seen lots 
of references to being able to do it, but can't get anything to work.  I don't 
really care if it's monitored/managed in CS.  I tried deploying this directly 
on the hypervisor itself, but I think the cleanup process in CS scavenges the 
VM.  It starts up but within a minute or two, it's killed.

Hypervisor is Xenserver 6.0.2
CS is 4.0

Any help is appreciated.  Thanks

Just thinking out loud - import it as a template and spin an instance from it? 
CloudStack won't let you deploy it directly on CloudStack managed Hypervisor.

--
Shanker Balan
Managing Consultant

[cid:E7CE8425-E245-4C99-B967-713DF2967392@local]

M: +91 98860 60539
shanker.ba...@shapeblue.com | 
www.shapeblue.com | Twitter:@shapeblue
ShapeBlue India, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055

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 operated under 
license from Shape Blue Ltd. ShapeBlue is a registered trademark.


RE: Deploying Virtual Appliances

2013-07-16 Thread Brian Galura
The issue for the xva is only present for XS6.1 we have netscalers running on 
6.0.2 with cloudstack just fine. I think the important thing is when importing 
to cloudstack you should use "Other 64" as the OS type.

We are using 10.76 for the netscaler

 
-Original Message-
From: Caleb Call [mailto:calebc...@me.com] 
Sent: Tuesday, July 16, 2013 2:17 PM
To: users@cloudstack.apache.org
Subject: Re: Deploying Virtual Appliances

It's a Virtual Netscaler. .xva appliance.  Is there a workaround for this 
issue?  Is this issue unique to 6.1 or does it apply to 6.0.2 as well?

I did try to import it as a template but was getting an error doing so (sorry, 
not somewhere I can grab the error or logs at the moment).

Thanks

On Jul 16, 2013, at 3:09 PM, Brian Galura  wrote:

> What type of virtual appliance are you using? What format is it provided in?
> 
> We recently had a problem with XS6.1 and Netscaler .xva appliances as the 
> xva, does not expect a cdrom drive to be attached and hangs on boot.
> 
> From: Shanker Balan [mailto:shanker.ba...@shapeblue.com]
> Sent: Tuesday, July 16, 2013 1:48 PM
> To: 
> Subject: Re: Deploying Virtual Appliances
> 
> On 16-Jul-2013, at 9:07 PM, Caleb Call 
> mailto:calebc...@me.com>> wrote:
> 
> 
> What's the process to deploy a virtual appliance in cloudstack?  I've seen 
> lots of references to being able to do it, but can't get anything to work.  I 
> don't really care if it's monitored/managed in CS.  I tried deploying this 
> directly on the hypervisor itself, but I think the cleanup process in CS 
> scavenges the VM.  It starts up but within a minute or two, it's killed.
> 
> Hypervisor is Xenserver 6.0.2
> CS is 4.0
> 
> Any help is appreciated.  Thanks
> 
> Just thinking out loud - import it as a template and spin an instance from 
> it? CloudStack won't let you deploy it directly on CloudStack managed 
> Hypervisor.
> 
> --
> Shanker Balan
> Managing Consultant
> 
> [cid:E7CE8425-E245-4C99-B967-713DF2967392@local]
> 
> M: +91 98860 60539
> shanker.ba...@shapeblue.com<mailto:shanker.ba...@shapeblue.com> | 
> www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue 
> ShapeBlue India, 22nd floor, Unit 2201A, World Trade Centre, Bangalore 
> - 560 055
> 
> 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 operated 
> under license from Shape Blue Ltd. ShapeBlue is a registered trademark.



upgrading from CloudPlatform to CloudStack 4.1

2013-07-16 Thread Brian Galura
Has anyone tried upgrading from CloudPlatform to a newer version of CloudStack?

I know the deployment methods are different but will the db migrations run 
cleanly?


RE: Deploying Virtual Appliances

2013-07-16 Thread Brian Galura
Thanks, Kirk that's exactly right. I found a link to a KB article with 
screenshots just in case.

http://support.citrix.com/article/CTX132014

-Original Message-
From: Kirk Kosinski [mailto:kirkkosin...@gmail.com] 
Sent: Tuesday, July 16, 2013 2:35 PM
To: users@cloudstack.apache.org
Subject: Re: Deploying Virtual Appliances

Hi, Caleb.  XenServer templates must be in VHD format before importing to 
CloudStack.  You can import the XVA on a standalone XenServer, copy the VHD 
from the SR to a web server, import it to CloudStack, and deploy VMs from it.

The NetScaler template seems to work fine if you are using XenServer 6.0.2.  On 
XenServer 6.1, like Brian mentioned, it won't boot due to the VM being 
configured with a virtual CD-ROM drive.

Best regards,
Kirk

On 07/16/2013 02:16 PM, Caleb Call wrote:
> It's a Virtual Netscaler. .xva appliance.  Is there a workaround for this 
> issue?  Is this issue unique to 6.1 or does it apply to 6.0.2 as well?
> 
> I did try to import it as a template but was getting an error doing so 
> (sorry, not somewhere I can grab the error or logs at the moment).
> 
> Thanks
> 
> On Jul 16, 2013, at 3:09 PM, Brian Galura  wrote:
> 
>> What type of virtual appliance are you using? What format is it provided in?
>>
>> We recently had a problem with XS6.1 and Netscaler .xva appliances as the 
>> xva, does not expect a cdrom drive to be attached and hangs on boot.
>>
>> From: Shanker Balan [mailto:shanker.ba...@shapeblue.com]
>> Sent: Tuesday, July 16, 2013 1:48 PM
>> To: 
>> Subject: Re: Deploying Virtual Appliances
>>
>> On 16-Jul-2013, at 9:07 PM, Caleb Call 
>> mailto:calebc...@me.com>> wrote:
>>
>>
>> What's the process to deploy a virtual appliance in cloudstack?  I've seen 
>> lots of references to being able to do it, but can't get anything to work.  
>> I don't really care if it's monitored/managed in CS.  I tried deploying this 
>> directly on the hypervisor itself, but I think the cleanup process in CS 
>> scavenges the VM.  It starts up but within a minute or two, it's killed.
>>
>> Hypervisor is Xenserver 6.0.2
>> CS is 4.0
>>
>> Any help is appreciated.  Thanks
>>
>> Just thinking out loud - import it as a template and spin an instance from 
>> it? CloudStack won't let you deploy it directly on CloudStack managed 
>> Hypervisor.
>>
>> --
>> Shanker Balan
>> Managing Consultant
>>
>> [cid:E7CE8425-E245-4C99-B967-713DF2967392@local]
>>
>> M: +91 98860 60539
>> shanker.ba...@shapeblue.com<mailto:shanker.ba...@shapeblue.com> | 
>> www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue 
>> ShapeBlue India, 22nd floor, Unit 2201A, World Trade Centre, 
>> Bangalore - 560 055
>>
>> 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 
>> operated under license from Shape Blue Ltd. ShapeBlue is a registered 
>> trademark.
> 


RE: upgrading from CloudPlatform to CloudStack 4.1

2013-07-16 Thread Brian Galura
I plan on doing this later today on a test installation. Ill report my results. 
Ive built the nonoss rpms from source using the latest code from git so it will 
be interesting.

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au] 
Sent: Tuesday, July 16, 2013 2:41 PM
To: users@cloudstack.apache.org
Subject: re: upgrading from CloudPlatform to CloudStack 4.1

Take a backup of your database and test the upgrade process.

Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email: 
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter: 
http://twitter.com/kristofferjon


From: "Brian Galura" 
Sent: Wednesday, July 17, 2013 7:39 AM
To: "users@cloudstack.apache.org" 
Subject: upgrading from CloudPlatform to CloudStack 4.1

Has anyone tried upgrading from CloudPlatform to a newer version of CloudStack?

I know the deployment methods are different but will the db migrations run 
cleanly?




RE: upgrading from CloudPlatform to CloudStack 4.1

2013-07-16 Thread Brian Galura
Looks like this doesn't work and is known. 
https://issues.apache.org/jira/browse/CLOUDSTACK-2929

ERROR [cloud.upgrade.DatabaseUpgradeChecker] (Timer-1:) There is no upgrade 
path from 3.0.6.20121222035904 to 4.1.0

-Original Message-
From: Brian Galura [mailto:brian.gal...@citrix.com] 
Sent: Tuesday, July 16, 2013 2:53 PM
To: users@cloudstack.apache.org
Subject: RE: upgrading from CloudPlatform to CloudStack 4.1

I plan on doing this later today on a test installation. Ill report my results. 
Ive built the nonoss rpms from source using the latest code from git so it will 
be interesting.

-Original Message-
From: Kristoffer Sheather @ CloudCentral 
[mailto:kristoffer.sheat...@cloudcentral.com.au] 
Sent: Tuesday, July 16, 2013 2:41 PM
To: users@cloudstack.apache.org
Subject: re: upgrading from CloudPlatform to CloudStack 4.1

Take a backup of your database and test the upgrade process.

Regards,

Kristoffer Sheather
Cloud Central
Scale Your Data Center In The Cloud
Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email: 
k...@cloudcentral.com.au
LinkedIn:   | Skype: kristoffer.sheather | Twitter: 
http://twitter.com/kristofferjon


From: "Brian Galura" 
Sent: Wednesday, July 17, 2013 7:39 AM
To: "users@cloudstack.apache.org" 
Subject: upgrading from CloudPlatform to CloudStack 4.1

Has anyone tried upgrading from CloudPlatform to a newer version of CloudStack?

I know the deployment methods are different but will the db migrations run 
cleanly?




Move a vm to a different project

2013-07-17 Thread Brian Galura
I checked some documentation and found an API call that would let me change the 
owner of a vm but nothing about moving from one project to another.


Is this possible?


RE: Move a vm to a different project

2013-07-17 Thread Brian Galura
Done
https://issues.apache.org/jira/browse/CLOUDSTACK-3613

From: Alena Prokharchyk
Sent: Wednesday, July 17, 2013 3:31 PM
To: users@cloudstack.apache.org; Brian Galura
Subject: Re: Move a vm to a different project

Brian, currently assignVirtualMachine API doesn't support assigning the vm to 
another project. You can file an enhancement request.

-Alena.

From: Brian Galura mailto:brian.gal...@citrix.com>>
Reply-To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>" 
mailto:users@cloudstack.apache.org>>
Date: Wednesday, July 17, 2013 2:43 PM
To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>" 
mailto:users@cloudstack.apache.org>>
Subject: Move a vm to a different project

I checked some documentation and found an API call that would let me change the 
owner of a vm but nothing about moving from one project to another.


Is this possible?



Public cloudstack UI

2013-07-18 Thread Brian Galura
I get the impression cloudstack was really designed for internal clouds. Does 
anyone have recommendations for securing a publicly facing install?

I saw recently there was a patch for rate limiting to mitigate some attacks and 
we can have some network devices do some basic things in front of the UI/API 
like ssl etc. 

Re: Ceph RBD With Xen Server

2013-07-18 Thread Brian Galura
There is a xenserver tech preview available which supports rbd. This is 
publicly available afaik. We plan on doing some testing soon. 

On Jul 18, 2013, at 8:48, "Chip Childers"  wrote:

On Thu, Jul 18, 2013 at 03:49:48PM +0100, Adrian Lewis wrote:
> Hi,
> 
> 
> 
> First post and only just subscribed so not sure if this will connect up
> with the existing thread but I’m very interested in XenServer and Ceph/RBD.
> I understand that Wido has informally committed to building the
> Xenserver/RBD glue when it is supported on XenServer (think this was in a
> video I saw on youtube). With this in mind, I’m wondering if this is
> something that could still be added to 4.2 based on the info in
> http://xenserver.org/blog/entry/tech-preview-of-xenserver-libvirt-ceph.html.
> I realise that it’s not ready yet on the XenServer side but is this
> something that might make it to 4.2 in advance of the XenServer development
> as opposed to waiting for 4.3? Can the Cloudstack side of things be
> developed in advance of the Xenserver elements?

I'll only answer with regard to the status of new features and 4.2.  We
have hit feature freeze for that release now, so if it's technically
possible to build the feature ahead of XenServer it would end up in the
next feature release of CloudStack (assuming that someone builds it).


Re: Generating OS Templates

2013-07-18 Thread Brian Galura
Yes I opened that issue with packer. Would love to see that support and use it 
with a continuous integration automation pipeline. 

On Jul 18, 2013, at 9:11, "Prasanna Santhanam"  wrote:

Celso,

There's an issue on the packer [1] github that you may be interested in if
you plan on building support for CS. I've been playing around with
packer for the last few weeks and find it quite stable for a version 0.1
tool and since it's by the Vagrant author himself I think it'll get
good traction in the future.

[1] https://github.com/mitchellh/packer/issues/76

-- 
Prasanna.,

On Thu, Jul 18, 2013 at 11:40:02AM -0300, Celso Fernandes wrote:
> Christian,
> I've been using veewee to generate vagrant boxes in a while, for me is
> much better to develop something based on this and automate to import
> on Cloudstack instead of develop something from scratch.
> 
> Prasanna,
> Thank you for the point.. Packer seems a really cool to do this task,
> I'm gonna try to make a plugin for XenServer, once it worked I try
> something specific to CloudStack, thank you for point me into this
> direction.
> 
> Thank you all for replies,
> Celso Fernandes
> 
> www.zertico.com
> 
> +55 35 4105-0922
> Av. BPS, 1303 - PCE - PCTI - Sala 10
> 
> 
> On Thu, Jul 18, 2013 at 11:25 AM, Prasanna Santhanam  wrote:
>> There are no providers for CloudStack yet in these projects
>> (vagrant/packer). Only for AWS, vmware fusion, vbox and possibly
>> openstack. So you'll have to convert to vhd manually and then import
>> as template and then muck around with the networking a little bit to
>> get it right.
>> 
>> On Thu, Jul 18, 2013 at 11:11:04AM -0300, Celso Fernandes wrote:
>>> Hi Sanjay, thank you for your reply,
>>> 
>>> I thought were some more automated process like Veewee does for
>>> Vagrant boxes. Is there any way to convert Vagrant boxes to XenServer
>>> ones? So would be much more simpler to automate the process. I'm gonna
>>> search for some info and test, then publish any result I got.
>>> 
>>> Thank you,
>>> Celso Fernandes
>>> 
>>> www.zertico.com
>>> 
>>> +55 35 4105-0922
>>> Av. BPS, 1303 - PCE - PCTI - Sala 10
>>> 
>>> 
>>> On Thu, Jul 18, 2013 at 2:09 AM, Sanjay Tripathi
>>>  wrote:
 If you have VMs running with the mentioned OS types, first stop those VMs 
 then go to "Storage" tab in the CS UI and select the ROOT disk of the VM 
 for which you want to create the template.
 There you'll get the option to  create template from that ROOT volume.
 
 And VM should have xenserver tools installed to reflect it in the template.
 
 --Sanjay
 
> -Original Message-
> From: celso.fernan...@gmail.com [mailto:celso.fernan...@gmail.com] On
> Behalf Of Celso Fernandes
> Sent: Thursday, July 18, 2013 6:21 AM
> To: users@cloudstack.apache.org
> Subject: Generating OS Templates
> 
> I know its an novice question, but I haven't found in the documentation 
> the
> best way to get this.
> 
> I'd like to generate template for CentOS 6.4 / Debian 7.1 / Ubuntu
> 12.04 with xenserver tools installed and password enabled.
> 
> What is the best way to generate this templates? Any documentation or
> tutorial some could point would help very much.
> 
> Thank you,
> Celso Fernandes
> 
> www.zertico.com
> 
> +55 35 4105-0922
> Av. BPS, 1303 - PCE - PCTI - Sala 10
>> 
>> --
>> Prasanna.,
>> 
>> 
>> Powered by BigRock.com



Powered by BigRock.com



RE: Generating OS Templates

2013-07-18 Thread Brian Galura
We have an automated process for deploying code onto existing hosts, it would 
be cool to have it just build an image instead.

-Original Message-
From: celso.fernan...@gmail.com [mailto:celso.fernan...@gmail.com] On Behalf Of 
Celso Fernandes
Sent: Thursday, July 18, 2013 2:21 PM
To: users@cloudstack.apache.org
Subject: Re: Generating OS Templates

What is this kind of continuous integration? To generate OS templates? ;) Celso 
Fernandes

www.zertico.com

+55 35 4105-0922
Av. BPS, 1303 - PCE - PCTI - Sala 10


On Thu, Jul 18, 2013 at 5:11 PM, Brian Galura  wrote:
> Yes I opened that issue with packer. Would love to see that support and use 
> it with a continuous integration automation pipeline.
>
> On Jul 18, 2013, at 9:11, "Prasanna Santhanam"  wrote:
>
> Celso,
>
> There's an issue on the packer [1] github that you may be interested 
> in if you plan on building support for CS. I've been playing around 
> with packer for the last few weeks and find it quite stable for a 
> version 0.1 tool and since it's by the Vagrant author himself I think 
> it'll get good traction in the future.
>
> [1] https://github.com/mitchellh/packer/issues/76
>
> --
> Prasanna.,
>
> On Thu, Jul 18, 2013 at 11:40:02AM -0300, Celso Fernandes wrote:
>> Christian,
>> I've been using veewee to generate vagrant boxes in a while, for me 
>> is much better to develop something based on this and automate to 
>> import on Cloudstack instead of develop something from scratch.
>>
>> Prasanna,
>> Thank you for the point.. Packer seems a really cool to do this task, 
>> I'm gonna try to make a plugin for XenServer, once it worked I try 
>> something specific to CloudStack, thank you for point me into this 
>> direction.
>>
>> Thank you all for replies,
>> Celso Fernandes
>>
>> www.zertico.com
>>
>> +55 35 4105-0922
>> Av. BPS, 1303 - PCE - PCTI - Sala 10
>>
>>
>> On Thu, Jul 18, 2013 at 11:25 AM, Prasanna Santhanam  wrote:
>>> There are no providers for CloudStack yet in these projects 
>>> (vagrant/packer). Only for AWS, vmware fusion, vbox and possibly 
>>> openstack. So you'll have to convert to vhd manually and then import 
>>> as template and then muck around with the networking a little bit to 
>>> get it right.
>>>
>>> On Thu, Jul 18, 2013 at 11:11:04AM -0300, Celso Fernandes wrote:
>>>> Hi Sanjay, thank you for your reply,
>>>>
>>>> I thought were some more automated process like Veewee does for 
>>>> Vagrant boxes. Is there any way to convert Vagrant boxes to 
>>>> XenServer ones? So would be much more simpler to automate the 
>>>> process. I'm gonna search for some info and test, then publish any result 
>>>> I got.
>>>>
>>>> Thank you,
>>>> Celso Fernandes
>>>>
>>>> www.zertico.com
>>>>
>>>> +55 35 4105-0922
>>>> Av. BPS, 1303 - PCE - PCTI - Sala 10
>>>>
>>>>
>>>> On Thu, Jul 18, 2013 at 2:09 AM, Sanjay Tripathi 
>>>>  wrote:
>>>>> If you have VMs running with the mentioned OS types, first stop those VMs 
>>>>> then go to "Storage" tab in the CS UI and select the ROOT disk of the VM 
>>>>> for which you want to create the template.
>>>>> There you'll get the option to  create template from that ROOT volume.
>>>>>
>>>>> And VM should have xenserver tools installed to reflect it in the 
>>>>> template.
>>>>>
>>>>> --Sanjay
>>>>>
>>>>>> -Original Message-
>>>>>> From: celso.fernan...@gmail.com 
>>>>>> [mailto:celso.fernan...@gmail.com] On Behalf Of Celso Fernandes
>>>>>> Sent: Thursday, July 18, 2013 6:21 AM
>>>>>> To: users@cloudstack.apache.org
>>>>>> Subject: Generating OS Templates
>>>>>>
>>>>>> I know its an novice question, but I haven't found in the 
>>>>>> documentation the best way to get this.
>>>>>>
>>>>>> I'd like to generate template for CentOS 6.4 / Debian 7.1 / 
>>>>>> Ubuntu
>>>>>> 12.04 with xenserver tools installed and password enabled.
>>>>>>
>>>>>> What is the best way to generate this templates? Any 
>>>>>> documentation or tutorial some could point would help very much.
>>>>>>
>>>>>> Thank you,
>>>>>> Celso Fernandes
>>>>>>
>>>>>> www.zertico.com
>>>>>>
>>>>>> +55 35 4105-0922
>>>>>> Av. BPS, 1303 - PCE - PCTI - Sala 10
>>>
>>> --
>>> Prasanna.,
>>>
>>> 
>>> Powered by BigRock.com
>
>
> 
> Powered by BigRock.com
>


CS4.1 with netscaler

2013-07-25 Thread Brian Galura
Im trying to get the netscaler to work with an isolated network on an advanced 
zone. When I try to make a VM on this network I get an error message "Resource 
[Network:209] is unreachable: External load balancer was unable to implement 
the guest network on the external load balancer in zone us-test1-zone1"

I have added the netscaler with appropriate credentials and interfaces. Is 
there any where I can find a more detailed log of what isn't working?

Very long log file:
http://pastie.org/8175945


RE: CS4.1 with netscaler

2013-07-25 Thread Brian Galura
I figured out this broke because the user's password changed who added the 
netscaler to cloudstack. Can we update the password in the DB without deleting 
and re-adding the device?

-Original Message-
From: Brian Galura [mailto:brian.gal...@citrix.com] 
Sent: Thursday, July 25, 2013 4:36 PM
To: users@cloudstack.apache.org
Subject: CS4.1 with netscaler

Im trying to get the netscaler to work with an isolated network on an advanced 
zone. When I try to make a VM on this network I get an error message "Resource 
[Network:209] is unreachable: External load balancer was unable to implement 
the guest network on the external load balancer in zone us-test1-zone1"

I have added the netscaler with appropriate credentials and interfaces. Is 
there any where I can find a more detailed log of what isn't working?

Very long log file:
http://pastie.org/8175945


external load balancer, shared network, advanced networking

2013-07-30 Thread Brian Galura
Im using CS4.1 and trying to get a netscaler to work as a load balancer as the 
subject describes.

Is it true that this configuration will only work with isolated networks? Does 
this mean that the isolated vlans all need to be trunked up to the netscaler? 
Im having a hard time finding definitive documentation on this point.


RE: external load balancer, shared network, advanced networking

2013-08-01 Thread Brian Galura
OK thanks for this info. I also am unable to get this to work with isolated 
networks.

I created a service offering for isolated networks with source nat and load 
balancing enabled, and Supported Source NAT type: per account

When  I try and start an instance on a network created using this offering I 
get the following error in the logs:
http://pastie.org/8198148

-Original Message-
From: Sanjeev Neelarapu [mailto:sanjeev.neelar...@citrix.com] 
Sent: Wednesday, July 31, 2013 12:33 AM
To: users@cloudstack.apache.org
Subject: RE: external load balancer, shared network, advanced networking

Hi Brian,

In 4.1 , the configuration only works with isolated networks. From next ACS 
release onwards this would be supported.

Thanks,
Sanjeev
-Original Message-
From: Brian Galura [mailto:brian.gal...@citrix.com] 
Sent: Tuesday, July 30, 2013 11:58 PM
To: users@cloudstack.apache.org
Subject: external load balancer, shared network, advanced networking

Im using CS4.1 and trying to get a netscaler to work as a load balancer as the 
subject describes.

Is it true that this configuration will only work with isolated networks? Does 
this mean that the isolated vlans all need to be trunked up to the netscaler? 
Im having a hard time finding definitive documentation on this point.


RE: external load balancer, shared network, advanced networking

2013-08-01 Thread Brian Galura
I was able to get this to work by leaving the system offering set to none. 
Previously I was choosing 'system offering for software router'.

Any idea why that is?

-Original Message-----
From: Brian Galura [mailto:brian.gal...@citrix.com] 
Sent: Thursday, August 01, 2013 3:31 PM
To: users@cloudstack.apache.org
Subject: RE: external load balancer, shared network, advanced networking

OK thanks for this info. I also am unable to get this to work with isolated 
networks.

I created a service offering for isolated networks with source nat and load 
balancing enabled, and Supported Source NAT type: per account

When  I try and start an instance on a network created using this offering I 
get the following error in the logs:
http://pastie.org/8198148

-Original Message-
From: Sanjeev Neelarapu [mailto:sanjeev.neelar...@citrix.com] 
Sent: Wednesday, July 31, 2013 12:33 AM
To: users@cloudstack.apache.org
Subject: RE: external load balancer, shared network, advanced networking

Hi Brian,

In 4.1 , the configuration only works with isolated networks. From next ACS 
release onwards this would be supported.

Thanks,
Sanjeev
-Original Message-----
From: Brian Galura [mailto:brian.gal...@citrix.com] 
Sent: Tuesday, July 30, 2013 11:58 PM
To: users@cloudstack.apache.org
Subject: external load balancer, shared network, advanced networking

Im using CS4.1 and trying to get a netscaler to work as a load balancer as the 
subject describes.

Is it true that this configuration will only work with isolated networks? Does 
this mean that the isolated vlans all need to be trunked up to the netscaler? 
Im having a hard time finding definitive documentation on this point.


where to get latest cloudmonkey?

2013-08-02 Thread Brian Galura
how do i get the latest cloud monkey with json and filter support?

seems the pip installation gives me 4.1.0-1 and it doesn't have that

and cloning it from 
https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git returns:
fatal: 
https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git/info/refs 
not found: did you run git update-server-info on the server?


RE: Networking Related Question

2013-08-22 Thread Brian Galura
Im also interested to hear people's experience using open-vswitch.

-Original Message-
From: Krunal Sheth [mailto:krunal.sh...@citrix.com] 
Sent: Tuesday, August 20, 2013 11:17
To: users@cloudstack.apache.org
Subject: Networking Related Question

Hey everyone,

Is there anyone who can share as to how are you executing the 
Networking portion in Cloudstack? We currently use Citrix Netscaler- Cisco 
Nexus-HPVC in series running dynamic (OSPF) protocol. My main questions is 
around segregation of guest networks ( Internal, external and public). Today, 
we do this separation in our environment using VRF's ( virtual routing and 
forwarding) on cisco Nexus 5596 L3 switch and it works fine but I wanted to see 
if there are any alternatives to this like using open v-switch technology  and 
if so is anyone using any other switches to do so?. Please share with me if you 
are using cheap/efficient  L3 switch in your environment.( 
Arista,extreme,pica8..??) and how do you separate the traffic?


Thanks,
Krunal





packer for building cloudstack templates

2014-01-24 Thread Brian Galura
At my company we use packer to build ec2 images and really like it. I would 
like to use it for cloudstack also.

I found this: https://github.com/vogxn/packer-builtin

Which appears to be a centos6 image builder for cloudstack but it lacks 
instructions to convert the resultant image into something I can import to 
cloudstack.

Has anyone successfully done this?

How do you build cloudstack templates?


Re: packer for building cloudstack templates

2014-01-25 Thread Brian Galura
It's great to see progress in adding support to Packer I will test it as soon 
as it's available.

But what do people do today? Is there a way to convert an ovf to vhd for 
example? I would be surprised if everyone creates templates by hand.


Sent from Citrix WorxMail for iPhone




From: Peter Jönsson 
Date: 2014-01-25 09:43:55 +
To: users@cloudstack.apache.org 
,peter.joens...@gmail.com 
,users@cloudstack.apache.org 

Subject: Re: packer for building cloudstack templates

Hi!

As my library for talking to cloudstack (gopherstack) wasn’t ideal I have been 
waiting for a new variant. It was release yesterday: 
https://github.com/svanharmelen/gocs .

I will take a look at this library and perhaps, if it is good, port over my 
updates to packer to talk to this library. Then hopefully I can clean up my 
changes and send a pull request to upstream packer.

In general the approach we take for templates is to built them from scratch. 
That means PXE booting the instance, downloading kernel/initrd from a net boot 
server, then finally starting the OS-installation through kickstart. With 
packer this can be 100% automated via a special iPXE-ISO which will chain load 
off the user data attached to the VM instance.

- Build custom iPXE with simple embedded boot script:

#!pxe
dhcp
chain http://${dhcp-server}/latest/userdata

- Boot up VM with user data attached with enough information to continue the 
boot, e.g.

"#!ipxe\nkernel http://netboot/centos/6.3/x86_64/vmlinuz 
ks=http://netboot/ks.cfg\ninitrd 
http://netboot/centos/6.3/x86_64/initrd.img\nboot”

- After kickstart is completed we reboot the instance and continue setting it 
up using packer provisioning scripts.

Things become slightly easier when only performing incremental template 
updates. But then someone need to create the initial template of course.

// Peter


On Saturday 25 January 2014 at 09:38, Prasanna Santhanam wrote:

> On Sat, Jan 25, 2014 at 03:43:07AM +, Brian Galura wrote:
> > At my company we use packer to build ec2 images and really like it.
> > I would like to use it for cloudstack also.
> >
> > I found this: https://github.com/vogxn/packer-builtin
> >
> > Which appears to be a centos6 image builder for cloudstack but it
> > lacks instructions to convert the resultant image into something I
> > can import to cloudstack.
> >
> > Has anyone successfully done this?
> >
> > How do you build cloudstack templates?
>
> Hi Brian,
>
> That repo only contains a test builtin I was trying to build using
> packer. Peter Jonsson is working on a cloudstack builder for packer
> and announced about this last week.
>
> Peter's repo is here:
> https://github.com/mindjiver/packer
>
> You will need go to run the packer src and setup the cloudstack
> builder
>
> $ make updatedeps
> $ make
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com (http://BigRock.com)





RE: packer for building cloudstack templates

2014-03-31 Thread Brian Galura
I have built this and started testing. I had to dissect the code a bit to get a 
working set of json for input. Initially I found that if ssh_key_path isn't a 
real file the process exits immediately with a success message but nothing 
happens

{
  "builders": [
{
  "type": "cloudstack",

  "api_url": "https://server/client/api";,
  "api_key": "***", 
  "secret": "***",

  "ssh_timeout": "60s",
  "state_timeout": "100s",

  "ssh_username": "root",
  "ssh_port": 22,
  "ssh_key_path": "id_rsa",
  "http_directory": "http",

  "service_offering_id": "46446411-f9ab-4856-a046-087dc115ee30",
  "template_id": "83ca136a-f8c8-4063-812b-378b6ac9246d",
  "zone_id": "912e5efc-cc9a-4386-9b55-d438274b9b30",
  "network_ids": [ "2c5b96ce-2666-467c-88c4-d0a0575d20ca" ],
  "disk_offering_id": "eca03965-d10e-4b36-b6c4-e697ede7d136",
  "user_data": "testingsadfasd",

  "template_name": "test",
  "template_display_text": "test",
  "template_os_id": 1
}
  ]
}

-Original Message-
From: Peter Jönsson [mailto:peter.jons...@klarna.com] 
Sent: Monday, March 31, 2014 12:41 PM
To: users@cloudstack.apache.org
Cc: peter.joens...@gmail.com
Subject: Re: packer for building cloudstack templates

Hi all!

Sorry for resurrecting this ancient thread. My pull request for packer has been 
lingering a quite some time now. It would be great if the Cloudstack community 
could help out with testing a bit more. This however requires that you install 
go and build a customer packer-version off the pull-request from github. Note 
that this requires golang 1.2, git, hg and bzr installed. You should be able to 
do that using your OS packager (yum,apt-get, brew, etc). When you have those 
tools installed the following commands you get you going:

export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
mkdir -p $GOPATH
go get github.com/mitchellh/packer # build download, build and install the 
master version of packer into $GOPATH/bin cd 
$GOPATH/src/github.com/mitchellh/packer/
git fetch origin refs/pull/922/head && git checkout FETCH_HEAD # will download 
the HEAD of the latest version of pull request and check it out make # will 
compile packer with cloudstack support and install into $GOPATH/bin

When building templates it's a good idea to set the PACKER_LOG variable (to 
anything expect an empty string) to see the actual printouts. This will help in 
debugging any eventual problems/bugs. I'll send some examples of configuration 
json-files tomorrow.

Thanks :)

// peter



On Sat, Jan 25, 2014 at 11:54 PM, Brian Galura wrote:

> It's great to see progress in adding support to Packer I will test it 
> as soon as it's available.
>
> But what do people do today? Is there a way to convert an ovf to vhd 
> for example? I would be surprised if everyone creates templates by hand.
>
>
> Sent from Citrix WorxMail for iPhone
>
>
> 
>
> From: Peter Jönsson 
> Date: 2014-01-25 09:43:55 +
> To: users@cloudstack.apache.org , 
> peter.joens...@gmail.com , 
> users@cloudstack.apache.org 
> Subject: Re: packer for building cloudstack templates
>
> Hi!
>
> As my library for talking to cloudstack (gopherstack) wasn't ideal I 
> have been waiting for a new variant. It was release yesterday:
> https://github.com/svanharmelen/gocs .
>
> I will take a look at this library and perhaps, if it is good, port 
> over my updates to packer to talk to this library. Then hopefully I 
> can clean up my changes and send a pull request to upstream packer.
>
> In general the approach we take for templates is to built them from 
> scratch. That means PXE booting the instance, downloading 
> kernel/initrd from a net boot server, then finally starting the 
> OS-installation through kickstart. With packer this can be 100% 
> automated via a special iPXE-ISO which will chain load off the user data 
> attached to the VM instance.
>
> - Build custom iPXE with simple embedded boot script:
>
> #!pxe
> dhcp
> chain http://${dhcp-server}/latest/userdata
>
> - Boot up VM with user data attached with enough information to 
> continue the boot, e.g.
>
> "#!ipxe\nkernel http://netboot/centos/6.3/x86_64/vmlinuz ks= 
> http://netboot/ks.cfg\ninitrd 
> http://netboot/centos/6.3/x86_64/initrd.img\nboot";
>
> - After kickstart is completed we reboot the instance and continue 
> setting it up using packer provisioning scri

setting guest's macaddress for primary nic

2014-04-01 Thread Brian Galura
I see that I can add and remove guest NICs using the API. Is it possible to 
explicitly set a macaddress for the primary NIC? Maybe also an IP?