UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Cannot access TPM data.

Open valentinegb opened this issue 1 year ago • 23 comments

Describe the issue

The other day I tried to create a Windows VM and failed since trying to run it resulted in an error, "Cannot access TPM data." The next day I tried again to make a new VM and it miraculously worked! Today however, I went to launch the same VM from the day before and was once again met with "Cannot access TPM data."

Configuration

  • UTM Version: 4.5.4 (100)
  • macOS Version: 15.1 Beta (24B5035e)
  • Mac Chip: M1

Debug log

Attempting to enable "Debug Logging" for the VM fails with the error "The file couldn’t be opened."

Upload VM

config.plist.zip

valentinegb avatar Aug 29 '24 17:08 valentinegb

Today it seems to work fine, not closing this yet though since I don't expect it to keep working. Reminds me of the "can't print on Tuesdays" bug lol

valentinegb avatar Aug 31 '24 02:08 valentinegb

I'm facing the same issue, also on the 15.1 beta - restarting macOS seems to fix it temporarily.

jsondergaard avatar Sep 02 '24 19:09 jsondergaard

Same here, also macOS 15.1 beta.

Grrrolf avatar Sep 15 '24 18:09 Grrrolf

same here, no Windows VM will load

nothingneko avatar Sep 17 '24 15:09 nothingneko

Hi, same here. On macOS 15.0 final.

mannnyyy avatar Sep 17 '24 17:09 mannnyyy

Hi, same here. On macOS 15.0 final.

-->>> RESOLVED : by reseting UEFI settings in VM Settings / QEMU sub menu

mannnyyy avatar Sep 20 '24 15:09 mannnyyy

Same here, just updated from 4.4.5 to 4.5.4 to match thread. Running 15.0 final. M1 chip. Attempting to Reset UEFI / QEMU sub menu results in "The file couldn't be opened".

ag10889 avatar Sep 23 '24 20:09 ag10889

Same here, just updated from 4.4.5 to 4.5.4 to match thread. Running 15.0 final. M1 chip. Attempting to Reset UEFI / QEMU sub menu results in "The file couldn't be opened".

Same issue here.

lcarson-2002 avatar Sep 24 '24 16:09 lcarson-2002

Same issue here, macOS 15.0, M2 Max

davidfrankovertica avatar Sep 25 '24 05:09 davidfrankovertica

The problem is repeatable. Every time I unplug my macBook Pro (M1 Ultra) from my home office and plug it into my work office (and vice versa) it happens upon plugin at the other location. This requires a reboot to clear the condition.

lcarson-2002 avatar Sep 25 '24 16:09 lcarson-2002

Same issue here

KlementTobias avatar Oct 02 '24 08:10 KlementTobias

Same here, 15.0, m1pro. macOS reboot solved the issue.

vladkozlov avatar Oct 03 '24 14:10 vladkozlov

Same issue here.

Boogimoogi avatar Oct 05 '24 09:10 Boogimoogi

Hi, I confirm that the reboot works for me too but it is not a comfortable solution. Has anyone found a better method?

Dekko2205 avatar Oct 06 '24 20:10 Dekko2205

Have you updated to 15.0.1?

osy avatar Oct 06 '24 21:10 osy

Have you updated to 15.0.1?

I have 15.0

Dekko2205 avatar Oct 07 '24 08:10 Dekko2205

Update to 15.0.1. That's your better method.

osy avatar Oct 07 '24 08:10 osy

Update to 15.0.1. That's your better method.

:-) Thanks. I'll try tonight. I'll give you feedback in few days.

Dekko2205 avatar Oct 07 '24 09:10 Dekko2205

Issue present on 15.0.1 on m1 Pro. Attempting to "Reset UEFI Variables" under QEMU submenu results in "The file could not be opened." Rebooting temporarily fixes the issue. My machine has been up for 1 day 14 minutes.

Two errors in the console messages:

error 03:51:39.905044-0400 QEMUHelper os_unix.c:49437: (2) open(/private/var/db/DetachedSignatures) - No such file or directory

error 03:51:39.905031-0400 QEMUHelper cannot open file at line 49437 of [1b37c146ee]

rkrenzis avatar Oct 10 '24 05:10 rkrenzis

Can someone provide a sysdiagnose? Note that it may contain identifiers but it will only be used in diagnosing the issue and then be deleted. You can send the dump to dev at getutm dot app

osy avatar Oct 10 '24 07:10 osy

Hmm, after a host reboot the 'Cannot access TPM data' message is gone.

Settings > QEMU > Reset UEFI vars, also give an ~~access denied~~ error before the reboot (probably the above "The file could not be opened." error)

I'm on macOS Sequoia 15.0.1

Looks like a bug in macOS that doesn't allow the App to access its Container, after some amount of uptime (maybe network address / hostname change?).

Normally at: /Users/<username>/Library/Containers/com.utmapp.UTM/Data/Documents/<VM Naem>.utm/Data/{efi_vars.fd,tpmdata}. Unix access rights seemed OK at the time.

A bug in macOS App Sandbox?

HenkPoley avatar Oct 11 '24 15:10 HenkPoley

Update to 15.0.1. That's your better method.

:-) Thanks. I'll try tonight. I'll give you feedback in few days.

I have no problem anymore. I don't know why.

Sequoia 15.1

Dekko2205 avatar Oct 14 '24 23:10 Dekko2205

Same problem here

kiranb4352 avatar Oct 20 '24 08:10 kiranb4352

MacOS 15.0.1 UTM 4.5.4 (100) VM: Windows 11 ARM

I have the same problem, and reboot MacOS can temporarily fix it.

wenxdeng avatar Oct 21 '24 04:10 wenxdeng

MacOS 15.0.1 (M3 Pro Late '23 MacBook Pro) UTM 4.5.4 (100) VM: Windows 11 ARM

Same exact problem here. Why isn't this being fixed?

8bit-coder avatar Oct 21 '24 19:10 8bit-coder

@8bit-coder https://github.com/utmapp/UTM/issues/6637#issuecomment-2404278150

osy avatar Oct 21 '24 19:10 osy

I can confirm that reboot solved the issue for me.

yaroslavyaroslav avatar Oct 22 '24 09:10 yaroslavyaroslav

Same issue here, MacOS Sequoia 15.0 checking Reset UFEI variables and then saving brings up the message "The file couldn’t be opened." After I hit "ok" the box is unchecked.

Also cant add a shared directory to a MacOS VM it says the same "The file couldn’t be opened." message.

Edit: After a restart the MacOS loads and the shared folder is applied. The Windows 11 VM starts without the error but now it looks like it's in some kind of shell. To be fair I've never turned on this windows vm before and I saw this same shell / boot loader screen on an x86 iso I tried to run as ARM64. I did get my windows 11 iso from CrystalFetch tho and it did say Apple Silicon so I'm not sure what to believe.

Edit 2: Looks like updating to 15.1 fixed it ¯_(ツ)_/¯.

Kataki-Takanashi avatar Oct 22 '24 23:10 Kataki-Takanashi

It looks like this is linked to #6639.

Quoting the relevant text from the link posted by @tonilampela in https://github.com/utmapp/UTM/issues/6639#issuecomment-2431688538:

We've tracked down the problem to an issue with macOS 15.0 (Sequoia). Technically this involves their "Bookmark" resolution code ... It also only happens a little while after a device restart (about 2-6 hours usually), so it's a bit of a "heisenbug", very difficult to track down. Restarting your device or logging out/in also fixes things because it restarts the process which handles bookmarks on Apple's side. ...

Apple have acknowledged the issue and believe they have already fixed it in macOS 15.1 Beta 4. So updating to that beta version of macOS should fix this too.

~ https://www.reddit.com/r/strongbox/comments/1fo7z20/comment/lp5mtnu/

So rebooting should be a temporary fix to get a VM running; or upgrade to macOS 15.1 RC.

tech4him1 avatar Oct 23 '24 16:10 tech4him1

Hi, same here. On macOS 15.0 final.

-->>> RESOLVED : by reseting UEFI settings in VM Settings / QEMU sub menu

I got 'This file couldn't be opened' which I suppose is the root cause. I just shut down the VM normally.

VGerris avatar Oct 30 '24 17:10 VGerris