Share VirtualBox host directories with the Linux guest OS, edit code in host, run it in the guest
In my previous blog post, I’ve shown you how to effectively use Docker for development teams. But containerization technologies like Docker, as much as they are cost effective in terms of memory and processor power, have a learning curve which while not too steep, do require a good chunk of time to be spent on learning. That’s why older virtualization techniques like VirtualBox are still being used to create environments for development and QA teams. And yes, they are quite effective!
This short tutorial will show you how to setup one of the little intricacies when developing in VirtualBox, namely being able to store and edit your code in the host machine, while running it inside the guest OS. Will be using CentOS 7 as a guest, while the host is not of any importance.
I will also show you how to make the VirtualBox guest accessible to the host via TCP.