Creating a VM
First verify that the virtualization option is enabled. You can do that by going to the BIOS of your machine.
Then download the Oracle Virtual Box software for your desired OS from Oracle Virtual Box and install the software.
Next download the ISO image of the VM Operating System. For this, we used Ubuntu 22.04.5 lts.
After that, install the ISO using Oracle Virtual Box by clicking "Add"New" button and selecting the downloaded ISO file.
Here you can select the Memory and storage sizes.processors. choose Memory as 4GB and storage as 20GB.4GB. Then install and create the virtual machine.
For further information refer this video: https://www.youtube.com/watch?v=nvdnQX9UkMY