I can't create vm from a custom image

Hi, I have just created a vm image, from existing instance, with publish command. It looks like that:

sk@wrk00:~$ lxc image info lmint21-xfce-mth
Fingerprint: 019d9b8aed8d86f318abb4a301ce3e11ef145ae35ac6318f3a19d14b203bb8b8
Size: 3309.17MB
Architecture: x86_64
Type: virtual-machine
Public: no
Timestamps:
    Created: 2023/02/15 16:57 UTC
    Uploaded: 2023/02/15 16:57 UTC
    Expires: never
    Last used: never
Properties:
Aliases:
    - lmint21-xfce-mth
Cached: no
Auto update: disabled
Profiles:
    - default

sk@wrk00:~$ lxc image alias list
+------------------+--------------+-----------------+-------------+
|      ALIAS       | FINGERPRINT  |      TYPE       | DESCRIPTION |
+------------------+--------------+-----------------+-------------+
| lmint21-xfce-mth | 019d9b8aed8d | VIRTUAL-MACHINE |             |
+------------------+--------------+-----------------+-------------+

It seems like everything is fine, but unfortunately, I cannot create a new instance ferom that image:

sk@wrk00:~$ lxc launch images:lmint21-xfce-mth lmint21-01 --vm -c limits.cpu=4 -c limits.memory=4GiB
Creating lmint21-01
Error: Failed instance creation: Failed getting remote image info: Failed getting image: The requested image couldn't be found

What am I missing here? I am working on remote server, I’m creating vms on my NAS server from the desktop.

Hi @s-kaczmarek,
Can you post the list of lxc remote ls command output, the command you are trying should be

lxc launch local:lmint21-xfce-mth lmint21-01 --vm -c limits.cpu=4 -c limits.memory=4GiB

Regards.

1 Like

Thanks, that was it! In my case I had to replace “local” with my remote name. I thought, that once I switch to remote I work completely on remote, and I do not have to emphasize that any further.

Anyway, works fine now :slight_smile: