<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I was able to get a certain fruit OS running on my Acer with VBox.
It worked pretty seamlessly after I followed all of the Hacknintosh
instructions except for the vifeo resolution, which is natively
1024x768 and my Acer is 1366x768.<br>
I followed these insstructions and thought that I had it but I
missed the space between "Graphics" and "Mode" (italicized and
underlined below). Now when I try to boot the VM I get an error
"can't find 'GraphicsMode' 1360x768x32', which makes perfect sense.
I'd like to be able to edit the system file from without VBox to
avoid reinstalling (not the end of the workld) the VM but have no
clues as to how I can do that. If I knew how to boot the VM into a
graphics mode with no apple keys then I could use nano but can't get
that to work.<br>
<br>
Many thanks in advance:<br>
<br>
<h2 class="post-title">Custom screen resolution for MAC OS X guests
in VirtualBox</h2>
<h2>Step 1 - Selecting the correct resolution<br>
</h2>
<p>In order to make sure the custom screen resolution works on all
versions of VirtualBox, you will need to do a little math to
figure out the correct screen resolution first. Let's say you want
to run MAC OS X guest in full screen on your 15.6" notebook, then
your desired resolution is 1366x768. However, you need to 'round
down' both the height and width to the nearest number divisible
completely by 8. So for the above said configuration, our screen
resolution comes out to be 1360x768 (both numbers completely
divisible by 8).</p>
<p>Before moving on, we add the color depth to this number (like
16bit, 32bit), so our correct screen resolution becomes
"1360x768x32".<br>
</p>
<h2>Step 2 - Tuning virtual machine settings<br>
</h2>
<p>For this step, you will need to either edit the virtual machine
configuration file by hand (if you can work with xml files
easily), or use the 'vboxmanage' commandline, whichever you find
easier. Both methods are described below: </p>
<h3>Editing virtual machine configuration file</h3>
<p>Make sure the machine is powered off (not in saved state). Open
the virtual machine configuration file (which has extension .vbox
and located in the folder where your virtual machine resides [you
can find this path from VirtualBox settings dialog]), in a text
editor, and after the first few lines, you will see the
<ExtraData> node. You will need to enter the following two
entries inside this node.</p>
<p><ExtraDataItem name="CustomVideoMode1"
value="1360x768x32"/><br>
<ExtraDataItem name="GUI/CustomVideoMode1"
value="1360x768x32"/><br>
</p>
<h3>Using vboxmanage commandline</h3>
<p>Open a command prompt and navigate to the folder where VirtualBox
is installed. Now run the following two commands.</p>
<p>vboxmanage setextradata "MAC OS X" "CustomVideoMode1"
"1360x768x32"</p>
<p>vboxmanage setextradata "MAC OS X" "GUI/CustomVideoMode1"
"1360x768x32"<br>
</p>
<p>In the above commands, "MAC OS X" is the machine name. You should
replace it with the correct name of your machine as seen in the
VirtualBox interface.<br>
</p>
<h2>Step 3 - Editing Guest OS boot configuration<br>
</h2>
<p>After completing the above two steps, start your MAC OS X virtual
machine. When you are at the desktop, open a terminal window from
Go -> Utilities -> Terminal.</p>
Depending on which text editor you are comfortable with, you will
need to edit two files (both of these are xml too, so it's about
time you learn about xml if you already haven't). We use the 'pico'
editor combined with sudo command here.<br>
<br>
sudo pico <span style="font-weight: bold;">/Library/Preferences/SystemConfiguration/com.apple.boot.plist</span><br>
<br>
Try to find the <key> nodes with data 'Kernel Flags' and <u><i>'Graphics
Mode'</i></u>.<br>
You will need to replace the existing <key> and associated
<string> node with the following, or add them if they are
already not there.<br>
<br>
<key>Kernel Flags</key><br>
<string>"Graphics Mode"="1360x768x32"</string><br>
<key>Graphics Mode</key><br>
<string>1360x768x32</string><br>
<br>
When you are done editing, save the file and exit. Now do the
exactly same with the following file:<br>
sudo pico <span style="font-weight: bold;">/Extra/com.apple.boot.plist</span><br>
<br>
<h2>Test your custom screen resolution<br>
</h2>
Reboot the virtual machine and once you are at the desktop, it
should be in the custom screen resolution that you just wanted.
Press the VirtualBox HotKey "Host + F" to go fullscreen and enjoy
MAC OS X in its entirety.<br>
<br>
</body>
</html>