Let's face it M1 mac's are the best laptop out there. With a perfect balance of power and batter life. For me the only thing holding it back was its OS. Mac OS is not as developer friendly as I expected. As i found out after using my M1 mac for a few months, some things are better suited for the OS it was designed to be run on.
This was not a problem in the intel mac era, as we could easily load a virtualisation software and run which ever OS we want, but with the new ARM chips its a different story. The only software that I could find which was free and had all the features was UTM.
UTM is an amazing piece of software and it does its job perfectly (mostly), I did face some challenges installing Ubuntu, but to be fair, it was more related to the Ubuntu kernal than UTM.
You have to download the Ubuntu server version, don't worry we can easily install GUI after installing the barebone OS. Download Ubuntu.