Install Windows or Linux into VirtualBox
Have tried to create Ubuntu and Fedora VMs using Virtualbox...no success. With Ubuntu installation hangs on restart. With Fedora...critical error...
It takes some trial and effort to install Linux, even into virtual machine programs.
One has to carefully examine the operating system requirements, download the right version and configure the virtual machine wizard accordingly or with slightly better than the minimal requirements for RAM and drive space.
I haven't installed either, but have done so with other distros and it's try, try again sort of thing as your learning about the complexities of how computers operate and he requirements of each distro.
Some may need direct acess to hardware, which isn't available in virtual machine programs
I will give those a try, however it will be quite a few days before I can give a step by step instructions.
I'd suggest you instead try Linux Mint, it's the easiest of them all to install.
Do NOT direct install Linux onto a Mac, only into a virtual machine program.