-
|
Hello all, I'd like to work on a PR to support other decompression algos because one of the images I need to pull is an xz file, but not a tarball. So it's not quite behaving properly with the ones available. I found where it does the validation in the code, but I can't seem to find where the actual decompression is being done. Is that done on proxmox side automatically for some file types? If so, if I WERE to add a helper for other decompression algos, where should that go? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
Hi @Tanchwa! 👋🏼 The The situation is different for But regardless of the technicalities, you'd need to come up with some metadata model that would define a pipeline to convert a source file to one of the PVE-supported formats. Particularly for your use case of "an xz file, but not a tarball" how to convert the "not a tarball" format to a tarball before compressing it with xz or gz. |
Beta Was this translation helpful? Give feedback.
-
|
right now, I use the download file resource to download the file and stick in a filename unxz can use, then I use the remote exec provissioner to decompress the file. I finally stand up the virtual machine by passing in the path to the ISO, but I think I've found a different bug. It seems the VM provissioner resource tries to name the resulting LVM created based on the entire path provided, and not just the image name. I will open an issue when I have a second. |
Beta Was this translation helpful? Give feedback.
-
|
If any others find this thread, in my case trying to get homeassistant os to decompress from .xz, Check out this discussion: (#1212) Which did work for me using: |
Beta Was this translation helpful? Give feedback.
-
|
Yes works for me, thank you so much for the heads up! |
Beta Was this translation helpful? Give feedback.
If any others find this thread, in my case trying to get homeassistant os to decompress from .xz,
Check out this discussion: (#1212)
TLDR: zst will decompress the .xz
Which did work for me using: