-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
start a vm without qemu-guest-agent installed and sits on 'still creating' #449
Comments
setting EDIT: maybe an option we can set to say 'dont check the status of the vm with the qemu-guest-agent but use the VM status/current api instead'? |
found issue i think? terraform-provider-proxmox/proxmoxtf/resource/vm.go Lines 4277 to 4279 in c785279
you can check if qemu-guest-agent is actually running by calling https://IP:8006/api2/json/nodes/{NODE}/qemu/{ID}/agent/info which will return 200 if running or 500 if not running
|
For boot to continue without waiting for qemu-guest-agent (when there is no qemu-guest-agent actually installed), just set It is generally bad idea to to configure VM with guest agent enabled, and not actually install and enable it inside the VM.
Observed Proxmox behavior of VM with If guest-agent is enabled in VM configuration, Proxmox uses the guest-agent to cleanly shutdown VM instead of the default method (ACPI?). Shutting down such VM from Proxmox is a bit tricky:
The remaining option is to use The only case where setting
There does not seem to be any moment in time when the response "not running" can be understood as "qemu-guest-agent not installed and will not be started at all, just continue". VM with qemu-guest-agent installed (and enabled) can take long time after boot before qemu-guest-agent actually gets started (e.g. Currently this provider waits for (at least) 1 "usable" IP address. I have no experience with Talos linux, but it looks like using nocloud image for template VM should allows configuring "Talos machine config" YAML file using cloud-init (which can be generated in terraform) in cloned VMs. In that case the provider would still wait until qemu-guest-agent is started, but qemu-guest-agent should get installed and started automatically. |
the issue you have with talos is i will have alook at the nocloud image tho as ive never seen that option before thanks @otopetrik! i have always used the iso installer and waited for the IP of the vm which i staticly assign to reply to ping before then continuing with the setup etc |
@otopetrik thanks for the detailed response! @si458 I think we can close this ticket as "not a bug"? |
@bpg it can be closed as 'not a bug' but i will open another for another issue i have come across then using @otopetrik suggestion of smbios as this is a feature request! |
Sorry, to be clear: it's expected that the provider will hang if you set agent = true but no agent is running? Just want to confirm |
@mritalian Yes, this is the current behaviour. Provider polls the agent endpoint waiting until agent start responding. I believe it times out after 20min by default. |
Describe the bug
if you create a VM with an ISO image instead of cloud-init, the VM sits on 'still creating' even though its started
To Reproduce
Steps to reproduce the behavior:
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
the VM to be started and then move onto next step
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
TF_LOG=DEBUG terraform apply
):The text was updated successfully, but these errors were encountered: