VMware Communities
axxxxe
Contributor
Contributor

Can't add physical disk to VM

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 the below 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!

0 Kudos
1 Reply
ColoradoMarmot
Champion
Champion

I suspect it's that the virtual disk doesn't look like an actual HPFS+ disk, so time machine won't run on it.  One workaround is to share the drive on the network, then point time machine to the network share.

Another is just to backup the whole VM (not using time machine of course) to an external drive.

0 Kudos