diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-11 21:53:52 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-11 21:53:52 +0800 |
commit | f241fca1dfac30aef52a5c301e86da83afdc0056 (patch) | |
tree | b3fb444be977f079b2e2712305e0402d061c46fb | |
parent | ab125417922f686a193b8e5a16856a1b7ae70aeb (diff) | |
download | crupest-f241fca1dfac30aef52a5c301e86da83afdc0056.tar.gz crupest-f241fca1dfac30aef52a5c301e86da83afdc0056.tar.bz2 crupest-f241fca1dfac30aef52a5c301e86da83afdc0056.zip |
feat(www): update hurd qemu running doc.
-rw-r--r-- | www/content/notes/hurd.md | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/www/content/notes/hurd.md b/www/content/notes/hurd.md index 67b8df9..8b86bcd 100644 --- a/www/content/notes/hurd.md +++ b/www/content/notes/hurd.md @@ -95,14 +95,34 @@ upstream: <https://git.savannah.gnu.org/git/hurd/web.git> ## cheatsheet -Start qemu +### Use QEMU Virtual Machine -```sh -qemu-system-x86_64 -enable-kvm -m 4G \ - -net nic -net user,hostfwd=tcp::3222-:22 \ - -vga vmware -drive cache=writeback,file=[...] +For i386, use + +```bash-session +# qemu-system-x86_64 -enable-kvm -m 4G \ +> -net nic -net user,hostfwd=tcp::3222-:22 \ +> -vga vmware -drive cache=writeback,file=[...] +``` + +For x86_64, use + +```bash-session +# qemu-system-x86_64 -enable-kvm -m 8G -machine q35 \ +> -net nic -net user,hostfwd=tcp::3223-:22 \ +> -vga vmware -drive cache=writeback,file=[...] ``` +GRUB in the image seems to use hard-coded path of `/dev/*` block file as the +root partition in the kernel command line rather than GUID, so if the hard disk +bus is changed in QEMU and the path is changed accordingly, the system can't +boot on. + +QEMU cli arguments `-machine q35` enables AHCI and SATA, and is **required for +official x86_64 image to boot**. As for i386, I haven't checked now. + +### Inside Hurd + Configure/Setup network ```sh |