Question: how to transfer files from ubuntu to virtualbox?
Answer: Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share. Boot the Guest operating system in VirtualBox. Select Devices -> Shared Folders... Choose the 'Add' button. Select '/home/<user>/share' for Folder Path. Select 'share' for Folder Name.