Jump to content

VirtualBox: Install OS Complete Guide (With Boot Image)


Passie
 Share

1 post in this topic

Recommended Posts

VirtualBox Install OS (With Boot Image):

You try to install but it will not install because your image won't boot. Then you need a boot image, to start your installation. I saw a couple of tutors about it but didn't get it to work because they explained badly. So now that i do understand how to get it done, I will write a tutor of my own, Step by Step.

In the tutor you will learn how to install Disto OS images and non booting images. Disto [Edited Install Iso-Dmg] images suppossed to boot on their own, if not the how to steps are there. After install i will also help you to get a full screen graphics setting. And i will help you to improve the sound quality on the OS, so a complete guide. Yes, you will even learn what kext are used for and how to use them

Installing Mac OS Disto

Tools Used:
Mac OS X Mountain Lion, Disto version
VirtualBox-5.0.28-111378-Win
Boot.iso [if needed, Boot file to start the install]

01) Start VirtualBox-5.0.28-111378-Win and chose "New"
= Give your machine a name "Mac OS X Mountain Lion"
= Type on Mac OS X
= Version on Mac OS X (64-bit)
= Memory Size keep before the red 8192 [got 16 gb]
= Harddisk on Create a virtual harddisk now, then do Create

02) File Size of your harddisk i set to 40 gb
= Harddisk file type to VDI
= Storage on harddisk to Dynamically and do Create

03) Now your on the main screen, Select the machine you created and go to Settings
= General\Basic\ Check if Name, Type and version are ok, same as you just entered
= System\Acceleration Enable VT-x/AMD-v, Enable Nested Paging
= System\Processor Processor; I set it to 2 and Enable PAE/NX
= System\Motherboard Deselect Floppy and click arrow down 2 times on right side
1e boot Optical, 2nd boot Hard Disk

= System\Motherboard Chipset; ICH9, USB Tablet, Enable I/O APIC and Enable Hardware Clock. EFI OFF !
= Display Video Memory to 128 mb
= Storage Select the Empty disk, right part of screen now shows a disk behind SATA Port 1
FIRST try above options with mounting Disto Mountain Lion, if no go use your boot.iso
Select boot.iso on the right part to load that as boot image.

The rest of the settings can be fine tuned at a later time, click OK

04) Now Start your Virtual Machine, IF using a boot.iso see b-e
04b) The machine will stop at the boot.iso screen
04c) Now go to the top toolbar of VirtualBox Devices\Optical Drives and remove the boot.iso
04d) Now load the Mac OS Image on the Disk mounter
04e) Press F5 to activate the Mac OS Install and then press ENTER to start Install

05) Select, Use English for the main Language, or use your prefered language, next
06) Now your at the Disk Utillity page, go to the top of the screen Utilities/Disk Utility
07) On the left side select VBOX HARDDISK and click Erase next to First Aid to un-grey options
Format: Mac OS Extended (Journaled)
Name: Mountain Lion

08) Click Erase next to Security Options to format the VIRTUAL Harddisk to Mac format.
On the top you get asked if you are sure, do Erase again to start
Ones the disk is formatted, close Disk Utility and click Continue

09) Click next > to the Disto creator info
10) Now your formatted disk will be on the screen, Select it if it doesn't have the green arrow in it already
11) Now Click Customize, select the settings that belong to your system, don't know use preset options only
12) Now click OK and next Install to start the instalation, takes about 20 minutes
13) After Install it will want to reboot, you get a warning now that you need to reboot, no worries
14) Go to VBox\File and do Exit to close Virtualbox
If your mouse freezed, click left ctrl to unlock your mouse within Mac

15) Start Virtualbox again and take the install image away
Select your machine\Settings\Storage Remove image from image Rom, Start the machine

15a) Unmount OS X and mount boot.iso again, VBox Devices\Optical Drives
15b) You stop at the boot.iso screen again but now see your new Harddisk
15c) Arrow key to select your harddrive > then Enter to start booting

16) Welcome, set your region, United States, continue
17) Select your keyboard, US, continue
18) Do not transfer my information now, continue
19) Apple ID, continue
20) Registration Information, continue, Registration is missing on top, continue
21) Create your account, Chose your username, account name, password, verify password, continue
22) Select Time Zone, move the dot to a town near you, or type the name, continue
23) Thank you, go, And there you go mac is running ;)

Now some after install work: Custom Size, Full screen fix

Chameleon Code to run Guest Side (Macintosh):

1) Go/Computer/Your Mac Harddrive/Extra
2) Double click org.chameleon.boot.plist to open it in TextEdit.
3) Select before <key>Kernel and do Enter to add an empty line.
4) Now you get a warning that you do not have permission to edit, Click Duplicate.
5) On the Duplicate, Enter again to add a 2nd line, then paste this code on top.

<key>Graphics Mode</key>
<string>1366x768x32</string>

6) Change resolution to the size of your full screen !
1366x768x32 is what i got, but you can use any size you have.

7) Clean up the code a bit by putting it in line, Select before < and push space on the keyboard.
8) Now on the Mac TextEdit functions File/Save
9) Take "Copy" away from the name and add ".plist" to get the original file name.
org.chameleon.boot.plist

10) De-select the box that says add .txt extention if no extention
11) On the left select Desktop as saving location, Save.
12) Now close the TextEdit windows you had open.
13) Go/Computer/Your Mac Harddrive/Extra
Now drag the newly made .plist that has the same name on top of the existing .plist.

14) You are asked to authenticate, OK
15) Next box that pops up click replace.
16) Fill in your password and the file will be replaced.
17) Double click it to check if it has your added code on top.
18) Turn off your Mac OS and after turn off VirtualBox !

Now the Mac is ready for full screen, but VirtualBox isn't yet, on to that then.
Make sure VirtualBox is completely turned off.

Command to run on host side(windows):

1) Open Command Prompt (Normal, Not as Admin !) and direct prompt towards VirtualBox.
After opening prompt you will see, C:\Users\Your Account Name>

2) Put this code after it by copy-paste, and hit enter.
cd "C:\Program Files\Oracle\Virtualbox"

3) Now you will see, C:\Program Files\Oracle\Virtualbox>
Change code "Name of virtual machine" to your used name and change to your wanted resolution.
Then paste the code in Command Prompt.

vboxmanage setextradata "Name of virtual machine" "CustomVideoMode1" "1920x1080x32"

My used Example:
vboxmanage setextradata "OS X Mountain Lion" "CustomVideoMode1" "1366x768x32"

4) Press enter again and close command prompt.
5) Start your VirtualBox and then Mac Machine and enjoy your real full size.

Improving Sound:

At install i heard a song playing but the song was playing at wrong speed.

Apple\System Preferences See Hardware\Sound
At "Other" you also see the pre installed HDA audio kext driver control panel.
For me the sound was bad lots of stuttering and low speed.

Audio MIDI Setup: Fixing low speed.

1) Go\Utilities Start Audio MIDI Setup
2) On the left you see output and inputs, select Speaker on the top.
3) On the right side you see the Source info and Format.
Change Format: 48000.0 Hz to 41000.o Hz

4) Repeat this with all in and outputs.

Now the sound does play at the right speed, but still stuttering.
So i will install the latest version of VoodooHDA meant for Sierra.
You can find that on the forum as member.

Kext Basics: How do I install a .kext file?

Tools Used:
VoodooHDA.kext-289 (Kext)
AppleHDADisabler.kext (Kext)
VoodooHDA.prefPane-289 (Control Panel)
Kext Wizard (Kext Install and Repair Tool)

Guide: How to use Kext Wizard

1) Open Kext Wizard
2) Click on the 'Installation' tab
3) Drag the Kext/Bundle to install in the white box
4) Select the destination SLE, then click on 'Install'
5) Put in your password and hit ok and let the tool do it’s job

6) Done Selected tasks were finished, click OK

7) Click on the 'Maintenance' tab
8) We just put something new in SLE, so select SLE
9) Repair permissions and rebuild cache on
10) Target disk; make sure that is your HD not USB off course
11) Click Execute
12) Give your password again, machine starts validating the files
 This will rebuild the Kernel cache so that Kext/Bundle is installed correctly

13) Done , Selected tasks were finished, close Kext wizard
14) Now restart to see if it worked.

15) After install, Double Click VoodooHDA.prefPane to install the control panel. IF the install went wrong then you will get a warning that no VoodooHDA was detected. If not then your good to go now, If the sound is playing slow again, Audio MIDI Setup again. You will find the control panel at Apple\System Preferences\Other

Still not great on my version, but already a lot beter then what we started with.
Hope this step by step tutor helped out some of you who were strugling with this.

Greets, Passie

Link to comment
Share on other sites

 Share

×
×
  • Create New...