tests/vm: do not specify -bios option
PATCH 1/1 tests/vm: do not specify -bios option
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
Just remove the -bios option, since it is unnecessary and in fact there are other x86 VM tests that do not bother specifying it.
--- tests/vm/fedora | 1 - tests/vm/freebsd | 1 - tests/vm/netbsd | 1 - tests/vm/openbsd | 1 - 4 files changed, 4 deletions(-)
tests/vm/fedora +0 -1
@@ -79,7 +79,6 @@ class FedoraVM(basevm.BaseVM): self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size) self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", iso
tests/vm/freebsd +0 -1
@@ -95,7 +95,6 @@ class FreeBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", iso
tests/vm/netbsd +0 -1
@@ -86,7 +86,6 @@ class NetBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-cdrom", iso ])
tests/vm/openbsd +0 -1
@@ -82,7 +82,6 @@ class OpenBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", iso
Signature · 1 line
2.36.1
Quoted 5 lines · Paolo Bonzini
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
I think there is interaction with
--firmwarepath=/usr/share/qemu-firmware:/usr/share/ipxe/qemu:/usr/share/seavgabios:/usr/share/seabios:/usr/share/sgabios
as the firmware path listed there will be searched before the local build tree.
I agree with your desire to remove the -bios option, but I'm not sure it is entirely safe unless logic in qemu_find_file is fixed to ignore the global search path when running from the build tree.
Quoted 63 lines
Just remove the -bios option, since it is unnecessary and in fact there are other x86 VM tests that do not bother specifying it.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/vm/fedora | 1 - tests/vm/freebsd | 1 - tests/vm/netbsd | 1 - tests/vm/openbsd | 1 - 4 files changed, 4 deletions(-)tests/vm/fedora +0
-1@@ -79,7 +79,6 @@ class FedoraVM(basevm.BaseVM): self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size) self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", isotests/vm/freebsd +0
-1@@ -95,7 +95,6 @@ class FreeBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", isotests/vm/netbsd +0
-1@@ -86,7 +86,6 @@ class NetBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-cdrom", iso ])tests/vm/openbsd +0
-1@@ -82,7 +82,6 @@ class OpenBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", isoSignature · 1 line
2.36.1
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 10 lines · Daniel P. Berrangé
Quoted 5 lines · Paolo Bonzini
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
I think there is interaction with
--firmwarepath=/usr/share/qemu-firmware:/usr/share/ipxe/qemu:/usr/share/seavgabios:/usr/share/seabios:/usr/share/sgabios
Quoted 7 lines
as the firmware path listed there will be searched before the local build tree.
I agree with your desire to remove the -bios option, but I'm not sure it is entirely safe unless logic in
qemu_find_fileis fixed to ignore the global search path when running from the build tree.
Isn't this the same for any other invocation of QEMU, for example in qtest?
I admit I didn't think of the interaction with --firmwarepath, but "if it hurts, don't do it" might apply here. That is, install compatible firmware to the path _before_ trying to use a QEMU that specifies that path.
Thanks,
Paolo
Quoted 14 lines · Paolo Bonzini
Quoted 13 lines · Daniel P. Berrangé
Quoted 5 lines · Paolo Bonzini
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
I think there is interaction with
--firmwarepath=/usr/share/qemu-firmware:/usr/share/ipxe/qemu:/usr/share/seavgabios:/usr/share/seabios:/usr/share/sgabios
as the firmware path listed there will be searched before the local build tree.
Quoted 6 lines
Quoted 4 lines
I agree with your desire to remove the -bios option, but I'm not sure it is entirely safe unless logic in
qemu_find_fileis fixed to ignore the global search path when running from the build tree.Isn't this the same for any other invocation of QEMU, for example in qtest?
Yes, quite likely in fact, so a pre-existing widespread problem and thus not a reason to avoid this proposed change.
Quoted 3 lines
I admit I didn't think of the interaction with --firmwarepath, but "if it hurts, don't do it" might apply here. That is, install compatible firmware to the path _before_ trying to use a QEMU that specifies that path.
I'm mostly thinking of downstream distro developers where they have an installed QEMU but are working on a build from a different QEMU version. We can address this separately though
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 9 lines · Paolo Bonzini
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
Just remove the -bios option, since it is unnecessary and in fact there are other x86 VM tests that do not bother specifying it.
Quoted 7 lines
Signed-off-by Paolo Bonzini <[email protected]>--- tests/vm/fedora | 1 - tests/vm/freebsd | 1 - tests/vm/netbsd | 1 - tests/vm/openbsd | 1 - 4 files changed, 4 deletions(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 58 lines · Paolo Bonzini
When running from the build tree, the executable is able to find the BIOS on its own; when running from the source tree, a firmware blob should already be installed and there is no guarantee that the one in the source tree works with the QEMU that is being used for the installation.
Just remove the -bios option, since it is unnecessary and in fact there are other x86 VM tests that do not bother specifying it.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/vm/fedora | 1 - tests/vm/freebsd | 1 - tests/vm/netbsd | 1 - tests/vm/openbsd | 1 - 4 files changed, 4 deletions(-)tests/vm/fedora +0
-1@@ -79,7 +79,6 @@ class FedoraVM(basevm.BaseVM): self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size) self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", isotests/vm/freebsd +0
-1@@ -95,7 +95,6 @@ class FreeBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", isotests/vm/netbsd +0
-1@@ -86,7 +86,6 @@ class NetBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-cdrom", iso ])tests/vm/openbsd +0
-0
tests/vm/openbsd class OpenBSDVM(basevm.BaseVM): · line 87
Quoted 7 lines
tests/vm/openbsd +0
-1@@ -82,7 +82,6 @@ class OpenBSDVM(basevm.BaseVM): self.print_step("Booting installer") self.boot(img_tmp, extra_args = [ - "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=off", "-device", "VGA", "-cdrom", iso