A simple command-line tool to start NetBSD virtual machines using QEMU with sensible defaults.

Add RNG device support to QEMU startup; enhance randomness for virtual machines

+8
+4
src/subcommands/start.ts
··· 53 53 `file=${vm.drivePath},format=${vm.diskFormat},if=virtio`, 54 54 ], 55 55 ), 56 + "-object", 57 + "rng-random,filename=/dev/urandom,id=rng0", 58 + "-device", 59 + "virtio-rng-pci,rng=rng0", 56 60 ], 57 61 stdin: "inherit", 58 62 stdout: "inherit",
+4
src/utils.ts
··· 179 179 `file=${options.drive},format=${options.diskFormat},if=virtio`, 180 180 ], 181 181 ), 182 + "-object", 183 + "rng-random,filename=/dev/urandom,id=rng0", 184 + "-device", 185 + "virtio-rng-pci,rng=rng0", 182 186 ], 183 187 stdin: "inherit", 184 188 stdout: "inherit",