Skip to content

Commit 60ffb94

Browse files
committed
TEST
1 parent 5c130e5 commit 60ffb94

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
kind create cluster --config kind.yaml
4+
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
5+
6+
kubectl apply -k ironic
7+
kubectl apply -k bmo
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
3+
# Define and start the baremetal-e2e network
4+
virsh -c qemu:///system net-define net.xml
5+
virsh -c qemu:///system net-start baremetal-e2e
6+
7+
# Start the sushy-emulator container that acts as BMC
8+
docker run --name sushy-tools --rm --network host -d \
9+
-v /var/run/libvirt:/var/run/libvirt \
10+
-v "$(pwd)/sushy-tools.conf:/etc/sushy/sushy-emulator.conf" \
11+
-e SUSHY_EMULATOR_CONFIG=/etc/sushy/sushy-emulator.conf \
12+
quay.io/metal3-io/sushy-tools:latest sushy-emulator
13+
14+
# Generate a VM definition xml file and then define the VM
15+
virt-install \
16+
--connect qemu:///system \
17+
--name bmh-vm-01 \
18+
--description "Virtualized BareMetalHost" \
19+
--osinfo=ubuntu-lts-latest \
20+
--ram=4096 \
21+
--vcpus=2 \
22+
--disk size=25 \
23+
--boot hd,network \
24+
--import \
25+
--network network=baremetal-e2e,mac="00:60:2f:31:81:01" \
26+
--noautoconsole \
27+
--print-xml > bmh-vm-01.xml
28+
virsh define bmh-vm-01.xml

docs/user-guide/src/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ and the MAC address:
7979
Start by defining a libvirt network:
8080

8181
```xml
82-
{{#embed-github repo:"metal3-io/metal3-docs" branch:"main" path:"docs/user-guide/examples/net.xml"}}
82+
{{#embed-github repo:"Nordix/metal3-docs" branch:"lentzi90/quick-revision" path:"docs/user-guide/examples/net.xml"}}
8383
```
8484

8585
Save this as `net.xml`.
@@ -91,7 +91,7 @@ the form of [sushy-tools](https://docs.openstack.org/sushy/latest/).
9191
We need to create a configuration file for sushy-tools:
9292

9393
```conf
94-
{{#embed-github repo:"metal3-io/metal3-docs" branch:"main" path:"docs/user-guide/examples/sushy-emulator.conf"}}
94+
{{#embed-github repo:"Nordix/metal3-docs" branch:"lentzi90/quick-revision" path:"docs/user-guide/examples/sushy-emulator.conf"}}
9595
```
9696

9797
Finally, we start up the virtual baremetal lab and create VMs to simulate the
@@ -123,7 +123,7 @@ note that this is absolutely not intended for production environments.
123123
We will use the following configuration file for kind, save it as `kind.yaml`:
124124

125125
```yaml
126-
{{#embed-github repo:"metal3-io/metal3-docs" branch:"main" path:"docs/user-guide/examples/kind.yaml"}}
126+
{{#embed-github repo:"Nordix/metal3-docs" branch:"lentzi90/quick-revision" path:"docs/user-guide/examples/kind.yaml"}}
127127
```
128128

129129
As you can see, it has a few ports forwarded from the host. This is to make

0 commit comments

Comments
 (0)