dm: add virtio-rnd device to command line

When FE virtio devices work in polling mode, sshd.service can't start
normally and blocks at generating random bytes. When reading from
the random source, getrandom() blocks caused by no random bytes.

Tracked-On: #3268
Signed-off-by: Gao Junhao <junhao.gao@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Gao Junhao 2019-06-11 06:45:29 +00:00 committed by wenlingz
parent 030e7683ad
commit efccdd22a0

View File

@ -101,6 +101,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
-s 6,virtio-hyper_dmabuf \
-s 3,virtio-blk,/home/clear/uos/uos.img \
-s 4,virtio-net,tap0 \
-s 7,virtio-rnd \
$logger_setting \
--mac_seed $mac_seed \
-k /usr/lib/kernel/default-iot-lts2018 \