diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-22 15:04:41 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-22 15:04:41 +0530 |
commit | 352bdc1a954c27538ecb543747e6465240f5b115 (patch) | |
tree | 1c424997c5708a3db9cd7465539cd3cb32692c9a | |
parent | b00c92a98e1b6282dd67550a55868fccb3bfe780 (diff) |
Add windows
-rw-r--r-- | debian/Vagrantfile | 2 | ||||
-rw-r--r-- | p_windows11/Vagrantfile | 32 | ||||
-rw-r--r-- | scripts/provision-win.bat | 22 |
3 files changed, 40 insertions, 16 deletions
diff --git a/debian/Vagrantfile b/debian/Vagrantfile index 12fcd0f..b2d5cba 100644 --- a/debian/Vagrantfile +++ b/debian/Vagrantfile @@ -16,7 +16,7 @@ Vagrant.configure('2') do |config| config.vm.provider :libvirt do |libvirt| libvirt.cpus = 14 libvirt.cputopology :sockets => '1', :cores => '7', :threads => '2' - libvirt.memory = 57344 + libvirt.memory = 32768 libvirt.machine_virtual_size = 120 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 diff --git a/scripts/provision-win.bat b/scripts/provision-win.bat new file mode 100644 index 0000000..2f8e763 --- /dev/null +++ b/scripts/provision-win.bat @@ -0,0 +1,22 @@ +cd C:\Users\vagrant\Downloads + +curl https://us.download.nvidia.com/Windows/555.99/555.99-notebook-win10-win11-64bit-international-dch-whql.exe -L -o nvidia.exe +curl https://github.com/itsmikethetech/Virtual-Display-Driver/releases/download/23.10.20.2/VDD.23.10.20.2.zip -L -o VDD.zip +curl https://looking-glass.io/artifact/B7-rc1/host -L -o LG.zip + +tar xf LG.zip +tar xf VDD.zip +cd IddSampleDriver + +mkdir C:\IddSampleDriver + +copy option.txt C:\IddSampleDriver +@echo | installCert.bat + +copy iddsampledriver.inf C:\Users\vagrant\Downloads +copy iddsampledriver.dll C:\Users\vagrant\Downloads +copy iddsampledriver.cat C:\Users\vagrant\Downloads + +cd .. +@echo Y | del VDD.zip IddSampleDriver +rmdir IddSampleDriver |