Need help to deploy Windows 11 custom image

Hi,

I’m trying to deploy a Windows 11 Pro custom image built with Packer on a Lenovo ThinkCentre M70q Gen3 with MAAS 3.2 UI. I use Intel AMT for power control.

The error happens at the chroot and cloud-init phase. You can see below the error stack trace in the install.log file:

    curtin: Installation failed with exception: Unexpected error while running command.
    Command: ['curtin', 'in-target', '--', 'bash', '-c', 'dpkg-query -s cloud-init || (echo "cloud-init not detected, MAAS will not be able to configure this machine properly" && exit 1)']
    Exit code: 127
    Reason: -
    Stdout: start: cmd-install/stage-late/98-validate-custom-image-has-cloud-init/cmd-in-target: curtin command in-target
            Running command ['mount', '--bind', '/dev', '/tmp/tmprft4h_es/target/dev'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--bind', '/proc', '/tmp/tmprft4h_es/target/proc'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--bind', '/run', '/tmp/tmprft4h_es/target/run'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--bind', '/sys', '/tmp/tmprft4h_es/target/sys'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmprft4h_es/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
            Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
            Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmprft4h_es/target', 'bash', '-c', 'dpkg-query -s cloud-init || (echo "cloud-init not detected, MAAS will not be able to configure this machine properly" && exit 1)'] with allowed return codes [0] (capture=False)
            chroot: failed to run command ‘bash’: No such file or directory
            Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
            TIMED subp(['udevadm', 'settle']): 0.017
            Running command ['mount', '--make-private', '/tmp/tmprft4h_es/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
            Running command ['umount', '/tmp/tmprft4h_es/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--make-private', '/tmp/tmprft4h_es/target/sys'] with allowed return codes [0] (capture=False)
            Running command ['umount', '/tmp/tmprft4h_es/target/sys'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--make-private', '/tmp/tmprft4h_es/target/run'] with allowed return codes [0] (capture=False)
            Running command ['umount', '/tmp/tmprft4h_es/target/run'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--make-private', '/tmp/tmprft4h_es/target/proc'] with allowed return codes [0] (capture=False)
            Running command ['umount', '/tmp/tmprft4h_es/target/proc'] with allowed return codes [0] (capture=False)
            Running command ['mount', '--make-private', '/tmp/tmprft4h_es/target/dev'] with allowed return codes [0] (capture=False)
            Running command ['umount', '/tmp/tmprft4h_es/target/dev'] with allowed return codes [0] (capture=False)
            finish: cmd-install/stage-late/98-validate-custom-image-has-cloud-init/cmd-in-target: FAIL: curtin command in-target
            
    Stderr: ''

Please see attached the full logs (EDIT: it haven’t found a way to attach file).

Any help would be very much appreciated.

Tiav

Please also see below a screenshot of the event logs.

I think I’m doing some progress…

The first failure happened when I have uploaded the image with the command below:
maas admin boot-resources create name='custom/windows11-v3' title='Windows 11 Pro TGZ v3' architecture='amd64/generic' filetype='tgz' content@=windows_11-v3.tgz

After that, I have uploaded the image by just replacing custom by windows in the name (as suggested here):
maas admin boot-resources create name='windows/windows11-v3' title='Windows 11 Pro TGZ v3' architecture='amd64/generic' filetype='tgz' content@=windows_11-v3.tgz

This leads to another error:

Did not find any filesystem on ['nvme0n1'] that contained one of ['curtin', 'system-data/var/lib/snapd', 'snaps']
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta
        get_path_to_storage_volume for volume nvme0n1({'grub_device': True, 'id': 'nvme0n1', 'model': 'WD PC SN740 SDDQNQD-512G-1001', 'name': 'nvme0n1', 'ptable': 'gpt', 'serial': '22164L801264', 'type': 'disk', 'wipe': 'superblock'})
        Processing serial 22164L801264 via udev to 22164L801264
        lookup_disks found: ['nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part1', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part2']
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device member? False
        block.lookup_disk() returning path /dev/nvme0n1
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.127
        devsync happy - path /dev/nvme0n1 now exists
        return volume path /dev/nvme0n1
        get_path_to_storage_volume for volume nvme0n1-part1({'device': 'nvme0n1', 'flag': 'boot', 'id': 'nvme0n1-part1', 'name': 'nvme0n1-part1', 'number': 1, 'offset': '4194304B', 'size': '536870912B', 'type': 'partition', 'uuid': '5d4263ef-b3e5-4de7-b99e-640e158b74e7', 'wipe': 'superblock'})
        get_path_to_storage_volume for volume nvme0n1({'grub_device': True, 'id': 'nvme0n1', 'model': 'WD PC SN740 SDDQNQD-512G-1001', 'name': 'nvme0n1', 'ptable': 'gpt', 'serial': '22164L801264', 'type': 'disk', 'wipe': 'superblock'})
        Processing serial 22164L801264 via udev to 22164L801264
        lookup_disks found: ['nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part2', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part1']
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device member? False
        block.lookup_disk() returning path /dev/nvme0n1
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.135
        devsync happy - path /dev/nvme0n1 now exists
        return volume path /dev/nvme0n1
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.131
        devsync happy - path /dev/nvme0n1 now exists
        return volume path /dev/nvme0n1p1
        get_path_to_storage_volume for volume nvme0n1-part2({'device': 'nvme0n1', 'id': 'nvme0n1-part2', 'name': 'nvme0n1-part2', 'number': 2, 'size': '511566675968B', 'type': 'partition', 'uuid': '43486267-8856-43e9-a25b-e33360bb842a', 'wipe': 'superblock'})
        get_path_to_storage_volume for volume nvme0n1({'grub_device': True, 'id': 'nvme0n1', 'model': 'WD PC SN740 SDDQNQD-512G-1001', 'name': 'nvme0n1', 'ptable': 'gpt', 'serial': '22164L801264', 'type': 'disk', 'wipe': 'superblock'})
        Processing serial 22164L801264 via udev to 22164L801264
        lookup_disks found: ['nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part1', 'nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264-part2']
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device member? False
        block.lookup_disk() returning path /dev/nvme0n1
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.122
        devsync happy - path /dev/nvme0n1 now exists
        return volume path /dev/nvme0n1
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0, 1] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.131
        devsync happy - path /dev/nvme0n1 now exists
        return volume path /dev/nvme0n1p2
        block-meta: extracted devices to clear: ['/dev/nvme0n1', '/dev/nvme0n1p1', '/dev/nvme0n1p2']
        Declared block devices: ['/dev/nvme0n1', '/dev/nvme0n1p1', '/dev/nvme0n1p2']
        clearing devices=['/dev/nvme0n1', '/dev/nvme0n1p1', '/dev/nvme0n1p2']
        start: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: removing previous storage devices
        Running command ['mdadm', '--assemble', '--scan', '-v'] with allowed return codes [0, 1, 2] (capture=True)
        mdadm assemble scan results:
        
        mdadm: looking for devices for further assembly
        mdadm: no recogniseable superblock on /dev/nvme0n1p2
        mdadm: Cannot assemble mbr metadata on /dev/nvme0n1p1
        mdadm: Cannot assemble mbr metadata on /dev/nvme0n1
        mdadm: no recogniseable superblock on /dev/loop3
        mdadm: no recogniseable superblock on /dev/loop2
        mdadm: no recogniseable superblock on /dev/loop1
        mdadm: no recogniseable superblock on /dev/loop0
        mdadm: No arrays found in config file or automatically
        
        Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True)
        mdadm detail scan after assemble:
        
        
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.010
        Detected multipath support, reload maps
        Running command ['multipath', '-r'] with allowed return codes [0] (capture=False)
        Verifying /dev/mapper/mpath* files are symlinks
        Running command ['dmsetup', 'ls', '-o', 'blkdevname'] with allowed return codes [0] (capture=True)
        Running command ['pvscan', '--config', 'devices{ filter = [ "a|/dev/mapper/mpath.*|", "a|/dev/mapper/dm_crypt-.*|", "r|.*|" ] }'] with allowed return codes [0] (capture=True)
        Running command ['vgscan', '--config', 'devices{ filter = [ "a|/dev/mapper/mpath.*|", "a|/dev/mapper/dm_crypt-.*|", "r|.*|" ] }'] with allowed return codes [0] (capture=True)
        Running command ['vgchange', '--activate=y', '--config', 'devices{ filter = [ "a|/dev/mapper/mpath.*|", "a|/dev/mapper/dm_crypt-.*|", "r|.*|" ] }'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.021
        Loading kernel module bcache via modprobe
        Running command ['modprobe', '--use-blacklist', 'bcache'] with allowed return codes [0] (capture=False)
        Generating device storage trees for path(s): ['/dev/nvme0n1', '/dev/nvme0n1p1', '/dev/nvme0n1p2']
        devname '/sys/class/block/nvme0n1' had holders: []
        /dev/nvme0n1 is multipath device partition? False
        /dev/nvme0n1 is multipath device partition? False
        /dev/nvme0n1 is multipath device partition? False
        devname '/sys/class/block/nvme0n1p1' had holders: []
        devname '/sys/class/block/nvme0n1p2' had holders: []
        devname '/sys/class/block/nvme0n1p1' had holders: []
        devname '/sys/class/block/nvme0n1p2' had holders: []
        Current device storage tree:
        nvme0n1
        |-- nvme0n1p1
        `-- nvme0n1p2
        nvme0n1p1
        nvme0n1p2
        Shutdown Plan:
        {'level': 3, 'device': '/sys/class/block/nvme0n1p1', 'dev_type': 'partition'}
        {'level': 3, 'device': '/sys/class/block/nvme0n1p2', 'dev_type': 'partition'}
        {'level': 1, 'device': '/sys/class/block/nvme0n1', 'dev_type': 'disk'}
        shutdown running on holder type: 'partition' syspath: '/sys/class/block/nvme0n1p1'
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        get_blockdev_sector_size: info:
        {
         "nvme0n1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "",
          "GROUP": "disk",
          "KNAME": "nvme0n1",
          "LABEL": "",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:0",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "WD PC SN740 SDDQNQD-512G-1001",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "512110190592",
          "STATE": "live",
          "TYPE": "disk",
          "UUID": "",
          "device_path": "/dev/nvme0n1"
         },
         "nvme0n1p1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "vfat",
          "GROUP": "disk",
          "KNAME": "nvme0n1p1",
          "LABEL": "efi",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:3",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "536870912",
          "STATE": "",
          "TYPE": "part",
          "UUID": "EEA7-4050",
          "device_path": "/dev/nvme0n1p1"
         },
         "nvme0n1p2": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "ext4",
          "GROUP": "disk",
          "KNAME": "nvme0n1p2",
          "LABEL": "root",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:4",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p2",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "511566675968",
          "STATE": "",
          "TYPE": "part",
          "UUID": "35dbf2fe-9a6b-43c4-82a4-abf5ff369d17",
          "device_path": "/dev/nvme0n1p2"
         }
        }
        get_blockdev_sector_size: (log=512, phys=512)
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID'] with allowed return codes [0] (capture=True)
        Checking if /dev/nvme0n1p1 is a swap device
        Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00U\xaa'
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1p1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1p1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1p1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1p1 is multipath device member? False
        wiping superblock on /dev/nvme0n1p1
        wiping /dev/nvme0n1p1 attempt 1/4
        wiping 1M on /dev/nvme0n1p1 at offsets [0, -1048576]
        successfully wiped device /dev/nvme0n1p1 on attempt 1/4
        shutdown running on holder type: 'partition' syspath: '/sys/class/block/nvme0n1p2'
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        get_blockdev_sector_size: info:
        {
         "nvme0n1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "",
          "GROUP": "disk",
          "KNAME": "nvme0n1",
          "LABEL": "",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:0",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "WD PC SN740 SDDQNQD-512G-1001",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "512110190592",
          "STATE": "live",
          "TYPE": "disk",
          "UUID": "",
          "device_path": "/dev/nvme0n1"
         },
         "nvme0n1p1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "vfat",
          "GROUP": "disk",
          "KNAME": "nvme0n1p1",
          "LABEL": "efi",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:3",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "536870912",
          "STATE": "",
          "TYPE": "part",
          "UUID": "EEA7-4050",
          "device_path": "/dev/nvme0n1p1"
         },
         "nvme0n1p2": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "ext4",
          "GROUP": "disk",
          "KNAME": "nvme0n1p2",
          "LABEL": "root",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:4",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p2",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "511566675968",
          "STATE": "",
          "TYPE": "part",
          "UUID": "35dbf2fe-9a6b-43c4-82a4-abf5ff369d17",
          "device_path": "/dev/nvme0n1p2"
         }
        }
        get_blockdev_sector_size: (log=512, phys=512)
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID'] with allowed return codes [0] (capture=True)
        Checking if /dev/nvme0n1p2 is a swap device
        Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1p2'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1p2 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1p2'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1p2 is multipath device member? False
        wiping superblock on /dev/nvme0n1p2
        wiping /dev/nvme0n1p2 attempt 1/4
        wiping 1M on /dev/nvme0n1p2 at offsets [0, -1048576]
        successfully wiped device /dev/nvme0n1p2 on attempt 1/4
        shutdown running on holder type: 'disk' syspath: '/sys/class/block/nvme0n1'
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        get_blockdev_sector_size: info:
        {
         "nvme0n1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "",
          "GROUP": "disk",
          "KNAME": "nvme0n1",
          "LABEL": "",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:0",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "WD PC SN740 SDDQNQD-512G-1001",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "512110190592",
          "STATE": "live",
          "TYPE": "disk",
          "UUID": "",
          "device_path": "/dev/nvme0n1"
         },
         "nvme0n1p1": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "",
          "GROUP": "disk",
          "KNAME": "nvme0n1p1",
          "LABEL": "",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:3",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p1",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "536870912",
          "STATE": "",
          "TYPE": "part",
          "UUID": "",
          "device_path": "/dev/nvme0n1p1"
         },
         "nvme0n1p2": {
          "ALIGNMENT": "0",
          "DISC-ALN": "0",
          "DISC-GRAN": "512",
          "DISC-MAX": "2199023255040",
          "DISC-ZERO": "0",
          "FSTYPE": "ext4",
          "GROUP": "disk",
          "KNAME": "nvme0n1p2",
          "LABEL": "root",
          "LOG-SEC": "512",
          "MAJ:MIN": "259:4",
          "MIN-IO": "512",
          "MODE": "brw-rw----",
          "MODEL": "",
          "MOUNTPOINT": "",
          "NAME": "nvme0n1p2",
          "OPT-IO": "0",
          "OWNER": "root",
          "PHY-SEC": "512",
          "RM": "0",
          "RO": "0",
          "ROTA": "0",
          "RQ-SIZE": "1023",
          "SIZE": "511566675968",
          "STATE": "",
          "TYPE": "part",
          "UUID": "35dbf2fe-9a6b-43c4-82a4-abf5ff369d17",
          "device_path": "/dev/nvme0n1p2"
         }
        }
        get_blockdev_sector_size: (log=512, phys=512)
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID'] with allowed return codes [0] (capture=True)
        Checking if /dev/nvme0n1 is a swap device
        Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device member? False
        wiping superblock on /dev/nvme0n1
        wiping /dev/nvme0n1 attempt 1/4
        wiping 1M on /dev/nvme0n1 at offsets [0, -1048576]
        successfully wiped device /dev/nvme0n1 on attempt 1/4
        /sys/class/block/nvme0n1 had partitions, issuing partition reread
        Running command ['blockdev', '--rereadpt', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.028
        block.sys_block_path: devname /dev/nvme0n1p1 does not exist
        block.sys_block_path: devname /dev/nvme0n1p2 does not exist
        devname '/sys/class/block/nvme0n1' had holders: []
        /dev/nvme0n1 is multipath device partition? False
        /dev/nvme0n1 is multipath device partition? False
        /dev/nvme0n1 is multipath device partition? False
        finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: SUCCESS: removing previous storage devices
        blockmeta: detected dd-images, using mode=simple
        Processing serial 22164L801264 via udev to 22164L801264
        lookup_disks found: ['nvme-WD_PC_SN740_SDDQNQD-512G-1001_22164L801264']
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device? False
        Running command ['udevadm', 'info', '--query=property', '--export', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        /dev/nvme0n1 is multipath device member? False
        block.lookup_disk() returning path /dev/nvme0n1
        Running command ['/usr/sbin/multipath', '-F'] with allowed return codes [0, 1] (capture=False)
        installing in 'custom' mode to 'nvme0n1'
        writing image to disk {'type': 'dd-tgz', 'uri': 'http://172.16.37.117:5248/images/windows/amd64/generic/windows11-v3/uploaded/root-dd'}, nvme0n1
        Running command ['sh', '-c', 'wget "$1" --progress=dot:mega -O - |tar -xOzf -| dd bs=4M of="$2"', '--', 'http://172.16.37.117:5248/images/windows/amd64/generic/windows11-v3/uploaded/root-dd', '/dev/nvme0n1'] with allowed return codes [0] (capture=False)
        --2023-03-08 16:41:33--  http://172.16.37.117:5248/images/windows/amd64/generic/windows11-v3/uploaded/root-dd
        Connecting to 172.16.37.117:5248... connected.
        HTTP request sent, awaiting response... 404 Not Found
        2023-03-08 16:41:41 ERROR 404: Not Found.
        
        
        gzip: stdin: unexpected end of file
        tar: Child returned status 1
        tar: Error is not recoverable: exiting now
        0+0 records in
        0+0 records out
        0 bytes copied, 8.13111 s, 0.0 kB/s
        Running command ['partprobe', '/dev/nvme0n1'] with allowed return codes [0] (capture=False)
        Running command ['udevadm', 'trigger', '/dev/nvme0n1'] with allowed return codes [0] (capture=False)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.068
        Running command ['vgchange', '--activate=y'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED udevadm_settle(): 0.019
        Searching for filesystem on ['nvme0n1'] containing one of: ['curtin', 'system-data/var/lib/snapd', 'snaps']
        Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/nvme0n1'] with allowed return codes [0] (capture=True)
        TIMED BLOCK_META: 9.690
        finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/log.py", line 97, in wrapper
            return log_time("TIMED %s: " % msg, func, *args, **kwargs)
          File "/curtin/curtin/log.py", line 79, in log_time
            return func(*args, **kwargs)
          File "/curtin/curtin/commands/block_meta.py", line 113, in block_meta
            return meta_simple(args)
          File "/curtin/curtin/commands/block_meta.py", line 2164, in meta_simple
            rootdev = write_image_to_disk(dd_images[0], devname)
          File "/curtin/curtin/commands/block_meta.py", line 171, in write_image_to_disk
            return block.get_root_device([devname], paths=paths)
          File "/curtin/curtin/block/__init__.py", line 760, in get_root_device
            raise ValueError(
        ValueError: Did not find any filesystem on ['nvme0n1'] that contained one of ['curtin', 'system-data/var/lib/snapd', 'snaps']
        Did not find any filesystem on ['nvme0n1'] that contained one of ['curtin', 'system-data/var/lib/snapd', 'snaps']
        
Stderr: ''

Next, I will try to convert my QCOW2 image to RAW, gzip it and import it as filetype=ddgz and see what happens.

nice progress, @tandrez! keep typing! :slight_smile: