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 RagK
      Hey , I have installed MacOS Mojave on my desktop
       I am facing issue in which the front pane USB ports on my cpu are working only after a reboot.
       
      When I start my PC after a shut down the USB ports docent seem to work as USB pen drive is not detected 
       
      Please Help
    • By 5kr1p7
      Just installed Mojave 10.14.1 (guided by the Shaneee tutorial) and faced a number of problems:
       
      Annoying USB related errors loop when system boot (if anyone got this just wait longer). Entering commands in single user mode commands was really challenging with screen full of errors Reboot/shutdown doesn't work (after lines in console just black screen. Need to push reset/power button) Computer doesn't wake up after sleep Browser are crashing on some web pages (Safari and Chrome on same pages (can't login on rutracker.org for example))  
      USB error:
      ... 2019-04-02 23:52:57.982767+0300 0x1adc     Default     0x0                  0      0    kernel: (AppleUSBEHCI) 000122.778171 UHC4@53000000: AppleUSBEHCI::StopUSBBus: USBSTS.HCHalted did not set as expected: USBCMD 0x00010030 USBSTS 0x00004008 2019-04-02 23:52:57.982779+0300 0x1ad3     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.778184 UHC6@56000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000010 2019-04-02 23:52:57.985297+0300 0x1ad3     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.780706 UHC6@56000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:57.985320+0300 0x1ad3     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.780730 UHC6@56000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000008 2019-04-02 23:52:57.985339+0300 0x1ad3     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.780750 UHC6@56000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:58.021308+0300 0x1ad1     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.816718 UHC2@52000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000010 2019-04-02 23:52:58.023653+0300 0x1ad1     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.819066 UHC2@52000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:58.023664+0300 0x1ad1     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.819078 UHC2@52000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000008 2019-04-02 23:52:58.023673+0300 0x1ad1     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.819087 UHC2@52000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:58.088634+0300 0x1ad7     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.884043 UHC4@53000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000010 2019-04-02 23:52:58.091464+0300 0x1ad7     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.886874 UHC4@53000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:58.091481+0300 0x1ad7     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.886893 UHC4@53000000: AppleUSBHostController::hardwareExceptionThreadCallGated: 0x00000008 2019-04-02 23:52:58.091495+0300 0x1ad7     Default     0x0                  0      0    kernel: (IOUSBHostFamily) 000122.886909 UHC4@53000000: AppleUSBHostController::hardwareExceptionThreadCallGated: attempting recovery 2019-04-02 23:52:58.092790+0300 0x1ad8     Default     0x0                  0      0    kernel: (AppleUSBEHCI) 000122.888199 UHC6@56000000: AppleUSBEHCI::StopUSBBus: USBSTS.HCHalted did not set as expected: USBCMD 0x00010030 USBSTS 0x00004008 2019-04-02 23:52:58.131032+0300 0x1ae4     Default     0x0                  0      0    kernel: (AppleUSBEHCI) 000122.926440 UHC2@52000000: AppleUSBEHCI::StopUSBBus: USBSTS.HCHalted did not set as expected: USBCMD 0x00010030 USBSTS 0x00004008 2019-04-02 23:52:58.196398+0300 0x1ae9     Default     0x0                  0      0    kernel: (AppleUSBEHCI) 000122.991807 UHC4@53000000: AppleUSBEHCI::StopUSBBus: USBSTS.HCHalted did not set as expected: USBCMD 0x00010030 USBSTS 0x00004008 ...  
      Can anyone who fixed theese issues share kexts archive, config.plist, kernel newer than the manual? My PC specs in signature.
    • By outdoormagic
      Short Version:
      I have two drives with the exact same EFI folder (and I can boot into Clover from either one), shouldn't I be able to boot into MacOS from either one?
       
      More Detail:
      I've done a few hacks so far and this never happened. (Gigabyte z370 / 8700k / Vega, Asus z390 / i5-9600k / 1080). Now, I'm setting up a ThinkPad X1 Gen 6. (Yes, I do expect problems on laptops, but that's not the question).
       
      Mojave 10.14.4 now boots from the internal SSD. So far, so good. Here's the problem.
       
      I installed Mojave on a USB drive (for backup / rescue) and copied the entire EFI partition of my boot drive to the EFI partition on the USB drive. So... I should be able to boot from the USB drive, right? Wrong. Ran Clover installer on the USB itself. Same outcome.
       
      With F12, I can boot from the USB into Clover and select the OS on the USB. The boot sequence hangs on End Random Seed, but before the usual '++++++++' line.
      So, boot into Clover on internal boot drive, then select OS on USB. Same thing.
       
      Read the forums, I saw the posts about AptioMemoryFix, so I tried the various other drivers on the USB. No go.
       
      I haven't found the solution yet to the USB boot issue, but what puzzles me is that if I have two drives with the exact same EFI folder (and I can boot into Clover from either one), shouldn't I be able to boot into MacOS from either one?
       
       
    • By lzm010409
      I have a panic report, just after I logged in and I don't know how to fix it. So I ask you to help me to fix my problem.
      In the following lines is my panic report. I've already reinstalled the usb 3.0 drivers, cleared the nvram and some other things...
      I hope someone has some ideas to fix my problem. 
      greetings 
       
      Anonymous UUID:       F2BC1821-9579-45D3-5EF2-2AA16EE73FA3
      Sat Mar 30 21:25:45 2019
      *** Panic Report ***
      panic(cpu 0 caller 0xffffff800d86e2e1): "USB3.0 Hub[0x1000002e2]::terminate(kIOServiceSynchronous) timeout\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4570.71.2/iokit/Kernel/IOService.cpp:2297
      Backtrace (CPU 0), Frame : Return Address
      0xffffff81fab9ba20 : 0xffffff800d26c1c6 
      0xffffff81fab9ba70 : 0xffffff800d395274 
      0xffffff81fab9bab0 : 0xffffff800d387544 
      0xffffff81fab9bb20 : 0xffffff800d21e1e0 
      0xffffff81fab9bb40 : 0xffffff800d26bc3c 
      0xffffff81fab9bc70 : 0xffffff800d26b9fc 
      0xffffff81fab9bcd0 : 0xffffff800d86e2e1 
      0xffffff81fab9bd30 : 0xffffff800d871e17 
      0xffffff81fab9bdb0 : 0xffffff7f8e09a884 
      0xffffff81fab9bdd0 : 0xffffff7f8eaadf2b 
      0xffffff81fab9be10 : 0xffffff7f8eab4271 
      0xffffff81fab9be50 : 0xffffff7f8eab4e1d 
      0xffffff81fab9beb0 : 0xffffff7f8eaace99 
      0xffffff81fab9bed0 : 0xffffff800d2a5844 
      0xffffff81fab9bf40 : 0xffffff800d2a53a5 
      0xffffff81fab9bfa0 : 0xffffff800d21d557 
            Kernel Extensions in backtrace:
               com.apple.iokit.IOUSBFamily(900.4.1)[2837DD62-F2B0-3357-A164-D44FEF6810E0]@0xffffff7f8e05d000->0xffffff7f8e0f7fff
                  dependency: com.apple.iokit.IOPCIFamily(2.9)[AEA4C7F5-CCB0-338B-B471-CF28A9792522]@0xffffff7f8da94000
                  dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CE61D704-9BFF-308E-BC1C-56FF071DBB74]@0xffffff7f8dfb3000
                  dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[E7111D99-B893-3F96-9741-71C88BC6F66B]@0xffffff7f8dfab000
               com.apple.driver.AppleUSBLegacyHub(900.4.1)[F34036CF-9F86-3025-8C0B-18273A15F4A3]@0xffffff7f8eaa0000->0xffffff7f8eab8fff
                  dependency: com.apple.iokit.IOUSBFamily(900.4.1)[2837DD62-F2B0-3357-A164-D44FEF6810E0]@0xffffff7f8e05d000
      BSD process name corresponding to current thread: kernel_task
      Boot args: -v nvda_drv=1 uia_exclude=HS07;HS08;HS09;HS10;HS11;HS12;USR1;USR2;SS01;SS02;SS07;SS08;SS09;SS10 
      Mac OS version:
      17G66
      Kernel version:
      Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
      Kernel UUID: 1AE5ACFD-3B6F-3D74-AD52-31F1430DBC6F
      Kernel slide:     0x000000000d000000
      Kernel text base: 0xffffff800d200000
      __HIB  text base: 0xffffff800d100000
      System model name: iMac17,1 (Mac-B809C3757DA9BB8D)
      System uptime in nanoseconds: 372729949124
      last loaded kext at 363369268564: com.apple.driver.usb.IOUSBHostHIDDevice    1.2 (addr 0xffffff7f8f994000, size 45056)
      last unloaded kext at 189799024800: com.apple.driver.AppleIntelLpssGspi    3.0.60 (addr 0xffffff7f8ef55000, size 45056)
      loaded kexts:
      com.insanelymac.IntelMausiEthernet    2.4.0
      net.osx86.kexts.GenericUSBXHCI    1.2.11
      as.vit9696.WhateverGreen    1.2.6
      as.vit9696.Lilu    1.3.4
      com.rehabman.driver.USBInjectAll    0.6.5
      org.netkas.driver.FakeSMC    1787
      com.apple.filesystems.msdosfs    1.10
      com.apple.filesystems.autofs    3.0
      com.apple.driver.ApplePlatformEnabler    2.7.0d0
      com.apple.driver.AGPM    110.23.37
      com.apple.driver.X86PlatformShim    1.0.0
      com.apple.iokit.CSRBluetoothHostControllerUSBTransport    6.0.7f10
      com.apple.driver.AirPort.Atheros40    700.74.5
      com.apple.filesystems.ntfs    3.13
      com.apple.driver.AppleUpstreamUserClient    3.6.5
      com.apple.driver.AppleMCCSControl    1.5.5
      com.apple.AGDCPluginDisplayMetrics    3.20.13
      com.apple.driver.AppleIntelPCHPMC    2.0.1
      com.apple.driver.AppleOSXWatchdog    1
      com.apple.driver.AppleHV    1
      com.apple.iokit.IOUserEthernet    1.0.1
      com.apple.iokit.IOBluetoothSerialManager    6.0.7f10
      com.apple.driver.pmtelemetry    1
      com.apple.Dont_Steal_Mac_OS_X    7.0.0
      com.apple.driver.eficheck    1
      com.apple.driver.Apple16X50ACPI    3.2
      com.apple.driver.AppleIntelSlowAdaptiveClocking    4.0.0
      com.apple.filesystems.hfs.kext    407.50.6
      com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
      com.apple.BootCache    40
      com.apple.AppleFSCompression.AppleFSCompressionTypeZlib    1.0.0
      com.apple.AppleSystemPolicy    1.0
      com.apple.iokit.SCSITaskUserClient    404.30.2
      com.apple.driver.AppleUSBLegacyHub    900.4.1
      com.apple.filesystems.apfs    748.51.0
      com.apple.driver.AppleAHCIPort    329.50.2
      com.apple.driver.AppleRTC    2.0
      com.apple.driver.AppleACPIButtons    6.1
      com.apple.driver.AppleHPET    1.8
      com.apple.driver.AppleACPIEC    6.1
      com.apple.driver.AppleSMBIOS    2.1
      com.apple.driver.AppleAPIC    1.7
      com.apple.nke.applicationfirewall    183
      com.apple.security.TMSafetyNet    8
      com.apple.security.quarantine    3
      com.apple.driver.usb.IOUSBHostHIDDevice    1.2
      com.apple.driver.usb.cdc    5.0.0
      com.apple.driver.usb.networking    5.0.0
      com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
      com.apple.driver.IOBluetoothHIDDriver    6.0.7f10
      com.apple.kext.triggers    1.0
      com.apple.iokit.IO80211Family    1200.12.2
      com.apple.driver.corecapture    1.0.4
      com.apple.driver.AppleSMBusController    1.0.18d1
      com.apple.iokit.IONDRVSupport    519.20
      com.apple.iokit.IOBluetoothHostControllerUSBTransport    6.0.7f10
      com.apple.iokit.IOBluetoothHostControllerTransport    6.0.7f10
      com.apple.iokit.IOAVBFamily    680.2
      com.apple.plugin.IOgPTPPlugin    680.15
      com.apple.iokit.IOEthernetAVBController    1.1.0
      com.apple.driver.AppleSSE    1.0
      com.apple.iokit.IOSurface    211.15
      com.apple.iokit.IOBluetoothFamily    6.0.7f10
      com.apple.driver.X86PlatformPlugin    1.0.0
      com.apple.driver.IOPlatformPluginFamily    6.0.0d8
      com.apple.driver.Apple16X50Serial    3.2
      com.apple.iokit.IOSerialFamily    11
      com.apple.vecLib.kext    1.2.0
      com.apple.AppleGPUWrangler    3.20.13
      com.apple.AppleGraphicsDeviceControl    3.20.13
      com.apple.iokit.IOGraphicsFamily    519.20
      com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
      com.apple.iokit.IOUSBMassStorageClass    4.0.4
      com.apple.iokit.IOUSBHIDDriver    900.4.1
      com.apple.driver.AppleUSBComposite    900.4.1
      com.apple.filesystems.hfs.encodings.kext    1
      com.apple.driver.usb.AppleUSBHostPacketFilter    1.0
      com.apple.iokit.IOSCSIMultimediaCommandsDevice    404.30.2
      com.apple.iokit.IOBDStorageFamily    1.8
      com.apple.iokit.IODVDStorageFamily    1.8
      com.apple.iokit.IOCDStorageFamily    1.8
      com.apple.iokit.IOAHCISerialATAPI    267.50.1
      com.apple.iokit.IOAHCIBlockStorage    301.40.2
      com.apple.iokit.IOAHCIFamily    288
      com.apple.iokit.IOUSBFamily    900.4.1
      com.apple.driver.usb.AppleUSBXHCIPCI    1.2
      com.apple.driver.usb.AppleUSBXHCI    1.2
      com.apple.driver.AppleEFINVRAM    2.1
      com.apple.driver.AppleEFIRuntime    2.1
      com.apple.iokit.IOSMBusFamily    1.1
      com.apple.iokit.IOHIDFamily    2.0.0
      com.apple.security.sandbox    300.0
      com.apple.kext.AppleMatch    1.0.0d1
      com.apple.driver.DiskImages    480.60.1
      com.apple.driver.AppleFDEKeyStore    28.30
      com.apple.driver.AppleEffaceableStorage    1.0
      com.apple.driver.AppleKeyStore    2
      com.apple.driver.AppleUSBTDM    439.70.3
      com.apple.driver.AppleMobileFileIntegrity    1.0.5
      com.apple.iokit.IOUSBMassStorageDriver    140.70.2
      com.apple.iokit.IOSCSIBlockCommandsDevice    404.30.2
      com.apple.iokit.IOSCSIArchitectureModelFamily    404.30.2
      com.apple.iokit.IOStorageFamily    2.1
      com.apple.driver.AppleCredentialManager    1.0
      com.apple.driver.KernelRelayHost    1
      com.apple.iokit.IOUSBHostFamily    1.2
      com.apple.driver.usb.AppleUSBCommon    1.0
      com.apple.driver.AppleBusPowerController    1.0
      com.apple.driver.AppleSEPManager    1.0.1
      com.apple.driver.IOSlaveProcessor    1
      com.apple.iokit.IOReportFamily    31
      com.apple.iokit.IOTimeSyncFamily    680.15
      com.apple.iokit.IONetworkingFamily    3.4
      com.apple.driver.AppleACPIPlatform    6.1
      com.apple.driver.AppleSMC    3.1.9
      com.apple.iokit.IOPCIFamily    2.9
      com.apple.iokit.IOACPIFamily    1.4
      com.apple.kec.pthread    1
      com.apple.kec.Libm    1
      com.apple.kec.corecrypto    1.0
      EOF
      Model: iMac18,2, BootROM 166.0.0.0.0, 4 processors, Intel Core i5, 3,50 GHz, 16 GB, SMC 2.40f0
      Graphics: NVIDIA GeForce GTX 970, NVIDIA GeForce GTX 970, PCIe
      Memory Module: BANK 0/DIMM1, 8 GB, DDR4, 2400 MHz, G Skill Intl, F4-2400C15-8GNT
      Memory Module: BANK 1/DIMM1, 8 GB, DDR4, 2400 MHz, G Skill Intl, F4-2400C15-8GNT
      AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x30A4), Atheros 9287: 4.0.74.0-P2P
      Bluetooth: Version 6.0.7f10, 3 services, 26 devices, 1 incoming serial ports
      Network Service: Ethernet, Ethernet, en0
      PCI Card: NVIDIA GeForce GTX 970, Display Controller, Slot-1
      Serial ATA Device: SAMSUNG HD502HI, 500,11 GB
      Serial ATA Device: HL-DT-ST DVDRAM GH24NSD1
      Serial ATA Device: ST1000DM003-1SB10C, 1 TB
      Serial ATA Device: SPCC Solid State Disk, 120,03 GB
      USB Device: USB 3.0 Bus
      USB Device: USB Device
      USB Device: CSR8510 A10
      USB Device: G533 Gaming Headset
      Thunderbolt Bus: 
       
    • 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
       
       
×