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 superdooper71
      Hi I wonder if you can help me out guys.
      I have few issues here
      • First
      when I boot the clover entry screen do not show the disk icons until i press enter
      (If I disconnect the keybord all is smooth, clover start, shows disk icons and boot from Mojave)
      • Second
      Randomly the keyboard and mouse become pretty unstable. The mouse cursor start flashing or the keyboard start to type repetedly <<<<<<<<<<< when i Press the spacebar or some other button
      (this behaviour is applied to all keyboard I have tried, actually 3 different ones)
      --------------------------------------------------------------------
      KB and Mouse are plugged on a USB 3.0 ports
      I have tried to reset the keyboard Pref but NO LUCK
      I have changed Keyboard - Same error
      --------------------------------------------------------------------
      I enclose IOREGregistry and config.plist
       
      MY CURRENT BUILD
      ASROCK Z270 PRO4
      i7 7700K
      32GB DDR4
      Gigabyte GTX 760
       
      I believe that there is some code conflict but I have no idea what is wrong
       
      Please HELP
      Cheers
      Franco
      config.plist
      iMac di imac27.ioreg.zip
    • By denkteich
      Hi all,

      after I upgraded to 10.14.6 the number of usable USB ports decreased.
      USBInjectAll is loaded.

      Any suggestions on how to get all ports working again?

      cheers
      .d
    • By chummdoggin
      A setup with an IVY bridge e5430 dell worked fine. but now seems the XHC device
      is a hardware issue. There is no bios setting to enable disable. Only enable/disable boot/external.USB in general.
      All set to enable. Also just mention of USB in power settings wake on USB.
       
      Did show up when I set up the ports w/USBINJECTALL, then was working on imessage isssue when the DSDT
      stopped loading after updating clover. I had two versions of MAcIasl. One with iasl 6. and one had 6.2a. Kept
      the 6.2a, was RM's most recent. One problem Im confused by is it compiles fine but after saved if its opened,
      the error that was repaired comes back.
       
      This part:
       
                      If (LEqual (PM6H, One))
                      {
                          CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW)  // _RW_: Read-Write Status
                          Store (Zero, ECRW (If (PM0H)
                                  {
                                      CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN)  // _LEN: Length
                                      Store (Zero, F0LN)
                                  }))
                      }
       
      Loads with the error but not sure what happened on the original that worked.
       
      Any Idea?
       
      Going over the boot log, The XHC device is there under the PCI readings dont think hardware issue... 1e31 Just seems the saved DSDT should not
      have errors after saved, but using the other version of Maciasl, the DSDT would save without errors and open without but it would not load.
      acted like there was no FakeSMC... 
       
      Edit: Seems all the saved DSDT have that error when re-opened using that version  RM's Maciasl w/iasl v.6.2a but seems to load fine.

       
      debug_8785.zip
    • By susteve
      Hello, I am new here, so I apologize if I've chosen the wrong subforum for this question. 
       
      I am scratching my head a bit on an issue with a clients MacBook pro.  He was having USB connection issues and claimed the laptop wasn't detecting any USB connected to it. 
       
      Figuring it was a failed USB port, I took it in but ended up just feeling more confused after doing some diagnostics. 
       
      It came in loaded with Catalina, a recent upgrade spurned the beginning of the issues the client told me. 
       
      I decided to revert it back to the default OS in the base recovery image, which is Yosemite. 
       
      Upon finishing the install, I found that the USB port was in fact working again. Figuring I had resolved the issue, I updated it back to Catalina just to be met with the same issue upon reinstalling. 
       
      SMH 
       
      Tried nvram, pram, and smc reset each to no avail.  
       
      One thing to note is that during boot, the USB is getting power as it lights up when connected during boot up. 
       
      But the ports are dead as soon as it boots into the operating system. 
       
      I have a strong feeling that this is a driver issue. I tried unloading and reloading the USB IO kext, with no noticable change. 
       
      Is anyone here familiar with this issue? Would there be any other kext related troubleshooting i can perform ? Is it possible to revert to the kext used in Yosemite on catalina ?
       
      One last thing to note, on Yosemite the USB was functioning 100%. But I did get a strange notification that the USB ports were using power even when there wasn't any connected to it. Either way, I find it very very odd that it works perfectly in Yosemite. 
       
      Thanks in advance
       
      Steve 
    • By jdorz
      Hello all,

      I have successfully gotten my Hackintosh working 99 percent. The remaining issue that I am running into is that my system will randomly kernel panic upon a user issued shutdown or reboot WHEN I have either a usb sound card or usb headset plugged into any of my USB ports (both 2.0 and 3.0). If I remove the headset, it will power down with no issues. Does anyone have any suggestions?

      My system is as follows:
      MacOS 10.14 Mojave
      Gigabyte H370 HD3
      8400 i5 Coffee Lake
      Radeon RX 580 sound card

      Fixed
       
      Solution
       
      Use this folder for serie 100/200/300
      https://olarila.com/forum/viewtopic.php?f=28&t=8222
       
      reboot and extract one send_me for full dsdt patch by MaLd0n
      --Run_Me
      RunMe.app
       
       
       
×