making a disk in MVWare provider???

29 views
Skip to first unread message

Steve Langer

unread,
Aug 7, 2020, 4:09:19 PM8/7/20
to Vagrant
n Virtualbox provider this worked fine to make a disk
file_to_disk = './data.vmdk'
config.vm.provider :virtualbox do | vb |
unless File.exist?(file_to_disk)
  vb.customize ['createhd', '--filename', file_to_disk, '--size', 70 * 1024]
  end
    vb.customize ['storageattach', :id, '--storagectl', 'IDE', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end



In VMWare provider, the below throws "Cannot use customize". How do I make a disk?
  file_to_disk = './data.vmdk'
config.vm.provider "vmware_desktop" do |vb|
unless File.exist?(file_to_disk)
  vb.customize ['createhd', '--filename', file_to_disk, '--size', 70 * 1024]
end
   vb.customize ['storageattach', :id, '--storagectl', 'IDE', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
end
Reply all
Reply to author
Forward
0 new messages