-
Notifications
You must be signed in to change notification settings - Fork 8
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
breaking change: virtio-blk,format= is required #30
Comments
Hi @nirs! I agree the error message isn't great. It seems the error message comes from the crate we use, but I can look into finding a way to improve the message. I'm ok with making the default format Raw. With regards to probing, we aren't going to add any form of it. Any probing that is necessary must be done by the user, but should be avoided at all costs. You can see the (lengthy) discussion about it in this PR: containers/libkrun#237 |
We can report an issue for the library then.
Guest being able to modify the image to look like a qcow2 image is good point, we should not probe based on guest controlled data. |
I was mistaken, and that error message is coming from krunkit. Putting together a fix right now.
|
Upstream krunkit requires the vrtio-blk,format= option. Existing users or programs using krunkit will break when the new code will be released.
Example command working with current brew release (0.1.4):
Issues:
I guess the reason the option is required is that want to avoid probing the image format. I don't think this is a good reason, there is no reason why probing qcow2 image need to be unsafe. But even if we really cannot probe the image, we can be safe and backward compatible by using this logic:
To allow automatic probing, we can add format=auto. When we don't probe image format, users will use qemu-img info to probe the image, so we did not make the user flow safer, just made the experience worse.
The text was updated successfully, but these errors were encountered: