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
Try installing haveged, this is a daemon, which helps the system with generating random numbers for your key.
haveged
sudo aptitude install haveged