Question: how to transfer files to virtualbox vm?
Answer: Install Guest Additions on the Guest machine. Start the Virtuabox Guest Machine (OS). From Oracle's VM VirtualBox main menu, select Devices > Install Guest Additions * ... 
Setup File Sharing on VirtualBox Guest Machine. From VirtualBox menu click Devices and choose Shared Folders -> Shared Folder Settings.