Description of problem:
Trying to run more than 1 VM with /dev/hwrng source failed with vdsm.log ERROR:
- libvirtError: Requested operation is not valid: PCI device 0000:02:00.0 is in use by driver QEMU, domain 1_VFIO_f23_Intel
And qemu log ERRORL
ERROR:backends/rng-random.c:47:entropy_available: assertion failed: (len != -1)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Browse webadmin -> cluster tab -> edit cluster: Verify compatibility version is 4.1. check /dev/hwrng source checkbox.
2. Run VM with /dev/hwrng source enabled.
3. Try to run another VM with /dev/hwrng source enabled.
The second Vm is not going up.
More than one VM should be able to run with /dev/hwrng source.
qemu log attached (2017-02-09 15:54:35.886+0000)
and vdsm.log attached (2017-02-12 15:54:54,232)
Created attachment 1249558 [details]
Created attachment 1249559 [details]
Created attachment 1249560 [details]
Closing as not a bug. although it looks in the logs like it's related to hwrng device, the issue was with same VFIO device attached to both VMs.