Here, I won't delve into the minutiae of installing Linux as a guest on Oracle VirtualBox, the reason being that this installation is not directly related to Linux kernel development. There are many ways to set up a Linux VM; we really don't want to get into the details and the pros and cons of each of them here.
But if you are not familiar with this, don't worry. For your convenience, here are some excellent resources that will help you out:
-
A very clearly written tutorial entitled Install Linux Inside Windows Using VirtualBox by Abhishek Prakash (It's FOSS!, August 2019): https://itsfoss.com/install-linux-in-virtualbox/.
-
An alternate, similarly excellent resource is Install Ubuntu on Oracle VirtualBox: https://brb.nci.nih.gov/seqtools/installUbuntu.html.
Also, you can look up useful resources for installing a Linux guest on VirtualBox in the Further reading section at the end of this chapter.
While you install the Linux VM, keep the following things in mind.