Increase disk size of instance vm and delay start

how to increase the disk size of an already created instance vm? i am using dir storage pool.

another curious question, how to have a delay in started a specific instance vm after rebooting the incus host?

You can change the size property on the root disk.

The first time you do that, you need a device override to copy the device definition from the profile over to the instance, so something like:

incus config device override MY-VM root size=50GiB

If you have already done an override for the root disk or if the instance always had its own local root disk definition, then that becomes:

incus config device set MY-VM root size=50GiB

Most images will grow the disk automatically on reboot, but you can also do it live by using something like:

growpart /dev/sda 2
resize2fs /dev/sda2
1 Like

thanks, it work success on changing disk size on ubuntu 24 vm image (i run growpart and resize2fs because no automatic resize). do u know about config to delay vm startup after rebooting incus host?

Not really. We have an option to add a delay between instance start up but not one to wait on host system boot.

Your best bet is likely a systemd override on the incus-startup unit to add a delay or a better start condition there.

can i create issue for it? i don’t see incus-startup service. do u meant incus service?

Depends on your distro, any distro following our packaging recommendations (Packaging recommendations - Incus documentation) should have an incus-startup unit, if yours doesn’t, that suggests you may have other issues as far as when Incus starts up and its behavior during a package update.