Incus without root disk

Hi,

I’m just curious: why has the default incus profile no root disk defined?
e.g. create a incus container at cli:
incus launch images:debian/12 test

Any suggestions?

There’s a discussion here:

You can pass it a storage device.

In this case, how have you setup the global settings:

1 Like

Thanks but incus root disk is usually defined by the init process.
Sure, as Stephane pointed out there is a way around this but why has trueNAS not defined the default disk as the (obvious) root disk?

I still don’t know what you set-up as global settings…

If you’ve done everything right… then we start a bug-report or feature request.

Are you talking about the storage pool under global settings? That has nothing to do with the incus root device. This is to be found in the incus profile.

I’ll will do the bug-report and link it here for reference.

They should be related… the root device should be set-up on the pool (and probably in a dataset).

I’m surprised it wasn’t reported earlier… but perhaps it was and is in progress.

It’s not surprising. We actively tell people not to run incus commands from shell.

C.f. the MOTD:

Warning: the supported mechanisms for making configuration changes
are the TrueNAS WebUI, CLI, and API exclusively. ALL OTHERS ARE
NOT SUPPORTED AND WILL RESULT IN UNDEFINED BEHAVIOR AND MAY
RESULT IN SYSTEM FAILURE.

A considerable number of our current incus-related bug tickets in 25.04.0 are because people were manually editing their instance config from shell and breaking UI and API expectations.

So, if the instance is setup via webUI, it would have a root device automatically created?

You could keep things as they are and just always pass --storage default when creating instances, but that may get a bit annoying :slight_smile:
– (Incus launch fails: No root device could be found - #6 by stgraber - Incus - Linux Containers Forum)

Isn’t that essentially what the UI does by defining disks during VM creation?

I think the answer to your question is that it is an implementation detail and, as @awalkerix says, we do not support incus management via shell commands, so there is no need to define a default root disk location.

2 Likes