Expanding drives in "Instances"

Hi everyone.
I have been trying to expand a drive for a VM.
But i cant find the expand option un the new “Instances”.
I can edit the root disk, and i have my boot drive i can choose a drive, but not expand it anywhere.

Under the “Virtulization” error, I knew where to find it, and I keep looking at sub menus, storage, Instances. But I dont seem to be able to find the option to expand my VM’s disk?

Also have been looking at the “incus” command in a shell, but I’m not sure if this is the correct way of doing it.

Why am I not able to find a guide anywhere on this?

I’m currencly running: TrueNAS-25.04.1 (Community edition).

Please advice.

Does nobody know how to expand a drive?
It should be such a simple task?

The “Instances” is a dead end, will be removed. Upgrade your system to the latest version and use the classic virtualization.

Thank you for the hint, the “old” was much easier.

But, now i have “Virtual Machines” back, but the VM cant start. The mount point is gone, and I can’t find the disks from now "“Containers”.

What about

zfs set volsize=<new size> <pool>/path/to/<virtual disk>

?

Be careful! If you accidentally shrink it because of a typo in the new size the data will be gone.

Well the thing is I cant find the path at all, i have tried searching for the file, but there are no disk drives with the names as in the now called “Containers”

If i edit the VM in “Containers” i can select the volume, bot there is no path, as with the old style.

Trying to start the VM, I get this error:
[EFAULT] VM will not start as DISK Device: /dev/zvol/“Datastore”/.ix-virt/custom/“VM_DRIVENAME” device(s) are not available.

But there is now no path called “/dev/zvol”.
But i have the datastore in "/mnt/“Datastore” path, but no drives under that path either. Nor doi have a “.ix-virt” folder.

Try zfs list -t volume first.

Ehm.
“zfs: command not found”

ah. Sudo. :wink:

So, I get a path
“/Data1/.ix-virt/custom/”
and
“Data1/.ix-virt/virtual-machines/”
Data1 is the name of my volume, but i have no idea on where “.ix-virt” would be.

I’m looking at this post:

Neither of these is a zvol with the trailing /. Please post the exact output of the zfs command.

1 Like

I resolved it.
The solution was getting the zvol, and changing the volmode=default

First get at list of the zvols:
zfs list -t volume

Then change the mode back:
zfs set volmode=default <pool/zvol/path>

Then the VM’s worked again!

I told you, but you did not answer. :man_shrugging: