Hi Palash You can take a look at the management server logs and the agent logs on the kvm host and see why the vm is struck in starting state
Also you can make use of the expunge option when deploying a vm via terraform When you run terraform destroy , it directly expunges the vm instead of destroying it https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs/resources/instance#expunge Regards Kiran From: Wei ZHOU <[email protected]> Date: Friday, 26 January 2024 at 4:10 PM To: [email protected] <[email protected]> Subject: Re: Urgent Help Needed with Stuck VM Instance Creation If you use KVM, you can restart the cloudstack-agent of the host where the VM is running. -Wei On Fri, 26 Jan 2024 at 10:40, Palash Biswas <[email protected]> wrote: > > Hi Community, > > I'm encountering an issue while creating a VM instance through Terraform. > The process seems to be stuck, and in the Cloudstack UI, it has been > showing a "starting" status for the past hour. I'm unable to stop or > destroy it manually. Can anyone provide guidance on how to terminate this > instance? > > Regards, > Palash > >
