How to set params for libvirt python api setBlockIoTune? -
i need set kvm virtual machine's disk iotune using python libvirt. after searching, found method "setblockiotune" @ libvirt.py, call c api virdomainsetblockiotune,
int virdomainsetinterfaceparameters (virdomainptr domain, const char * device, virtypedparameterptr params, int nparams, unsigned int flags)
here problem, can't find how set value "virtypedparameterptr params" in in python livirt. doc does't talk it.
please me, thanks!!
orz
i call libvirt python api "blockiotune(dev)" result, modify pass setblockiotune.
result of blockiotune(dev):
{'write_bytes_sec': 0l, 'total_iops_sec': 0l, 'read_iops_sec': 0l, 'read_bytes_sec': 0l, 'write_iops_sec': 0l, 'total_bytes_sec': 0l}
hope :)
Comments
Post a Comment