If you need to share files between the host and the guest, you can use shared folders.
Please refer to [https://help.ubuntu.com/community/VirtualBox/SharedFolders VirtualBox/SharedFolders] for a detailed guide on how to setup a shared folder in Ubuntu.