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:
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.
Re: xo-cli help