mcandre / packer-templates

Configurations for generating Vagrant base boxes
66 stars 14 forks source link

Mojave #232

Open mcandre opened 6 years ago

mcandre commented 6 years ago

As a user, I want macOS boxes updated to Mojave, so that I can provide a better experience for my application users.

thaiphv commented 5 years ago

Do you have any plan to fix this?

mcandre commented 5 years ago

Pull requests would dramatically speed this up :)

davesque commented 5 years ago

@mcandre I'm in the process of trying to update the boot_command to work with Mojave. However, when the vm reboots after installing the initial OS files, it does so with the installer disk still mounted and won't continue the installation process any further (at least not in any way that I can see). Is there any way to circumvent this?

I've seen another project that targets virtualbox specifically that includes a couple steps in their setup script to shut down the VM and eject the installer disk: https://github.com/davesque/runMacOSinVirtualBox/blob/master/runMojaveVirtualbox.sh#L360-L373

Perhaps there's a way to instruct packer to do something like this?

davesque commented 5 years ago

Actually, I was misunderstanding the meaning of the f12 key presses during reboot. I see that they're meant to "eject" the installation disk. For a while, they weren't even working but I think the issue was that there's a small, roughly 1 second window in which the f12 key could be pressed on my machine. The f12 key press just happened to miss that window. So I made the f12 presses happen every half second instead of every second. I think that's fixed that issue for now.

davesque commented 5 years ago

Actually, nevermind. Now it seems that the f12 eject key only works part of the time and it doesn't really matter what the delay between key code events is. Not really sure what's causing the intermittent failures.

mcandre commented 4 years ago

Now it seems that the f12 eject key only works part of the time

Sadly, this is the experience with packing many different kinds of guest operating systems that were not designed for automated installation.

This happens for OS/2 Warp for example. The good news is, retrying the build a couple times can mitigate some of these issues.

Please continue working and submit a PR when the make task succeeds at least 25% of the time! If we have to introduce retry as part of the build flow, so be it.