-
-
Save phips/11115042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you set the drive letter in this way?