Tracy_Baker
Starfighter Starfighter
Starfighter
  • 312 Views

Re: RHA Labs as VMs?

OK...so I will ask this about the installation we've been discussing.

On workstation, what is the rngd (RNG entropy gatherer daemon) used for and why is it consistently chewing up ~43-49% of the processor time?

utility, servera, and serverb are running it, too (but not bastion and classroom).

Not surprisingly, workstation (for example) runs a lot better without it. Question: can this be (safely) shut down and masked?

{UPDATE} The environment has now been up for almost 3 hours and the rngd service is still running and taking up even more CPU time: ~58 - 70

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Reply
Loading...
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 246 Views

Re: RHA Labs as VMs?

More information about the rngd daemon...

  • I've also found it on classroom and bastion, also taking up a lot of CPU time
  • I've checked my older 8.0 RH124/RH134 installations (the ones originally done by @LeeT) and, although the rmgd is running, it only takes up .1% CPU time almost immediately.
  • My RHEL 8.3 developer (non-lab) installation also has rngd, using .1 CPU time almost immediately.
  • I've found that, when you first start up the entire environment, the rngd daemon starts with a low-ish CPU time (~15%) and increases over time.
  • If the rngd daemon is then stopped, then started, (or restarted) it initially takes up a lot of CPU time (I saw as high as 167%), then decreases to .1 over time (instead of increasing like it did before).

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Reply
Loading...
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 229 Views

Re: RHA Labs as VMs?

A couple of more notes:

    • I've found that, if VMware to suspends a 8.2 RH124 / RH134 foundation0 virtual machine, the internal networking will no longer work once resumed. The VMs, like workstation, can no longer communicate to classroom. The 8.0 versions did not do this -- and neither does RH294 (which is still running 8.0). Maybe an issue with 8.2? I have investigated this too much, yet.
    • My lab tech is working on getting this running under Ubuntu and KVM. So far we've seen that the installation works, foundation0 boots up, but the VMs under foundation0 do not (the EDD thing). He is still in the early stages of playing with this.

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Reply
Loading...
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 190 Views

Re: RHA Labs as VMs?

OK, more notes, especially for @ralii:

Due to an unfortunate set of circumstances, I ended up deleting an RH134 environment that was working under VMware (for those who are unaware, there are issues using the Windows Subsystem for Linux 2 if you are also using VMware Workstation).

https://tcpip.me/2020/11/14/vmware-workstation-nested-virtualization-and-wsl2-disaster/

Anway. I've been trying to get my RH134 environment reinstalled, and I'm running into the same problem as before... rht-f0finish is trying the resolve bastion*.example.com, as seen in a later screen shot.

So far, it seems like a dice roll where you have a 1-in-6 (or worse) chance of getting it to install "properly" -- without it having it try and resolve a bunch of bastion*.example.com FQDNs.

Now, what makes this odd is:

standalone rh134 was used...1.JPG

the system confirms that it is in standalone mode...2.JPG

yet, here it is trying to resolve bastion*.example.com3.JPG

I've tried this a few times this morning, each time starting fresh. Some notes:

  1. Most importantly, it does not happen all the time! While writing this message, I restarted the installation again from scratch and it installed correctly; it did not try to resolve bastion*.example.com. What might be the cause of this? One thing that I did not do this time that I did do the other times was: In the system's setting for Power, I did not turn off Bluetooth while the rht-f0finish was running. (I was mostly going into those setting to set Black Screen to Never to keep the curtain from falling. The Bluetooth option is on the same screen.)
  2. At the VMware level, only one NIC has been configured, connected to VMnet3
  3. standalone rh124 has worked each time I've tried it -- it hasn't tried to resolve bastion*.example.com (I've been installing RH124 and RH134 into two different VMs at the VMware level).
  4. rht-setmaxstations 1 has no impact on this, it still tries to go beyond bastion1.example.com

other notes:

  1. We have been successful in getting RH124/134/294 it running under Ubuntu / KVM.
  2. The issue with the rgnd daemon does not seem to be problem when installed in KVM (we aren't 100% certain yet). Under VMware, the rgnd daemon seems to enter a "runaway" state where it continues to use more and more CPU time over time. This condition has been observed in bastion, workstation, utility, servera, and serverb. Simply restarting the daemon (systemctl restart rngd) solves the problem. To that end, we have written a start script that incorporates rht-vmctl start *, checks to see that the VM is responding, and then restarts the daemon. My environment takes about four minutes and thirty seconds to completly spin up and settle down. At that time, it is perfectly usable.
Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Reply
Loading...
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 189 Views

Re: RHA Labs as VMs?

And, for those who are curious, the script I'm using (I'm always fully aware that there are probably better was to write scripts).

I create it as /home/kiosk/bin/start and make it executable. Then, when opening a terminal on foundation0, just type start

startup_script.JPG

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.