Does anyone has an example on how to use clone API in PowerVC to clone a vm (with or without SR-IOV)?
I pass the configuration in a body specifications but it seems that it is not properly done - the deploy start succesfully but soon after it is deleted as no suitable network is found. Clone works fine through GUI. In nova api.log i didn't find any useful info.
This is what I pass to API:
{
"clone-vm": {
"server": {
"name": "clone-vm-name",
"networks": [
{
"sriov_port": {
"network_id": "aa18aa0b-985d-4884-bc84-77a87fcf73a8",
"binding:profile": {
"delete_with_instance": 1,
"vnic_required_vfs": 1,
"capacity": 0.02
}
}
}
],
"availability_zone": "Default Group",
"key_name": "PUN",
"flavor": {
"ram": 4096,
"vcpus": 1,
"disk": 0,
"extra_specs": {
"powervm:max_proc_units": "1",
"powervm:shared_weight": "128",
"powervm:min_mem": "2048",
"powervm:max_mem": "6144",
"powervm:uncapped": "true",
"powervm:proc_units": "0.5",
"powervm:dedicated_proc": "false",
"powervm:max_vcpu": "1",
"powervm:availability_priority": "127",
"powervm:min_proc_units": "0.1",
"powervm:min_vcpu": "1"
}
}
}
}
}
------------------------------
Nicolae Chirea
System architect
Saytel Informatica SL
Madrid
+34607868409
------------------------------