axxxxe
Contributor
Contributor

Cannot add physical disk to VM Fusion

Host hardware is MacBook Pro Mid 2012 with two internal (SATA) disks:

1. Boot volume (macOS Mojave)

2. 1TB hard disk formatted as GUID / Mac OS Extended Journaled

I am using VM Fusion 11.1.0

I want a virtual machine (OSX 10.8) which runs on the host to use the 1TB internal disk as a Time Machine backup disk.

What I have done:

The 1TB disk is identified as /dev/disk0

$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS TM Backup 999.9 GB disk0s2

I ran this command:

/Applications/VMware\ Fusion.app/Contents/Library/vmware-rawdiskCreator create /dev/disk0 fullDevice ./TimeMachineDisk ide

This produced the expected .vmdk file

I added this to the .vmx:

ide0:0.present = "TRUE"
ide0:0.fileName = "TimeMachineDisk.vmdk"
ide0:0.deviceType = "rawDisk"
suspend.disabled = "TRUE"
ide0:0.redo = ""

When I launch the virtual machine I get a dialog which says:

VMware Fusion requires administrative privileges for accessing Boot Camp disks.

I put in my admin password and click OK

I then get an error dialog "Operation not permitted..."

Here is what's in the log, starting immediately after the virtual disk is mounted:

2021-04-15T15:32:12.646+01:00| worker-32705| I125: RawDiskAuthReadPrivilegesDictionary: processing 'always ask' UIDs: '501'
2021-04-15T15:32:12.646+01:00| worker-32705| I125: RawDiskAuthReadPrivilegesDictionary: processing 'never ask' UIDs: ''
2021-04-15T15:32:12.658+01:00| worker-32705| I125: AppleXPC: Connecting to service com.vmware.MountHelper...
2021-04-15T15:32:13.622+01:00| host-32668| I125: AppleXPC: Connection established to service com.vmware.MountHelper
2021-04-15T15:32:13.622+01:00| worker-32705| I125: DISKLIB-FLAT : Unmounted "/dev/disk0" on open.
2021-04-15T15:32:13.622+01:00| worker-32705| I125: AppleXPC: Connecting to service com.vmware.DiskHelper...
2021-04-15T15:32:13.716+01:00| worker-32705| I125: AppleXPC: Connection established to service com.vmware.DiskHelper
2021-04-15T15:32:13.716+01:00| worker-32705| I125: FILE:open error on /dev/disk0: Operation not permitted
2021-04-15T15:32:13.716+01:00| worker-32705| I125: AIOGNRC: Failed to open '/dev/disk0' : Operation not permitted (10002) (0x10103).
2021-04-15T15:32:13.716+01:00| worker-32705| I125: OBJLIB-FILEBE : FileBEOpen: can't open '/dev/disk0' : Operation not permitted (65540).
2021-04-15T15:32:13.716+01:00| worker-32705| I125: DISKLIB-FLAT : "/dev/disk0" : failed to open (65545): ObjLib_Open failed.
2021-04-15T15:32:13.716+01:00| worker-32705| I125: DISKLIB-FLAT : Requesting "/dev/disk0" to be remounted on open failure.
2021-04-15T15:32:13.717+01:00| worker-32705| I125: DISKLIB-LINK : "/Users/admin/Virtual Machines.localized/OS X 10.8 - Email.vmwarevm/TimeMachineDisk.vmdk" : failed to open (Operation not permitted).
2021-04-15T15:32:13.717+01:00| worker-32705| I125: DISKLIB-CHAIN : "/Users/admin/Virtual Machines.localized/OS X 10.8 - Email.vmwarevm/TimeMachineDisk.vmdk" : failed to open (Operation not permitted).
2021-04-15T15:32:13.717+01:00| worker-32705| I125: DISKLIB-LIB : Failed to open '/Users/admin/Virtual Machines.localized/OS X 10.8 - Email.vmwarevm/TimeMachineDisk.vmdk' with flags 0xa Operation not permitted (65545).
2021-04-15T15:32:13.717+01:00| worker-32705| I125: DISK: Cannot open disk '/Users/admin/Virtual Machines.localized/OS X 10.8 - Email.vmwarevm/TimeMachineDisk.vmdk': Operation not permitted (65545).
2021-04-15T15:32:13.717+01:00| vmx| I125: DISK: Opening disks took 1074 ms.
2021-04-15T15:32:13.717+01:00| vmx| I125: Module 'Disk' power on failed.

The IDE disk appears in the VM's Settings, but strangely at 931.51GB instead of something closer to 1TB.

What am I doing wrong? I have tried adjusting the permissions of the .vmdk, I have tried granting Fusion Full Disk access on the host. I have tried using SATA instead of IDE (which results in the VM starting up, but no disk visible in the VM settings or from within the VM client OS).

Thanks in advance for any help!

Moderator edit by wila: Moved post from Technical Community Resources to VMware Fusion discussions

0 Kudos
7 Replies
wila
Immortal
Immortal

Hi,

Just a guess I'm afraid.

Is it possible that the host OS still has the disk mounted?
Asking as it is not possible for two OS's to have one filesystem mounted at the same time unless it is a clustered filesystem.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos
dlhotka
Champion
Champion

More broadly, why bother?

Either just share the drive and use time machine over the network connection, or backup the entire VM from the host. Time machine is flaky enough as it is, and this just feels like asking for corruption.

0 Kudos
axxxxe
Contributor
Contributor

Good question! I have now tried the procedure with manually unmounting the disk from the host OS before starting the guest but unfortunately get the same result.

0 Kudos
axxxxe
Contributor
Contributor

Thanks for the suggestion about the network drive - I will try.  I am using Time Machine because I need the archival functionality for a single application that's running in the guest.

0 Kudos
dlhotka
Champion
Champion

Ahh, ok.  Yeah, definitely try using a network time machine backup then.  I moved my wife's machine to that method since she tends to use it all over the place and it was missing a lot of backups.  It's vastly more stable than it used to be (though I still suggest manually stopping the backup before suspending either the host or guest.

Tags (1)
0 Kudos
axxxxe
Contributor
Contributor

Sadly with the drive mounted as a network drive I now get the following error from Time Machine: The backup disk image could not be created (error 13).

0 Kudos
dlhotka
Champion
Champion

Sorry, not mounted as an actual network drive, but using time machine's network drive option:

 

https://support.apple.com/guide/mac-help/a-shared-folder-time-machine-mac-mchl31533145/mac

0 Kudos