This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
Scripts for provisioning base Vagrant boxes.
## Hyper-V
Build:
```
packer build -force -only=hyperv-iso -var "hyperv_switch=Default Switch" .\windows\windows-2019-core.json
```
Export:
```
vagrant box add --name kiamol-windows-2019 .\windows\windows-2019-core-hyperv.box
```
Publish:
```
vagrant cloud auth login
vagrant cloud provider create kiamol/windows-2019 hyperv 0.0.1
vagrant cloud provider upload kiamol/windows-2019 hyperv 0.0.1 windows-2019-core-hyperv.box
```
## VirtualBox
Build:
```
packer build -force -only=virtualbox-iso .\windows\windows-2019-core.json
```
Export:
```
vagrant box add --name kiamol-windows-2019 .\windows\windows-2019-core-hyperv.box
```
Publish:
```
vagrant cloud auth login
vagrant cloud provider create kiamol/windows-2019 hyperv 0.0.1
vagrant cloud provider upload kiamol/windows-2019 hyperv 0.0.1 windows-2019-core-hyperv.box
```
## Credits
Bento: https://github.com/chef/bento
Stefan Scherer: https://github.com/StefanScherer/packer-windows
Boxcutter: https://github.com/boxcutter/windows-ps