Skip to content

Commit 2332d8d

Browse files
authored
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.
1 parent 0995b4b commit 2332d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Misc/linux-misc-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ $ find . -print0 | cpio --null -ov --format=newc | gzip -9 > ~/dev/initrd_x86_64
270270
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:
271271

272272
```
273-
$ 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"
273+
$ 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"
274274
```
275275

276276
![qemu](images/qemu.png)

0 commit comments

Comments
 (0)