❯ incus profile show test
config: {}
description: Test Profile
devices:
agent:
pool: incus-zfs
source: agent:config
type: disk
name: test
used_by: []
project: default
> incus-migrate
Instance to be created:
Name: OpenWRT-Test
Project: default
Type: virtual-machine
Source: openwrt-24.10.0-x86-64-generic-ext4-combined-efi.img
Source format: raw
Profiles:
- test
Config:
security.secureboot: "false"
Please pick one of the options above [default=1]:
Error: Failed creating instance record: Failed initializing instance: Failed add validation for device "agent": Failed loading custom volume: Storage volume not found
Result: Its not in either incus list
or incus storage volume list incus-zfs
.
So its not the agent disk that caused the broken import, although its weird the I can incus profile device add test agent disk pool=incus-zfs source=agent:config
like I would to an instance and it will accept it but then fail on import.
I removed the agent disk and added my OpenWRT type=block persistent storage custom volume with:
> incus profile device remove test agent
> incus storage volume attach-profile incus-zfs openwrt_opt test
> incus profile show test
config: {}
description: Test Profile
devices:
openwrt_opt:
pool: incus-zfs
source: openwrt_opt
type: disk
name: test
used_by: []
project: default
Import:
Instance to be created:
Name: OpenWRT-Test
Project: default
Type: virtual-machine
Source: openwrt-24.10.0-x86-64-generic-ext4-combined-efi.img
Source format: raw
Profiles:
- test
Storage pool: incus-zfs
Config:
security.secureboot: "false"
Please pick one of the options above [default=1]:
Transferring instance: OpenWRT-Test: 113.91MB (28.47MB/s)Error: Failed to prepare device "openwrt_opt" for migration: Not supported
Once again, incus list
doesn’t show the instance, but:
> incus storage volume list incus-zfs
shows:
+-----------------+------------------------------------------------------------------+----------------------------+--------------+---------+
| TYPE | NAME | DESCRIPTION | CONTENT-TYPE | USED BY |
+-----------------+------------------------------------------------------------------+----------------------------+--------------+---------+
<snip>
+-----------------+------------------------------------------------------------------+----------------------------+--------------+---------+
| virtual-machine | OpenWRT-24-10-0-25-02-12 | | block | 1 |
+-----------------+------------------------------------------------------------------+----------------------------+--------------+---------+
| virtual-machine | OpenWRT-Test | | block | 1 |
+-----------------+------------------------------------------------------------------+----------------------------+--------------+---------+
So now I have 2 instances that exist in pool but not in instance list and cannot be removed.