I have Vagrant + VirtualBox.
In my Vagrantfile I have
config.vm.provider "virtualbox" do |v|
v.customize [ "createhd", "--filename", "disk", "--size", 100000 ]
v.customize [ 'storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', "disk"]
end
When I fire up with vagrant up it looks for "disk" in
C:\HashiCorp\Vagrant\bin\disk
VBoxManage.exe: error: Could not find file for the medium 'C:\HashiCorp\Vagrant\bin\disk' (VERR_FILE_NOT_FOUND)
I would like the disk to live alongside the virtual machine's first disk in
C:\Users\jma47\VirtualBox VMs\bin_build_1389371691
How can I do this in Vagrantfile?
Best Answer
This can be done if you define a name for virtual machine: