Setup : Ubuntu Server on Virtual Machine with 6 cores and 3GB of RAM.
when I am trying to generate a asymmetric key pair via GPG like this
asymmetric key pair
GPG
Run the following:
find / > /dev/null
That helped me quickly to complete my key generation.
Try installing haveged, this is a daemon, which helps the system with generating random numbers for your key.
haveged
sudo aptitude install haveged