<div dir="ltr"><div>Hello, this is my example:</div><div><br></div><div>export DIB_BLOCK_DEVICE_CONFIG=$(cat mylvm_centos8_nmsf.yaml)</div><div><br></div><div><br></div><div>this is my mylvm_centos8_nmsf.yaml:</div><div>- local_loop:<br> name: image0<br> size: 30G<br><br>- partitioning:<br> base: image0<br> label: mbr<br> partitions:<br> - name: root<br> flags: [ boot,primary ]<br> size: 100%<br><br>- lvm:<br> name: lvm<br> base: [root]<br> pvs:<br> - name: pv<br> base: root<br><br> vgs:<br> - name: vg_rootcentos8<br> base: ["pv"]<br><br> lvs:<br> - name: lv_root<br> base: vg_rootcentos8<br> size: 5000M<br><br> - name: lv_var<br> base: vg_rootcentos8<br> size: 5000M<br><br> - name: lv_usr<br> base: vg_rootcentos8<br> size: 5000M<br><br> - name: lv_swap<br> base: vg_rootcentos8<br> size: 2000M<br><br> - name: lv_tmp<br> base: vg_rootcentos8<br> size: 1500M<br><br> - name: lv_appserv<br> base: vg_rootcentos8<br> size: 8000M<br><br><br>- mkfs:<br> name: mkfs_root<br> base: lv_root<br> label: "img-rootfs"<br> type: "ext4"<br> mount:<br> mount_point: /<br> fstab:<br> options: "noacl,errors=remount-ro"<br> fsck-passno: 1<br><br>- mkfs:<br> name: mkfs_var<br> base: lv_var<br> type: "ext4"<br> mount:<br> mount_point: /var<br> fstab:<br> options: "noacl"<br> fsck-passno: 2<br><br>- mkfs:<br> name: mkfs_usr<br> base: lv_usr<br> type: "ext4"<br> mount:<br> mount_point: /usr<br> fstab:<br> options: "noacl"<br> fsck-passno: 2<br><br>- mkfs:<br> name: mkfs_swap<br> base: lv_swap<br> type: "ext3"<br> mount:<br> mount_point: swap<br> fstab:<br> name: swap<br> options: "swap"<br><br>- mkfs:<br> name: mkfs_tmp<br> base: lv_tmp<br> type: "ext4"<br> mount:<br> mount_point: /tmp<br> fstab:<br> options: "noacl"<br> fsck-passno: 2<br><br>- mkfs:<br> name: mkfs_appserv<br> base: lv_appserv<br> type: "ext4"<br> mount:<br> mount_point: /appserv<br> fstab:<br> options: "noacl"<br> fsck-passno: 2</div><div><br></div><div><br></div><div><br></div><div><br></div><div>After creating the image I modified it as follows:</div><div><br></div><div>guestfish -a /tmp/centos8_nmsf_ansible_heat.qcow2 -i mkswap-L mkfs_swap /dev/vg_rootcentos8/lv_swap<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 21 mar 2020 alle ore 14:24 Stephen Nemeth <<a href="mailto:kbaegis@gmail.com">kbaegis@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection">
<div dir="auto">
<div dir="auto">Hi all,</div>
<div dir="auto"><br></div>
We’re attempting to create user images to deploy with metal^3/ironic.
<div dir="auto"><br></div>
<div dir="auto">I’m making almost no headway starting from any of the examples provided for the DIB_BLOCK_DEVICE_CONFIG setup. </div>
<div dir="auto"><br></div>
<div dir="auto">Is there a repository with practical values located anywhere? I’m finding the documentation insufficient to do anything more complicated than a single partition setup. </div>
<div dir="auto"><br></div>
<div dir="auto">Here’s what I’ve gotten so far. Help greatly appreciated:</div>
<div dir="auto"><br></div>
<div dir="auto">```</div>
<div dir="auto">[</div>
<div dir="auto"> {</div>
<div dir="auto"> "local_loop": {</div>
<div dir="auto"> "name": "image0",</div>
<div dir="auto"> "size": "20GiB"</div>
<div dir="auto"> }</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "partitioning": {</div>
<div dir="auto"> "base": "image0",</div>
<div dir="auto"> "label": "gpt",</div>
<div dir="auto"> "partitions": [</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "ESP",</div>
<div dir="auto"> "type": "EF00",</div>
<div dir="auto"> "size": "16MiB"</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "boot",</div>
<div dir="auto"> "type": "EF02",</div>
<div dir="auto"> "size": "6GiB"</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "lvm",</div>
<div dir="auto"> "type": 8,</div>
<div dir="auto"> "size": "100%"</div>
<div dir="auto"> }</div>
<div dir="auto"> ]</div>
<div dir="auto"> }</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "lvm": {</div>
<div dir="auto"> "name": "lvm2",</div>
<div dir="auto"> "pvs": [</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "pv",</div>
<div dir="auto"> "options": [</div>
<div dir="auto"> "--force"</div>
<div dir="auto"> ],</div>
<div dir="auto"> "device": "lvm",</div>
<div dir="auto"> "base": "image0"</div>
<div dir="auto"> }</div>
<div dir="auto"> ],</div>
<div dir="auto"> "vgs": [</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "vg",</div>
<div dir="auto"> "base": [</div>
<div dir="auto"> "pv"</div>
<div dir="auto"> ],</div>
<div dir="auto"> "options": [</div>
<div dir="auto"> "--force"</div>
<div dir="auto"> ]</div>
<div dir="auto"> }</div>
<div dir="auto"> ],</div>
<div dir="auto"> "lvs": [</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "root",</div>
<div dir="auto"> "base": "vg",</div>
<div dir="auto"> "extents": "100%FREE",</div>
<div dir="auto"> "options": [</div>
<div dir="auto"> "--zero=n"</div>
<div dir="auto"> ]</div>
<div dir="auto"> }</div>
<div dir="auto"> ]</div>
<div dir="auto"> }</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "mkfs": {</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "mkfs_root",</div>
<div dir="auto"> "base": "root",</div>
<div dir="auto"> "type": "btrfs",</div>
<div dir="auto"> "label": "root",</div>
<div dir="auto"> "opts": "-f",</div>
<div dir="auto"> "mount": { "mount_point": "/" }</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "mkfs_efi",</div>
<div dir="auto"> "base": "ESP",</div>
<div dir="auto"> "type": "vfat",</div>
<div dir="auto"> "label": "efi",</div>
<div dir="auto"> "opts": "-f",</div>
<div dir="auto"> "mount": { "mount_point": "/boot/efi/" }</div>
<div dir="auto"> },</div>
<div dir="auto"> {</div>
<div dir="auto"> "name": "mkfs_boot",</div>
<div dir="auto"> "base": "boot",</div>
<div dir="auto"> "type": "btrfs",</div>
<div dir="auto"> "label": "boot",</div>
<div dir="auto"> "opts": "-f",</div>
<div dir="auto"> "mount": { "mount_point": "/boot/" }</div>
<div dir="auto"> }</div>
<div dir="auto"> }</div>
<div dir="auto"> }</div>
<div dir="auto">]</div>
<div dir="auto">```</div>
</div>
</div>
</div>
</blockquote></div>