Issues Creating VM

panzerscope

Contributor
Joined
May 30, 2022
Messages
146
Hey all,

I am not new to setting up VM's in TrueNAS-SCALE-22.12.3.2 and I already have a few running. However I was trying to create a new VM today with a Windows 11 ISO and I keep getting the following error when starting the VM to start the Windows installation. It is worth noting, it has nothing to do with the ISO itself as I have also tried ones I know are perfectly fine.

Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor.py", line 172, in start if self.domain.create() < 0: File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create raise libvirtError('virDomainCreate() failed') libvirt.libvirtError: internal error: process exited while connecting to monitor: 2023-10-11T20:58:33.352491Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/mnt/Tank/Storage/Software/Operating Systems/Windows 11 PRO Slim EN [GX 05.10.21] [FileCR].iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/mnt/Tank/Storage/Software/Operating Systems/Windows 11 PRO Slim EN [GX 05.10.21] [FileCR].iso': Permission denied

I have checked and double checked, inbuilt user "libvert-qemu" has access to these storage areas, so I am confused why I am receiving a permission error but it is possible I am not understanding the error correctly.

Any ideas ?

Thanks in advance.
P
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
Def stating their is no permission to the ISO, how did you upload the ISO? same as other ISOs that work?

Does the ISO have any permissions set on it before it was uploaded that may be carried over?

Presume this is some custom made ISO cause I have never heard of "Windows 11 PRO Slim EN"
 

panzerscope

Contributor
Joined
May 30, 2022
Messages
146
Yes it is a custom ISO I am using on this occasion.

So I have played with this some more, I cannot see how this is a permissions error. The ISO and every other file was uploaded to the share via Windows SMB. For a sanity check, I also moved the files in question to a different dataset and setup libvert-qemu as a user with full control and I applied the permissions recursively, still no go.

I double checked the file permissions inside of Windows and it states that libvert-qemu has all the correct permissions, so I know it is at least being applied within TrueNas.

The files throwing an error live in Storage(top level parent)>Software(child of Storage)>Operating System(child of Software). I have made sure that "Storage" & " Software" have libvert-qemu permissions, When applying the permission I selected that the permissions being made to the Software dataset are also made to all child datasets, meaning that the "Operating System" folder also has the correct permissions. So far as I can tell, I have adhered to the permissions chain from Parent to Child datasets.

But that made no difference either. I am at a loss. This was working fine prior to upgrading to Bluefin and that is the only thing I can say that has changed.

Anyone have any ideas or suggestions ?
 
Top