From 352bdc1a954c27538ecb543747e6465240f5b115 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sat, 22 Jun 2024 15:04:41 +0530 Subject: Add windows --- p_windows11/Vagrantfile | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'p_windows11/Vagrantfile') 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 -- cgit v1.2.3