Acquired a few old HP servers for home lab.. this is to document their journey.
Challenge:
-
Started without using a monitor and a keyboard.
-
No access to any KVM over IP, or similar tools
REGISTRY=https://index.docker.io/v2 | |
REPO=library | |
IMAGE=debian | |
TAG=latest | |
TOKEN=$(curl -sSL "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPO/$IMAGE:pull" \ | |
| jq --raw-output .token) | |
curl -LH "Authorization: Bearer ${TOKEN}" "$REGISTRY/$REPO/$IMAGE/manifests/$TAG" |
2021-04-07 07:23:15 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event timer_out_of_sync[L]: seconds=1.8326559760000123> | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.zigbee.application] Probing /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connecting to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 serial port | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Toggling RTS/CTS to skip CC2652R bootloader | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connected to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud | |
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s before sending anything | |
2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Sending bootloader skip byte | |
2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s or until a reset indication is recei |
PFsense image to GCE instance
package main | |
import ( | |
"errors" | |
"flag" | |
"fmt" | |
"strings" | |
"time" | |
) |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echoheaders | |
spec: | |
selector: | |
matchLabels: | |
app: echoheaders | |
replicas: 1 | |
template: |
create static IP
gcloud compute addresses create fanout-ingress --region $REGION
Note annotation "fanout-gress" is the name of static IP
annotations:
// pubsub attempts to reproduce a client timeout issue. | |
package main | |
import ( | |
"context" | |
"fmt" | |
"math/rand" | |
"os" | |
"os/user" | |
"sync/atomic" |