Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-3121

Add support for creating LXD images using metro

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None

      LXD is a management tool for LXC. More here https://linuxcontainers.org/lxd/
      LXD image is an archive comprising of rootfs and metadat.yaml
      https://github.com/lxc/lxd/blob/master/specs/image-handling.md
      If you have time you have to try this:
      https://linuxcontainers.org/lxd/try-it/
      So what needs to be done is something along these lines.
      Take stage3 extract it inside rootfs, generate metadata.yaml and compress it all (rootfs + metadata.yaml) in a new archive. (unified archive)
      or
      generate metadata and compress it to a new archive and use the stage3 archive as the root. (split archives)

      metadata.yaml looks like this

      metadata.yaml
      architecture: x86_64
      creation_date: 1454681520
      properties: 
        architecture: x86_64
        description: "Funtoo current x86_64 (pure64) (20160205)"
        name: funtoo-current-x86_64-pure64-20160205
        os: funtoo
        release: current
        variant: pure64
      templates: 
        /etc/conf.d/hostname: 
          template: hostname.tpl
          when: 
            - create
      
      templates/hostname.tpl
      {{ container.name }}
      

            x48rph x48rph [X] (Inactive)
            palica Pavol Cupka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: