Mailing List Archive

XEN-XAPI - API Specification documentation
I have an error returned to cloudstack by xen xapi. I think the two
gists below are the main XMLRPC calls:

- VM.create, request : https://gist.github.com/snowch/9957504

- Async.VM.start_on, response : https://gist.github.com/snowch/9957480

The error VM_HMV_REQUIRED in the second gist seems straight forward,
xen is telling me it needs HVM but that is not available.

I'm trying to figure out why a HVM vm is being requested, cloudstack
has been configured not to required hvm, so it shouldn't be making
requests for hvm resources. I'm trying to figure out the request
VM.create, but there are lots of parameter values that I don't
understand.

Question:

Is there a specification document available that describes the Xen API
in terms of message types and parameters? I was hoping the following
document may tell me what I need to know, but it returns a 404:

http://www.xen.org/files/XenCloud/ocamldoc/ -> HTTP 404

I've tried looking through the ocaml source, but it looks as though it
may take a fair amount of time to learn enough ocaml syntax to read
the api.

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
Hi,

Did you check here: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
Hi Oliver, I hadn't seen the docs at that link - thank you.

I was expecting to find a create method in the VM class [1], but there
doesn't appear to be one defined, except on the Overview page? Where
can I find what parameters VM.create accepts?

Many thanks,

Chris

---
[1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM


On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
<lambert.olivier@gmail.com> wrote:
> Hi,
>
> Did you check here: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?



--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
Hi Chris,

You don't create directly a VM, you clone a template, then provision
it. Please take a look on Xen Orchestra project, we are exposing XAPI
to the Web, there is a lot of examples of how to connect to the XAPI
(https://github.com/vatesfr/xo-server/)

On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com> wrote:
> Hi Oliver, I hadn't seen the docs at that link - thank you.
>
> I was expecting to find a create method in the VM class [1], but there
> doesn't appear to be one defined, except on the Overview page? Where
> can I find what parameters VM.create accepts?
>
> Many thanks,
>
> Chris
>
> ---
> [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
>
>
> On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
> <lambert.olivier@gmail.com> wrote:
>> Hi,
>>
>> Did you check here: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
Hi Olivier,

As can be seen in my gist, the XMLRPC method is:
<methodName>VM.create</methodName>

Are you saying that call gets mapped by the xen-xapi to a VM.clone call?
If so, is there somewhere that documents the mappings from xmlrpc to other
api calls?

Btw, the gists are just some of the calls I captured between CloudStack and
xen.

Many thanks,

Chris
On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com> wrote:

> Hi Chris,
>
> You don't create directly a VM, you clone a template, then provision
> it. Please take a look on Xen Orchestra project, we are exposing XAPI
> to the Web, there is a lot of examples of how to connect to the XAPI
> (https://github.com/vatesfr/xo-server/)
>
> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com> wrote:
> > Hi Oliver, I hadn't seen the docs at that link - thank you.
> >
> > I was expecting to find a create method in the VM class [1], but there
> > doesn't appear to be one defined, except on the Overview page? Where
> > can I find what parameters VM.create accepts?
> >
> > Many thanks,
> >
> > Chris
> >
> > ---
> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
> >
> >
> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
> > <lambert.olivier@gmail.com> wrote:
> >> Hi,
> >>
> >> Did you check here:
> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
> >
> >
> >
> > --
> > Check out my professional profile and connect with me on LinkedIn.
> > http://lnkd.in/cw5k69
>
Re: XEN-XAPI - API Specification documentation [ In reply to ]
I'm not a CloudStack expert, I can't tell. But I do know XenServer,
Xe-CLI and documentation talk about cloning then provisioning as the
way to create a new VM. Otherwise, XAPI doc tells that every class had
a constructor (usually called "create")[1]. That's why it's possible
VM.create exists, but it's not documented at all (or I missed it
too).[2]


That's why for Xen Orchestra, we choose to documented way.

[1]: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api in
"Classes, Fields and Messages" paragraph
[2]: Maybe some XAPI people here can enlighten us?

On Thu, Apr 3, 2014 at 10:41 PM, chris snow <chsnow123@gmail.com> wrote:
> Hi Olivier,
>
> As can be seen in my gist, the XMLRPC method is:
> <methodName>VM.create</methodName>
>
> Are you saying that call gets mapped by the xen-xapi to a VM.clone call? If
> so, is there somewhere that documents the mappings from xmlrpc to other api
> calls?
>
> Btw, the gists are just some of the calls I captured between CloudStack and
> xen.
>
> Many thanks,
>
> Chris
>
> On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com> wrote:
>>
>> Hi Chris,
>>
>> You don't create directly a VM, you clone a template, then provision
>> it. Please take a look on Xen Orchestra project, we are exposing XAPI
>> to the Web, there is a lot of examples of how to connect to the XAPI
>> (https://github.com/vatesfr/xo-server/)
>>
>> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com> wrote:
>> > Hi Oliver, I hadn't seen the docs at that link - thank you.
>> >
>> > I was expecting to find a create method in the VM class [1], but there
>> > doesn't appear to be one defined, except on the Overview page? Where
>> > can I find what parameters VM.create accepts?
>> >
>> > Many thanks,
>> >
>> > Chris
>> >
>> > ---
>> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
>> >
>> >
>> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
>> > <lambert.olivier@gmail.com> wrote:
>> >> Hi,
>> >>
>> >> Did you check here:
>> >> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
>> >
>> >
>> >
>> > --
>> > Check out my professional profile and connect with me on LinkedIn.
>> > http://lnkd.in/cw5k69
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
VM.create is definitely a valid constructor to create a VM, there is some
assumed knowledge in the later API documentation, which is prefaced briefly
at the bottom of the main page.

In the old 6.0 documentation these constructors are fleshed out in detail
a little more.


On 4 April 2014 08:05, Olivier Lambert <lambert.olivier@gmail.com> wrote:

> I'm not a CloudStack expert, I can't tell. But I do know XenServer,
> Xe-CLI and documentation talk about cloning then provisioning as the
> way to create a new VM. Otherwise, XAPI doc tells that every class had
> a constructor (usually called "create")[1]. That's why it's possible
> VM.create exists, but it's not documented at all (or I missed it
> too).[2]
>
>
> That's why for Xen Orchestra, we choose to documented way.
>
> [1]: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api in
> "Classes, Fields and Messages" paragraph
> [2]: Maybe some XAPI people here can enlighten us?
>
> On Thu, Apr 3, 2014 at 10:41 PM, chris snow <chsnow123@gmail.com> wrote:
> > Hi Olivier,
> >
> > As can be seen in my gist, the XMLRPC method is:
> > <methodName>VM.create</methodName>
> >
> > Are you saying that call gets mapped by the xen-xapi to a VM.clone call?
> If
> > so, is there somewhere that documents the mappings from xmlrpc to other
> api
> > calls?
> >
> > Btw, the gists are just some of the calls I captured between CloudStack
> and
> > xen.
> >
> > Many thanks,
> >
> > Chris
> >
> > On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com>
> wrote:
> >>
> >> Hi Chris,
> >>
> >> You don't create directly a VM, you clone a template, then provision
> >> it. Please take a look on Xen Orchestra project, we are exposing XAPI
> >> to the Web, there is a lot of examples of how to connect to the XAPI
> >> (https://github.com/vatesfr/xo-server/)
> >>
> >> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com> wrote:
> >> > Hi Oliver, I hadn't seen the docs at that link - thank you.
> >> >
> >> > I was expecting to find a create method in the VM class [1], but there
> >> > doesn't appear to be one defined, except on the Overview page? Where
> >> > can I find what parameters VM.create accepts?
> >> >
> >> > Many thanks,
> >> >
> >> > Chris
> >> >
> >> > ---
> >> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
> >> >
> >> >
> >> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
> >> > <lambert.olivier@gmail.com> wrote:
> >> >> Hi,
> >> >>
> >> >> Did you check here:
> >> >> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
> >> >
> >> >
> >> >
> >> > --
> >> > Check out my professional profile and connect with me on LinkedIn.
> >> > http://lnkd.in/cw5k69
> >
> >
> > _______________________________________________
> > Xen-api mailing list
> > Xen-api@lists.xen.org
> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> >
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
Re: XEN-XAPI - API Specification documentation [ In reply to ]
Hi David, do you have a link you could share?

I've just looked through some of the older docs and couldn't find any
more details for a VM.create method.

Many thanks,

Chris

On Thu, Apr 3, 2014 at 10:13 PM, David Bomba <turbo124@gmail.com> wrote:
> VM.create is definitely a valid constructor to create a VM, there is some
> assumed knowledge in the later API documentation, which is prefaced briefly
> at the bottom of the main page.
>
> In the old 6.0 documentation these constructors are fleshed out in detail a
> little more.
>
>
> On 4 April 2014 08:05, Olivier Lambert <lambert.olivier@gmail.com> wrote:
>>
>> I'm not a CloudStack expert, I can't tell. But I do know XenServer,
>> Xe-CLI and documentation talk about cloning then provisioning as the
>> way to create a new VM. Otherwise, XAPI doc tells that every class had
>> a constructor (usually called "create")[1]. That's why it's possible
>> VM.create exists, but it's not documented at all (or I missed it
>> too).[2]
>>
>>
>> That's why for Xen Orchestra, we choose to documented way.
>>
>> [1]: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api in
>> "Classes, Fields and Messages" paragraph
>> [2]: Maybe some XAPI people here can enlighten us?
>>
>> On Thu, Apr 3, 2014 at 10:41 PM, chris snow <chsnow123@gmail.com> wrote:
>> > Hi Olivier,
>> >
>> > As can be seen in my gist, the XMLRPC method is:
>> > <methodName>VM.create</methodName>
>> >
>> > Are you saying that call gets mapped by the xen-xapi to a VM.clone call?
>> > If
>> > so, is there somewhere that documents the mappings from xmlrpc to other
>> > api
>> > calls?
>> >
>> > Btw, the gists are just some of the calls I captured between CloudStack
>> > and
>> > xen.
>> >
>> > Many thanks,
>> >
>> > Chris
>> >
>> > On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com>
>> > wrote:
>> >>
>> >> Hi Chris,
>> >>
>> >> You don't create directly a VM, you clone a template, then provision
>> >> it. Please take a look on Xen Orchestra project, we are exposing XAPI
>> >> to the Web, there is a lot of examples of how to connect to the XAPI
>> >> (https://github.com/vatesfr/xo-server/)
>> >>
>> >> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com> wrote:
>> >> > Hi Oliver, I hadn't seen the docs at that link - thank you.
>> >> >
>> >> > I was expecting to find a create method in the VM class [1], but
>> >> > there
>> >> > doesn't appear to be one defined, except on the Overview page? Where
>> >> > can I find what parameters VM.create accepts?
>> >> >
>> >> > Many thanks,
>> >> >
>> >> > Chris
>> >> >
>> >> > ---
>> >> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
>> >> >
>> >> >
>> >> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
>> >> > <lambert.olivier@gmail.com> wrote:
>> >> >> Hi,
>> >> >>
>> >> >> Did you check here:
>> >> >> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Check out my professional profile and connect with me on LinkedIn.
>> >> > http://lnkd.in/cw5k69
>> >
>> >
>> > _______________________________________________
>> > Xen-api mailing list
>> > Xen-api@lists.xen.org
>> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>> >
>>
>> _______________________________________________
>> Xen-api mailing list
>> Xen-api@lists.xen.org
>> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>



--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: XEN-XAPI - API Specification documentation [ In reply to ]
I've had a look back through and it looks like they have cleaned up the
docs to match the new style.

Regardless, we use something like this to create the VM shell using
VM.create



$aVM_cfg = array(
"name_label"=> "$vm_name",
"name_description"=>"$vm_description",
"user_version"=> "300",
"affinity"=>NULL,
"is_a_template"=> false,
"auto_power_on"=> true,
// "memory_dynamic_max"=>"$memory",
// "memory_static_max"=>"$memory",
"memory_static_min" => "$memory",
"memory_static_max" => "$memory",
"memory_dynamic_min" => "$memory",
"memory_dynamic_max" => "$memory",
"VCPUs_params" => array(""=>""),
"VCPUs_max" => "$cpu",
"VCPUs_at_startup"=>"$cpu",
"actions_after_shutdown" => "destroy",
"actions_after_reboot" => "restart",
"actions_after_crash" => "restart",
'PV_bootloader' => 'pygrub',
"PV_bootloader_args" => "$pv_boot_args",
'PV_kernel' => '',
"PV_args" => "$pv_args",
'PV_legacy_args'=>'',
'HVM_boot_policy'=>'',
'HVM_boot_params'=>array(''=>''),
'platform'=>
array('nx'=>'FALSE','acpi'=>'true','apic'=>'true','pae'=>'true','viridian'=>'true'),
'other_config'=> array(''=>''),
'recommendations'=>'',
'PV_ramdisk' => '',
"HVM_boot" => "",
"platform_std_VGA" => false,
"platform_serial" => "",
"platform_localtime" => false,
"platform_clock_offset" => false,
"platform_enable_audio" => false,
"PCI_bus"=> ""
);


$new_vm_shell = VM.create($aVM_cfg);


This returns an object reference which can then be further used to create
VIF's / attach VBDs etc etc.














On 4 April 2014 08:21, chris snow <chsnow123@gmail.com> wrote:

> Hi David, do you have a link you could share?
>
> I've just looked through some of the older docs and couldn't find any
> more details for a VM.create method.
>
> Many thanks,
>
> Chris
>
> On Thu, Apr 3, 2014 at 10:13 PM, David Bomba <turbo124@gmail.com> wrote:
> > VM.create is definitely a valid constructor to create a VM, there is some
> > assumed knowledge in the later API documentation, which is prefaced
> briefly
> > at the bottom of the main page.
> >
> > In the old 6.0 documentation these constructors are fleshed out in
> detail a
> > little more.
> >
> >
> > On 4 April 2014 08:05, Olivier Lambert <lambert.olivier@gmail.com>
> wrote:
> >>
> >> I'm not a CloudStack expert, I can't tell. But I do know XenServer,
> >> Xe-CLI and documentation talk about cloning then provisioning as the
> >> way to create a new VM. Otherwise, XAPI doc tells that every class had
> >> a constructor (usually called "create")[1]. That's why it's possible
> >> VM.create exists, but it's not documented at all (or I missed it
> >> too).[2]
> >>
> >>
> >> That's why for Xen Orchestra, we choose to documented way.
> >>
> >> [1]: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api in
> >> "Classes, Fields and Messages" paragraph
> >> [2]: Maybe some XAPI people here can enlighten us?
> >>
> >> On Thu, Apr 3, 2014 at 10:41 PM, chris snow <chsnow123@gmail.com>
> wrote:
> >> > Hi Olivier,
> >> >
> >> > As can be seen in my gist, the XMLRPC method is:
> >> > <methodName>VM.create</methodName>
> >> >
> >> > Are you saying that call gets mapped by the xen-xapi to a VM.clone
> call?
> >> > If
> >> > so, is there somewhere that documents the mappings from xmlrpc to
> other
> >> > api
> >> > calls?
> >> >
> >> > Btw, the gists are just some of the calls I captured between
> CloudStack
> >> > and
> >> > xen.
> >> >
> >> > Many thanks,
> >> >
> >> > Chris
> >> >
> >> > On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com>
> >> > wrote:
> >> >>
> >> >> Hi Chris,
> >> >>
> >> >> You don't create directly a VM, you clone a template, then provision
> >> >> it. Please take a look on Xen Orchestra project, we are exposing XAPI
> >> >> to the Web, there is a lot of examples of how to connect to the XAPI
> >> >> (https://github.com/vatesfr/xo-server/)
> >> >>
> >> >> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com>
> wrote:
> >> >> > Hi Oliver, I hadn't seen the docs at that link - thank you.
> >> >> >
> >> >> > I was expecting to find a create method in the VM class [1], but
> >> >> > there
> >> >> > doesn't appear to be one defined, except on the Overview page?
> Where
> >> >> > can I find what parameters VM.create accepts?
> >> >> >
> >> >> > Many thanks,
> >> >> >
> >> >> > Chris
> >> >> >
> >> >> > ---
> >> >> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
> >> >> >
> >> >> >
> >> >> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
> >> >> > <lambert.olivier@gmail.com> wrote:
> >> >> >> Hi,
> >> >> >>
> >> >> >> Did you check here:
> >> >> >> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Check out my professional profile and connect with me on LinkedIn.
> >> >> > http://lnkd.in/cw5k69
> >> >
> >> >
> >> > _______________________________________________
> >> > Xen-api mailing list
> >> > Xen-api@lists.xen.org
> >> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> >> >
> >>
> >> _______________________________________________
> >> Xen-api mailing list
> >> Xen-api@lists.xen.org
> >> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> >
> >
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
Re: XEN-XAPI - API Specification documentation [ In reply to ]
That's a pain that the api isn't fully documented. Coming back to my
original question: I have a third party application (cloudstack) that
is receiving an error when communicating when xen using xapi. I am
able to capture the calls that the application is making to xen, but
it seems as though there isn't a way for me to manually verify the
values being populated by the application so that I can determine the
root cause of my error.

At this point, it probably makes sense for me to re-post my question -
rather than asking for the API documentation, I'll focus on the
particular issue that I have.

Many thanks,

Chris



On Thu, Apr 3, 2014 at 10:57 PM, David Bomba <turbo124@gmail.com> wrote:
> I've had a look back through and it looks like they have cleaned up the docs
> to match the new style.
>
> Regardless, we use something like this to create the VM shell using
> VM.create
>
>
>
> $aVM_cfg = array(
> "name_label"=> "$vm_name",
> "name_description"=>"$vm_description",
> "user_version"=> "300",
> "affinity"=>NULL,
> "is_a_template"=> false,
> "auto_power_on"=> true,
> // "memory_dynamic_max"=>"$memory",
> // "memory_static_max"=>"$memory",
> "memory_static_min" => "$memory",
> "memory_static_max" => "$memory",
> "memory_dynamic_min" => "$memory",
> "memory_dynamic_max" => "$memory",
> "VCPUs_params" => array(""=>""),
> "VCPUs_max" => "$cpu",
> "VCPUs_at_startup"=>"$cpu",
> "actions_after_shutdown" => "destroy",
> "actions_after_reboot" => "restart",
> "actions_after_crash" => "restart",
> 'PV_bootloader' => 'pygrub',
> "PV_bootloader_args" => "$pv_boot_args",
> 'PV_kernel' => '',
> "PV_args" => "$pv_args",
> 'PV_legacy_args'=>'',
> 'HVM_boot_policy'=>'',
> 'HVM_boot_params'=>array(''=>''),
> 'platform'=>
> array('nx'=>'FALSE','acpi'=>'true','apic'=>'true','pae'=>'true','viridian'=>'true'),
> 'other_config'=> array(''=>''),
> 'recommendations'=>'',
> 'PV_ramdisk' => '',
> "HVM_boot" => "",
> "platform_std_VGA" => false,
> "platform_serial" => "",
> "platform_localtime" => false,
> "platform_clock_offset" => false,
> "platform_enable_audio" => false,
> "PCI_bus"=> ""
> );
>
>
> $new_vm_shell = VM.create($aVM_cfg);
>
>
> This returns an object reference which can then be further used to create
> VIF's / attach VBDs etc etc.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 4 April 2014 08:21, chris snow <chsnow123@gmail.com> wrote:
>>
>> Hi David, do you have a link you could share?
>>
>> I've just looked through some of the older docs and couldn't find any
>> more details for a VM.create method.
>>
>> Many thanks,
>>
>> Chris
>>
>> On Thu, Apr 3, 2014 at 10:13 PM, David Bomba <turbo124@gmail.com> wrote:
>> > VM.create is definitely a valid constructor to create a VM, there is
>> > some
>> > assumed knowledge in the later API documentation, which is prefaced
>> > briefly
>> > at the bottom of the main page.
>> >
>> > In the old 6.0 documentation these constructors are fleshed out in
>> > detail a
>> > little more.
>> >
>> >
>> > On 4 April 2014 08:05, Olivier Lambert <lambert.olivier@gmail.com>
>> > wrote:
>> >>
>> >> I'm not a CloudStack expert, I can't tell. But I do know XenServer,
>> >> Xe-CLI and documentation talk about cloning then provisioning as the
>> >> way to create a new VM. Otherwise, XAPI doc tells that every class had
>> >> a constructor (usually called "create")[1]. That's why it's possible
>> >> VM.create exists, but it's not documented at all (or I missed it
>> >> too).[2]
>> >>
>> >>
>> >> That's why for Xen Orchestra, we choose to documented way.
>> >>
>> >> [1]: http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api in
>> >> "Classes, Fields and Messages" paragraph
>> >> [2]: Maybe some XAPI people here can enlighten us?
>> >>
>> >> On Thu, Apr 3, 2014 at 10:41 PM, chris snow <chsnow123@gmail.com>
>> >> wrote:
>> >> > Hi Olivier,
>> >> >
>> >> > As can be seen in my gist, the XMLRPC method is:
>> >> > <methodName>VM.create</methodName>
>> >> >
>> >> > Are you saying that call gets mapped by the xen-xapi to a VM.clone
>> >> > call?
>> >> > If
>> >> > so, is there somewhere that documents the mappings from xmlrpc to
>> >> > other
>> >> > api
>> >> > calls?
>> >> >
>> >> > Btw, the gists are just some of the calls I captured between
>> >> > CloudStack
>> >> > and
>> >> > xen.
>> >> >
>> >> > Many thanks,
>> >> >
>> >> > Chris
>> >> >
>> >> > On 3 Apr 2014 21:30, "Olivier Lambert" <lambert.olivier@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hi Chris,
>> >> >>
>> >> >> You don't create directly a VM, you clone a template, then provision
>> >> >> it. Please take a look on Xen Orchestra project, we are exposing
>> >> >> XAPI
>> >> >> to the Web, there is a lot of examples of how to connect to the XAPI
>> >> >> (https://github.com/vatesfr/xo-server/)
>> >> >>
>> >> >> On Thu, Apr 3, 2014 at 8:31 PM, chris snow <chsnow123@gmail.com>
>> >> >> wrote:
>> >> >> > Hi Oliver, I hadn't seen the docs at that link - thank you.
>> >> >> >
>> >> >> > I was expecting to find a create method in the VM class [1], but
>> >> >> > there
>> >> >> > doesn't appear to be one defined, except on the Overview page?
>> >> >> > Where
>> >> >> > can I find what parameters VM.create accepts?
>> >> >> >
>> >> >> > Many thanks,
>> >> >> >
>> >> >> > Chris
>> >> >> >
>> >> >> > ---
>> >> >> > [1] http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VM
>> >> >> >
>> >> >> >
>> >> >> > On Thu, Apr 3, 2014 at 6:46 PM, Olivier Lambert
>> >> >> > <lambert.olivier@gmail.com> wrote:
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> Did you check here:
>> >> >> >> http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/ ?
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Check out my professional profile and connect with me on LinkedIn.
>> >> >> > http://lnkd.in/cw5k69
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Xen-api mailing list
>> >> > Xen-api@lists.xen.org
>> >> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>> >> >
>> >>
>> >> _______________________________________________
>> >> Xen-api mailing list
>> >> Xen-api@lists.xen.org
>> >> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>> >
>> >
>>
>>
>>
>> --
>> Check out my professional profile and connect with me on LinkedIn.
>> http://lnkd.in/cw5k69
>>
>> _______________________________________________
>> Xen-api mailing list
>> Xen-api@lists.xen.org
>> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api