You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start importing a vm with Bin.linux.lxd-migrate.x86_64 that is bigger than 10gb
choose defaults settings
watch the crash
Information to attach
Please provide LXD server URL: 192.168.10.67
Certificate fingerprint: b809c6f8bafc0c67cdda9fcf24360f26b96b5c83052c5b9e136e1066fc35a51a
ok (y/n)? y
1) Use a certificate token
2) Use an existing TLS authentication certificate
3) Generate a temporary TLS authentication certificate
Please pick an authentication mechanism above: 3
Your temporary certificate is:
-----BEGIN CERTIFICATE-----
MIIBvTCCAUKgAwIBAgIQKuaZwa5/Up6QOLWHiZClajAKBggqhkjOPQQDAzAmMQww
CgYDVQQKEwNMWEQxFjAUBgNVBAMMDXJvb3RAZGVkdWdyYWYwHhcNMjQxMDEwMDkx
MzUzWhcNMzQxMDA4MDkxMzUzWjAmMQwwCgYDVQQKEwNMWEQxFjAUBgNVBAMMDXJv
b3RAZGVkdWdyYWYwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARrVtwKs9srd2FlOWvX
+QZkd6hnhIZ70Oip90NI5i8E+wZdzfXm3ouOwkUUBhA5J9lvBs5vf7O1KRJZPb7H
2irWoHFvq+sUar0sfmveRlXp0unwRHYyuVo6lV1ft7s3vNKjNTAzMA4GA1UdDwEB
/wQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMAoGCCqG
SM49BAMDA2kAMGYCMQDJLlTyWKXSqn5aRUVtHfdQ+ryQ1r5WQALqnjbgwNFDwKSz
m5weixv4+J8meqx25jUCMQCGpDUe/IWsRJUetRJmcDRj14rkhBfuOcFHe1I5vnkP
K4K7u37EcnPOW3cdJ7C8Y0I=
-----END CERTIFICATE-----
A temporary client certificate was generated, use `lxc config trust add` on the target server.
Press ENTER after the certificate was added to the remote server:
Remote LXD server:
Hostname: lxdtemp
Version: 5.21.2
Would you like to create a container (1) or virtual-machine (2)?: 2
Name of the new instance: dedugraftemp
Please provide the path to a disk, partition, or image file: /dev/sda
Does the VM support UEFI Secure Boot? [default=no]:
Instance to be created:
Name: dedugraftemp
Project: default
Type: virtual-machine
Source: /dev/sda
Config:
security.secureboot: "false"
Additional overrides can be applied at this stage:
1) Begin the migration with the above configuration
2) Override profile list
3) Set additional configuration options
4) Change instance storage pool or volume size
5) Change instance network
Please pick one of the options above [default=1]:
Transferring instance: dedugraftemp: 10.71GB (77.64MB/s)Error: Failed sending block volume: write tcp 192.168.10.34:48178->192.168.10.67:8443: write: connection reset by peer`
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)
Required information
Issue description
the default size of 10gix is not communicated
Steps to reproduce
Information to attach
The text was updated successfully, but these errors were encountered: