A Vagrant plugin to attach a disk in VirtualBox or HyperV
vagrant plugin install vagrant-attachdiskSet the path you want for your disk in your Vagrantfile. For example
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/xenial64'
config.attachdisk.path = "/tmp/your-file.vdi"
endAt present only one disk can be added to the first controller.
The gem is available as open source under the terms of the MIT License.