Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CD/DVD Drive DiskImage.iso path: Could not open, Operation not Permitted #5615

Closed
runwaygoats opened this issue Aug 27, 2023 · 3 comments
Closed
Milestone

Comments

@runwaygoats
Copy link

Describe the issue

VM Name: QemuEmulatedDebian.UTM
Used within UTM.app all the time.

VM Backup Name: QemuEmulatedDebianBackup.UTM
Always used as an offline backup and never used within UTM.app to prevent recreation of VM UUID.
When needed, while UTM.app is closed, QemuEmulatedDebian.UTM is deleted and a new QemuEmulatedDebian.UTM is duplicated from QemuEmulatedDebianBackup.UTM

Steps to Reproduce

While UTM.app is closed, duplicate QemuEmulatedDebian.UTM as QemuEmulatedDebianBackup.UTM within Finder.
When something goes wrong with the QemuEmulatedDebian.UTM, quit UTM.app.
Delete QemuEmulatedDebian.UTM
Duplicate QemuEmulatedDebianBackup.UTM as QemuEmulatedDebian.UTM
Open UTM.app
Start QemuEmulatedDebian.UTM

Error

QEMU exited from an error: qemu-x86_64-softmmu: -drive if=none,media=cdrom,id=driveF177DB5E-953E-4CE1-8829-FEA9EC3C4694,file=/Volumes/data/DiskImage.iso,readonly=on: Could not open '/Volumes/data/DiskImage.iso': Operation not permitted

Fix

Edit QemuEmulatedDebian.UTM
Drives > IDE Drive > Path
Even if you see the DiskImage.iso file in Path Box, Browse... and select DiskImage.iso again.
Start QemuEmulatedDebian.UTM

Configuration

  • UTM Version: 4.4.0
  • macOS Version: 14.0 Beta (23A5328b)
  • Mac Chip (Intel, M1, ...): M1
@osy osy added this to the v4.4 milestone Sep 2, 2023
@osy osy closed this as completed in 87720a8 Sep 4, 2023
@ernstki
Copy link

ernstki commented Jan 25, 2024

Thanks @osy. This one bit me too. Wish I'd searched the issue tracker before spending an hour trying to figure this out.

Note that as of this writing, the version in the Mac App Store is 4.4.4, which doesn't include this change.

Also note: although the error message would imply that it was something related to filesystem permissions, fiddling with the "Full Disk Access" security settings in System Settings doesn't do anything for this issue.

@osy
Copy link
Contributor

osy commented Jan 25, 2024

It was included in v4.4.1 so you're probably hitting another issue. Also FDA doesn't mean anything in a sandboxed app.

@ernstki
Copy link

ernstki commented Jan 25, 2024

@osy, I was able to work around it using the advice from this discussion, but I'll keep an eye out and if it's something reproducible, I'll collect more information for a proper bug report. Thanks!

Enabling FDA is just something I do out of pure naïveté on macOS when I see permissions-related errors. I'm not proud of it, but that's just the level I'm at sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants