Error creating vm for snap issue

Hi,

I tried to create a LXD image from remote commands using a qcow2 download from Red Hat portal I would it to create a golden image with packer.

# lxc image list lxd-test:
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+
| rhel9 | 420b3837ab6a | no | | x86_64 | VIRTUAL-MACHINE | 3791.22MiB | Oct 28, 2025 at 1:14pm (UTC) |
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+
| | 3af077ad3b73 | no | Red Hat Enterprise Linux 10 | x86_64 | CONTAINER | 765.62MiB | Oct 30, 2025 at 4:48pm (UTC) |
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+
| | b58e95ef1284 | no | Red Hat Enterprise Linux 10 | x86_64 | VIRTUAL-MACHINE | 815.88MiB | Oct 30, 2025 at 4:50pm (UTC) |
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+
| | e2e914b5dcfb | no | Red Hat Enterprise Linux 10 | x86_64 | CONTAINER | 765.62MiB | Oct 30, 2025 at 4:42pm (UTC) |
±------±-------------±-------±----------------------------±-------------±----------------±-----------±-----------------------------+

I executed the lxc start container but I noticed this error:

Error creating container: LXD command error: Error: Failed creating instance record: Failed initialising instance: Failed getting root disk: No root device could be found

I created a dedicated profile and I specified the device root and connected it to the lvm or ceph storage present on the LXD instance, but I always notice this error:

==> lxd.rhel: Error creating container: LXD command error: Error: Failed creating instance from image: Failed to run: /snap/lxd/36153/bin/sgdisk --move-second-header /dev/rbd0: exit status 4

Could this problem related to the imported image?

Thanks in advace,

Marcello

Hi!

This forum has switched to supporting Incus, which is a continuation of LXD. Read more here.

See how you can migrate to Incus.