diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-02 10:38:58 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-02 10:38:58 +0530 | 
| commit | a0b3b76527f45a1253b2a521a1dac87a8922a20d (patch) | |
| tree | 0ddb7369e2ce5b2f6eb776841ee2f54f03c13cf8 /p_windows11/Vagrantfile | |
| parent | 7bc0a5ef1cdbaed57d5248cf6516ee412910d900 (diff) | |
update
Diffstat (limited to '')
| -rw-r--r-- | p_windows11/Vagrantfile | 40 | 
1 files changed, 40 insertions, 0 deletions
| diff --git a/p_windows11/Vagrantfile b/p_windows11/Vagrantfile new file mode 100644 index 0000000..f6d7235 --- /dev/null +++ b/p_windows11/Vagrantfile @@ -0,0 +1,40 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure('2') do |config| +  config.vm.box = 'valengus/windows11-22h2-x64' + +  config.vm.box_check_update = false + +  # config.vm.synced_folder './data', '/data' +  # config.vm.synced_folder '~/shared', '/shared', type: '9p', disabled: false, accessmode: 'mapped' +  config.vm.synced_folder '.', '/vagrant', type: '9p', accessmode: 'mapped' + +  config.vm.provider :libvirt do |libvirt| +    libvirt.cpus = 8 +    libvirt.cputopology sockets: '1', cores: '4', threads: '2' +    libvirt.memory = 32768 + +    # libvirt.pci bus: '0x01', slot: '0x00', function: '0x00' +    # libvirt.pci bus: '0x01', slot: '0x00', function: '0x01' + +    libvirt.machine_virtual_size = 60 +    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 +end | 
