Uploading code from Virtual Box Guest Os to Host Os

I'm not sure, but maybe this will help?

https://forums.virtualbox.org/viewtopic.php?f=6&t=26860

Especially the part "How to add an USB serial port"