I am using macOS virtualization farmework and able to create nad and run VMS. I need to resize the disk images using hdiutil in app sandbox environment. Is that possible? i tried disabling sandbox and it worked ok. But with sandbox i get the error message device is not configured. If this cant be done in sandbox what could be the alternative way to to achive this in sandboxed app.
thanks
Yes it works.
Well, that’s cool.
Unfortunately it puts the kibosh on all the workaround ideas I’d been thinking of. It might’ve been feasible for you to manually resize less complex disk images, but doing that for a .dmg
containing a bootable macOS is not feasible. You really need hdiutil
for this.
I’m gonna recommend that you file a couple of bugs here:
-
A bug report asking that
hdiutil
support this use case. Resizing a macOS boot image from a Mac App Store hypervisor app is a reasonable thing to do, and it’s annoying that it’s being blocked by the sandbox. -
A separate enhancement request for an API to manipulate disk images programatically. Relying on
hdiutil
for these sorts of tasks has always been annoying, and it’s gonna get increasingly problematic as we get further down the virtualisation path.
Please post your bug numbers, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"