|
@@ -0,0 +1,39 @@
|
|
1
|
+title: Blog
|
|
2
|
+post: Installing Mavericks as VirtualBox Guest
|
|
3
|
+date: 2013-12-14
|
|
4
|
+comments: true
|
|
5
|
+---
|
|
6
|
+
|
|
7
|
+## {{ page["post"] }}
|
|
8
|
+<!--%
|
|
9
|
+from datetime import datetime
|
|
10
|
+date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
|
|
11
|
+print "*Posted at %s.*" % date
|
|
12
|
+%-->
|
|
13
|
+
|
|
14
|
+Recently, I set out to get OS X 10.9 running as VirtualBox Guest, with Mavericks as Host. This should be easy enough, right? Just download the Mavericks Installer from the AppStore, get the Image from inside the App Package, as you would do to get a bootable USB Stick. Done!
|
|
15
|
+
|
|
16
|
+It turns out that Apple started using strange Aliases in their Install Image with Mountain Lion. You have to do some moving around to get an ISO you can plug into VirtualBox.
|
|
17
|
+
|
|
18
|
+If you got the Mavericks Installer in /Applications, run this script to get a bootable ISO on your Desktop.
|
|
19
|
+
|
|
20
|
+<pre class="sh_sh">
|
|
21
|
+#!/bin/sh
|
|
22
|
+hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
|
|
23
|
+hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Mavericks
|
|
24
|
+hdiutil resize -size 8g /tmp/Mavericks.sparseimage
|
|
25
|
+hdiutil attach /tmp/Mavericks.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
|
|
26
|
+rm /Volumes/install_build/System/Installation/Packages
|
|
27
|
+cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
|
|
28
|
+hdiutil detach /Volumes/install_app
|
|
29
|
+hdiutil detach /Volumes/install_build
|
|
30
|
+hdiutil resize -size `hdiutil resize -limits /tmp/Mavericks.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Mavericks.sparseimage
|
|
31
|
+hdiutil convert /tmp/Mavericks.sparseimage -format UDTO -o /tmp/Mavericks
|
|
32
|
+rm /tmp/Mavericks.sparseimage
|
|
33
|
+mv /tmp/Mavericks.cdr ~/Desktop/Mavericks.iso
|
|
34
|
+</pre>
|
|
35
|
+
|
|
36
|
+[Credits](http://forums.appleinsider.com/t/159955/howto-create-bootable-mavericks-iso)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+Hmm, so searching for *Mavericks bootable USB* instead of *Mavericks in VirtualBox* would have brought me to my target much earlier... Who knew? :P
|