VirtualBox

Ticket #16644 (new defect)

Opened 3 years ago

Last modified 12 months ago

Installation of clean OSX 10.12.4 fails.

Reported by: socratis Owned by:
Component: other Version: VirtualBox 5.1.18
Keywords: Cc:
Guest type: OSX Server Host type: Mac OS X

Description

  • Create a new OSX VM with the 10.11 template. Download the 10.12.4 installer from the AppStore. Use the installation script from  Howto: Create OSX ISO from the OSX Install app
  • Issue 1: the VM will not proceed with the installation, unless USB3 is specifically enabled in the template; the template needs an update (or a new 10.12 template) that makes USB3 mandatory.
  • Issue 2: the VM gets stuck on the following:
    IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 0, sm 0x0
    

Some users have reported this error with previous OSX versions, when the Finder "kicks" them out of the system with that message and to the login screen. Will try to find the reference.

Please note that an OSX 10.12.3 will update just fine. The same client will fail. Nothing relevant in the logs unfortunately.

Attachments

OSX 10.12.4-2017-04-10-18-45-49.log.zip Download (25.8 KB) - added by socratis 3 years ago.
OSX 10.12.4_10_04_2017_18_45_07.png Download (44.0 KB) - added by socratis 3 years ago.
20170426 OSX Sierra.vbox Download (6.0 KB) - added by michielie 3 years ago.
Working OSX Sierra VM config file
Screen Shot 2017-04-28 at 16.50.09.png Download (156.2 KB) - added by VitalyM 3 years ago.
vbox-logs.tar.gz Download (176.5 KB) - added by widhaya3 12 months ago.
vbox and logs files of both El Capitan and Sierra guest.
vbox-log-macbook-pro-retina.tar.gz Download (120.6 KB) - added by widhaya3 12 months ago.
vbox and logs files of Sierra VM on MacBook Retina.

Change History

Changed 3 years ago by socratis

Changed 3 years ago by socratis

comment:1 Changed 3 years ago by ladybugz

I am having the same issue 2: getting stuck at IOConsoleUsers: gIOSScreenLockState.... but using VirtualBox Version 5.1.20 r114629 (Qt5.6.2). Have tried changing several VirtualBox settings and nothing works.

Last edited 3 years ago by ladybugz (previous) (diff)

comment:2 Changed 3 years ago by DenisFR

The same for me.

comment:3 Changed 3 years ago by michielie

<removed>

Last edited 3 years ago by michielie (previous) (diff)

Changed 3 years ago by michielie

Working OSX Sierra VM config file

Changed 3 years ago by VitalyM

comment:4 follow-up: ↓ 5 Changed 3 years ago by VitalyM

Tested "Working OSX Sierra VM config file" - hangs too. I attached hanging screenshot. BTW I tested 2 images created by  https://forums.virtualbox.org/viewtopic.php?f=22&t=81443 and  https://github.com/geerlingguy/macos-virtualbox-vm

Last edited 3 years ago by VitalyM (previous) (diff)

comment:5 in reply to: ↑ 4 Changed 3 years ago by michielie

<removed>

Last edited 3 years ago by michielie (previous) (diff)

comment:6 Changed 3 years ago by socratis

@michielie
OSX installs are only supported on Apple hardware.
See:  Important notice regarding Mac OS X as Guest.

comment:7 Changed 3 years ago by VitalyM

As for me I use MacBook Pro (Retina, 15-inch, Mid 2014) + macOS Sierra 10.12.4 + the latest VirtualBox for today. See other people facing the same issue  https://github.com/geerlingguy/macos-virtualbox-vm/issues/24

comment:8 Changed 3 years ago by socratis

@VitalyM
You posted that link 10 days ago. Still no solution there. Any particular reason you posted it again?

comment:9 Changed 3 years ago by VitalyM

@socratis the first link is repository home - instruction I used to make iso. The 2-nd link is a particular issue.

comment:10 Changed 3 years ago by DenisFR

The same with 10.12.5 and VB 5.1.22.

comment:11 Changed 3 years ago by petri

Same config as DenisRF: 10.12.5 both as host and guest, VB 5.1.22

comment:12 Changed 2 years ago by IOOI

Same effect on both a early 2011 MBP running 10.10.5 and a mid 2014 MBP running 10.10.5 as host. Both get until this message when booting from a 10.12.5.iso which was created using said script.

comment:13 follow-up: ↓ 14 Changed 2 years ago by sector7gp

Same Here! VB 5.1.22 over OSX 10.10.5

comment:14 in reply to: ↑ 13 Changed 2 years ago by sector7gp

Replying to sector7gp:

Same Here! VB 5.1.22 over OSX 10.10.5

AND CRASHED MY PREVIEW INSTALLATION :S

comment:15 follow-ups: ↓ 16 ↓ 20 Changed 2 years ago by sector7gp

Ok! SOLVED!!!! run the unintall scrip from your previews version, reboot ur mac and run the installer again! works for me

comment:16 in reply to: ↑ 15 Changed 2 years ago by socratis

Replying to sector7gp:

Ok! SOLVED!!!! run the unintall scrip from your previews version, reboot ur mac and run the installer again! works for me

I didn't notice your comment until today. Can you please explain in full detail what was "solved"? And how? Which "uninstall script" are you referring to? And which "installer"?

comment:17 Changed 2 years ago by franiu

Still failing, VirtualBox 5.1.26 r117224, host macOS 10.12.5 (16F73).

http://i.imgur.com/xMNMxWc.png

Any new development on this?

comment:18 Changed 2 years ago by socratis

@franiu
Things in the open source world don't get to be secret. So, if there was a new development on this, you would have known it by now. Ergo, there is not.

Glad you subscribed to the ticket, but remember that either you provide a solution, or patience is a virtue.

comment:19 Changed 2 years ago by Fark

+1

comment:20 in reply to: ↑ 15 Changed 2 years ago by joseluisbz

Replying to sector7gp:

Ok! SOLVED!!!! run the unintall scrip from your previews version, reboot ur mac and run the installer again! works for me

Please put your procedure, Thank you.

comment:21 Changed 2 years ago by m-m

+1

comment:22 Changed 2 years ago by michaln

It turns out that the macOS Sierra 10.12.4 (and later) installer won't boot on a system where the EFI firmware vendor is "EDK II", which includes VirtualBox. That behavior is specific to the Sierra 10.12.4+ installer and does not apply to an older Sierra install updated to 10.12.4 or later. Whether this behavior is intentional is something only Apple can answer.

High Sierra beta 6 (build 17A344b) does not exhibit this behavior, therefore no fix is currently planned on the VirtualBox side.

The USB problem (installer hangs earlier unless xHCI emulation is used) is probably unrelated.

comment:23 Changed 2 years ago by michaln

The problem with USB is also specific to the Sierra (and High Sierra) installers, but it happens in 10.12.3 already. Basically the installer boots if the VM is configured with either xHCI or OHCI, but not with OHCI + EHCI. Again the installed OS behaves differently.

comment:24 Changed 2 years ago by spoorcc

+1

comment:25 in reply to: ↑ description Changed 2 years ago by Uli

+1

comment:26 in reply to: ↑ description ; follow-up: ↓ 27 Changed 12 months ago by widhaya3

Replying to socratis:

  • Create a new OSX VM with the 10.11 template. Download the 10.12.4 installer from the AppStore. Use the installation script from  Howto: Create OSX ISO from the OSX Install app
  • Issue 1: the VM will not proceed with the installation, unless USB3 is specifically enabled in the template; the template needs an update (or a new 10.12 template) that makes USB3 mandatory.
  • Issue 2: the VM gets stuck on the following:
    IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 0, sm 0x0
    

Some users have reported this error with previous OSX versions, when the Finder "kicks" them out of the system with that message and to the login screen. Will try to find the reference.

Please note that an OSX 10.12.3 will update just fine. The same client will fail. Nothing relevant in the logs unfortunately.

I try to change paravirtualization interface to "None", and it's work.

#https://gist.github.com/arobb/447a962af4f07ef81e79987d686275e5
#https://www.insanelymac.com/forum/topic/292170-how-to-spoof-real-mac-in-vmware/
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F22589C8"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "CK1156I6DB6"
VBoxManage modifyvm "$NAME" --paravirtprovider none

#REVERT BACK WHEN FINISH INSTALLATION
VBoxManage modifyvm "$NAME" --paravirtprovider default

comment:27 in reply to: ↑ 26 ; follow-up: ↓ 28 Changed 12 months ago by socratis

Replying to widhaya3:

I try to change paravirtualization interface to "None", and it's work.

No it doesn't. You didn't try with an official 10.12.x application installer, you tried with a Hackintosh, which is not supported (see:  Mac OS X guest on a Windows Host). That's why you need all the extra settings like the "DmiBoardProduct" and "DmiSystemSerial". You don't need those if you're running VirtualBox on a Mac.

If you try to run an original 10.12.5 OSX installer, it fails with the following message, even if the Paravirtualization is set to "None":

       
       
       ***********************************************************
       This version of Mac OS X is not supported on this platform!
       ***********************************************************
       Reason: VirtualBox
       
       
Last edited 12 months ago by socratis (previous) (diff)

comment:28 in reply to: ↑ 27 Changed 12 months ago by widhaya3

Replying to socratis:

Replying to widhaya3:

I try to change paravirtualization interface to "None", and it's work.

No it doesn't. You didn't try with an official 10.12.x application installer, you tried with a Hackintosh, which is not supported (see:  Mac OS X guest on a Windows Host). That's why you need all the extra settings like the "DmiBoardProduct" and "DmiSystemSerial". You don't need those if you're running VirtualBox on a Mac.

If you try to run an original 10.12.5 OSX installer, it fails with the following message, even if the Paravirtualization is set to "None":

       
       
       ***********************************************************
       This version of Mac OS X is not supported on this platform!
       ***********************************************************
       Reason: VirtualBox
       
       

I test with original 10.12.6, download from  https://itunes.apple.com/app/id1127487414?mt=12 . (Sorry, my host is Debian.)

Last edited 12 months ago by widhaya3 (previous) (diff)

comment:29 follow-ups: ↓ 30 ↓ 31 Changed 12 months ago by socratis

@widhaya3
So, you are on a Mac and you tried the original 10.12.6 and it worked?

If so, can I have both the .vbox for the VM and a complete VBox.log from a start/login/shutdown/ShowLog session? As well as the full procedure of the installation?

It may be even better if you posted the instructions on the forums, in the  HowTo: Create OSX ISO from the OSX Install app, there are a lot more people "listening" there, plus I have that note:

WARNING: The script will work with OSX 10.12.4, .5 and .6, but VirtualBox will *not* boot from such an ISO for reasons yet unknown. There is a bug report open for that: #16644: Installation of clean OSX 10.12.4 fails. If you have any idea on how to make this work, I'd appreciate a comment.


PS. Please don't quote the whole previous message if it's not necessary, it adds unnecessarily to the length of the post... ;)

Last edited 12 months ago by socratis (previous) (diff)

comment:30 in reply to: ↑ 29 ; follow-up: ↓ 32 Changed 12 months ago by widhaya3

Replying to socratis:

@widhaya3
So, you are on a Mac and you tried the original 10.12.6 and it worked?

Nope. I'am on Debian (linux-4.18.0-3-amd64, virtualbox-5.2.20-125813~Ubuntu~bionic, cpu: Ryzen 1700), sorry. I test with original 10.12.6 and yes, it worked.

If so, can I have both the .vbox for the VM and a complete VBox.log from a start/login/shutdown/ShowLog session? As well as the full procedure of the installation?

Sorry again. I've just delete it all, now I'm on Mojave. But I will try to re-install it tomorrow that I will start with El Capitan.

It may be even better if you posted the instructions on the forums, in the  HowTo: Create OSX ISO from the OSX Install app, there are a lot more people "listening" there, plus I have that note:

My English is truely badddd. I cannot, anyway, I've written a very quick & dirty short note for this at:  https://www.thaitux.info/node/945

Last edited 12 months ago by widhaya3 (previous) (diff)

Changed 12 months ago by widhaya3

vbox and logs files of both El Capitan and Sierra guest.

comment:31 in reply to: ↑ 29 Changed 12 months ago by widhaya3

Replying to socratis:

If so, can I have both the .vbox for the VM and a complete VBox.log from a start/login/shutdown/ShowLog session? As well as the full procedure of the installation?

STEP OF INSTALLATION

### AT El Capitan ###

#LAUNCH SAFARI GO TO  https://itunes.apple.com/app/id1127487414?mt=12

#DOWNLOAD Sierra -> /Applications/Install macOS Sierra.app

#LAUNCH TERMINAL

FILE=Sierra
APPDIR=/Applications/Install\ macOS\ Sierra.app
SIZE=8000

#CREATE IMAGE AND MOUNT
hdiutil create -o /tmp/$FILE -size ${SIZE}m -layout SPUD -fs HFS+J  # -> /tmp/$FILE.dmg
hdiutil attach /tmp/$FILE.dmg -noverify -nobrowse   # -> /Volumes/untitled

#MOUNT InstallESD (IT MAY ALREADY MOUNT AFTER FINISH DOWNLOAD Sierra)
hdiutil attach "$APPDIR/Contents/SharedSupport/InstallESD.dmg"  # -> /Volumes/OS X Install ESD
ESD="/Volumes/OS X Install ESD"

#RESTORE BaseSystem TO IMAGE
asr restore -source "$ESD/BaseSystem.dmg" -target /Volumes/untitled -noprompt -noverify -erase    #/Volumes/untitled -> /Volumes/OS X Base System

#COPY PACKAGES
rm "/Volumes/OS X Base System/System/Installation/Packages"
cp -av "$ESD/Packages" "/Volumes/OS X Base System/System/Installation/"

#COPY ALL dmg/chunklist FILES
cp -av "$ESD/BaseSystem.dmg" "/Volumes/OS X Base System/"
cp -av "$ESD/BaseSystem.chunklist" "/Volumes/OS X Base System/"
cp -av "$ESD/AppleDiagnostics.dmg" "/Volumes/OS X Base System/"
cp -av "$ESD/AppleDiagnostics.chunklist" "/Volumes/OS X Base System/"

#UNMOUNT ALL
hdiutil detach "/Volumes/OS X Base System"
hdiutil detach "$ESD"

#RESIZE IMAGE FOR BEST FIT
hdiutil resize -size `hdiutil resize -limits /tmp/$FILE.dmg | tail -n 1 | awk '{ print $1 }'`b /tmp/$FILE.dmg

#CONVERT IMAGE TO CDR
hdiutil convert /tmp/$FILE.dmg -format UDTO -o /tmp/$FILE  # -> /tmp/$FILE.cdr

#COPY TO HOST
scp /tmp/$FILE.cdr USER1@HOST1:/WHERE/TO/STORE/IMAGE

#IF YOU WANT UNIQUE IDENTIFIERS OF Sierra MACHINE, PLEASE INSTALL Chameleon Wizard
#FOLLOW STEP AT https://www.insanelymac.com/forum/topic/292170-how-to-spoof-real-mac-in-vmware/
#YOU WILL GET PRODUCT NAME, BOARD PRODUCT AND SERIAL
#KEEP IT, WILL USE LATER WHEN CREATE Sierra VM

#SHUTDOWN

### AT Debian HOST ###

#CREATE VM IN VirtualBox , ATTACH cdr FROM ABOVE, THEN RUN

VM_RES="1280x960"   #EXAMPLE
NAME="NAME OF VM"   #EXAMPLE
VBoxManage modifyvm "$NAME" --usbxhci on --firmware efi --chipset ich9 --mouse usbtablet --keyboard usb --vram 128 --cpus 2 --memory 4096 --boot1 dvd --boot2 disk --boot3 none --boot4 none --cpu-profile "Intel Core i7-6700K" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "$NAME" "CustomVideoMode1" "${VM_RES}x32"
VBoxManage setextradata "$NAME" VBoxInternal2/EfiGraphicsResolution "$VM_RES"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

#FOR Sierra: SOLVE PARAVIRTUALIZATION BUG
#https://gist.github.com/arobb/447a962af4f07ef81e79987d686275e5
#https://www.insanelymac.com/forum/topic/292170-how-to-spoof-real-mac-in-vmware/
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F22589C8"
VBoxManage setextradata "$NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "CK1156I6DB6"
VBoxManage modifyvm "$NAME" --paravirtprovider none
#REVERT BACK WHEN FINISH INSTALLATION
#VBoxManage modifyvm "$NAME" --paravirtprovider default

#NOW YOU CAN BOOT Sierra INSTALLER
#MAY STUCK ON "WAIT FOR DICT..." OR KERNEL PANIC
#JUST REBOOT

comment:32 in reply to: ↑ 30 Changed 12 months ago by socratis

Replying to widhaya3:

cpu: Ryzen 1700

No Mac has an AMD CPU yet...

00:00:00.466489 DMI Product Name: To Be Filled By O.E.M.

This is not a Mac, just as I suspected, and I told you, in my original message.

You're using an unsupported setup. Unfortunately OSX guests are only supported on Apple hardware (which you do not have). See:  Mac OS X guest on a Windows Host.

Changed 12 months ago by widhaya3

vbox and logs files of Sierra VM on MacBook Retina.

comment:33 Changed 12 months ago by widhaya3

@socratis

I want to know the result on MacBook too. So I went to the shop near my house, borrow his machine and try to install on MacBook Retina (Core i5 Ram 8G) using my "Sierra.cdr" image file from Debian. The step of installation was the same as above, except I must disable USB. And yes!, I can install it. You can view in the file "vbox-log-macbook-pro-retina.tar.gz". Hope this help. :)

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use