X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=qemu-sanity-check.pod.in;fp=qemu-sanity-check.pod.in;h=836fb1f643d768a82850cfc537cd66c66690127a;hb=aee03601ac923906391b438bc4040c4a4265112d;hp=0000000000000000000000000000000000000000;hpb=d3110e6318aa040e499479640ce33efe5ccc0f3e;p=qemu-sanity-check.git diff --git a/qemu-sanity-check.pod.in b/qemu-sanity-check.pod.in new file mode 100644 index 0000000..836fb1f --- /dev/null +++ b/qemu-sanity-check.pod.in @@ -0,0 +1,138 @@ +=encoding utf8 + +=head1 NAME + +qemu-sanity-check - run a simple sanity check on qemu and the Linux kernel + +=head1 SUMMARY + +qemu-sanity-check [options] + +=head1 DESCRIPTION + +B is a short shell script that test-boots a Linux +kernel under qemu, making sure it boots up to userspace. The idea is +to test the Linux kernel and/or qemu to make sure they are working. + +You can use the command on its own: + + qemu-sanity-check + +In this case, the script will look for a suitable qemu binary on the +C<$PATH> and the latest Linux kernel in C and try to boot that +kernel on that qemu. + +You can also specify a qemu binary or a Linux kernel (either or both +options can be omitted): + + qemu-sanity-check --qemu=/path/to/qemu --kernel=/path/to/vmlinuz + +=head2 KVM + +KVM (C or C) can be used in place of qemu. + +=head2 KERNEL DRIVERS + +No kernel modules or special drivers are required except as noted +below. The test uses an initramfs containing a static binary, so the +kernel is B required to locate block devices, use virtio, mount +filesystems, etc. + +The kernel B support only the following, compiled in (not as +modules): + +=over 4 + +=item * + +A serial port (usually: C) + +=item * + +Initrd/initramfs (C) + +=back + +=head1 OPTIONS + +=over 4 + +=item B<--help> + +Display short help message and exit. + +=item B<-i> INITRD + +=item B<--initrd>=INITRD + +Use the initramfs image named C instead of the default. + +=item B<-k> VMLINUZ + +=item B<--kernel>=VMLINUZ + +Use the kernel image C instead of searching for the latest +kernel installed in C. + +=item B<-q> QEMU + +=item B<--qemu>=QEMU + +Use the qemu (or KVM) binary C instead of searching C<$PATH> for +a suitable binary. + +=item B<-V> + +=item B<--version> + +Display version and exit. + +=back + +=head1 EXIT STATUS + +The exit status is 0 if the Linux kernel booted as far as userspace +under qemu; or if the I<--help> or I<--version> options were used. + +The exit status is 1 if the kernel boot failed under qemu. + +The exit status is 2 if the script itself failed (eg. incorrect +command line options were used, a suitable kernel could not be found). + +=head1 FILES + +=over 4 + +=item B<@libdir@/qemu-sanity-check/initrd> + +The default location for the small initramfs image that is used to +test that userspace has been reached. + +=back + +=head1 SEE ALSO + +L, +L + +=head1 AUTHORS + +Richard W.M. Jones + +=head1 COPYRIGHT + +(C) Copyright 2013 Red Hat Inc. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.