Winson-030 / SoloLab

a lab to set up all VMs in one host

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a lab to build all VMs in one (windows 10+) host

the procedure

  1. Enable hyper-v first, you can refer this code snippet to enable hyper-v
  2. Run .\LocalWorkShop\New-VMSwitch.ps1 to create a Hyper-V internal facing virtual switch, then run .\LocalWorkShop/Set-NetIPInterface.ps1 to config MAC for the NIC connected to this switch
  3. Install packer, vagrant, kubectl, helm by scoop
    scoop install packer vagrant kubectl helm
    
  4. Build vagrant box (the hyper-v vm template) from packer
  5. Up the vagrant box
  6. Config k3s cluster

to add git sub module

cd $(git rev-parse --show-toplevel)
$url="https://github.com/freeipa/ansible-freeipa.git"
$submoduleDir="AnsibleWorkShop/runner/project/roles/ansible-freeipa"

# ansible-role-k3s
$url="https://github.com/PyratLabs/ansible-role-k3s.git"
$branch="v3_release"
$submoduleDir="AnsibleWorkShop/runner/project/roles/ansible-role-k3s"
git submodule add --force -b $branch $url $submoduleDir

About

a lab to set up all VMs in one host


Languages

Language:HCL 64.1%Language:Shell 20.5%Language:PowerShell 6.8%Language:Jinja 3.5%Language:Python 1.7%Language:Ruby 1.5%Language:Dockerfile 0.8%Language:Smarty 0.7%Language:Mustache 0.2%Language:Batchfile 0.1%