【发布时间】:2014-01-29 18:58:57
【问题描述】:
我有 Vagrant + VirtualBox。
在我的 Vagrantfile 中有
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
当我启动 vagrant up 时,它会在 C:\HashiCorp\Vagrant\bin\disk
VBoxManage.exe: error: Could not find file for the medium 'C:\HashiCorp\Vagrant\bin\disk' (VERR_FILE_NOT_FOUND)
我希望磁盘与虚拟机的第一个磁盘一起存在 C:\Users\jma47\VirtualBox VMs\bin_build_1389371691
如何在 Vagrantfile 中执行此操作?
【问题讨论】:
标签: virtualbox vagrant disk provider