I created a VM (gen 2). I installed Ubuntu Server 20.04. It is connected to my physical network adapter via External Switch. Then I connect to it with WinSCP to download a 2GB ISO file and it takes ages. I noticed the same behavior when downloading via WinSCP from my Azure server.
The download starts fast, I get like 50MB/s, then it drops to like 100kB/s. Sometimes during the proces I get a higher speed for a while, then it drops again.
Is it WinSCP bug, or what? It's not even a real network connection, it's a transfer between VM and the host, it should be super fast. I can download the ISO over the Internet with a torrent client in 1 minute. The same ISO downloaded from my VM takes over 20 minutes to download.
The VM has 8 cores and 4GB of RAM. My host has 16 cores and 16GB of RAM. I don't even see high resources usage during downloads. My host and VM don't do anything special during downloading the file.
Is there a faster way to transfer files between Ubuntu Server VMs and Windows hosts?
What am I doing wrong?