Hello
I'm trying to get my code that sends api requests to work.
But I have this error:
I think it's a problem when I define rootfs in the request body but I'm not sure.
My body:
stockage_name + ":" + stockage_in_mb
=
local-lvm:8192
I use root@pam
If someone can help me please
I'm trying to get my code that sends api requests to work.
But I have this error:
Code:
Only root can pass arbitrary filesystem paths. at /usr/share/perl5/PVE/Storage.pm line 538.
I think it's a problem when I define rootfs in the request body but I'm not sure.
My body:
Code:
var body = {
"ostemplate": os,
"password": password,
"memory": ram_in_mb,
"rootfs": stockage_name + ":" + stockage_in_mb,
"cores": number_processor_cores,
"swap": "0",
"vmid": nextid.data.data,
"net0": "name=" + name_network_interface + ",ip6=auto,gw6=" + gw6 + ",gw=" + gw4 + ",ip=" + ipv4 + netmask_ipv4 + ",rate=" + network_rate_limit_in_mbs,
"start": start_vps_when_create
}
stockage_name + ":" + stockage_in_mb
=
local-lvm:8192
I use root@pam
If someone can help me please