Experimental Vagrant boxes for testing https://github.com/kubernetes-sigs/sig-windows-dev-tools setup on Windows host using Virtual Box.
WARNING: The boxes have not been optimised for size, just some packages have been removed from Ubuntu boxes (e.g. build tools).
The avaialble custom twaeked versions of test boxes:
- mloskot/sig-windows-dev-tools-ubuntu-2004 based on roboxes/ubuntu2004
- mloskot/sig-windows-dev-tools-ubuntu-2204 based on roboxes/ubuntu2204
- mloskot/sig-windows-dev-tools-windows-2019 based on sig-windows-dev-tools/boxes/windows-2019
- Vanilla OS, without any Kubernetes or containers tools mloskot/sig-windows-dev-tools-windows-2022 based on valengus/windows-2022-standard-core
- VirtualBox Guest Additions 7.0.8 (including workaround for libXt.so missing on Ubuntu 22.04)
- Set explicit VirtualBox OS type
- Disabled VirtualBox GUI features
- Disabled VirtualBox 2D and 3D acceleration
- Disabled VirtualBox Remote Desktop
- Windows box with WinRM startup forced to
auto
instead ofauto (delayed)
:sc config WinRM start= auto
- Windows Firewall disabled:
netsh advfirewall show allprofiles netsh advfirewall set allprofiles state off netsh advfirewall show allprofiles
- Windows Defender Antivirus disabled
.\run_test.ps1 test_ubuntu2204
.\run_test.ps1 test_windows2019
Simple smoke test run vagrant up
and vagrant destroy
10 times as poor-man way to determine
boot and provisioning times, catch any deviations, discover (WinRM) timeouts and other issues.
The runner script saves complete output in log file per test directory.
There is no sophisticated build pipeline using configuration management tools.
The boxes are simply packaged VirtualBox machines:
-
Create VirtualBox machine
cd windows2019 vagrant up # Apply tweaks - the gist of this project! vagrant package --base <machine name> --output <name>.box
-
Upload
<name>.box
file to app.vagrantup.com -
Update
Vagrantfile
-s of tests with new version/box -
Test with
.\run_test.ps1 test_<box>
-
Clone SWDT from https://github.com/kubernetes-sigs/sig-windows-dev-tools
-
Modify its
Vagrantfile
to use desired new boxes -
Run SWDT to create cluster using new boxes