aboutsummaryrefslogtreecommitdiff
path: root/p_windows11/Vagrantfile
diff options
context:
space:
mode:
Diffstat (limited to 'p_windows11/Vagrantfile')
-rw-r--r--p_windows11/Vagrantfile32
1 files changed, 17 insertions, 15 deletions
diff --git a/p_windows11/Vagrantfile b/p_windows11/Vagrantfile
index c566c3a..38e197c 100644
--- a/p_windows11/Vagrantfile
+++ b/p_windows11/Vagrantfile
@@ -33,19 +33,21 @@ Vagrant.configure('2') do |config|
libvirt.cpu_model = 'host-passthrough'
end
- # config.trigger.before :up do |t|
- # t.info = "Binding to VFIO"
- # t.run = {
- # path: '../scripts/bind-vfio.sh'
- # }
- # end
- #
- # [ :destroy, :halt ].each do |action|
- # config.trigger.after action do |t|
- # t.info = "Unbinding VFIO"
- # t.run = {
- # path: '../scripts/unbind-vfio.sh'
- # }
- # end
- # end
+ config.vm.provision 'shell', path: '../scripts/provision-win.bat'
+
+ config.trigger.before :up do |t|
+ t.info = "Binding to VFIO"
+ t.run = {
+ path: '../scripts/bind-vfio.sh'
+ }
+ end
+
+ [ :destroy, :halt ].each do |action|
+ config.trigger.after action do |t|
+ t.info = "Unbinding VFIO"
+ t.run = {
+ path: '../scripts/unbind-vfio.sh'
+ }
+ end
+ end
end