I did a post on this previously but didn’t go into much detail. Check this linux-mag article for a detailed guide on virtual box’s command line.