diff --git a/Vagrantfile b/Vagrantfile index adf460f..0cedc72 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,6 +10,11 @@ $VM_VCPU = File.readlines('vmcpu').first.chomp.to_i $BOX = File.readlines('box').first.chomp +$PROVIDER = File.readlines('provider').first.chomp + +if $PROVIDER =~ /hyperv|virtualbox/ + ENV["VAGRANT_DEFAULT_PROVIDER"] = $PROVIDER +end # Will not work on Hyper-V #$VM_DISK_SIZE = File.readlines('disksize').first.chomp diff --git a/net b/net index dd66622..3ce4ea7 100644 --- a/net +++ b/net @@ -1 +1 @@ -172-20-20-net +VMs_OUT \ No newline at end of file diff --git a/provider b/provider new file mode 100644 index 0000000..32da35e --- /dev/null +++ b/provider @@ -0,0 +1 @@ +hyperv