Help Center/ Migration Center/ MgC Agent Usage Guide/ FAQs/ What Can I Do If Installing the MgC Agent on a Linux Server Fails Due to Insufficient Entropy?
Updated on 2025-07-18 GMT+08:00

What Can I Do If Installing the MgC Agent on a Linux Server Fails Due to Insufficient Entropy?

Symptom

When you tried to install the MgC Agent on a Linux server, a message was displayed indicating that the entropy was insufficient and rng-tools needed to be installed.

Possible Causes

The MgC Agent installation requires the server's entropy level to be greater than 1,000. If the entropy is insufficient, the installation will fail.

Solutions

You can increase the server's entropy by installing either rng-tools or Haveged.

  1. Check whether rng-tools is installed on the Linux server.

    rpm -qa | grep rng-tools

  2. If no information related to rng-tools is displayed, it means the package is not installed. Run the following command to install rng-tools:

    yum -y install rng-tools

  1. Install Haveged on the Linux server for installing the MgC Agent.

    sudo yum install haveged

  2. Wait until the installation is complete and then start Haveged.

    sudo systemctl start haveged

  3. Enable Haveged to automatically start at system boot.

    sudo systemctl enable haveged