Skip to content

Instantly share code, notes, and snippets.

@D3CK3R
Forked from andreasheil/CoreOs2JiffyBox.md
Created September 23, 2015 20:25
Show Gist options
  • Save D3CK3R/b059a6ac583b65231f4c to your computer and use it in GitHub Desktop.
Save D3CK3R/b059a6ac583b65231f4c to your computer and use it in GitHub Desktop.
CoreOS und JiffyBox

CoreOS und JiffyBox

JiffyBox erstellen

  1. Klick auf Neue JiffyBox erstellen
  2. Distribution ist egal (wird später überschrieben)
  3. Kennwort ist auch egal (wird ja auch überschrieben)
  4. Warten bis die JiffyBox erstellt ist

JiffyBox vorbereiten

  1. In der Übersicht neben der JiffyBox auf Konfigurieren klicken
  2. Links auf Profile und Festplatten
  3. Unten auf Alle Festplatten und Profile löschen
  4. 2 neue Festplatten hinzufügen (Reihenfolge ist wichtig)
  • Name: Boot; Dateisystem: unformatiert/anderes; Größe: 128M
  • Name: CoreOS; Dateisystem: unformatiert/anderes; Größe: den Rest
  1. Neues Profile hinzufügen:
  • Name: Standard
  • Kernel: Bootmanager 64bit (pvgrub)
  • Runlevel: Default
  • Festplatten hinzufügen (Reihenfolge ist wichtig):
    • xvda: Boot
    • xvdb: CoreOS
  • Unter Root-Festplatte unten:
    • Frei: /dev/xvdb9
    • Mountoption: Nur Lesen (ro)

Konsole und Recovery einrichten

  1. In der Übersicht neben der JiffyBox auf Konfigurieren klicken
  2. Links auf Konsole und Recovery
  3. Auf Passwort erstellen klicken und ein schönes Passwort aussuchen
  4. Unten auf Recovery-System jetzt aktivieren
  • Distribution: egal
  • Festplatten:
    • xvda: Recovery-System
    • xvdb: Boot
    • xvdc: CoreOS
  • noch ein schönes Kennwort eingeben und aktivieren
  1. Per SSH auf die Console gehen ssh [email protected] und das Fenster geöffnet lassen

CoreOS installieren:

  1. per SSH auf auf die JiffyBox verbinden
  2. Datei cloud-config mit folgendem Inhalt erstellen:
#cloud-config

ssh_authorized_keys:
  - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0g+ZTxC7weoIJLUafOgrm+h...
  1. Installer herunterladen, konfigurieren und ausführen (Im Prinzip wie bei CoreOS erklärt):
# wget https://raw.github.com/coreos/init/master/bin/coreos-install
# chmod +x coreos-install
# ./coreos-install -d /dev/xvdc -C stable -c cloud-config
...
Installing cloud-config...
Success! CoreOS stable current is installed on /dev/xvdc
# mount /dev/xvdc1 /mnt
# sed -i 's/hd0,0/hd1,0/g' /mnt/boot/grub/menu.lst
# umount /mnt
# dd if=/dev/xvdc1 of=/dev/xvdb bs=4k
32768+0 records in
32768+0 records out
134217728 bytes (134 MB) copied, 0.40273 s, 333 MB/s
# sync
# shutdown -h now
  1. Nun unter Konsole und Recovery das Recovery-System deaktivieren
  2. JiffyBox normal starten und CoreOS sollte booten...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment