I am trying to change the size of an attached disk in my vagrantfile using the vmware vagrant provider.
In parallels this is done like this
config.vm.provider "parallels" do |prl|
prl.customize ["set", :id, "--device-set=hdd0", "--size=150G", "--no-fs-resize" ]
end
In virtualbox it is done like this:
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyhd", "<disk id>", "--resize", "<size in megabytes>"]
end
There doesn't appear to be any official documentation covering how to do this using the vmx functionality of the vagrant vmware provider.
How can I add a hard drive to a vagrant box using the vmware_workstation provider?
bump
@jamesla - you will get a better/quicker answer on the mailing list. Please direct your question to there, as more people will be able to answer you. Thanks!
@briancain Hi Brian probably a stupid question but which mailing list are you talking about?
@jamesla - not a problem. It is located here: https://groups.google.com/forum/#!forum/vagrant-up
@jamesla - did you ever figure this out?
@house9 Nope
In my case the vagrant-disksize plugin do the job for me ;-)
config.disksize.size = $vm_disksize
That works on virtualbox and vmware workstation
Native support will be available in an upcoming release based on the generic disk configuration interface (#11165).
In my case the vagrant-disksize plugin do the job for me ;-)
config.disksize.size = $vm_disksizeThat works on virtualbox and vmware workstation
After installing that plugin, I was unable to use vagrant because apparently the plugin requires virtualbox be installed:
Bringing machine 'default' up with 'vmware_desktop' provider...
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses theVBoxManagebinary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
VBoxManagebinary and add it to the PATH environmental variable.
MacOS Catalina (10.15.4) / VMWare Fusion 11.5.3 Pro / Vagrant 2.2.7
Is there an ETA on when this will be supported? Specifically the ability to add another disk.
Most helpful comment
Native support will be available in an upcoming release based on the generic disk configuration interface (#11165).