tlac Posted February 16, 2020 Share Posted February 16, 2020 (edited) Simple steps to create macOS Installer for Vmware on Linux or Windows This guide describes how you can create a Vmware image (vmdk) for installing macOS in Vmware. Most tutorials about this topic require an ISO installer file that was typically created in macOS or you have to download some preinstalled image file from unknown source. None of them are ideal. But if you follow the steps below, you will not need to access macOS and will use official and trusted sources. First of all download gibMacOS from here and set uphttps://github.com/corpnewt/gibMacOS Run the script to download the full macOS installer:on Linux: gibMacOS.command on Windows: gibMacOS.bat Install qemu-img converteron Linux (Debian or Ubuntu): install qemu-tools packageon Windows use this installer:https://qemu.weilnetz.de/w64/ when you run the installer, it is enough to select the "tools" and "dll library". Convert the downloaded BaseSystem.dmg to Vmware image run the following commmand in that directory where BaseSystem.dmg was downloaded (somewhere here: gibMacOS-master/macOS Downloads/publicrelease/061-44387 - 10.15.3 macOS Catalina)on Linux: qemu-img convert -O vmdk -o compat6 BaseSystem.dmg recovery.vmdk on Windows: c:\"Program Files"\qemu\qemu-img convert -O vmdk -o compat6 BaseSystem.dmg recovery.vmdk Use the previously created image to install macOS in Vmware I assume you have a patched and working Vmware already. If not, find another guide but in nutshell: - confirm the VT-x is supported on your Intel machine (if you are on AMD you may not able to virtualize macOS or you need to do more work) - install VMware Workstation or VMware Workstation Player (free for non-commercial use) - use an unlocker to patch the Vmware to support macOS guest currently this works well: https://github.com/BDisp/unlocker/ So when you are here you have a patched Vmware and a Vmware image (recovery.vmdk). Run Vmware and create a new virtual machine by choosing macOS guest. But add another hard disk as well with selecting to use an existing virtual disk. Browse the recovery.vmdk. You will get a warning about the image is not in the latest format but choose to keep the existing format. After you installed the macOS, install the vmware tools as well. Tested on Windows 10 with macOS Catalina 10.15.3 in Vmware 15.5 Player Comments are welcome. Edited February 17, 2020 by tlac 5 4 Link to comment Share on other sites More sharing options...
Mokus Posted February 29, 2020 Share Posted February 29, 2020 Thanks for this guide, I am having some trouble with the last step, when the recovery.vmdk is created its size is only 1,3 gb for Catalina, is this the correct size ? Because from some videos I've seen before that size should be much larger (around 7GB ?). Any way I tried to start the VM with that recovery.vmdk but it hangs at the first apple logo and nothing happens, I tried to wait for 20 minutes but still nothing. If someone can help to point me in what I might be doing wrong I would be grateful. 1 Link to comment Share on other sites More sharing options...
tlac Posted February 29, 2020 Author Share Posted February 29, 2020 (edited) Yes, the size is correct. It contains only the recovery tool but it will download the full installer on the fly. Do you have any progress bar under the Apple logo? What operating system and vmware do you use? Edited February 29, 2020 by tlac 1 Link to comment Share on other sites More sharing options...
Naki Posted March 3, 2020 Share Posted March 3, 2020 Thanks for what you did, sounds very useful. And probably was lots of work. For me, I historically use various macOS VMs for over 7 years now, on lots of VMware Workstation versions released by VMware over the years, I recall using version 10.x, and probably older too. So, a long time ago I got the 10.7 version VMware VM, and then after that as years go by I usually simply upgrade to the newer one - of course, keeping OLD one too, as I need to test software for my work in ALL supported macOS versions! (and sometimes I download files from strange persons that share them, did not get any issues with that until now..) Link to comment Share on other sites More sharing options...
Mokus Posted March 7, 2020 Share Posted March 7, 2020 There was no progress bar, and I'm using win 10 with VMware 15.0 but I figured it out, it was the VMware version, I was using the 15.0 VMware version and the mac operating system that was offered went only up to 10.14 now I found a more update version of VMware 15.5 and it offers the Catalina version as well 10.15. Everything works now. Thank you for taking the time to write me 1 Link to comment Share on other sites More sharing options...
tlac Posted March 7, 2020 Author Share Posted March 7, 2020 great news, thanks for the update 1 Link to comment Share on other sites More sharing options...
phonix Posted April 20, 2020 Share Posted April 20, 2020 On 3/1/2020 at 4:25 AM, tlac said: Yes, the size is correct. It contains only the recovery tool but it will download the full installer on the fly. Do you have any progress bar under the Apple logo? What operating system and vmware do you use? I can reach to this screen but there are no more progress indicator. I have waited a night but no hope. Please help! 1 Link to comment Share on other sites More sharing options...
tlac Posted April 20, 2020 Author Share Posted April 20, 2020 I can ask you the same thing: What operating system and vmware do you use? 1 Link to comment Share on other sites More sharing options...
phonix Posted April 21, 2020 Share Posted April 21, 2020 I used version 15.5.1 build-15018445. I installed https://codeload.github.com/BDisp/unlocker/zip/3.0.3 My CPU is Intel. And I my host is Ubuntu 19.1. Thanks for your support. I can launch a macOSX now using an vmdk Thanks! 1 Link to comment Share on other sites More sharing options...
Naki Posted April 21, 2020 Share Posted April 21, 2020 8 hours ago, phonix said: I used version 15.5.1 build-15018445. I installed https://codeload.github.com/BDisp/unlocker/zip/3.0.3 My CPU is Intel. And I my host is Ubuntu 19.1. Thanks for your support. I can launch a macOSX now using an vmdk Thanks! Great! Thanks for letting us know you found a way to make it work. You are welcome. I think with this VMware Workstation version, and this Unlocker version you are using you should be fine updating your macOS Catalina to latest version, as of now - 10.15.4. (I assume this download you used is not the latest version) Just in case, first please create a snapshot of the VM, as well as copy the VM folder files someplace safe, should anything wrong happen with/after the update to latest macOS Catalina version. Please let us know how it goes. Link to comment Share on other sites More sharing options...
yellowharry Posted April 21, 2020 Share Posted April 21, 2020 Thanks for writing this great guide! I am trying to install Catalina on Windows 10 machine. gibMacOS downloaded 11 files totaling 8.13GB. The install starts but its downloading the file from internet. How do I use the existing downloaded files to install the macOS instead of installer re-downloading all the files again? 1 Link to comment Share on other sites More sharing options...
tlac Posted April 21, 2020 Author Share Posted April 21, 2020 Unfortunately you cannot do that. The full installer is in more complex format. The simple "quemu-img convert" trick does not work on it. 1 Link to comment Share on other sites More sharing options...
yellowharry Posted April 21, 2020 Share Posted April 21, 2020 6 minutes ago, tlac said: Unfortunately you cannot do that. The full installer is in more complex format. The simple "quemu-img convert" trick does not work on it. Thanks for the reply. I am looking into https://guide.hackintoshisfun.ml/#/offline-installer-guide/offline-part-1/ Although this is for a USB full installer and I dont have a USB handy. But I am trying to see if I can replicate these step coupled with your VMware guide: "Click on your USB and go to macOS Base System (or OS X Base System)/Install macOS xxx.app/Contents" "Drag and drop the prepared SharedSupport folder here" I will let you know how it goes. 1 Link to comment Share on other sites More sharing options...
tlac Posted April 21, 2020 Author Share Posted April 21, 2020 I'm not sure what you want to achieve. Why don't let the installer download again the files in vmware? 1 Link to comment Share on other sites More sharing options...
yellowharry Posted April 21, 2020 Share Posted April 21, 2020 (edited) 15 minutes ago, tlac said: I'm not sure what you want to achieve. Why don't let the installer download again the files in vmware? Their python script created a "shared support" folder with 7.18GB of InstallESD.dmg. But I can see that's not enough for offline installer. My internet goes down randomly. So trying my hands on creating an offline installer. But even that is not going smooth. So few more tries and then I am off trying my luck with internet installer Edited April 21, 2020 by yellowharry Link to comment Share on other sites More sharing options...
tlac Posted April 21, 2020 Author Share Posted April 21, 2020 19 hours ago, phonix said: I used version 15.5.1 build-15018445. I installed https://codeload.github.com/BDisp/unlocker/zip/3.0.3 My CPU is Intel. And I my host is Ubuntu 19.1. Thanks for your support. I can launch a macOSX now using an vmdk Thanks! This is what I wanted to avoid. Using unknown image file. Anyway I experienced similar problem on Linux with Vmware 15.5 Player. I think this version is buggy. But it works on Windows. So on Linux I could get through the language selection, the diskutility and disk selection. But the progress bar stuck at last step, before the welcome screen. If I click and press random characters, I hear the macOS sounds but the screen is not visible. Perhaps we should try an older version. Link to comment Share on other sites More sharing options...
Deridjian Posted June 8, 2020 Share Posted June 8, 2020 I tried this following your steps exactly but get a constant boot loop when powering the machine with the converted recovery.vmdk Arch Linux Kernel 5.6.15 Intel G3258 Anniversary Edition (Haswell) dual core 3.2GHz (VT-x enabled) Workstation 15.5.5 build-16285975 unlocker 3.0.3 from the codeload links from the Workstation 15 thread:https://www.insanelymac.com/forum/topic/340416-unlocker-vmware-workstation-155/?page=3#comment-2725260 (I commented there as well) Workstation appears to be patched fine, can choose OS 10.16 even gibMacOS downloaded 001-12336 - 10.15.5 macOS Catalina successfully recovery.vmdk got converted successfully created the disk with UEFI, 150GB main hard disk, added a second hard disk using the existing recovery.vmdk, kept formatting, did not add any config options manually It won't even begin to load the bar at all, the apple just appears briefly and then it reboots. The vmware.log just says: 2020-06-08T12:29:04.459-05:00| vcpu-0| W003: DarwinPanic: panic(cpu 0 caller 0xffffff800d8c2b52): initproc exited -- exit reason namespace 2 subcode 0x4 description: none 2020-06-08T12:29:04.460-05:00| vcpu-0| I005: Chipset: The guest has requested that the virtual machine be hard reset. Link to comment Share on other sites More sharing options...
tlac Posted July 7, 2020 Author Share Posted July 7, 2020 (edited) I have an idea. Edit the VMX file and add this line: smc.version = "0" Edited July 7, 2020 by tlac Link to comment Share on other sites More sharing options...
hoaivan Posted July 29, 2020 Share Posted July 29, 2020 On 7/7/2020 at 8:44 PM, tlac said: I have an idea. Edit the VMX file and add this line: smc.version = "0" I tried this on Manjaro + Vmware 15.5. It still stuck at full loading bar. Log file is here https://pastebin.com/9AC8BNv5 Do you have any idea? Link to comment Share on other sites More sharing options...
tlac Posted July 29, 2020 Author Share Posted July 29, 2020 Actually I wrote that comment for Deridjian. But which step did you stick at the logo? Is it the very first before the language selector? And how much time did you wait? Link to comment Share on other sites More sharing options...
xilex Posted August 15, 2020 Share Posted August 15, 2020 Do you know how to convert recovery.vmdk so it is compatible with ESXi host? The file works fine in VMWare Workstation. I'm going to install inside Workstation then export it, but would like to know if we can easily convert. I tried to use this (https://communities.vmware.com/thread/472934) but did not seem to work. Thanks. 1 Link to comment Share on other sites More sharing options...
tlac Posted August 28, 2020 Author Share Posted August 28, 2020 On 8/15/2020 at 10:31 PM, xilex said: Do you know how to convert recovery.vmdk so it is compatible with ESXi host? The file works fine in VMWare Workstation. I'm going to install inside Workstation then export it, but would like to know if we can easily convert. I tried to use this (https://communities.vmware.com/thread/472934) but did not seem to work. Thanks. no idea, never used ESXi 1 Link to comment Share on other sites More sharing options...
Recommended Posts