Replies: 2 comments 7 replies
-
BPG, That is all also dependent on the case if you want to pull this into your code/are interested in having this. I would also happy to be just running my fork if you're not interested. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Vaneixus@0fe7856 here's my sole commit containing the changes necessary to add the two features as a proof of concept. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was testing the past 2-3 days in ways a disk can be imported without having to pass by SSH access, I can say I had succeeded in uploading and importing a .qcow2(I think it will also work with .raw files as well, but have not tested as of yet.) Proxmox recently(as of 8.4 actually) added a new API option to upload disks to a new content type known as "import" via the API. and before that, there was also the option to import new disks to an existing(or new) VM via the import-from parameter, which was added all the way back in 7.x if I remember correctly. Currently, in v78.0, the provider will replace the VM if the fileID field is updated/set. I disabled that functionality to test updating an imported disk without having to delete the VM itself with the other disks. I can say it works.
here's my .tf file that I used to test updating and importing a Disk to a VM without having to replace said VM. Note that SSH is not set and the user used is a pve(not pam) user, and thus is not even able to login via SSH.
In the end my question is, what are the other uses for FileID other than importing via SSH and what file formats are expected to be supported by SSH importing? Otherwise, a fallback option can also be implemented where we check if a parameter like "use_ssh" is set to true then use SSH else use the API.
Beta Was this translation helpful? Give feedback.
All reactions