Follow this tutorial to install ubuntu in virtualbox but why you would do that?, In many cases, it is more convenient to configure a virtual machine and install the necessary programs on it than to do it on a real computer.

First, when installing on a “clean” virtual machine, there is a greater chance that everything will pass without errors, since There will be no conflicts with already installed programs.
[Read more…] about How to install ubuntu in virtualbox