summaryrefslogtreecommitdiff
path: root/debvm-run
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-12-21 20:29:55 +0100
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-12-21 21:24:37 +0100
commitaee1eb3d1c280543557dae62aee55c25d3ad0da1 (patch)
tree3d98818017fbe2b97ec2717ae81c3442629b16f2 /debvm-run
parente8c0a6df4a311b0ce82fdec6f5cbf2328b767808 (diff)
downloaddebvm-aee1eb3d1c280543557dae62aee55c25d3ad0da1.tar.gz
debvm-run: no need for true randomness -- use /dev/urandom to be faster
Diffstat (limited to 'debvm-run')
-rwxr-xr-xdebvm-run1
1 files changed, 1 insertions, 0 deletions
diff --git a/debvm-run b/debvm-run
index 7e81b79..7c2e6c3 100755
--- a/debvm-run
+++ b/debvm-run
@@ -87,6 +87,7 @@ set -- \
-smp "$(nproc)" \
-kernel "$KERNELTMP" \
-initrd "$INITRDTMP" \
+ -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \
-drive "media=disk,format=raw,discard=unmap,file=$IMAGE,if=virtio" \
-device "virtio-net-pci,netdev=net0" \
"$@"