-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM doesn't shut down when trying to destroy #1255
Comments
Hi @MichalMarchewka 👋🏼 From the example tf template, it doesn't looks like your VM has any OS to load. I think it is just looping though the BIOS boot sequence trying to bootstrap, but there is no bootloader available. You can check that on the VM console. The provider can't do anything in this case, neither Proxmox UI. You can directly issue a qemu command |
Hello @bpg 👋🏻 |
I've added following code to VM configuration:
VM started and ISO was loaded. When I remove the VM config from TF it's the same behaviour as before, but system is installing (no looped boot sequence this time):
|
Interesting... 🤔 I just want to confirm, that Shutdown from the UI works for you, but when provider does that, it hangs? |
Well, not exectly to be honest. I'm not able to shutdown VM from the UI but I'm able to stop it. After I stop it manually then remove from TF, |
Scenario 1:
Scenario 2:
|
Ah... then |
Amazing! It's my fault I missed this argument. Thank you! |
No prob! 🙂 Please let me know if it works for you. |
I assume it worked :) |
Describe the bug
Virtual Machine isn't deleted because it doesn't shut down
To Reproduce
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
Virtual Machine is shut down successfully and deleted
Screenshots
Additional context
TF_LOG=DEBUG terraform apply
):The text was updated successfully, but these errors were encountered: