Hello everyone,
I started recently using XCP-ng and XO and I'm looking for some help or suggestion from more experienced users.
I'm creating VMs using Terraform and configuring it using cloud-init. My question is how can I remove xocloudconfig disk from VM after cloud-init is done.
I suppose it is possible using xo-cli, but maybe you have a better way to achieve this.
From Terraform I can get VM IDs and then query the info using xo-cli:
},
"managementAgentDetected": true,
"pvDriversDetected": false,
"pvDriversVersion": "7.20.0-9",
"$container": "90150965-ea43-4f31-90d2-ffb877cfa385",
"$VBDs": [
"fb5d0af8-b339-542c-8dbe-900cf79e8924",
"f05fff31-8fbb-dd67-ae9a-b44c4109d480"
],
"VGPUs": [],
"$VGPUs": [],
"vga": "std",
From Terraform I can also get vdi and vbd IDs, but only for the main disk, the cloud-init disk is invisible in Terraform configuration. So I suppose I can somehow use the VM info query to extract the second vbd ID as JSON object and then disconnect it and remove it from VM using xo-cli?
And help is appreciated.
Thanks
Re: xo-cli help