[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] XEN-XAPI - API Specification documentation
I've had a look back through and it looks like they have cleaned up the docs to match the new style. This returns an object reference which can then be further used to create VIF's / attach VBDs etc etc.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); On 4 April 2014 08:21, chris snow <chsnow123@xxxxxxxxx> wrote: Hi David, do you have a link you could share? _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |