Resize root volume not working/documented

Hello,

I’m New to incus, but I have some experience in managing VM and container.

Following the docs

I did:

incus launch images:debian/12 debian-vm-big --vm --device root,size=30GiB

But then I am lost in resizing the root volume. The commands I found
from documentation and discourse return errors.

doc

suggests:

incus storage volume set my-pool my-volume size=1GiB

discourse

suggests:

incus config device override root size=50Gib

both do not work:

$ incus --version
6.15
$ incus storage volume set default virtual-machine/debian-vm-big size=50GiB
Error: Volume "size" property is not valid for volume type
$ sudo incus config device override debian-vm-big root size=50Gib
Error: The device already exists

A bug, a feature o missing doc? Thanks in advance!

incus config device override is used to override configuration from a profile, turning the device from a shared device to an instance-specific device.

Once that’s been done once, the device becomes local (will show in incus config show and not just incus config show --expanded). Once that’s the case, you need to use incus config device set to alter the device.

So in this case incus config device set debian-vm-big root size=50GiB

3 Likes