<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Some More Bytes &#187; iphone sdk</title>
	<atom:link href="http://somemorebytes.com/wp/index.php/tag/iphone-sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://somemorebytes.com/wp</link>
	<description>in the binary maze...</description>
	<lastBuildDate>Tue, 22 Mar 2011 19:17:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Snow Leopard and Virtualbox under Linux&#8230;</title>
		<link>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/</link>
		<comments>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:01:27 +0000</pubDate>
		<dc:creator>somemorebytes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OsX]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://somemorebytes.com/wp/?p=540</guid>
		<description><![CDATA[Install Snow Leopard under Linux Virtualbox to use the Iphone SDK.]]></description>
			<content:encoded><![CDATA[<h3>Or &#8220;How to develop for the iPhone under linux&#8221;.</h3>
<p>If you have been looking for imformation about virtualizing LEopard or Snow Leopard, you&#8217;ll probably stumble upon this <a href="http://www.insanelymac.com/forum/index.php?showtopic=207334" target="_blank">two</a> <a href="http://www.taranfx.com/install-snow-leopard-virtualbox" target="_blank">sites</a>, which contain most of the useful information. However, when it comes to Snow Leopard, information is spread across hundreds of posts, and most of it is for MS Windows only.</p>
<p>There&#8217;s another attempt using empire-efi <a href="http://forums.virtualbox.org/viewtopic.php?f=4&amp;t=2076&amp;start=270#p126761" target="_blank">here</a>, which didn&#8217;t worked for me.</p>
<p>I just wrote a guide myself about how to get Snow Leopard working under Ubuntu 9.10 and Virtualbox 3.1.6r59338 and I was about to post it. However, I found another guide, for windows, which will work flawlessly under Linux with some minor tweaks, and has step-by-step screenshots, so I guess there&#8217;s no need to duplicate the content there.</p>
<p>Here&#8217;s exactly what I did to get things working:<br />
<span id="more-540"></span><br />
First you need, a Leopard OsX86 working virtualbox machine. To get Leopard working, download any OsX86 distro and install it following <a href="http://www.takwing.idv.hk/tech/virtual/virutal_leopard/index.html" target="_blank">this guide</a>. I used iDeneb 1.6 and worked fine.</p>
<p>You DO NOT need to patch the VirtualBox files in order to get Leopard working, so just create the VM without applying any patch.</p>
<p>The only difference you&#8217;ll find is that under Linux, the required file to edit will be(assuming you named the virtual machine LeoVM) :<br />
<code>/home/your_user_name/.Virtualbox/Machines/LeoVM/LeoVM.xml</code></p>
<p>Then, there you can add the required line:</p>
<p><code>&lt;ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/&gt;</code></p>
<p>The Leopard installation should go without a problem, and boot fine. Everything you need to know is on the guide I linked before.</p>
<p>Now the tricky part. Install Snow Leopard.</p>
<p>You should use <a href="http://www.takwing.idv.hk/tech/virtual/virtual_snowl/index.html" target="_blank">this guide</a>. It is really detailed and easy to follow. I used a retail SnowLeopard 10.6.3 image, and worked perfect for me. However, since the guide is for windows, you&#8217;ll need to take into account the following changes:</p>
<p>When you create the machine for Snow Leopard (page 13 of the guide), you need to edit the file (assuming you named the VM SnowLeoVM) :</p>
<p><code>/home/your_user_name/.Virtualbox/Machines/SnowLeoVM/SnowLeoVM.xml</code></p>
<p>and add ONLY the following lines:</p>
<p><code>&lt;ExtraDataItem name="VBoxInternal2/Devices/e1000f/0/Trusted" value="integer:1"/&gt;<br />
&lt;ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/&gt;</code></p>
<p>Now we need to patch the Virtual Machine files. The thing is that we need support for SS3 instructions, and ACPI v.14 which is not supported by default in Virtualbox 3.1.x. If you&#8217;re using the OSE edition, you can patch the source and recompile the whole thing. However, if you&#8217;re using the standard edition, you&#8217;ll need to binary-patch the files.</p>
<p>You can find more information about the patches in the comments section in this <a href="http://www.taranfx.com/install-snow-leopard-virtualbox" target="_blank">post</a>. SOME of the info is not correct, and some other is incomplete, so be careful and read everything before doing any patch. I am using the GHex to patch them.</p>
<p>The files to patch are:<br />
<code>/usr/lib/virtualbox/VBoxDD2.so<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxDD2GC.gc<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxDD2R0.r0<br />
Every occurence of : 11 00 05 00<br />
Changed for : 14 00 05 00<br />
</code><br />
<code>/usr/lib/virtualbox/VBoxVMM.so<br />
Every occurence of: 04 C5 01 00 00 00 31 C9<br />
Changed for: 04 C5 01 02 00 00 31 C9<br />
</code></p>
<p>I am providing the files for <strong>VirtualBox 3.1.6.r59338</strong> <a href="http://somemorebytes.com/wp/wp-content/uploads/2010/06/vb3.1.6_x86_64_patch.tar.gz" target="_blank">HERE</a>. Just run the patch or unpatch scripts to do the job, or open them to take a look at the files that will be copied and do it manually.</p>
<p>And that&#8217;s it.  You should have a Snow Leopard VM working fine. In the guide I provided you have explained how to solve the video resolution problem, which is pretty straightforward.</p>
<p>The network works fine, but you need to set up the static ip address for the interface, and connect/disconnect cable from the Virtualbox menu to get it working. The rest works fine. Of course it will not fly, but it is enough to try the iphone SDK under linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://somemorebytes.com/wp/index.php/2010/06/snow-leopard-and-virtualbox-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  somemorebytes.com/wp/index.php/tag/iphone-sdk/feed/ ) in 0.66932 seconds, on May 20th, 2012 at 1:35 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 20th, 2012 at 2:35 pm UTC -->
