This could be a problem cause by your Windows OS being a bottleneck and limit your speed. After some talks and discussion with a colleague, this is the solution that worked for my case!
- Go to your Start Menu.
- Go to 'View Network Connections'.
- Right-click on your Wi-Fi adapter.
- Select the 'Properties' menu option.
- Find the 'Internet Protocol Version 4' and select the 'Properties' menu option. (keep the IPv4 option checked)
- Click on the 'Advanced' button.
- Uncheck 'Automatic Metric' and enter 1 in the 'Interface metric' text box.
- Close everything.
- Restart your development machine
- Go to your Hyper-V Manager (or any other application you're using for virtual machine management) application and shut down your local VM.
- Start it over again.
- SSH into your VM from your favourite CLI.
- Execute 'sudo apt-get update'
- Execute 'sudo apt speedtest-cli install'
- Execute 'speedtest-cli'
The command should be 'sudo apt install speedtest-cli' instead of 'sudo apt speedtest-cli install'