From ab994d3859192be2c26b642ae5b3b75043a859a4 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 28 Sep 2021 15:47:32 +0100 Subject: [PATCH] Only expose virtio-rng-pci to Linux and Windows Not supported on macOS --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index e73b72c..81b47df 100755 --- a/quickemu +++ b/quickemu @@ -476,8 +476,6 @@ function vm_boot() { -audiodev pa,id=pa,out.stream-name=${LAUNCHER}-${VMNAME},in.stream-name=${LAUNCHER}-${VMNAME} -device intel-hda -device hda-duplex,audiodev=pa,mixer=off -rtc base=localtime,clock=host - -object rng-random,id=rng0,filename=/dev/urandom - -device virtio-rng-pci,rng=rng0 -spice ${SPICE} -device virtio-serial-pci -chardev spicevmc,id=vdagent0,name=vdagent @@ -545,6 +543,8 @@ function vm_boot() { -device usb-ccid -chardev spicevmc,id=ccid,name=smartcard -device ccid-card-passthru,chardev=ccid) + -device virtio-rng-pci,rng=rng0 + -object rng-random,id=rng0,filename=/dev/urandom) fi if [ -n "${USB_PASSTHROUGH}" ]; then