• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Can I access a real Mac hard drive in VirtualBox?

Joined
Dec 9, 2009
Messages
646 (0.12/day)
Location
South East, United Kingdom
System Name Swag
Processor Intel Xeon E3110 4GHz
Motherboard GIGABYTE GA-G31M-ES2L
Cooling Scythe Infinity I Push-Pull w/ AS5
Memory 2x2GB Transcend 800MHz DDR2 @ 890MHz 1.9v
Video Card(s) Palit nVIDIA GTX460 1GB 800/1600/2000
Storage Crucial M4 64GB
Display(s) LG Flatron M1917TM 1280x1024 @ 60Hz
Audio Device(s) Realtek HD Audio
Power Supply OCZ StealthXStream 2 600W
Software Windows 7 Professional 64-bit
Basics, I've taken out my hard drive from a MacBook Pro with a legit copy of OSX 10.6 Snow Leopard and iLife 2009 etc... it worked perfectly in the MacBook pro so don't ask why I took it out, I just did okay?

Can I use VirtualBox to boot from this Mac hard drive? and run a sort of "Virtual MacBook Pro"?
 

freaksavior

To infinity ... and beyond!
Joined
Dec 11, 2006
Messages
8,095 (1.28/day)
System Name ZeroUptime | M.A.S.S / MM1
Processor Xeon 2659 v3 / Xeon 2683 v4 / ARM A14
Motherboard Asus X99-E-10G WS / ASRock x99 usb 3.1 / Apple
Cooling NZXT Kraken / Noctua NH-L12 / Apple
Memory 16Gb DDR4 / 32Gb DDR4 / 16GB HBLM
Video Card(s) Powercooler ATI vega 64 / GT 7300 / ARM
Storage Samsung 970 512 Evo NVMe / A lot. / 256 + 512 External TB3
Display(s) Acer Predator X34 / Headless / Acer X34 Non predator
Case NZXT H630 |Rosewill 8bay 4u server chasiss / MMM1
Audio Device(s) Onboard / Onboard / Onboard
Power Supply Corais HX850 | Corsair TX750 / Internal 250w
Mouse g502 proteus core / Headless / g502 proteus core
Keyboard Corsair K95 Cherry Blue / Headless / K65 Cherry Red
Software Windows 10 / ESXI / Big Sur 11.2.2
No, it is hardware based that prevents the mac from running on regular pc.
 
Joined
May 21, 2009
Messages
4,966 (0.91/day)
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
theoretically yes... but in practice things don't always work as they "should"

the positive is it's osx, built on unix - not so dependent on specific first-install drivers like windows.

edit: that used to be the case freak, with ppc - but you don't hear much of ppc macs lately and intel ones are not hardware restricted like they were in the past. sure they are still limited, but not by the ppc vs x86 architecture anymore.

i'm gonna say intel mac - am quite sure 10.6 doesn't work with ppc, they stopped at 10.4. so hardware will not prevent it. unfortunately i still can't say yes for sure - am definitely interested though.
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,444 (2.43/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
Can I use VirtualBox to boot from this Mac hard drive? and run a sort of "Virtual MacBook Pro"?

no. virtualbox does not work that way.
 
Joined
May 21, 2009
Messages
4,966 (0.91/day)
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
no. virtualbox does not work that way.

i assumed he meant after loading the base OS, not as in replacing it. does it(virtualbox) not boot OS images?
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,444 (2.43/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
i assumed he meant after loading the base OS, not as in replacing it. does it(virtualbox) not boot OS images?

he wants to use virtualbox to boot from a mac hdd. you cant boot from a hdd using virtualbox. you set virtualbox up on a host machine and then create virtual machines and then load up isos onto them. at least that is what i think he wanted.
 
Joined
May 21, 2009
Messages
4,966 (0.91/day)
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
he wants to use virtualbox to boot from a mac hdd. you cant boot from a hdd using virtualbox. you set virtualbox up on a host machine and then create virtual machines and then load up isos onto them. at least that is what i think he wanted.

ahhh misunderstood.

but now my question: could he image the hard drive and run it as a virtual machine?
the format of the image would matter of course, but are Virtual OS images and actual OS installs much different?
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,444 (2.43/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
ahhh misunderstood.

but now my question: could he image the hard drive and run it as a virtual machine?
the format of the image would matter of course, but are Virtual OS images and actual OS installs much different?

i dont know if it would work.
 
Joined
Dec 9, 2009
Messages
646 (0.12/day)
Location
South East, United Kingdom
System Name Swag
Processor Intel Xeon E3110 4GHz
Motherboard GIGABYTE GA-G31M-ES2L
Cooling Scythe Infinity I Push-Pull w/ AS5
Memory 2x2GB Transcend 800MHz DDR2 @ 890MHz 1.9v
Video Card(s) Palit nVIDIA GTX460 1GB 800/1600/2000
Storage Crucial M4 64GB
Display(s) LG Flatron M1917TM 1280x1024 @ 60Hz
Audio Device(s) Realtek HD Audio
Power Supply OCZ StealthXStream 2 600W
Software Windows 7 Professional 64-bit
good discussion guys, i especially like the one about imaging the hard drive and then booting it

i have a spare hard drive i can image it onto from my windows computer? if someone could explain how i could go about booting the image or what software to use i'd love to hear it, as this isn#'t just some random project... it's actually pretty important :)

thanks fo rthe advice so far ^_^
 
Joined
May 21, 2009
Messages
4,966 (0.91/day)
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
well imaging a drive is creating a file, like a .zip, that holds everything the drive had on it. the thing is idk what image format to start with, and that alone could make or break the project.

you should be searching google for p2v or physical-to-virtual
http://canned-os.blogspot.com/2006/08/p2v-virtualizing-existing-os-install.html

i don't actually know anything, just guessing and searching myself.
 
Joined
Jan 16, 2008
Messages
1,349 (0.23/day)
Location
Milwaukee, Wisconsin, USA
Processor i7-3770K
Motherboard Biostar Hi-Fi Z77
Cooling Swiftech H20 (w/Custom External Rad Enclosure)
Memory 16GB DDR3-2400Mhz
Video Card(s) Alienware GTX 1070
Storage 1TB Samsung 850 EVO
Display(s) 32" LG 1440p
Case Cooler Master 690 (w/Mods)
Audio Device(s) Creative X-Fi Titanium
Power Supply Corsair 750-TX
Mouse Logitech G5
Keyboard G. Skill Mechanical
Software Windows 10 (X64)
This is going to be harder to get working than you realize. As someone who years ago built a Hackintosh, it takes a lot of work to get a Mac OS X installation working from scratch on generic X86 hardware. It's probably just as difficult getting it to work in a virtual X86 environment.

Maybe you should think about getting a copy of one of the pre-built OSX86 installations and install that on your machine? Even though this route would be less difficult, I have a feeling that it's still probably more than you want to mess with.

http://wiki.osx86project.org/wiki/index.php/Main_Page

"'m gonna say intel mac - am quite sure 10.6 doesn't work with ppc, they stopped at 10.4. "

Leopard (10.5) is PPC and Intel compatible. It required a 867+ Mhz processor. Snow Leopard (10.6) is Intel compatible, it has no PPC compatibility.
 
Last edited:

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
I'm pretty sure it's illegal to run OS X on anything but a mac. That being said-
http://lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows (OSx86... not exactly OSX)

Currently I run OS X in VMware using Empire EFI and it runs pretty swell. Unfortunately there isn't really much support for audio or video so it runs slow but it's incredibly useful for testing software/websites/etc. (especially when you're programming in Qt or SDL).

I'm currently running VirtualBox version 3.2.8 and in the manual's section 9.7.1.1 there are detailed instructions on using physical HDDs. You'd have to either image the drive (which I'd recommend) or use your physical drive then combine some of the instructions I posted and use Empire EFI to get it to boot (and I'm betting it still won't work)... Not worth the trouble IMO
 
Last edited:
Joined
Dec 9, 2009
Messages
646 (0.12/day)
Location
South East, United Kingdom
System Name Swag
Processor Intel Xeon E3110 4GHz
Motherboard GIGABYTE GA-G31M-ES2L
Cooling Scythe Infinity I Push-Pull w/ AS5
Memory 2x2GB Transcend 800MHz DDR2 @ 890MHz 1.9v
Video Card(s) Palit nVIDIA GTX460 1GB 800/1600/2000
Storage Crucial M4 64GB
Display(s) LG Flatron M1917TM 1280x1024 @ 60Hz
Audio Device(s) Realtek HD Audio
Power Supply OCZ StealthXStream 2 600W
Software Windows 7 Professional 64-bit
I'm pretty sure it's illegal to run OS X on anything but a mac. That being said-
http://lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows (OSx86... not exactly OSX)

Currently I run OS X in VMware using Empire EFI and it runs pretty swell. Unfortunately there isn't really much support for audio or video so it runs slow but it's incredibly useful for testing software/websites/etc. (especially when you're programming in Qt or SDL).

I'm currently running VirtualBox version 3.2.8 and in the manual's section 9.7.1.1 there are detailed instructions on using physical HDDs. You'd have to either image the drive (which I'd recommend) or use your physical drive then combine some of the instructions I posted and use Empire EFI to get it to boot (and I'm betting it still won't work)... Not worth the trouble IMO

Sounds awesome, thanks :) I'll try to take a look ^_^

Sooo if I do image the drive, how do I go about making it boot in VirtualBox? And what software do I use to image it in the first place? I took the drive to an Apple store the other day and they booted into it using a MacBook Pro with an external hard disk cradle and it worked flawlessly, so the drive itself is fine... I just need a way of booting it :)

THanks again for the advice so far guys, thanks will be handed out when everything is cushty ^_^
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
Well you need a .vdi file generated from a RAW disk.

To accomplish this I'd use the linux utility "dd" which is incredibly useful when working with virtual machines and disks (but there are several alternatives). It's very powerful so be careful that you don't accidentally run it on the wrong drive (as it will delete it!!).

Here's a small (incredibly small) tutorial:
http://grantmcwilliams.com/tech/virtualization/virt-blog/184-convert-raw-disk-images-to-vdi-format

The two commands:
dd if=/dev/hda of=./hda.img
VBoxManage convertdd hda.img hda.vdi
The location "/dev/hda" may be different when you're running linux and if you're not sure try running "df -h" to list your HDDs.

If you don't have a system with linux installed you can use a live CD but you'll need two HDDs. One that is big enough to hold the "hda.img" and "hda.vdi" files and your original OS X HDD.

If you're not at least casually acquainted with Linux I'd recommend getting help from one of your friend's who is.

You'll may also need a copy of the Empire EFI disc image which you'll load into the virtual CD-ROM drive so that it is executed as the first boot device in the virtual machine. VirtualBox does have an option for EFI that may work but I've never tried it.

As I said earlier, even if you do all the right things I sincerely doubt you'll get it running in VirtualBox.
 
Last edited:
Joined
Jul 11, 2010
Messages
140 (0.03/day)
Location
Finland
Processor i7-2500K @ 4.5 GHz
Motherboard Gigabyte GA-Z68XP-UD4
Cooling EK Supreme HF
Memory Kingston HyperX Genesis 2 * 4 GB
Video Card(s) Radeon HD 7950
Storage OCZ Agility 3
Case Bitfenix Shinobi XL
Power Supply Super Flower SF-700P14XE
Basics, I've taken out my hard drive from a MacBook Pro with a legit copy of OSX 10.6 Snow Leopard and iLife 2009 etc... it worked perfectly in the MacBook pro so don't ask why I took it out, I just did okay?

Can I use VirtualBox to boot from this Mac hard drive? and run a sort of "Virtual MacBook Pro"?

Your sig rig will easily work as a Hackintosh, you just need to make a bootable usb stick or a cd with Chameleon. One of those can boot up your hard disk.
 
Joined
Dec 9, 2009
Messages
646 (0.12/day)
Location
South East, United Kingdom
System Name Swag
Processor Intel Xeon E3110 4GHz
Motherboard GIGABYTE GA-G31M-ES2L
Cooling Scythe Infinity I Push-Pull w/ AS5
Memory 2x2GB Transcend 800MHz DDR2 @ 890MHz 1.9v
Video Card(s) Palit nVIDIA GTX460 1GB 800/1600/2000
Storage Crucial M4 64GB
Display(s) LG Flatron M1917TM 1280x1024 @ 60Hz
Audio Device(s) Realtek HD Audio
Power Supply OCZ StealthXStream 2 600W
Software Windows 7 Professional 64-bit
Your sig rig will easily work as a Hackintosh, you just need to make a bootable usb stick or a cd with Chameleon. One of those can boot up your hard disk.

Please explain in more detail :D
 
Joined
Jul 11, 2010
Messages
140 (0.03/day)
Location
Finland
Processor i7-2500K @ 4.5 GHz
Motherboard Gigabyte GA-Z68XP-UD4
Cooling EK Supreme HF
Memory Kingston HyperX Genesis 2 * 4 GB
Video Card(s) Radeon HD 7950
Storage OCZ Agility 3
Case Bitfenix Shinobi XL
Power Supply Super Flower SF-700P14XE
Joined
Dec 9, 2009
Messages
646 (0.12/day)
Location
South East, United Kingdom
System Name Swag
Processor Intel Xeon E3110 4GHz
Motherboard GIGABYTE GA-G31M-ES2L
Cooling Scythe Infinity I Push-Pull w/ AS5
Memory 2x2GB Transcend 800MHz DDR2 @ 890MHz 1.9v
Video Card(s) Palit nVIDIA GTX460 1GB 800/1600/2000
Storage Crucial M4 64GB
Display(s) LG Flatron M1917TM 1280x1024 @ 60Hz
Audio Device(s) Realtek HD Audio
Power Supply OCZ StealthXStream 2 600W
Software Windows 7 Professional 64-bit
Joined
Jul 11, 2010
Messages
140 (0.03/day)
Location
Finland
Processor i7-2500K @ 4.5 GHz
Motherboard Gigabyte GA-Z68XP-UD4
Cooling EK Supreme HF
Memory Kingston HyperX Genesis 2 * 4 GB
Video Card(s) Radeon HD 7950
Storage OCZ Agility 3
Case Bitfenix Shinobi XL
Power Supply Super Flower SF-700P14XE
Top