First off - thanks to DrupalVM's author Jeff Geerling for creating DrupalVM:
The configuration below turns off the shared web folder so that the file structure is maintained within the guest filesystem. Samba is then setup to allow access to the Linux guest to help improve integration with Windows tools such as editors etc. In the example below Drupal has to be installed manually (or with your own scripts) but you can use the usual methods to automate Drupal installation (See DrupalVM documentation).
- Copy the config.yml into your drupalvm folder
- Create a folder 'scripts' in the root of the drupalvm folder