It creates virtualhosts in Apache2 and sets up the directory for it in the correct place.
Its nothing to do with virtualbox from what I can see by reading the script.
I'm going to test this on...