Problem: The current error is very confusing since the default x86 machine memory size is small and it gives a sense that there is no way to fix for slightly larger images.
Solution: Add a remediation tip to the error message. Signed-off-by: Nir Lichtman <[email protected]> --- hw/i386/x86-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/i386/x86-common.c b/hw/i386/x86-common.c index 7512be6..4e6c098 100644 --- a/hw/i386/x86-common.c +++ b/hw/i386/x86-common.c @@ -874,8 +874,9 @@ void x86_load_linux(X86MachineState *x86ms, initrd_data = g_mapped_file_get_contents(mapped_file); initrd_size = g_mapped_file_get_length(mapped_file); if (initrd_size >= initrd_max) { - fprintf(stderr, "qemu: initrd is too large, cannot support." - "(max: %"PRIu32", need %"PRId64")\n", + fprintf(stderr, "qemu: initrd is too large, try increasing" + " the machine memory with -m." + " (max: %"PRIu32", need %"PRId64")\n", initrd_max, (uint64_t)initrd_size); exit(1); } -- 2.49.1
