i am working on xo-cli and i want to fatch only limited data from logs and Vms . So how i can do using xo-cli and also how i apply search through xo-cli
Posts
-
xo-cli data limit ??
-
vm.set not working for int
xo-cli vm.set id=89517372-b45b-ca36-4c51-dd17c0e760c0 CPUs=3
× invalid parameters
property @.CPUs: must be integer, but is stringHow pass integer in xo-cli
-
RE: Vm.create unable to create vm using xo-cli
xo-cli vm.set id=89517372-b45b-ca36-4c51-dd17c0e760c0 CPUs=3
× invalid parameters
property @.CPUs: must be integer, but is string -
RE: Vm.create unable to create vm using xo-cli
yes it work for me Thanks @julien-f but if you have any link related this then please share me because i am facing problem in vm.create and vm.set CPUS=2 ...command line always send string but CPUs always need integer
-
RE: Vm.create unable to create vm using xo-cli
vm.create { "template": "e6ea07ce-18dd-2d46-215c-e8cce8b770eb", "name_label": "'test'", "name_description": "test-cloud-init", "bootAfterCreate": true, "VIFs": "'json:[{bootable:true,device:0,size:8589934592,type:system}]'" } { "code": 10, "data": { "errors": [ { "code": null, "reason": "type", "message": "must be array, but is string", "property": "@.VIFs" } ] }, "message": "invalid parameters", "name": "XoError", "stack": "XoError: invalid parameters at Object.invalidParameters (/opt/xen-orchestra/packages/xo-common/src/api-errors.js:21:32) at Object.call (/opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:72:18) at Api.callApiMethod (/opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:289:19)" }
this log coming
-
RE: Vm.create unable to create vm using xo-cli
@julien-f said in Vm.create unable to create vm using xo-cli:
VIFs='json:[{"bootable":true,"device":0,"size":8589934592,"type":"system"}]'
xo-cli vm.create template=e6ea07ce-18dd-2d46-215c-e8cce8b770eb name_label='test' name_description="test-cloud-init" bootAfterCreate=true VIFs='json:[{"bootable":true,"device":0,"size":8589934592,"type":"system"}]'
× invalid parameters
property @.VIFs: must be array, but is stringI also try your corrected it give me same error
-
RE: Vm.create unable to create vm using xo-cli
@julien-f said in Vm.create unable to create vm using xo-cli:
VIFs='json:[{"bootable":true,"device":0,"size":8589934592,"type":system}]'
xo-cli vm.create template=e6ea07ce-18dd-2d46-215c-e8cce8b770eb name_label='test' name_description="test-cloud-init" bootAfterCreate=true VIFs='json:[{"bootable":true,"device":0,"size":8589934592,"type":system}]' × invalid parameters property @.VIFs: must be array, but is string
same issue is comming
-
Vm.create unable to create vm using xo-cli
xo-cli vm.create template=e6ea07ce-18dd-2d46-215c-e8cce8b770eb name_label='test' name_description="test-cloud-init" bootAfterCreate=true VIFs=\'json:[{bootable:true,device:0,size:8589934592,type:system}] × invalid parameters property @.VIFs: must be array, but is string
I unabel to create Vm using xo-cli. how i pass a array in VIFs. xo-cli always send string not int and object how it possible ???