-
Notifications
You must be signed in to change notification settings - Fork 243
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
Default shared configuration has incorrect assumptions #4040
Comments
@pevogam sorry, I cannot recall on that since it was introduced too long ago (more than 10 years)... anyway, I'd like to prefer to drop the setting as well due to
does it sounds good to you? |
Indeed, the difference is that back then it was commented out and later through the years it got uncommented and now ended up affecting our test suite as it was still making use of
Perhaps it is worth keeping it a while longer for backwards compatibility. My main point and worry was that it introduces unexpected behavior in comparison to other storage hardware variants since we were using -drives there and didn't end up forced to always boot the same image (e.g. when wanting to boot from a CD or USB instead). And I definitely can't find |
Actually IIUC the class LLazySet(LOperators):
__slots__ = []
identifier = "~="
def apply_to_dict(self, d):
if self.name not in _reserved_keys and self.name not in d:
d[self.name] = _substitution(self.value, d) which will always define this parameter for all users that use the legacy -devices together with VirtIO drivers and considering some users might have already defined multiple of many hard drives and which ones to boot from this could severely interfere with them. Note that this parameter used to be commented out before so the previous behavior was image_boot=no and along the way it was modified in an impactful way to |
@pevogam sorry for the delayed reply.
Maybe we could consider using the Btw, which version of qemu were you using for the test? it looks that the [1] https://gitlab.com/qemu-project/qemu/-/commit/0e153b04cccaeaa272a687194ea353167878b10f |
The bootindex parameter seems to have some other problems I described in #4043 and I think it does not apply to legacy -drive options.
Actually the version of qemu I am using is one of the most recent ones:
I think the reason it took effect is because of the old drive expressions. You can see from above that if we move to block devices then it no longer has effect. So I am fine with the decision of VT developers to have the option there if it has effect only on drives but if this was the default option from the very beginning. As it seems it moved from default So bottom line is that I advise I open a pull request removing this somewhat inverting commits a2cc3a4 and more importantly 68a6450. |
The setting in
avocado-vt/virttest/shared/cfg/guest-hw.cfg
Line 88 in 80ca89f
has preceding comment
but on most recent Qemu 8.2 it is not ignored and rather has a dramatic effect on our VT tests where the image will be strictly booted in cases of UEFI reinstallation and USB installation tests that previously relied on alternative boot order configuration using Avocado VT. Is this default really intended to be set? If not I would recommend
which used to be the case long ago. Is there any other purpose behind this parameter and its meaning different then the above-mentioned comment?
@luckyh @YongxueHong Do you happen to know more about this choice?
The text was updated successfully, but these errors were encountered: