@@ -25,7 +25,8 @@ This project can also be used as a template for writing your own metal-stack dep
25
25
- kvm as hypervisor for the VMs
26
26
- Ubuntu 20.04:
27
27
28
- sudo apt install -y qemu qemu-kvm libvirt-daemon bridge-utils virtinst libvirt-dev
28
+ sudo apt update
29
+ sudo apt install -y qemu qemu-kvm libvirt-daemon bridge-utils virtinst libvirt-dev git curl build-essential wget
29
30
30
31
- [ docker] ( https://www.docker.com/ ) >= 18.09 (for using kind and our deployment base image)
31
32
- [ docker-compose] ( https://docs.docker.com/compose/ ) >= 1.25.4 (for ease of use and for parallelizing control plane and partition deployment)
@@ -43,17 +44,24 @@ curl -fsSL https://get.docker.com | sh
43
44
# instructions at https://docs.docker.com/engine/install/ubuntu/
44
45
45
46
# Install vagrant and other stuff
46
- wget https://releases.hashicorp.com/vagrant/2.2.9 /vagrant_2.2.9_x86_64 .deb
47
- sudo apt-get install ./vagrant_2.2.9_x86_64 .deb qemu-kvm virt-manager ovmf net-tools libvirt-dev haveged
47
+ wget https://releases.hashicorp.com/vagrant/2.2.14 /vagrant_2.2.14_x86_64 .deb
48
+ sudo apt-get install ./vagrant_2.2.14_x86_64 .deb qemu-kvm virt-manager ovmf net-tools libvirt-dev haveged
48
49
49
- # Ensure that your user is member of the group "libvirt"
50
- # possibly you need to login again in order to make this change take effect
51
- sudo usermod -G libvirt -a ${USER}
50
+ # Ensure that your user is member of the group "libvirt" and "docker"
51
+ # you need to login again in order to make this change take effect
52
+ sudo usermod -G libvirt,docker -a ${USER}
52
53
53
54
# Install libvirt plugin for vagrant
54
55
vagrant plugin install vagrant-libvirt
55
56
56
- # Install kind from https://github.com/kubernetes-sigs/kind/releases
57
+ # Install kind (kubernetes in docker), for more details see https://kind.sigs.k8s.io/docs/user/quick-start/#installation
58
+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
59
+ chmod +x ./kind
60
+ sudo mv ./kind /usr/local/bin/kind
61
+
62
+ # Install docker-compose, for more details see https://docs.docker.com/compose/install/
63
+ sudo curl -L " https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$( uname -s) -$( uname -m) " -o /usr/local/bin/docker-compose
64
+ sudo chmod +x /usr/local/bin/docker-compose
57
65
```
58
66
59
67
The following ports are getting used statically:
@@ -77,6 +85,8 @@ The following ports are getting used statically:
77
85
Start the mini-lab with a kind cluster, a metal-api instance as well as some vagrant VMs with two leaf switches and two machine skeletons.
78
86
79
87
``` bash
88
+ git clone https://github.com/metal-stack/mini-lab.git
89
+ cd mini-lab
80
90
make
81
91
```
82
92
0 commit comments