-
-
Notifications
You must be signed in to change notification settings - Fork 992
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
SHA digest error when importing ova with VMWare Workstation 16 #2121
Comments
I remember last time I looked at it that the person mentioned that Workstation didn't work, but since it wasn't a problem for him I did not further investigate (maybe that also was an old VMware Workstation version). However, the fact that even the latest VMWare Workstation doesn't work is not nice.
That is what I assumed first, and if that would be the case I'd almost say let's push VMware to finally support a modern hash algorithm 😄
That is an interesting find! I downloaded the file, and indeed it seems to use SHA256 sums, and even in the very same format as Home Assistant OS:
I also checked file endings, the both seem to be UNIX style. Just to be clear, you are saying that One thing I notice is that in our case the ova file name is different (e.g. |
Yep, but in my case I use Workstation and ESXi extensively, so a fix would ease my workflow. The workaround isn't lengthy or complicated, but it adds up.
VMWare products sometimes have very anachronistic components, so it was a short lived "aha" moment for me when I thought SHA256 was too "new" for Workstation. Here are some other examples of appliances currently shipped with a SHA1 digests in their manifests: VMWAre Photon OS (but they ship a cert within the ova!), turnkey linux appliances, blackarch linux, Bitnami (absorbed by VMWare) appliances, nixos. Whonix uses SHA1 hashes within their OVA too, but they provide external SHA512 digests and sign the container with GPG. I am not advocating for one way over another, but I thought the above would be helpful to the discussion.
I just tried it again for a sanity check. Can confirm,
Extracting the OVA and importing the OVF within it also does not work, and results in the same error. This, again, can be bypassed by removing the manifest file. (The files within the HAOS OVA are: I tried to convert the HAOS 8.5 OVA using VMWare's
I then extracted the same OVA file and attempted to use
I believe that this is the relevant section from the
I looked at this section in GNS3 (from GNS3.VM.VMware.Workstation.2.2.34,
Bitnami postgres (
So I thought that it would be interesting to see what a section that VMWare Workstation is happy with looks like.
Both the resulting Writing Side notes:
Sorry for the messy formatting. I noticed half way through but I think it is readable enough. |
Hm, I see that we do not have
Although it is optional according to spec...
Can you try adding |
I gave it a go, but no dice. Workstation still complains about the digest.
This is what I changed the relevant section to:
|
When |
Sorry, I am not ready to chase VMWare. I think this should be a task for someone from the HA team, if they/you want |
Same here 😅
Works for me. |
Seems there is no way to open a bug report without support agreement. Also, it seems there has been made an attempt int he past (at least this community forum thread looks very similar). |
Whether we've hit a VMWare bug or not, other appliance vendors somehow manage to offer combined I just tried to import the Bitnami Consul There is also the option of creating a separate appliance. Finally, as far as I know, What do you think? |
Have you guys tried to import the ova images we at the RaspberryMatic project generate in a similar manner than here? See https://github.com/jens-maus/RaspberryMatic/releases/latest |
Thank you for jumping in! Also, awesome project! Which version of Workstation did your team test the |
Looks like the latest HAOS 9 |
Here is a relevant Twitter exchange that I think is worth pursuing. |
I ran into the same issue when generating a Kali-Linux VM Image using https://gitlab.com/kalilinux/build-scripts/kali-vm. As per the feedback on the Twitter exchange, using a streamOptimized VMDK image seems to cause the issue. Removing You can also convert an existing streamOptimized vmdk image in an ova (after extracting the tar archive) using qemu-img:
After replacing the original vmdk (using the original name or updating the reverence in the .ovf file) and updating the hash in the manifest file, the .ovf file is imported successfully. See also https://gitlab.com/kalilinux/build-scripts/kali-vm/-/blob/main/scripts/export-ovf.sh for generating the un-streamOptimized output in the .ovf build tool of kali-vm (https://gitlab.com/kalilinux/build-scripts/kali-vm/-/blob/main/scripts/export-ovf.sh). |
@0x4d4e interesting finds, thanks for sharing! From what I understand the For HAOS, the image size increases from 436MB to 923MB ( For the pure vmdk file currently It seems that ovf supports gzip compressed disks, so maybe that is an option. However, it seems that some (other) VMware products have problem with that (or here) 😰 So not sure if that would be a good option for VMware users.
Do you happen to have a link to that thread? |
From @ioctl2 's comment above mine: https://twitter.com/mikeroySoft/status/1570161059172077569 |
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. |
This is still an issue. |
He is correct. STEP 1: Extract the xxxxxxxx.ova file with 7zip. |
Yes, this is still a problem, but it is a bug in VMWare Workstation 16. Unfortunately, I was unable to report the bug because I am not a VMware customer. If you have a support agreement with VMWare, please report the issue with VMware. See #2121 (comment). |
I did more research on that one, at https://gitlab.com/kalilinux/build-scripts/kali-vm/-/issues/25#note_1290346720. From what I can see, the issue is not in the So definitely a bug in VMware, even more after reading the twitter message from @mikeroySoft that was mentioned above. If vmware do the checksum after converting the disk back and forth, no surprise the checksums don't match... But it might match (by chance) if the disk is decompressed/recompressed using the exact same algorithm and it's deterministic, ie. the disk was created using vmware own tools. |
Describe the issue you are experiencing
Importing the Home Assistant OS ova appliance into VMWare Workstation version 16.2.4 build-20089737 fails with this error:
SHA digest of file home-assistant.vmdk does not match manifest.
This happens with the following versions of HAOS (note that this includes a recent dev version):
If I remove the manifest
home-assistant.mf
from the.ova
, the appliance imports successfully. Also noteworthy is that the appliance imports into Oracle VirtualBox (6.1) and VMWare ESXi (6.7, 7.1) as-is, without error.The actual checksums are fine. As an example, the haos_ova-8.5 manifest (
home-assistant.mf
) contains these lines:When I compute the checksums for the two referenced files, they match:
I have searched existing issues to avoid posting a dup, and found some related discussion, but nothing that addresses this specific issue with VMWare Workstation. One such issue was #826 - since fixed/closed - dealing with ESXi import errors, but one commenter reported that this was not yet fixed in relation to Workstation (see #826 (comment) and #826 (comment))
Many appliances still use SHA1 for the manifest file, and it made me wonder if perhaps VMWare Workstation only supported that, and not SHA256. There was an issue related to ESXi and the hash function on the nextcloud issue tracker nextcloud/vm#910 (comment) but this was dealing with ESXi and not Workstation, and with an older (5.5) unsupported (https://kb.vmware.com/s/article/51491) release of the hypervisor.
I looked at the manifest of another project (https://gns3.com/software/download-vm) that ships OVA appliance files, and it uses SHA256 hashes, and the OVA imports into Workstation fine, so the same should apply to the HAOS one. Interestingly, they ship a separate OVA files for Workstation/Fusion and ESXi.
[this is my first bug report for this project, so I'd appreciate any pointers if anything is amiss in my report]
What operating system image do you use?
ova (for Virtual Machines)
What version of Home Assistant Operating System is installed?
NA
Did you upgrade the Operating System.
No
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System Health information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: