add hyperv
This commit is contained in:
5
vm_test/Vagrantfile
vendored
5
vm_test/Vagrantfile
vendored
@@ -14,6 +14,11 @@ Vagrant.configure("2") do |config|
|
|||||||
vb.customize ["modifyvm", :id, "--vram", "256"]
|
vb.customize ["modifyvm", :id, "--vram", "256"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.vm.provider "hyperv" do |hv|
|
||||||
|
hv.memory = "8192"
|
||||||
|
hv.cpus = 6
|
||||||
|
end
|
||||||
|
|
||||||
# Provisioning script to install prerequisites
|
# Provisioning script to install prerequisites
|
||||||
config.vm.provision "shell", privileged: true, powershell_args: "-ExecutionPolicy Bypass", inline: <<-SHELL
|
config.vm.provision "shell", privileged: true, powershell_args: "-ExecutionPolicy Bypass", inline: <<-SHELL
|
||||||
$winget_ids = @(
|
$winget_ids = @(
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ choose:
|
|||||||
up:
|
up:
|
||||||
vagrant up
|
vagrant up
|
||||||
|
|
||||||
|
# Up the vagrant box
|
||||||
|
up-hyperv:
|
||||||
|
vagrant up --provider=hyperv
|
||||||
|
|
||||||
# Reload the vagrant box and provision it
|
# Reload the vagrant box and provision it
|
||||||
reload:
|
reload:
|
||||||
vagrant reload --provision
|
vagrant reload --provision
|
||||||
|
|||||||
Reference in New Issue
Block a user