https://github.com/gmasse/ovh-ipxe-customer-script
Boot OVH server with your own iPXE script
https://github.com/gmasse/ovh-ipxe-customer-script
ipxe ovhcloud
Last synced: 4 months ago
JSON representation
Boot OVH server with your own iPXE script
- Host: GitHub
- URL: https://github.com/gmasse/ovh-ipxe-customer-script
- Owner: gmasse
- License: bsd-3-clause
- Created: 2017-06-25T14:38:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T14:53:34.000Z (almost 9 years ago)
- Last Synced: 2025-03-22T03:43:32.727Z (about 1 year ago)
- Topics: ipxe, ovhcloud
- Size: 4.88 KB
- Stars: 26
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iPXE customer script (BETA)
Booting your server with your own iPXE script allows cool things like:
- running diskless bare-metal system like CoreOS, SmartOS, ...
- recovering with your own Rescue system or bare-metal restore tools (like Acronis and Idera)
- launching Standard installer like ESXi, [Linux](examples/linux.md), Solaris, ...
How?
Using directly the RESTful API [EU](https://api.ovh.com/)|[CA](https://ca.api.ovh.com) or the API console [EU](https://api.ovh.com/console/)|[CA](https://ca.api.ovh.com/console/).
It's also working for Kimsufi [EU](https://eu.api.kimsufi.com)|[CA](https://ca.api.kimsufi.com) and SoYouStart [EU](https://eu.api.soyoustart.com)|[CA](https://ca.api.soyoustart.com).
#### 1. Upload your custom iPXE script
CoreOS example (https://coreos.com/docs/running-coreos/bare-metal/booting-with-ipxe/)
```http
POST /1.0/me/ipxeScript HTTP/1.1
{
"description": "CoreOS stable",
"name": "coreos",
"script": "#!ipxe\n\nset base-url http://stable.release.core-os.net/amd64-usr/current\nkernel ${base-url}/coreos_production_pxe.vmlinuz sshkey=\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQC2PxAKTLdczK9+RNsGGPsz0eC2pBlydBEcrbI7LSfiN7Bo5hQQVjki+Xpnp8EEYKpzu6eakL8MJj3E28wT/vNklT1KyMZrXnVhtsmOtBKKG/++odpaavdW2/AU0l7RZiE= coreos pxe demo\"\ninitrd ${base-url}/coreos_production_pxe_image.cpio.gz\nboot"
}
```
```http
HTTP/1.1 200 OK
```
#### 2. Request your custom bootId
```http
GET /1.0/dedicated/server/ns320309.ip-46-105-117.eu/boot?bootType=ipxeCustomerScript HTTP/1.1
```
```http
HTTP/1.1 200 OK
[
38
]
```
#### 3. Configure your server to boot on your iPXE script
```http
PUT /1.0/dedicated/server/ns320309.ip-46-105-117.eu HTTP/1.1
{
"bootId": 38
}
```
```http
HTTP/1.1 200 OK
```
#### 4. Reboot your server!