Hello,
I am creating VMs (qemu) in Proxmox with Ansible.
1. Clone(API endpoint - POST) -> cloud-init template
2. Config(API endpoint - POST) -> cloned VM
3. Resize(API endpoint - PUT) -> scsc0 -> size=+10G
Clone request will return task ID in response, so I can check if VM was cloned to continue.
Config will not return anything usefull, but It will always success.
Resize will sometimes return /usr/bin/qemu-img resize -f raw /data/pool1/images/101/vm-101-disk-0.raw 10737418240' failed: got timeout and it does not matter if I am using size=+1G, size=10G, size=+10G.
I am assuming that VM is not ready for Resize yet, but I am not sure, how can I check it to run another step (Resize)
If I create request /let say 5min after VM config/ it will always return success. So there is some kind of background task which will need to be completed to Resize disk.
Any ideas?
I am creating VMs (qemu) in Proxmox with Ansible.
1. Clone(API endpoint - POST) -> cloud-init template
2. Config(API endpoint - POST) -> cloned VM
3. Resize(API endpoint - PUT) -> scsc0 -> size=+10G
Clone request will return task ID in response, so I can check if VM was cloned to continue.
Config will not return anything usefull, but It will always success.
Resize will sometimes return /usr/bin/qemu-img resize -f raw /data/pool1/images/101/vm-101-disk-0.raw 10737418240' failed: got timeout and it does not matter if I am using size=+1G, size=10G, size=+10G.
I am assuming that VM is not ready for Resize yet, but I am not sure, how can I check it to run another step (Resize)
If I create request /let say 5min after VM config/ it will always return success. So there is some kind of background task which will need to be completed to Resize disk.
Any ideas?