qemu-sanity-check.git
9 months agosrc: Look for kernels in /lib/modules/*/vmlinuz master
Richard W.M. Jones [Mon, 29 Jan 2024 19:40:19 +0000 (19:40 +0000)]
src: Look for kernels in /lib/modules/*/vmlinuz

On Fedora 40 and above when using systemd-boot, there are no more
kernels in /boot.

9 months agodocs: Use F<> around file references in the manual
Richard W.M. Jones [Mon, 29 Jan 2024 19:36:50 +0000 (19:36 +0000)]
docs: Use F<> around file references in the manual

9 months agosrc: Add more information about kernel and qemu search to --verbose
Richard W.M. Jones [Mon, 29 Jan 2024 19:08:44 +0000 (19:08 +0000)]
src: Add more information about kernel and qemu search to --verbose

14 months agoError out if any kernel panic is seen
Richard W.M. Jones [Fri, 1 Sep 2023 13:23:54 +0000 (14:23 +0100)]
Error out if any kernel panic is seen

If, even after reaching userspace, we see a kernel panic, report an
error.  (I might revert this change if it causes problems.)

Fixes: https://gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/issues/1720

14 months agoMake sure that qemu-sanity-check -v displays kernel output
Richard W.M. Jones [Fri, 1 Sep 2023 12:56:35 +0000 (13:56 +0100)]
Make sure that qemu-sanity-check -v displays kernel output

Even in the case when the test doesn't fail, if the -v option was used
make sure the full output is shown.

14 months agoAttempt RB_POWER_OFF before reboot.
Richard W.M. Jones [Fri, 1 Sep 2023 12:38:53 +0000 (13:38 +0100)]
Attempt RB_POWER_OFF before reboot.

Try a clean power off before using reboot.

Also this commit adds a debugging message before each call to
reboot().  I wasn't sure if reboot(RB_POWER_OFF) happens
synchronously, apparently it does, at least on x86-64.

14 months agoMove the source files into a subdirectory
Richard W.M. Jones [Fri, 1 Sep 2023 12:49:55 +0000 (13:49 +0100)]
Move the source files into a subdirectory

14 months agoMove the tests into a subdirectory
Richard W.M. Jones [Fri, 1 Sep 2023 12:42:37 +0000 (13:42 +0100)]
Move the tests into a subdirectory

18 months agoIgnore user-added local files such as ./localconfigure
Richard W.M. Jones [Thu, 18 May 2023 12:36:31 +0000 (13:36 +0100)]
Ignore user-added local files such as ./localconfigure

4 years agoSet console on ARM and s390.
Richard W.M. Jones [Fri, 25 Sep 2020 09:01:33 +0000 (10:01 +0100)]
Set console on ARM and s390.

4 years agoSet RAM to something larger than qemu default.
Richard W.M. Jones [Fri, 25 Sep 2020 09:00:23 +0000 (10:00 +0100)]
Set RAM to something larger than qemu default.

The qemu default is quite small - 128MB - so may be unsuitable on many
architectures even though we are only booting a kernel and trivial
initrd.  It's better to set this to something more normal, and in case
we don't use the extra RAM it won't make any difference.

4 years agoAdd --cpu option.
Richard W.M. Jones [Fri, 25 Sep 2020 08:45:30 +0000 (09:45 +0100)]
Add --cpu option.

If not set, then pick a more suitable default for aarch64.

4 years agotests: run-qemu-sanity-check: Add -v flag for verbose messages.
Richard W.M. Jones [Fri, 25 Sep 2020 08:38:36 +0000 (09:38 +0100)]
tests: run-qemu-sanity-check: Add -v flag for verbose messages.

Useful when debugging test failures.

4 years agoVersion 1.1.6. v1.1.6
Richard W.M. Jones [Thu, 10 Sep 2020 13:43:33 +0000 (14:43 +0100)]
Version 1.1.6.

4 years agoAdd -v/--verbose option.
Richard W.M. Jones [Thu, 10 Sep 2020 13:41:25 +0000 (14:41 +0100)]
Add -v/--verbose option.

4 years agoAdd -m/--machine option.
Richard W.M. Jones [Thu, 10 Sep 2020 12:36:16 +0000 (13:36 +0100)]
Add -m/--machine option.
Pick the default machine type depending on arch.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1875763

5 years agoReplace -nodefconfig with -no-user-config.
Richard W.M. Jones [Sun, 3 Feb 2019 11:46:38 +0000 (11:46 +0000)]
Replace -nodefconfig with -no-user-config.

9 years agoqemu-sanity-check.in: Use '-display none' instead of '-nographic'
Kashyap Chamarthy [Mon, 8 Jun 2015 16:47:00 +0000 (18:47 +0200)]
qemu-sanity-check.in: Use '-display none' instead of '-nographic'

Upstream QEMU recommends to use '-display none' as opposed to
'-nographic' -- which is a "legacy option that does a whole bunch of
confusing stuff" (thanks Peter Maydell).

Upstream libguestfs already made the switch [1] in DEC-2013.

[1] https://github.com/libguestfs/libguestfs/commit/7a41f5c1 -- "launch:
    switch from -nographic to -display none "

10 years agoVersion 1.1.5. v1.1.5
Richard W.M. Jones [Wed, 2 Jul 2014 18:16:30 +0000 (19:16 +0100)]
Version 1.1.5.

10 years agoAdd --accel flag to select KVM or software emulation.
Richard W.M. Jones [Wed, 2 Jul 2014 18:11:08 +0000 (19:11 +0100)]
Add --accel flag to select KVM or software emulation.

It translates directly to the qemu -machine accel=... parameter.

11 years agoBetter search for debug etc. kernels (RHBZ#1002189).
Richard W.M. Jones [Wed, 28 Aug 2013 16:00:29 +0000 (17:00 +0100)]
Better search for debug etc. kernels (RHBZ#1002189).

This code now matches the same code in the original febootstrap
(pre-rewrite in C) shell script.  Except that we don't look for kernel
names that don't contain $arch, since that would only apply on really
ancient RHEL.

This updates commit e15822c82b3888420187eb32db82554266a6f350.

11 years agoVersion 1.1.4. v1.1.4
Richard W.M. Jones [Wed, 28 Aug 2013 15:26:38 +0000 (16:26 +0100)]
Version 1.1.4.

11 years agoSearch for +debug kernels when --kernel option is not used (RHBZ#1002189).
Richard W.M. Jones [Wed, 28 Aug 2013 15:23:21 +0000 (16:23 +0100)]
Search for +debug kernels when --kernel option is not used (RHBZ#1002189).

11 years agoqemu: Use oops=panic panic=-1
Richard W.M. Jones [Thu, 22 Aug 2013 14:58:16 +0000 (15:58 +0100)]
qemu: Use oops=panic panic=-1

panic=-1 causes the kernel to reboot immediately without
waiting.

oops=panic turns kernel OOPS into a panic.

11 years agoqemu: Pass -machine accel=kvm:tcg option on qemu command line.
Richard W.M. Jones [Thu, 22 Aug 2013 14:41:54 +0000 (15:41 +0100)]
qemu: Pass -machine accel=kvm:tcg option on qemu command line.

This makes qemu try to use KVM, and fall back cleanly to TCG if
hardware accelerated virt is not available.

11 years agoinit: Try to call reboot(2) to reboot the system from the initramfs.
Richard W.M. Jones [Thu, 22 Aug 2013 14:40:57 +0000 (15:40 +0100)]
init: Try to call reboot(2) to reboot the system from the initramfs.

For some reason, panic=1 is broken on kernel 3.11.  Calling reboot is
more reliable.

Note that qemu won't actually reboot the VM, because we are passing
-no-reboot on the command line, so the VM should exit instead.

11 years agoRemove spec file, since this package has been added to Fedora.
Richard W.M. Jones [Thu, 22 Aug 2013 14:44:39 +0000 (15:44 +0100)]
Remove spec file, since this package has been added to Fedora.

11 years agoVersion 1.1.3. v1.1.3
Richard W.M. Jones [Thu, 22 Aug 2013 13:04:04 +0000 (14:04 +0100)]
Version 1.1.3.

11 years agobuild: Remove *~ files when cleaning.
Richard W.M. Jones [Thu, 22 Aug 2013 13:03:35 +0000 (14:03 +0100)]
build: Remove *~ files when cleaning.

11 years agospec: Introduce a -nodeps subpackage.
Richard W.M. Jones [Tue, 20 Aug 2013 20:32:29 +0000 (21:32 +0100)]
spec: Introduce a -nodeps subpackage.

This allows users to install qemu-sanity-check with ordinary
dependencies, but the special qemu and kernel packages to
BuildRequires: qemu-sanity-check-nodeps so that they don't get a
circular dependency on qemu/kernel.

11 years agoNew upstream version 1.1.2. v1.1.2
Richard W.M. Jones [Tue, 20 Aug 2013 19:08:23 +0000 (20:08 +0100)]
New upstream version 1.1.2.

11 years agospec: Set the qemu-list to a suitable value for recent Fedora.
Richard W.M. Jones [Tue, 20 Aug 2013 19:08:16 +0000 (20:08 +0100)]
spec: Set the qemu-list to a suitable value for recent Fedora.

11 years agospec: x86-64 -> x86_64
Richard W.M. Jones [Tue, 20 Aug 2013 19:07:36 +0000 (20:07 +0100)]
spec: x86-64 -> x86_64

11 years agoconfigure: Allow the default qemu list to be overridden by the packager.
Richard W.M. Jones [Tue, 20 Aug 2013 19:04:06 +0000 (20:04 +0100)]
configure: Allow the default qemu list to be overridden by the packager.

11 years agospec: BR qemu & kernel so the 'make check' rule can run.
Richard W.M. Jones [Tue, 20 Aug 2013 18:34:37 +0000 (19:34 +0100)]
spec: BR qemu & kernel so the 'make check' rule can run.

Also:

- Only run the tests on x86, because ARM isn't likely to work.

- If make check fails, make sure test-suite.log is printed out.

11 years agoCorrect default path to initrd after installation. v1.1.1
Richard W.M. Jones [Tue, 20 Aug 2013 18:05:19 +0000 (19:05 +0100)]
Correct default path to initrd after installation.

11 years agoFix FSF addresses.
Richard W.M. Jones [Tue, 20 Aug 2013 18:02:19 +0000 (19:02 +0100)]
Fix FSF addresses.

11 years agoAdd maintainer-tag rule for tagging HEAD with current version.
Richard W.M. Jones [Tue, 20 Aug 2013 17:44:09 +0000 (18:44 +0100)]
Add maintainer-tag rule for tagging HEAD with current version.

11 years agoFix EXTRA_DIST.
Richard W.M. Jones [Tue, 20 Aug 2013 17:43:07 +0000 (18:43 +0100)]
Fix EXTRA_DIST.

11 years agoAdd an RPM spec file.
Richard W.M. Jones [Tue, 20 Aug 2013 17:37:24 +0000 (18:37 +0100)]
Add an RPM spec file.

This is a temporary measure until this package can be
added to Fedora.

11 years agoAdd license file (GPLv2+).
Richard W.M. Jones [Tue, 20 Aug 2013 17:39:24 +0000 (18:39 +0100)]
Add license file (GPLv2+).

11 years agoImplement timeout, and add several tests.
Richard W.M. Jones [Tue, 20 Aug 2013 16:02:20 +0000 (17:02 +0100)]
Implement timeout, and add several tests.

11 years agodocs: Add a note about timeout bug.
Richard W.M. Jones [Tue, 20 Aug 2013 15:35:27 +0000 (16:35 +0100)]
docs: Add a note about timeout bug.

11 years agoInitial version of qemu-sanity-check.
Richard W.M. Jones [Tue, 20 Aug 2013 12:59:59 +0000 (13:59 +0100)]
Initial version of qemu-sanity-check.

11 years agoqemu-sanity-check initial commit.
Richard W.M. Jones [Tue, 20 Aug 2013 12:59:41 +0000 (13:59 +0100)]
qemu-sanity-check initial commit.