Always expose virtio-rng-pci

macOS Big Sur support virtio-rng-pci, so always expose it for simplicity as it doesn't matter if the guest OS doesn't support the device
This commit is contained in:
Martin Wimpress 2021-10-04 17:27:49 +01:00
parent 94f2375ff4
commit faeefcfb50
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -516,6 +516,8 @@ function vm_boot() {
-device virtio-serial-pci
-chardev spicevmc,id=vdagent0,name=vdagent
-device virtserialport,chardev=vdagent0,name=com.redhat.spice.0
-device virtio-rng-pci,rng=rng0
-object rng-random,id=rng0,filename=/dev/urandom
-monitor none
-serial mon:stdio)
@ -577,9 +579,7 @@ function vm_boot() {
-device ccid-card-passthru,chardev=ccid
-device virtio-serial-pci
-chardev spiceport,id=webdav0,name=org.spice-space.webdav.0
-device virtserialport,chardev=webdav0,name=org.spice-space.webdav.0
-device virtio-rng-pci,rng=rng0
-object rng-random,id=rng0,filename=/dev/urandom)
-device virtserialport,chardev=webdav0,name=org.spice-space.webdav.0)
fi
# https://wiki.qemu.org/Documentation/9psetup