How can I increase entropy in a Rhel 9.2 virtual machine running on Azure?

Latest response

Java applications like Solr are failing because of low entropy.

Started Apache Solr 9.
Java 17 detected. Enabled workaround for SOLR-16463
Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require
RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'.

I have tried installing rng-tools and haveged but the problem still persists. The output of cat /proc/sys/kernel/random/entropy_avail remains 256.

Below is the status of haveged service:

 Started Entropy Daemon based on the HAVEGE algorithm.
 haveged[14569]: haveged: command socket is listening at fd 3
 haveged[14569]: haveged: fills: 1, generated: 512 K bytes, RNDADDENTROPY: 256

and the status of rngd service:

 Started Hardware RNG Entropy Gatherer Daemon.
 rngd[14506]: Disabling 7: PKCS11 Entropy generator (pkcs11)
 rngd[14506]: Disabling 5: NIST Network Entropy Beacon (nist)
 rngd[14506]: Disabling 9: Qrypt quantum entropy beacon (qrypt)
 rngd[14506]: Initializing available sources
 rngd[14506]: [hwrng ]: Initialization Failed
 rngd[14506]: [rdrand]: Enabling RDSEED rng support
 rngd[14506]: [rdrand]: Initialized
 rngd[14506]: [jitter]: JITTER timeout set to 5 sec
 rngd[14506]: [jitter]: Initializing AES buffer

How can I increase entropy?

Responses