When I have created VMs in the past, I just selected the path to an ISO file for the CD ROM. Now I get the error “The path must be a dataset or a directory within a dataset.” Am I doing something wrong or has something changed. I keep TrueNAS Scale up to date, now version 25.10.3.
Did you select the path from the dropdown menu or did you type it by hand?
Yes, I selected the ISO (/mnt/ZVMs/ISOs/ubuntu-25.10-desktop-amd64.iso) from the dropdown.
What is output of midclt call filesystem.statfs /mnt/ZVMs/ISOs/ubuntu-25.10-desktop-amd64.iso?
Is ISOs a directory in /mnt/ZVMs or is it a dataset? Generally we heavily discourage users from directly consuming root of pool.
kerry@ZNAS:~$ midclt call filesystem.statfs /mnt/ZVMs/ISOs/ubuntu-25.10-desktop-amd64.iso
{“flags”: [“RW”, “NOATIME”, “XATTR”, “POSIXACL”, “CASESENSITIVE”], “fsid”: “41626048500646455”, “fstype”: “zfs”, “source”: “ZVMs”, “dest”: “/mnt/ZVMs”, “blocksize”: 131072, “total_blocks”: 37212242, “free_blocks”: 36464705, “avail_blocks”: 36464705, “total_blocks_str”: “37212242”, “free_blocks_str”: “36464705”, “avail_blocks_str”: “36464705”, “files”: 9334964693, “free_files”: 9334964672, “name_max”: 255, “total_bytes”: 4877482983424, “free_bytes”: 4779501813760, “avail_bytes”: 4779501813760, “total_bytes_str”: “4877482983424”, “free_bytes_str”: “4779501813760”, “avail_bytes_str”: “4779501813760”}
Create a dataset for your ISOs and use that for storage.