Executing DrupalConsole commands on a project with DrupalVM using vagrant-exec plugin no need to create a site alias configuration or ssh into the VM. Project file is config/Vagrantfile.local
vagrant plugin install vagrant-exec
vagrant exec bin/drupal generate:module
if Vagrant.has_plugin?('vagrant-exec')
config.exec.commands '*', directory: '/var/www/drupal'
end