0

I am trying to create a preseed.yaml for our LXD environment in which I can use a profile to setup VMs with an 80GB disk and have it pre-configured using LVM for the partitions. I have a preseed.yaml file ready but keep getting an error when I attempt to import it.

LXD version is 5.21

Error: Failed to parse the preseed: yaml: unmarshal errors: line 37: cannot unmarshal !!map into string

config: {}
networks:
  - config:
      ipv4.address: 10.146.116.1/24
      ipv4.nat: "true"
      ipv6.address: none
    description: ""
    name: lxdbr0
    type: bridge
    project: default
storage_pools:
  - config:
      source: /var/lib/lxd/disks
    description: ""
    name: default
    driver: dir
profiles:
  - name: lma-vm
    config:
      limits.cpu: "2"
      limits.memory: 16GB
      security.secureboot: "false"
    description: "LVM Configuration for LMA Platform"
    devices:
      root:
        path: /
        pool: default
        size: 80GB
        type: disk
      eth0:
        name: eth0
        nictype: bridged
        parent: lxdbr0
        type: nic
      storage:
        config:
          ptable: gpt
          path: /dev/sda
          wipe: superblock-recursive
          preserve: false
          grub_device: true
          type: disk
          id: disk-sda
          partitions:
            - number: 1
              device: disk-sda
              flag: bios_grub
              size: 1M
              id: bios-grub
              type: partition
            - number: 2
              device: disk-sda
              flag: boot
              size: 1G
              id: sda-boot
              type: partition
            - number: 3
              device: disk-sda
              size: -1
              id: sda-lvm
              type: lvm_volgroup
              name: vg00
              devices: [sda-lvm]
              partitions:
                - id: lvroot
                  name: lvroot
                  size: 20G
                  type: lvm_partition
                  volgroup: vg00
                - id: lvswap
                  name: lvswap
                  size: 4G
                  type: lvm_partition
                  volgroup: vg00
                - id: lvhome
                  name: lvhome
                  size: 5G
                  type: lvm_partition
                  volgroup: vg00
                - id: lvtmp
                  name: lvtmp
                  size: 2G
                  type: lvm_partition
                  volgroup: vg00
                - id: lvdocker
                  name: lvdocker
                  size: 25G
                  type: lvm_partition
                  volgroup: vg00
                - id: lvvar
                  name: lvvar
                  size: 10G
                  type: format
                  fstype: ext4
                  volume: sda-boot
                - id: lv-root-fs
                  type: format
                  fstype: ext4
                  volume: lvroot
                - id: lv-swap-fs
                  type: format
                  fstype: swap
                  volume: lvswap
                - id: lv-home-fs
                  type: format
                  fstype: ext4
                  volume: lvhome
                - id: lv-tmp-fs
                  type: format
                  fstype: ext4

0

You must log in to answer this question.

Browse other questions tagged .