14 ms·
Push-Button Installer of macOS Guests in VirtualBox for Windows, Linux, macOS
- zxcb1 6y agoDoes it work under Fusion too?
- deeth_starr_v 6y agoYou don't need a special script to install Macos in Fusion.
- smcleod 6y agoYeah and it runs sooo much quicker under fusion than under oracle virtualbox, I’m amazed people still use virtualbox given its horrendous performance.
- jlgaddis 6y agoAccording to VMware [0]: > You can install Mac OS X, OS X, or macOS in a virtual machine. Fusion creates the virtual machine, opens the operating system installation assistant, and installs VMware Tools. VMware Tools loads the drivers required to optimize a virtual machine's performance. Additionally [1]: > You can use the recovery partition on your Mac to create virtual machines running macOS. --- [0]: https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-474FC78E-4E77-42B7-A1C6-12C2F378C5B9.html https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusio... [1]: https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-E6C50392-31BA-4466-9A2E-D133B48C0E8A.html https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusio...
- TheDong 6y agoThis is likely illegal. The psystar case[0] was a very clear ruling that attempts to circumvent apple's restrictions on hardware are a violation of the DMCA. Apple checks a certain devicekey while booting, so that key is an anti-circumvention techniques. Any use of that string in a form where apple's software may read it is probably a violation of the DMCA. This script uses that string[1] in order to circumvent apple's checks, and thus is legally dubious at best. There are numerous other likely DMCA violations as well, from copying GUIDs with the intent to circumvent checks to downloading copyrighted material from apple's servers which they only give you license to download for an actual mac machine. [0]: https://en.wikipedia.org/wiki/Psystar_Corporation#Legal_issues https://en.wikipedia.org/wiki/Psystar_Corporation#Legal_issu... [1]: https://github.com/myspaghetti/macos-virtualbox/blob/44a21f7aa598f92efd606148c0581b49891ed2f3/macos-guest-virtualbox.sh#L773-L775 https://github.com/myspaghetti/macos-virtualbox/blob/44a21f7...
- captn3m0 6y agoA search on that keyword is a good way to find other similar repos: https://github.com/search?q=ourhardworkbythesewordsguardedpleasedontsteal&type=Code https://github.com/search?q=ourhardworkbythesewordsguardedpl...
- saagarjha 6y agoGreat, now Hacker News is going to get a DMCA takedown request as a result of your URL being here.
- cosmojg 6y agoBahahaha, really? This DMCA nonsense sounds ridiculous!
- aboringusername 6y agoI wonder if a user maliciously posted URLs that were later editable and linked to pirated content would yield a significant amount of DMCA requests to be sent. Seems easy to abuse or troll and highlight how insane the DMCA is.
- enriquto 6y agoAs a victim of an act of stealing a few years ago, I am deeply offended by people using the verb "steal" when there is no actual stealing, just sharing information.
- userbinator 6y agoAny use of that string in a form where apple's software may read it is probably a violation of the DMCA. That reminds me of these cases, which ruled in the opposite direction: https://en.wikipedia.org/wiki/Sega_v._Accolade https://en.wikipedia.org/wiki/Sega_v._Accolade https://en.wikipedia.org/wiki/Lexmark_International,_Inc._v._Static_Control_Components,_Inc https://en.wikipedia.org/wiki/Lexmark_International,_Inc._v..... downloading copyrighted material from apple's servers which they only give you license to download for an actual mac machine. I guess the CFAA could apply, but Apple's servers don't actually do any authentication. You also don't need to have agreed to anything to access the URLs.
- rick_e 6y agoCloning for “research”
- AbraKdabra 6y agoDoing the same, my girlfriend told me to tell her what font is being used in that image, gotta research it further.
- bransonf 6y agoI know you're probably being sarcastic, but Apple uses their own San Francisco Font throughout the OS [0]. It's personally one of my favorite fonts, though Apple has full rights. Some typographers allege that Roboto is fairly close. [0] https://developer.apple.com/fonts/ https://developer.apple.com/fonts/
- saagarjha 6y agoTry Inter, it’s much closer.
- Reubend 6y agoWow, great work! I'm reading through the script's source right now to learn about how it works.
- DiabloD3 6y agoI'm going to make one of those unpopular opinions, but alas, it must be said: It is far easier to just drop Apple support entirely. Apple is an abusive relationship that gaslights developers for "holding it wrong". Many of you have internalized this abuse. Supporting OSX and iOS does not really win you many users, and if you're big enough where this really is an issue, then you can just afford a stand alone Mac who's job is to compile and test your app. Apple does not care about small developers, and countless HN stories have spent their time on the front page detailing how Apple has shut apps off for not violating terms, and having zero recourse over this. By doing so, Apple has slandered many members of the HN community. I am not saying other companies are not also guilty of it (Google seems to have recently learned there are no penalties for this, largely because Apple has never been penalized), but more and more people really are just dropping Apple and never going back. If Apple truly cared about app development on their platform(s), they would just port their stuff to Windows and Linux, just like Microsoft did to OSX and Linux.
- aiyodev 6y agoApple puts users before developers which is why they have such a large market share. If you can't reach their high standards, just develop for another platform. There's no need to whine on HN about it.
- simonklitj 6y agoWith a 47% market share in the US, I can hardly agree that supporting iOS won’t win you a lot of users.
- fxtentacle 6y agoUsers != Money As far as I'm concerned, you can sell desktop enterprise software for $500+ per license, but good luck trying to sell a $5 iOS app. So even if it was 90% of the app market, it might still be financially better to ignore iOS and do desktop instead.
- ajconway 6y ago
- wuxiekeji 6y agoIs there a pushbutton installer of a non-VM version? I tried several "Niresh" images and they didn't work. Other directions said I needed a real Mac and some Clover POS or some other stuff i didn't understand.
- js2 6y agoSee also https://github.com/kholia/OSX-KVM https://github.com/kholia/OSX-KVM
- PaulDavisThe1st 6y agoIndeed. Helped me get Mojave running on a 8-core, 16GB Ryzen VM. No working audio in and out (which given that I write audio software could be viewed as a pain), but in every other way, it's the bees knees. A faster and bigger mac than I've ever owned in physical form, with the same kbd and mouse, just sitting over there in workspace 5. Barely even notice it running if I forget to shut it down.
- eeeeeta 6y agofwiw, I personally got around this by using JACK (netjack server outside the VM, netjack client inside the VM). Somewhat fiddly to set up, but works flawlessly once it's running!
- StavrosK 6y agoThis is going to be pretty slow, isn't it? There was a script here a few weeks ago that ran OS X in QEMU, I think that was supposed to be rather faster.
- deleted 6y ago[deleted]
- AegirLeet 6y agoI recently wanted to test something on macOS, but I don't own a Mac. I kinda assumed that I could just type "macos vm image" into Google and download an official image for VMWare, VirtualBox, Hyper-V or whatever from Apple's website. Nope. Instead, I ended up reading through several third-party guides, downloading images from random people's Google Drives and feeding magic incantations to VBoxManage - only to end up with a slow, crashy, barely functional system. Of course, the thing I originally wanted to test wasn't working at all, because... who knows. I'm really amazed at how shitty Apple's developer experience is for people who don't own a Mac. Well, I'm going to give this script a try tomorrow - maybe that will work, somehow.
- deleted 6y ago[deleted]
- giancarlostoro 6y agoThe easiest way I did it was a certain Vagrant image.
- OkGoDoIt 6y agoDo you have more details or link? Like the grandparent comment, I have gone through so many incarnations of Google searches and guides and sketchy scripts just to wind up with a half-working mess if I get anything running at all
- giancarlostoro 6y agoNot sure why I got downvotes for that but here ya go, I didnt share a link cause if you google / duckduckgo "MacOS Vagrant Image" it was the first result: https://github.com/AndrewDryga/vagrant-box-osx https://github.com/AndrewDryga/vagrant-box-osx Once you pull it I open the virtualbox UI so I can get a GUI. I think it runs in headless but you can just click 'Show' or something to that effect.
- justin66 6y ago> I kinda assumed that I could just type "macos vm image" into Google and download an official image for VMWare, VirtualBox, Hyper-V or whatever from Apple's website. What gave you that idea?
- jchw 6y agoSee also: https://github.com/kholia/OSX-KVM https://github.com/kholia/OSX-KVM
- jlgaddis 6y agoPSA: On Windows, this script downloads and runs an .exe files which is (contained within a .zip file which is) downloaded via unencrypted HTTP; cf. ~L306.
- ridiculous_fish 6y agoApple really should make it easier to test on old versions of macOS. I recently had to track down a compile error on 10.9 [1] and it is not easy to get these old OSes working: there's dead links, expired certificates, etc. Hours wasted. 1: https://github.com/fish-shell/fish-shell/issues/7023 https://github.com/fish-shell/fish-shell/issues/7023
- saagarjha 6y agoI am and will remain forever salty that Apple provides me with no way to download the copy of OS X Mountain Lion that I paid for. I don’t actually need it for anything right now, but it rubs me the wrong way that there is a gap between where you have physical disk and it’s still downloadable on the App Store, and you could have paid for the OS but can no longer access it for an old Mac if you happened to want to run it.
- enriquto 6y agoI am sorry, but you mac users had it coming. You have been enabling apple's callous behavior for many years. In the case of developers it is even worse, for this callousness has been always public, but you just didn't care (until it affected you personally in some way, as it seems to be the case).
- jeroenhd 6y agoI think you're making your point to the wrong person here. There's a lot of people inside the macOS ecosystem that continue to defend their bullshit but the parent seems angry that the purchasing decision he made when Apple was actually kind of good has been made useless by the change Apple has made over the last years. Not all macOS users are the same and it's preposterous to call out "you mac users" as if they are one group.
- strogonoff 6y agoWhat's the easiest (and cheapest, price and disk space wise) way to do the opposite: install Windows/Linux on macOS for software testing purposes? Might have to build Electron apps on it, I assume on Windows that excludes Home editions…
- tridentlead 6y agoYou can just download a Windows 10 Dev environment VM direct from Microsoft. Also, Windows home will work just fine for any sort of development not requiring Hyper-V.
- lloeki 6y agoInterestingly enough I’ve built the same kind of script for macOS up to and including Sierra (sans OpenCore, as I stopped when VirtualBox’s EFI stopped to cater for alternate boot.efi paths that are required for macOS install/update) The goal was to have some GitLab CI runners For ArchMac. The CI situation for macOS is just ridiculous and completely iOS focused: - GitHub Actions has 10.15 only - Azure Pipelines now has 10.14 and 10.15 only. At some point 10.14 was available only as macos-latest, which became 10.15 overnight with no way to lock. - Travis CI older images don’t even boot as they fail to install or downright fetch home brew as an uncontrollable step. Newer images work but are slow as hell. - CircleCI is the one that fares the best: fast, wide version support. The pricing has recently been revised and the previously free open source tier (that you had to manually request via support) is too limited in time for a mildly active project.
- eitland 6y agoI got an iPad last summer and that made me dare to switch to iPhone last fall. I like both a lot. Recently I found out that iMusic is available outside of the Apple ecosystem as well. I wonder if Apple will - sooner or later - start targeting Windows and Linux with the rest of their software as well? (I know I can read and edit iCloud files online but I am thinking of native apps.)
- tonyedgecombe 6y agoWhere it supports their services business (iTunes for Windows has existed for a long time) or hardware (my AirPort Time Capsule has Windows support). Otherwise why would they?
- eitland 6y ago> Otherwise why would they? Because it could bring more sweet recurring iCloud income without the hassle of creating hardware for every niche there is.
- tonyedgecombe 6y agoWell I did say where it supports their services
- eitland 6y agoYou did.
- enriquto 6y agoThis is a godsend! I'm using it and it works perfectly, especially with headless mode (once you have setup ssh). Gone are the sad days of asking my mac-using colleague to pip install my shit and send me back the error messages. Now I can test it myself like a civilized person.
- zelienople 6y agoWow, that script so does not work under MacOS! The first hurdle is that it errs out on the bash version. Yes, yes, I know, Apple supplies v3.x something and you have to upgrade to v4.x something or higher. But when I upgraded using 'brew install bash' I got to v5.x something. Voila, the script still thinks we're in the wrong version. The path is good, the test, run manually in the terminal, is good, the script looks good, but still fails. Not sure why. Never mind, I modified the script to remove the 'exit' on wrong bash version, and all was well until the install crashed with an utterly incomprehensible "./macos-guest-virtualbox.sh: line 1400: -: syntax error: operand expected (error token is "-")" Line 1400 is the end of some very obscure keyboard scancodes. No idea where to go with that. When I manually formatted a virtual drive GUID and Mac OS Extended (journaled), the install inside the VM failed with some cryptic Mac error. Fortunately, after a reboot, the Catalina installation seemed to proceed without problems and I achieved a working system. So, yay!