Open mindtheegab opened 1 month ago
im sorry the formatting here sucks, the issue is explained also here https://discourse.ubuntu.com/t/bin-linux-lxd-migrate-x86-64-always-fails-at-the-same-point/48637/4
The issue here is that when the volume is too small to accommodate the image, the error is not reported back to the client. However, this has been addressed as part of the conversion API. Therefore, this issue is only relevant for 5.21 and lower where migration API is used for importing instances.
In the conversion API we resize the volume to accommodate the image, or error out if the user specifies the volume size that is too small:
$ sudo lxd-migrate \
--non-interactive \
--name v1-import-qcow2 \
--type vm \
--source disk.qcow2 \
--storage def \
--storage-size 1GiB
Instance to be created:
Name: v1-import-qcow2
Project: ""
Type: virtual-machine
Source: disk.qcow2
Profiles:
- default
Storage pool: def
Storage volume size: 1GiB
Error: Error transferring instance data: Failed conversion on target: Failed creating
instance on target: Volume size (1.00GiB) is lower then source disk size (4.00GiB)
@MusicDin what happens when using older lxd-migrate against a 6.1 LXD, does it give the same unhelpful error?
I will double check, but should be the same issue.
Required information
Issue description
the default size of 10gix is not communicated
Steps to reproduce
Information to attach