From a33389d8f0ced20ced2ce0f6f05ff4f8faab74de Mon Sep 17 00:00:00 2001 From: Prasad Joshi Date: Tue, 26 Apr 2011 12:28:27 +0100 Subject: [PATCH] kvm tools: display appropriate error message when default kernel image could not be found This change was recommended by Ingo Molnar in his reply to mail 'Use the root partition of the host to boot the guest machine'. The patch informs user to explicitly run the 'kvm run --help' command, in case the kvm tool could not find a default kernel image to boot. prasad@prasad-kvm:~/KVM/linux-kvm/tools/kvm$ ./kvm run Fatal: could not find default kernel image in: ./bzImage ../../arch/x86/boot/bzImage /boot/vmlinuz-2.6.35-25-generic /boot/bzImage-2.6.35-25-generic Please see 'kvm run --help' for more options. Signed-off-by: Prasad Joshi Signed-off-by: Pekka Enberg --- kvm-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-run.c b/kvm-run.c index bb2b301..5753e70 100644 --- a/kvm-run.c +++ b/kvm-run.c @@ -176,7 +176,7 @@ static void kernel_usage_with_options(void) fprintf(stderr, "\t%s\n", kernel); k++; } - usage_with_options(run_usage, options); + fprintf(stderr, "\nPlease see 'kvm run --help' for more options.\n\n"); } static const char *find_kernel(void)