aboutsummaryrefslogtreecommitdiff
path: root/p_windows11/Vagrantfile
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-06-22 15:04:41 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-06-22 15:04:41 +0530
commit352bdc1a954c27538ecb543747e6465240f5b115 (patch)
tree1c424997c5708a3db9cd7465539cd3cb32692c9a /p_windows11/Vagrantfile
parentb00c92a98e1b6282dd67550a55868fccb3bfe780 (diff)
Add windows
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