Jump to content
joaquinp

Create macOS Sierra USB installer in Virtual Box VM without error copying files

2 posts in this topic

Recommended Posts

Hi, this is my first post in this forum and maybe my first or second post in a forum also :thumbsup_anim: , I decided to wite this post after looking in the web and doing lot of research without any good result to it, and i was so enthusiastic about building my hackintosh laptop that i finally found the way to my problem.

 

I dont have access to real macbook or mac, so following one of the hundred post of internet about running osx in virtualbox I got my first osx run, i inmediatly downloaded sierra app [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url], clover conf and all necessary tools, and started my long way to the obtention of a bootable usb.

 

Every method i tested([url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url], vanilla, clover, etc) failed copying files to the usb, despite I had installed extension packs and all necessary stuff to get usb working on the vm (also I tested doing it in ubuntu vbox) failed in copyng installer files, base system or any other step, in fact the usb unmounted after 20-30 min, so finally I ended up testing to create a "virtual usb" and fantastically it done all the steps without problems, so then i managed to get that virtual usb data to a physical usb here are the steps:

 

First of all you need vbox running osx and all the necessary stuff to build the usb with your prefered method, then you need to install qemu-img for your host OS (i tested perfectly in windows and ubuntu) and finally you will need to install optionally win32diskimagger, a tool to write any img files to usb in windows (qemu support writing directly to usb device but the absence of progress bar stressed me :lol:, in case you use ubuntu no porblem write directly).

 

We start creating the new virtual drive to our mac vm:

1. Go to vm settings

post-1625952-0-24258400-1489599520_thumb.png

 

2. Enter to storage tab and create the drive as the following images:

post-1625952-0-12581500-1489599522_thumb.png

 

3. Select disk type (I always tested with vmdk cause i knew it was supported by qemu-img). 

post-1625952-0-51272100-1489599523_thumb.png

 

4. Choose fixed size.

post-1625952-0-02400300-1489599525_thumb.png

 

5. Press next and select folder, name and size, I recommend to select 8,5GB as size, the default folder is vm folder

post-1625952-0-71715500-1489599758_thumb.png

 

6. Afther that your vm has a new virtual device that behave exactly as a physical device plugged in, so next steps are on your own doing the usb bootable with your prefered method but selecting the virtual drive as target. The information will be stored in vmdk file in host system drive.

7. After successfully complete the previous steps, you should have two partitions in the virtual device (usually EFI and System installation partition), so now you can exit and power off the vm.

8. In ubuntu open a terminal in the folder where the vmdk is stored(default is virtual machine folder), in widows I recommend to move vmdk to the folder where reside the quemu-img.exe files, then type cmd in the path bar.

post-1625952-0-40349800-1489599531_thumb.png

9. In the terminal type the command to convert the vmdk to img in windows, in ubuntu ask the quemu-img to write directly to the usb device, so you need to insert the real usb pendrive to write.

post-1625952-0-37969400-1489599526_thumb.png

 

Windows command: qemu-img.exe convert usb.vmdk -O raw disk.img

Ubuntu command: qemu-img convert test.qcow2 -O raw /dev/sdbX (type "sudo df" command to get /dev path of the usb, is different to the /media path)

In both OS the process takes some minutes, when it finishes the terminal will be ready to type new command.

In case you did it with ubuntu method your UBS is READY TO BOOT!!

 

10. In windows open Win32DiskImagger, select img file, target drie(usb letter), and pres WRITE!

post-1625952-0-18436100-1489599533_thumb.png

 

Congrats! You are done!, now you have a bootable usb of OSX, now you are ready to fight with kernel panics, :beachball: of death, missing kext and all that stuff that need to be done before reaching your runnin hackintosh :lolno::crazy:.

Thanks for reading I hope it was useful for you, this is my first important contributon to a forum.

 

PD: sorry my bad english.

PD2: any question suggestion or corrections are welcome.

PD3: if you have problem finding the required stuff just let me know, i attached qemu for 64bit , win32diskimagger is easily downloadable via sourceforge.

PD4: the original idea was to publish this via TM but they banned because talking about VM´s, anyway I think is big problem unsolved before this publication hope you like guys.

qemu-img-win-x64-2_3_0.zip

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By SPAMMER
      No sense re-inventing the wheel.
       
    • By TheAngryYeti
      First, my build:
       
      Asus ROG Strix H370-I mobo
      i5 8400 cpu
      32gb ddr 4 2133
      1tb samsung evo 860 ssd
       
      Ive finally gotten to the point where the installation of HS loads to the language selection screen, but then i lose all usage of every USB port.
       
      Im at a loss of what to do from here.
       
      According to others, i have the proper files in the kexts/other folder as well as the drivers64UEFI folder.
       
      Does anyone have any suggestions as to what i can do? Im getting kinda desperate as ive been at it for a week now and this is as far as ive gotten.
       
      -Sin
       
       
    • By TheAngryYeti
      So I FINALLY got my High Sierra thumb drive to boot and once I got to the language selection screen, I noticed I lost all connectivity to my keyboard and mouse.
       
      i tried plugging in both into all of my USB ports (2.0, 3.0, 3.1) to no avail.
       
      i made sure I had the latest USBInject kext and XHCI-Unsupported kext in the Other folder.
       
      i also noticed whilst troubleshooting, the thumb drive will ONLY boot using Verbose and plugged into one of the 2 3.1 ports.
       
      does anyone have ANY suggestions?? I’ve been struggling for a week now on this!!
       
      thanks in advance
       
      -Sin
       
      Build: Asus ROG Strix H370-I, i5 8400, 32Gb ddr 4 2133, 1Tb Samsung EVO 860 ssd
    • By djamiirr
      Hello Guys. I have macOS High Sierra installed on my Lenovo g50-80 laptop. At the beginning, everything was working fine, but recently, usb ports stops working suddenly sometimes when i replug usb device, wake up from sleep or by himself (no action) and the only solution is to reboot. lsusb shows that device still plugged when i remove it. I have USBInjectAll.kext in /S/L/E. how can i identify the problem? And thanks.
    • By valueimagery
      Hey Everybody,
       
      I was hoping that the recently released BIOS update for the ASUS Maximus X Code (version 1801) would resolve my two remaining issues of sleep/ USB 3.1 drives ejecting from the ASMEDIA controller.
       
      I have a seperate thread here describing the problem in detail:
       
      https://www.insanelymac.com/forum/topic/337048-almost-successful-asus-maximus-x-code-i7-8700k-amd-rx-580/
       
      As of yet it the update hasn't resolved the issue.  But could someone clarify if a new DSDT.aml file is needed once upgrading a motherboard's BIOS?
       
      I am currently using the one from this thread:
       
      I've already created a working SSDT file for my 15 USB ports, this is more in relation to the ASMEDIA 3.1 ports and sleep not working.
       
      Cheers,
      Shark
       
×