From 2332d8d2573f443e6d6760f4763967bf7efbe507 Mon Sep 17 00:00:00 2001 From: Arjun Date: Tue, 5 Nov 2024 14:01:20 +0530 Subject: [PATCH] Update linux-misc-1.md qemu-system-x86_64: -m 8GB: Parameter 'size' expects a non-negative number below 2^64 Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta- and exabytes, respectively. --- Misc/linux-misc-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/linux-misc-1.md b/Misc/linux-misc-1.md index f3cd982..1cc1b57 100644 --- a/Misc/linux-misc-1.md +++ b/Misc/linux-misc-1.md @@ -270,7 +270,7 @@ $ find . -print0 | cpio --null -ov --format=newc | gzip -9 > ~/dev/initrd_x86_64 We can now run our kernel in the virtual machine. As I already wrote I prefer [qemu](https://en.wikipedia.org/wiki/QEMU) for this. We can run our kernel with the following command: ``` -$ qemu-system-x86_64 -snapshot -m 8GB -serial stdio -kernel ~/dev/linux/arch/x86_64/boot/bzImage -initrd ~/dev/initrd_x86_64.gz -append "root=/dev/sda1 ignore_loglevel" +$ qemu-system-x86_64 -snapshot -m 8G -serial stdio -kernel ~/dev/linux/arch/x86_64/boot/bzImage -initrd ~/dev/initrd_x86_64.gz -append "root=/dev/sda1 ignore_loglevel" ``` ![qemu](images/qemu.png)