GithubHelp home page GithubHelp logo

tinkerbell-debian-osie's Introduction

About

build

This creates a Debian based Tinkerbell Operating System Installation Environment (OSIE).

this is a WIP and this repository will be rebased

Usage

Install the Base Debian Vagrant Box.

Run vagrant up builder --no-destroy-on-error to build the tinkerbell-debian-osie-amd64.iso file.

Run vagrant up bios to boot the generated ISO in BIOS mode.

Run vagrant up uefi to boot the generated ISO in UEFI mode.

The default user and password are osie.

To build the arm64 architecture image, set the LB_BUILD_ARCH environment variable to arm64 before launching vagrant, e.g. LB_BUILD_ARCH=arm64 vagrant up builder. To execute this image in an emulated virtual machine see the qemu arm64 emulation section.

NB Building the arm64 image takes longer than the native amd64. In my machine it takes about 40m (vs 10m for amd64).

qemu arm64 emulation

The arm64 architecture image can be executed in an emulated virtual machine as:

# NB in my humble machine (i3-3245) emulating arm64 is very slow and it takes
#    several minutes until you can login.
# NB in the qemu window use the "View" menu to switch between the
#    virtio-gpu-pci and serial0 console.
mkdir tmp
cd tmp
sudo apt-get install -y qemu-efi-aarch64
cp /usr/share/AAVMF/AAVMF_CODE.fd firmware-code-arm64.fd
cp /usr/share/AAVMF/AAVMF_VARS.fd firmware-vars-arm64.fd
qemu-img create -f qcow2 hd0.img 20G
qemu-img info hd0.img
qemu-system-aarch64 \
  -name arm64 \
  -machine virt \
  --accel tcg,thread=multi \
  -cpu cortex-a57 \
  -smp cores=4 \
  -m 2g \
  -k pt \
  -device virtio-gpu-pci \
  -device nec-usb-xhci,id=usb0 \
  -device usb-kbd,bus=usb0.0 \
  -device usb-tablet,bus=usb0.0 \
  -device virtio-scsi-pci,id=scsi0 \
  -drive if=pflash,file=firmware-code-arm64.fd,format=raw,readonly \
  -drive if=pflash,file=firmware-vars-arm64.fd,format=raw \
  -drive if=none,file=hd0.img,discard=unmap,cache=unsafe,id=hd0 \
  -drive if=none,file=$PWD/../tinkerbell-debian-osie-arm64.iso,media=cdrom,cache=unsafe,readonly,id=cd0 \
  -device scsi-hd,drive=hd0,bus=scsi0.0,bootindex=1 \
  -device scsi-cd,drive=cd0,bus=scsi0.0,bootindex=2 \
  -netdev user,id=net0,hostfwd=tcp::2222-:22 \
  -device virtio-net-pci,netdev=net0 \
  -device virtio-rng-pci,rng=rng0 \
  -object rng-random,filename=/dev/urandom,id=rng0 \
  -qmp unix:arm64.socket,server,nowait
echo info qtree | qmp-shell -H arm64.socket
ssh vagrant@localhost -p 2222

Reference

tinkerbell-debian-osie's People

Contributors

rgl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

fonsecas72

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.