While normally data is passed to linuxrc (including an AutoYaST profile), modern auto-install tools like Ignition from CoreOS support a very interesting method: the QEMU Firmware Config device.

This allows to read from inside the VM a blob by reading /sys/firmware/qemu_fw_cfg/by_name/opt/keyname. The driver is included in recent Linux kernels.

In order to populate the key, one pass the data via the qemu command line: -fw_cfg name=opt/keyname,file=somedata.txt

This would allow to pass an AutoYaST profile directly if running qemu where the profile is located, and for libvirt or the terraform libvirt provider, the volume where the profile is uploaded before passed does not need to be attached to the machine.

The idea is to implement this in Linuxrc by:

This project is related to "Implement kernel cmdline and/or autoyast/kickstart support in terraform-provider-libvirt ".

Outcome

Looking for hackers with the skills:

autoyast yast linuxrc terraform

This project is part of:

Hack Week 16

Activity

  • over 4 years ago: dmacvicar joined this project.
  • almost 5 years ago: mbrugger liked this project.
  • almost 5 years ago: michalnowak liked this project.
  • almost 5 years ago: hsehic liked this project.
  • almost 5 years ago: hsehic started this project.
  • almost 5 years ago: dmacvicar added keyword "autoyast" to this project.
  • almost 5 years ago: dmacvicar added keyword "yast" to this project.
  • almost 5 years ago: dmacvicar added keyword "linuxrc" to this project.
  • almost 5 years ago: dmacvicar added keyword "terraform" to this project.
  • almost 5 years ago: dmacvicar originated this project.

  • Comments

    • snwint
      almost 5 years ago by snwint | Reply

      The qemu driver is actually already in TW. Here's a proof-of-concept implementation:

      https://github.com/openSUSE/installation-images/pull/211

      Notes: - it's actually not trivial to make it nicer (without the by_name and raw) - it would require to go to a direct linuxrc implementation - those user defined url schemes already work in sle12(-sp3, at least) - to create a test iso, use mksusecd

    Similar Projects

    openSUSE on ZoL from OpenZFS project by jkohoutek

    Idea is to have SUSE system with OpenZFS as roo...


    openSUSE build supported by SUSE IT by vgrinco

    Project Description

    SUSE IT needs help fr...


    Testing and adding GNU/Linux distributions on Uyuni by juliogonzalezgil

    Join the Gitter channel! [https://gitter.im/uy...


    Add combustion support to the terraform-provider-libvirt by oholecek

    [comment]: # (Please use the project descriptio...


    AWS Terraform Modules by mtrachier

    Project Description

    Provide modules in Te...