Hi
I am trying to create a VM using API. I am facing issue in creating VM with sata.
this is the array of my post fields
$fields = array(
'vmid' => 105,
'cores' => 1,
'start' =>1,
'sockets' =>1,
'name' => "nadiransarionline.grownstar",
'balloon' =>4096,
'memory'=>4096,
'sata0'=>"size:40960"
);
by this promox replies with Error code 500 and a null response. but if i exclude sata0 field then it creates a VM but without any storage attached to it.
I studied API from API Viewer but I am not able to understand how to solve this.
Help please.
And sorry if its is in wrong section of forum.
I am trying to create a VM using API. I am facing issue in creating VM with sata.
this is the array of my post fields
$fields = array(
'vmid' => 105,
'cores' => 1,
'start' =>1,
'sockets' =>1,
'name' => "nadiransarionline.grownstar",
'balloon' =>4096,
'memory'=>4096,
'sata0'=>"size:40960"
);
by this promox replies with Error code 500 and a null response. but if i exclude sata0 field then it creates a VM but without any storage attached to it.
I studied API from API Viewer but I am not able to understand how to solve this.
Help please.
And sorry if its is in wrong section of forum.