Hi,

Yes, the code to deploy a VM should be related to a method called
getDeployVirtualMachineCommand.  This will build up the command you want to
send to the executeCloudStackCommand method.

If you want it to run on XenServer, you will of course need to make sure
you have a XenServer host added into CloudStack.  In the cluster this host
resides, you'll need Primary Storage with a Storage Tag that you define.

If you reference this Storage Tag from a Compute Offering that you execute,
the VM should be placed on the Primary Storage that's being used by your
XenServer host.

I will CC the CloudStack e-mail list so other people can feel free to chime
in with suggestions.

The reason I sent my code directly to you was because the CloudStack e-mail
list will filter attachments out.

Having the entire group in on the conversation might be useful regarding
comments they might make.

Talk to you later!


On Wed, May 1, 2013 at 5:15 PM, Seif Eddine Jemli <seifeddineje...@gmail.com
> wrote:

> thanks Mike.
>
> I am a beginner. i am doing this for a school project (i am a computer
> science student, i graduate the next year)
> does this code contain part that enable me to deploy virtual machines on
> xenserver hosts?
>
>
>
>
> 2013/5/2 Mike Tutkowski <mike.tutkow...@solidfire.com>
>
>> Here you go.
>>
>> So, just a couple of things to note:
>>
>> This little program demos how to issue CloudStack API commands, but it
>> also demos how to interact with XenServer and ESX as well as my company's
>> SAN (SolidFire).  Of course just ignore what is not of interest to you. :)
>>  You will most likely find the executeCloudStackCommand method to be of
>> interest.
>>
>> The name of the program (CreateVolume) is completely legacy as this
>> program does a lot more than create a volume on our SAN these days. :)
>>
>> You'll see a lot of code is commented out.  I tend to comment code out
>> and in within this program depending on what I want test with it.
>>
>> Let me know if you have any questions.
>>
>>
>> On Wed, May 1, 2013 at 4:14 PM, Seif Eddine Jemli <
>> seifeddineje...@gmail.com> wrote:
>>
>>> thanks a lot .
>>>
>>>
>>> 2013/5/1 Mike Tutkowski <mike.tutkow...@solidfire.com>
>>>
>>>> Hi,
>>>>
>>>> No problem.
>>>>
>>>> At the moment, I do not have access to the file from where I'm located,
>>>> but I should be able to send it to you within a few hours.
>>>>
>>>> Talk to you later,
>>>>
>>>>
>>>> On Wed, May 1, 2013 at 4:07 PM, Seif Eddine Jemli <
>>>> seifeddineje...@gmail.com> wrote:
>>>>
>>>>> Hi Mike,
>>>>>
>>>>> thanks for you reply on the mailing list.
>>>>>
>>>>> i do have interest in your code.
>>>>>
>>>>> can you please send it to me to use it as a tuto?
>>>>>
>>>>> thanks in advance
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Mike Tutkowski*
>>>>  *Senior CloudStack Developer, SolidFire Inc.*
>>>> e: mike.tutkow...@solidfire.com
>>>> o: 303.746.7302
>>>> Advancing the way the world uses the 
>>>> cloud<http://solidfire.com/solution/overview/?video=play>
>>>> *™*
>>>>
>>>
>>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkow...@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the 
>> cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Reply via email to