aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-11 21:53:52 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-11 21:53:52 +0800
commitc94e1f2548e5f8cc28da413554e524d4cf9543f1 (patch)
tree6ee06ffdedc15890eb1c4451b05fe435999e67d6
parenta95b471701af4a978083799c84e2cdf5b590c2b8 (diff)
downloadcrupest-c94e1f2548e5f8cc28da413554e524d4cf9543f1.tar.gz
crupest-c94e1f2548e5f8cc28da413554e524d4cf9543f1.tar.bz2
crupest-c94e1f2548e5f8cc28da413554e524d4cf9543f1.zip
feat(www): update hurd qemu running doc.
-rw-r--r--www/content/notes/hurd.md30
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