Skip to content

Instantly share code, notes, and snippets.

@phips
Forked from jtopper/gist:8588263
Last active February 10, 2016 08:02
Show Gist options
  • Save phips/11115042 to your computer and use it in GitHub Desktop.
Save phips/11115042 to your computer and use it in GitHub Desktop.
host1.vm.provider :vmware_fusion do |vmw|
vdiskmanager = '/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager'
dir = "#{ENV['PWD']}/.vagrant/additional-disks"
unless File.directory?( dir )
Dir.mkdir dir
end
file_to_disk = "#{dir}/hd2.vmdk"
unless File.exists?( file_to_disk )
`#{vdiskmanager} -c -s 10GB -a lsilogic -t 0 #{file_to_disk}`
end
vmw.vmx['scsi0:1.filename'] = file_to_disk
vmw.vmx['scsi0:1.present'] = 'TRUE'
vmw.vmx['scsi0:1.redo'] = ''
end
@uchagani
Copy link

Can you set the drive letter in this way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment