kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch18/packer
2024-02-20 17:15:27 +08:00
..
windows 新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件 2024-02-20 17:15:27 +08:00
PrepareNode.ps1 新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件 2024-02-20 17:15:27 +08:00
README.md 新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件 2024-02-20 17:15:27 +08:00

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