Skip to content
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

Compression on HAOS released images makes Proxmox installs tougher #3979

Open
kaecyra opened this issue Mar 28, 2025 · 3 comments
Open

Compression on HAOS released images makes Proxmox installs tougher #3979

kaecyra opened this issue Mar 28, 2025 · 3 comments
Labels
bug hypervisor/proxmox Proxmox related issues

Comments

@kaecyra
Copy link

kaecyra commented Mar 28, 2025

Describe the issue you are experiencing

TL;DR

Could the HAOS releases be made to include either uncompressed or simple gz-compressed OVA images, rather than solely xz-compressed ones?

Why?

I'm currently rebuilding my homelab and taking the opportunity to Terraform the deployment of all my VMs to their respective Proxmox nodes, instead of provisioning them manually.

Trying to do as much as possible with Terraform and avoid manual configuration, which includes installing available boot images into Proxmox itself. Proxmox has a very cool feature that allows the installation of images by direct download to the VE. It even supports checksums and decompression as long as one of the 4 supported algorithms are used: gz, lzo, zst, bz2. The bpg/proxmox terraform provider supports this fully.

The Ubuntu base image was no problem because it is available uncompressed. The HAOS OVA QCow2 image is compressed with xz (and I think tar underneath that), which makes it impossible to leverage this Proxmox functionality. I will need to manually download and extract the image locally and then upload the result. This feels fragile and suboptimal.

I know xz offers superior compression ratios to gz, but it is less widely supported and therefore has some drawbacks.

The ask

So, any chance the HAOS releases could include uncompressed or gz-compressed OVA images?

Thank you for thinking about this!

What operating system image do you use?

ova (for Virtual Machines)

What version of Home Assistant Operating System is installed?

15.0

Did the problem occur after upgrading the Operating System?

No

Hardware details

Virtualized.

Host: Proxmox VE 8.3
Memory: 192Gb
CPU: 2x Xeon E5-2640 v4 @ 2.40GHz
Disk:
Proxmox: 2x 1.2Tb (RAID 1)
VMs: 6x 1.2Tb (RAID 10)

Guest: HAOS
Memory: 4Gb
CPU: 2x vCPU
Disk: 32Gb

Steps to reproduce the issue

  1. Begin adding a new ISO image in Proxmox
  2. Attempt to "Query URL" against OVA image (https://github.com/home-assistant/operating-system/releases/download/15.0/haos_ova-15.0.qcow2.xz)
  3. Note the failed discovery
  4. Attempt to download the OVA image anway
  5. Failure

Anything in the Supervisor logs that might be useful for us?

No, this isn't about HAOS itself.

Anything in the Host logs that might be useful for us?

No, this isn't about HAOS itself.

System information

No response

Additional information

No response

@kaecyra kaecyra added the bug label Mar 28, 2025
@sairon sairon added the hypervisor/proxmox Proxmox related issues label Mar 28, 2025
@sairon
Copy link
Member

sairon commented Mar 28, 2025

I'd suggest taking a step aside here and instead of importing the disk image, importing the actual .ova file. As a bonus, that also contains some meta information that simplifies creation of the VM.

We'd like to make this the preferred way of installing HAOS in Proxmox - currently people are usually using the tteck/Community scripts but this method is a bit friendlier and built in the Proxmox.

Getting back to the compression algorithm, I'd rather prefer if Proxmox supported XZ as well. I do not know if there's a reason for not adding that capability but there's quite recent discussion thread about it: https://forum.proxmox.com/threads/cloud-init-using-a-raw-xz-file.158782/

@kaecyra
Copy link
Author

kaecyra commented Mar 28, 2025

Using the OVA directly means I have to use the "Import" feature, which is not covered by the Terraform provider. FML.

@bpg
Copy link

bpg commented Mar 31, 2025

@kaecyra this workaround might help: bpg/terraform-provider-proxmox#1212 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hypervisor/proxmox Proxmox related issues
Projects
None yet
Development

No branches or pull requests

3 participants