You can create a bootable usb disk installed linux.
I created to 32gb and 64db for Q4OS (debian based) and Ubuntu 18.04. In Q4OS I installed lazarus 64 bits by fpcupdeluxe and worked
My installing tool was virtualbox :
I attached my usb disk and I create a small disk too but I installed to new 64gb.
It is easy.