vmz run should run with initrd not set #18

Open
opened 2026-05-21 21:19:56 +00:00 by rc · 3 comments
Owner
rc@bearbook ~/g/vmz (main)> ./zig-out/bin/vmz run --kernel /tmp/vmlinux-virt
vmz run boots directly from local kernel and initrd files.

usage:
  vmz run [options]

options:
  --kernel <path>           path to the kernel image
  --initrd <path>           path to the initrd image
  --cmdline <text>          kernel command line
  --memory-mib <mib>        memory size in MiB
  --cpu-count <count>       number of virtual CPUs
  --enable-nat              enable NAT networking
  --disable-nat             disable NAT networking
  --raw-terminal            enable raw terminal mode
  --no-raw-terminal         disable raw terminal mode
  --quit-key <byte>         terminal escape key, decimal or 0x-prefixed
  -h, --help                show this help text
vmz: error: InvalidArguments
```sh rc@bearbook ~/g/vmz (main)> ./zig-out/bin/vmz run --kernel /tmp/vmlinux-virt vmz run boots directly from local kernel and initrd files. usage: vmz run [options] options: --kernel <path> path to the kernel image --initrd <path> path to the initrd image --cmdline <text> kernel command line --memory-mib <mib> memory size in MiB --cpu-count <count> number of virtual CPUs --enable-nat enable NAT networking --disable-nat disable NAT networking --raw-terminal enable raw terminal mode --no-raw-terminal disable raw terminal mode --quit-key <byte> terminal escape key, decimal or 0x-prefixed -h, --help show this help text vmz: error: InvalidArguments ````
Author
Owner
qemu-system-aarch64 \
  -M virt \
  -cpu max \
  -kernel vmlinuz-virt \
  -append "quiet console=ttyAMA0 " \
  -serial mon:stdio \
   -display none
[    0.560170] List of all partitions:
[    0.560271] No filesystem could mount root, tried: 
[    0.560294] 
[    0.560412] Kernel panic - not syncing: VFS: Unable to mount root fs on "" or unknown-block(0,0)
[    0.561542] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.18.22-0-virt #1-Alpine PREEMPT(none) 
[    0.561784] Hardware name: linux,dummy-virt (DT)
[    0.561969] Call trace:
[    0.562137]  show_stack+0x28/0xbc (C)
[    0.562415]  dump_stack_lvl+0x60/0x94
[    0.562499]  dump_stack+0x18/0x30
[    0.562571]  vpanic+0xf8/0x2e4
[    0.562637]  trace_suspend_resume+0x0/0xcc
[    0.562720]  mount_root_generic+0x3b0/0x3f0
[    0.562819]  mount_root+0x3d0/0x428
[    0.562891]  prepare_namespace+0x4c8/0x570
[    0.562973]  kernel_init_freeable+0x408/0x464
[    0.563059]  kernel_init+0x20/0x160
[    0.563146]  ret_from_fork+0x10/0x20
[    0.563480] Kernel Offset: disabled
[    0.563566] CPU features: 0x000000,0001a700,53fea7c0,9d7e7f3f
[    0.563763] Memory Limit: none
[    0.564093] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on "" or unknown-block(0,0) ]---
```sh qemu-system-aarch64 \ -M virt \ -cpu max \ -kernel vmlinuz-virt \ -append "quiet console=ttyAMA0 " \ -serial mon:stdio \ -display none [ 0.560170] List of all partitions: [ 0.560271] No filesystem could mount root, tried: [ 0.560294] [ 0.560412] Kernel panic - not syncing: VFS: Unable to mount root fs on "" or unknown-block(0,0) [ 0.561542] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.18.22-0-virt #1-Alpine PREEMPT(none) [ 0.561784] Hardware name: linux,dummy-virt (DT) [ 0.561969] Call trace: [ 0.562137] show_stack+0x28/0xbc (C) [ 0.562415] dump_stack_lvl+0x60/0x94 [ 0.562499] dump_stack+0x18/0x30 [ 0.562571] vpanic+0xf8/0x2e4 [ 0.562637] trace_suspend_resume+0x0/0xcc [ 0.562720] mount_root_generic+0x3b0/0x3f0 [ 0.562819] mount_root+0x3d0/0x428 [ 0.562891] prepare_namespace+0x4c8/0x570 [ 0.562973] kernel_init_freeable+0x408/0x464 [ 0.563059] kernel_init+0x20/0x160 [ 0.563146] ret_from_fork+0x10/0x20 [ 0.563480] Kernel Offset: disabled [ 0.563566] CPU features: 0x000000,0001a700,53fea7c0,9d7e7f3f [ 0.563763] Memory Limit: none [ 0.564093] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on "" or unknown-block(0,0) ]--- ```
Author
Owner

use nvmz to verify whether Virtualization.framework allows for this

use `nvmz` to verify whether `Virtualization.framework` allows for this
Author
Owner

#40

https://git.rcast.dev/rc/vmz/pulls/40
Sign in to join this conversation.
No labels
highprio
lowprio
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rc/vmz#18
No description provided.