Skip to content

Commit

Permalink
Merge pull request #30 from FranklinYu/fix/linked-clone
Browse files Browse the repository at this point in the history
(GH-33) Resolve HyperV deprecation warning for differencing vs linked clone
  • Loading branch information
gep13 authored Jul 31, 2019
2 parents 2be46f3 + 6581b2b commit a9af978
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ Vagrant.configure("2") do |config|
# The time in seconds to wait for the virtual machine to report an IP address
v.ip_address_timeout = 130
# Use differencing disk instead of cloning whole VHD
v.differencing_disk = true
if Vagrant::VERSION >= '2.1.2'
v.linked_clone = true
else
v.differencing_disk = true
end
v.vm_integration_services = {
guest_service_interface: true,
heartbeat: true,
Expand Down

0 comments on commit a9af978

Please sign in to comment.