diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-16 12:52:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-16 12:52:04 -0300 |
commit | 515f71c62b767a543f0ab597be76b08203b91e6b (patch) | |
tree | fe5b1f6286a41184b5908f3171f23b9252a8b9d7 | |
parent | 44d63e4998939079c4a1f0fecf352177c16ffcd6 (diff) | |
download | kvmx-515f71c62b767a543f0ab597be76b08203b91e6b.tar.gz kvmx-515f71c62b767a543f0ab597be76b08203b91e6b.tar.bz2 |
Adds virtio_rng config
-rwxr-xr-x | kvmx | 8 | ||||
-rw-r--r-- | kvmxfile | 4 |
2 files changed, 12 insertions, 0 deletions
@@ -530,6 +530,12 @@ function kvmx_up { image_opts="-drive file=$image,if=$drive_interface" fi + if [ ! -z "$virtio_rng" ]; then + rng_opts="-device virtio-rng-pci,$virtio_rng" + else + rng_opts="-device virtio-rng-pci,max-bytes=128,period=1000" + fi + # USB redirect support # See https://people.freedesktop.org/~teuf/spice-doc/html/ch02s06.html #usb_opts="-device ich9-usb-ehci1,id=usb" @@ -557,6 +563,7 @@ function kvmx_up { # $cdrom_opts \ # $boot_opts \ # $net_opts \ + # $rng_opts \ # $qemu_opts &> $LOGFILE < /dev/null & # Run virtual machine, screen approach @@ -573,6 +580,7 @@ function kvmx_up { $cdrom_opts \ $boot_opts \ $net_opts \ + $rng_opts \ -pidfile $PIDFILE \ -D $LOGFILE \ $qemu_opts @@ -214,3 +214,7 @@ bootloader="grub" # Whether to be managed by kvmx-supervise #supervise_manage="1" + +# VirtIO RNG parameters +# See https://wiki.qemu.org/Features/VirtIORNG +#virtio_rng="max-bytes=128,period=1000" |