How to download oracle VM on mac m1 and after that creating a new vm of centos / ubuntu.
Oracle VirtualBox does not work on Mac M1. Try VMware Fusion:
Fusion - Run Windows on Mac | VM for Mac | VMware
If your goal is to run multiple virtual machines on a Mac with Apple Silicon (eg. m1, m2, m3), then UTM is a good option (https://mac.getutm.app/). It is licensed under the Apache 2.0 license, so you can use the code for personal or commercial use.
If you simply want a terminal utility that give you quick access to a linux userland from a terminal, then Lima (GitHub - lima-vm/lima: Linux virtual machines, with a focus on running containers) may be what you’re after. Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2). Lima also uses the Apache 2.0 license, so is good for personal or commercial use.
I hope that helps!