Modifying the Behavior of an fGPU
You can specify whether a flexible GPU (fGPU) is automatically released from your account when the virtual machine (VM) it is attached to is terminated.
Modifying the Behavior of an fGPU Using Cockpit v2
-
Click inside the Flexible GPUs dashboard to make checkboxes appear.
-
Check the box of the fGPU you want to modify the behavior.
The fGPU is selected and an action menu appears. -
Click
Update.
The UPDATE FLEXIBLE FGPU dialog box appears. -
Check or uncheck the Release fGPU on VM deletion box:
-
If the box is checked, the fGPU is automatically released from your account when the VM it is linked to is terminated.
-
If the box is unchecked, the fGPU is unlinked and stays allocated to your account when the VM it is linked to is terminated.
-
-
Click Update.
The behavior of the fGPU is modified.
Modifying the Behavior of an fGPU Using Cockpit v1
Cockpit v1 is no longer fixed nor supported. Cockpit v1 is no longer available in the cloudgouv-eu-west-1 Region. For more information, see End-of-Life Policy. |
-
Click Compute > Flexible GPU.
-
Click Update .
The UPDATE FLEXIBLE GPU dialog box appears. -
Check or uncheck the Delete on vm deletion box:
-
If the box is checked, the fGPU is automatically released from your account when the instance it is attached to is terminated.
-
If the box is unchecked, the fGPU is detached and stays allocated to your account when the instance it is attached to is terminated.
-
-
Click Update to validate.
The behavior of the fGPU is modified.
Modifying the Behavior of an fGPU Using OSC CLI
The UpdateFlexibleGpu command modifies a flexible GPU (fGPU) behavior.
$ osc-cli api UpdateFlexibleGpu --profile "default" \
--FlexibleGpuId "fgpu-12345678" \
--DeleteOnVmDeletion False
This command contains the following attributes that you need to specify:
-
DeleteOnVmDeletion
: (optional) If true, the fGPU is deleted when the VM is terminated. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
FlexibleGpuId
: The ID of the fGPU you want to modify.
The UpdateFlexibleGpu command returns the following elements:
-
FlexibleGpu
: Information about the flexible GPU (fGPU).-
DeleteOnVmDeletion
: If true, the fGPU is deleted when the VM is terminated. -
FlexibleGpuId
: The ID of the fGPU. -
Generation
: The compatible processor generation. -
ModelName
: The model of fGPU. For more information, see About Flexible GPUs. -
State
: The state of the fGPU (allocated
|attaching
|attached
|detaching
). -
SubregionName
: The Subregion where the fGPU is located. -
VmId
: The ID of the VM the fGPU is attached to, if any.
-
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"FlexibleGpu": {
"DeleteOnVmDeletion": false,
"FlexibleGpuId": "fgpu-12345678",
"Generation": "v5",
"ModelName": "nvidia-p100",
"State": "allocated",
"SubregionName": "eu-west-2a"
}
}
Related Pages
Corresponding API Method