To format a hard drive before you start using it in Windows, use the Disk Management utility; on a Mac, use Disk Utility.
This is what you should do if your VirtualBox VM boots only in the UEFI Interactive shell. We talk about Windows and Linux ...