Skip to content

Commit 95bf500

Browse files
authored
packet deployment (#586)
Signed-off-by: Petr Fedchenkov <[email protected]>
1 parent 21d2e53 commit 95bf500

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

docs/ipxe.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,61 @@ output of setup command (something like
2626

2727
You can start your device and wait for installation process of EVE. Next, you can run
2828
`eden start` and `eden eve onboard` as usual.
29+
30+
## Use Equinix Metal to boot EVE
31+
32+
You can use [Equinix Metal](https://metal.equinix.com/) for booting EVE on baremetal system.
33+
34+
### Step 1. Preparation
35+
36+
You must have access to API of Equinix Metal (PACKET_TOKEN and PROJECT_ID).
37+
38+
You must have node with publicly accessed IP address (forward of `8888/tcp` and `3333/tcp` ports) for use as Eden Node.
39+
If you would like to deploy it on Equinix Metal you can start from `t1.small.x86` machine and deploy `Ubuntu 20.04 LTS`
40+
on it.
41+
42+
Please, follow [Eden Install Prerequisites section](../README.md#Install Prerequisites),
43+
[packet-cli installation](https://github.com/packethost/packet-cli#installation) and
44+
[packet-cli authentication](https://github.com/packethost/packet-cli#authentication) via SSH to your Eden Node.
45+
46+
### Step 2. Eden configure and build
47+
48+
To build EVE via Eden and prepare for iPXE boot run the following on Eden Node
49+
(please use `amd64` or `arm64` in `ARCH` placeholder and public IP of your Eden Node instead of `IP` placeholder):
50+
51+
```console
52+
make build
53+
./eden config add default --devmodel=general --arch ARCH
54+
./eden config set default --key adam.eve-ip --value IP
55+
./eden setup --netboot=true
56+
```
57+
58+
### Step 3. EVE booting
59+
60+
To boot EVE with iPXE you should run:
61+
62+
```console
63+
packet device create -f LOCATION -H NAME -i http://IP:8888/eserver/ipxe.efi.cfg -o custom_ipxe -P TYPE -p PROJECT_ID
64+
```
65+
66+
where:
67+
68+
* `LOCATION` - datacenter you want to use (for example, `sjc1`)
69+
* `NAME` - name of the node you want to create (for example, `eve-eden-node`)
70+
* `IP` - public IP of your Eden Node
71+
* `TYPE` - type of server you want to boot (for example, `c1.large.arm.xda` for arm64 or `t1.small.x86` for amd64)
72+
* `PROJECT_ID` - your project on Equinix Metal
73+
74+
### Step 4. Onboarding of EVE
75+
76+
After booting the server (become active), you can run on your Eden Node the following:
77+
78+
```console
79+
./eden start
80+
./eden eve onboard
81+
```
82+
83+
If you would like to build tests: `make build-tests`.
84+
85+
_Note: in this case you cannot use local docker registry deployed with Eden die to public IPs. Please, skip it in tests
86+
with `EDEN_TEST_REGISTRY=n` environment variable._

0 commit comments

Comments
 (0)