Failed to start Incus - agent

Hi,
Trying to launch an ubuntu/22.04 vm but without success unfortunately.

$ incus launch images:ubuntu/22.04 dspace --vm -c limits.cpu=4 -c limits.memory=8GiB --console

The command displays

BdsDxe: loading Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
[FAILED] Failed to start Incus - agent.

Ubuntu 22.04.4 LTS distrobuilder-8daf5856-0700-46dc-a53d-15d38416e93c ttyS0

distrobuilder-8daf5856-0700-46dc-a53d-15d38416e93c login:

I am on Ubunut 24.04 LTS

Works for me:

BdsDxe: loading Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)

Ubuntu 22.04.4 LTS dspace ttyS0

dspace login:

In my case, the server is Ubuntu 22.04 with kernel 5.15.0-102-generic, and inside that I’m running incus 6.0-202404040310-ubuntu22.04 from the Zabbly package repository.

You said “I am on Ubunut [sic] 24.04 LTS”, but that hasn’t been released yet. Are you running the beta? Are you using incus 0.6 which came with it? If so, I’d recommend you use incus 6.0 from the Zabbly package respository instead.

(Aside: if the incus agent does start, then you can disconnect from the console and use incus shell dspace to access the VM. But if you want to be able to login with a username/password at the login: prompt, the best way is to pass some cloud-init data and use images:ubuntu/22.04/cloud.)

@candlerb
Yes i am on Ubuntu 24.04 LTS beta which come with Incus v0.6.
I don’t want to access the vm using username/password, i’ve sent the console output for debugging purpose only.
Even Zabbly’s repo did not work for me because of missing some dependencies on Ubuntu 24.04.
The following command did not work

➜  ~ incus shell dspace                                                                          
Error: VM agent isn't currently running

OK, as I say it works fine with Ubuntu 22.04 and incus 6.0 (LTS).

Can you try updating to incus 6.0 and see if that works? Sadly the cutoff for Ubuntu 24.04 came too soon for an incus LTS release.