Run Mac OSX as VM inside Bootcamp

Nopstnz8

macrumors member
Original poster
Mar 22, 2010
81
0
Hey guys I was wondering if anyone knows how to run the Mac OSX partition as a virtual machine in VMware on bootcamp? There are instances where I sometimes need to fetch a link or something on OSX, and would rather not reboot just to get it. I know for OSX that VMware allows me to run my bootcamp as a virtual machine, which I really like. I'm basically trying to do the opposite of this an run OSX as a virtual machine inside of Windows 7. Does anyone know how to do this? I can't find the option to set this up. Any help would be greatly appreciated. Thanks.
 

Transporteur

macrumors 68030
Nov 30, 2008
2,729
3
UK
Unfortunately that's only supported with OS X Server 10.5+.

I'd really like to have a virtualised OS X on my machine because till now, I install new software on a second Mac that is not used for working before installing it on my workstation.

Would be much nicer to do this with a VM because it's easier to restore due to snapshots.

I hope Apple will enable this some day.

It might be possible with a hackintosh OS X version, but I'm not familiar with this.
 

gnasher729

macrumors P6
Nov 25, 2005
16,948
3,839
No.

1) It's not supported (Running OSX in a VM is possible but only as a VM)
2) It's a violation of the EULA
The EULA allows _one_ copy running on one _Apple branded_ computer. MacOS X running in a VM using Bootcamp on a Macintosh is running on an Apple branded computer. If it is the single copy of MacOS X on that Mac, you are fine. To have two copies of MacOS X on the same computer, you'd have to buy another copy.
 

RandomKamikaze

macrumors 6502a
Jan 8, 2009
884
45
UK
The EULA allows _one_ copy running on one _Apple branded_ computer. MacOS X running in a VM using Bootcamp on a Macintosh is running on an Apple branded computer. If it is the single copy of MacOS X on that Mac, you are fine. To have two copies of MacOS X on the same computer, you'd have to buy another copy.
I know you are correct about what you have said, however I believed that the OS X Server EULA stated that it could be run in a VM, whereas the OS X EULA didn't state this and so it was implied that it can't be run.

Fusion actually refuses to install OS X full-stop, regardless of the disk used.

Or have I got the above wrong?
 

Zortrium

macrumors 6502
Jun 23, 2003
461
0
Fusion will happily install OS X Server in a VM and it doesn't take any fiddling to get it to work. I'm running a Snow Leopard Server VM on my iMac right now.

The EULA prohibits running OS X Client in a VM, so if you try to install that in Fusion it just tells you "this isn't Mac OS X Server", and refuses to install. There's no technical reason for this, though, and if you don't care about the EULA it's not too hard to fool Fusion into installing OS X Client.
 

Geoff.

macrumors 6502
Jun 1, 2009
261
0
I ran.. i mean 'my friend' ran Mac OS X 10.5 in vmware player on a Windows XP machine. It can be done
 

gnasher729

macrumors P6
Nov 25, 2005
16,948
3,839
I know you are correct about what you have said, however I believed that the OS X Server EULA stated that it could be run in a VM, whereas the OS X EULA didn't state this and so it was implied that it can't be run.
The MacOS X SLA doesn't say that I can run MacOS X in my kitchen, in my living room, in the garden, and I do all these things. And differences between the MacOS X and MacOS X server license don't count, because I have no reason to read the MacOS X server license. Just wondering, because I didn't read it, does the server license allow you to install and/or run MacOS X multiple times? Because that is something the MacOS X license doesn't allow.
 

Ice Cream Man

macrumors member
Jan 1, 2003
83
0
Earth
VMware used to allow using physical hard drives to act like virtual disks. In that scenario one could boot OSX in VM i suppose. Since it's the hardware that manages the DRM. The question would be does VMware know how to access the TPM chip. Or would one need to tell VMware how to represent, or allow the connection like a driver.

Perhaps if one fiddles with the setting in VMware to allow direct hardware interaction. Of course this would make it easy to build a VMware image, and the copy it over to a PC, and disable the TPM driver, and run OSX on a regular PC. Of course something similar was already done, it's called the DeadMoo copy, a VMware virtual device that runs OSX. Now that i think about it, i wonder how well the dead moo copy will work in Windows on a Mac in with BootCamp. :apple:
 

Ice Cream Man

macrumors member
Jan 1, 2003
83
0
Earth
The MacOS X SLA doesn't say that I can run MacOS X in my kitchen, in my living room, in the garden, and I do all these things. And differences between the MacOS X and MacOS X server license don't count, because I have no reason to read the MacOS X server license. Just wondering, because I didn't read it, does the server license allow you to install and/or run MacOS X multiple times? Because that is something the MacOS X license doesn't allow.
But talking about running OSX in a VM in Windows on a Mac. In that case you aren't running two instances of OSX, it's only one instance on a Mac. I think that fits within the EULA/SLA just fine. Or does it actually spell out that you can't run OSX in a VM running in Windows on a Mac?
 

ayeying

macrumors 601
Dec 5, 2007
4,547
11
Yay Area, CA
But talking about running OSX in a VM in Windows on a Mac. In that case you aren't running two instances of OSX, it's only one instance on a Mac. I think that fits within the EULA/SLA just fine. Or does it actually spell out that you can't run OSX in a VM running in Windows on a Mac?
The EULA disallows OSX Client to be running in a virtual machine. Regardless if its only running on one system or not, it won't allow it on a virtual machine.
 

balamw

Moderator
Staff member
Aug 16, 2005
19,366
978
New England
The EULA disallows OSX Client to be running in a virtual machine. Regardless if its only running on one system or not, it won't allow it on a virtual machine.
I'm not seeing it mentioned at all in either the Client or Server SLAs. Though I believe I had seen it before. Can you point out the applicable language.

http://images.apple.com/legal/sla/docs/macosx106.pdf
http://images.apple.com/legal/sla/docs/macosx_snowleopard.pdf

EDIT: This is the language from the server SLA that is not present in the client version. Neither says anything specific about virtualization.

2. Permitted License Uses and Restrictions. A. Mac OS X Server Software. Subject to the terms and conditions of this License, you are granted a limited non-exclusive license to install and use one copy of the Mac OS X Server software (the “Mac OS X Server Software”) on a single Apple-branded computer. You may also install and use other copies of Mac OS X Server Software on the same Apple-branded computer, provided that you acquire an individual and valid license from Apple for each of these other copies of Mac OS X Server Software. You agree not to install, use or run the Apple Software on any non-Apple- branded computer, or to enable others to do so. This License does not allow the Mac OS X Server Software to run on more than one computer at a time, and, except as expressly set forth in Section 2C, you may not make the Apple Software available over a network where it could be run by multiple computers at the same time. Please note that the Apple Software is supported only on Apple-branded systems that meet the specified system requirements as indicated on the outside of the Mac OS X Server packaging. If you transfer software from one Apple-branded computer to another Apple-branded computer, please remember that continued use of the original copy of the software may be prohibited once a copy has been transferred to another computer, unless you already have a licensed copy of such software on both computers. You should check the relevant software license agreements for applicable terms and conditions.
B
 

teameurox

macrumors regular
Oct 26, 2010
175
11
so lets say hypothetically one is running server edition and wants to be able to access said physical partition while utilizing a windows partition of his mac. How would it be done. I knnow virtual box offers support for installing osx server, and well as even doing client(which i know is against EULA SLA supposedly. )


I find it kind of outrageous that upon spending all this money on the machine they wont "allow me" to access my physical partition as a VM in a bootcamp scenario. Its only one install of the software for one, for two its the original software that was installed at ti,e of manufacture. Really apple come on
 

balamw

Moderator
Staff member
Aug 16, 2005
19,366
978
New England
so lets say hypothetically one is running server edition and wants to be able to access said physical partition while utilizing a windows partition of his mac. How would it be done.
http://www.virtualbox.org/manual/ch09.html especially the section entitled "Access to individual physical hard disk partitions".

You'd probably want some experience running a separate OS X install in VirtualBox to understand the "Hackintosh" like ramifications of doing this.

NOTE: OS X isn't Linux which doesn't really care what hardware it's on (at least before the GUI is loaded), or Windows which does but supports multiple hardware configurations (docked laptop). If you try to boot OS X installed from one machine on another it can get a bit unhappy that the underlying hardware changed.

B
 

teameurox

macrumors regular
Oct 26, 2010
175
11
UPDATE----

I have successfully gotten virtual box to boot the physical osx partition. The issue now is Virtual Box VT enabling is causing osx to render the processor as not supported.


As for the hackintosh like nature of doing this I'm aware of it. I went through two desktops and a couple of netbooks before finally making the plunge to the apple store. I may end up just having to do a a full virtual disk install. I was really hoping to save space and not have to go that route but may have to. I was hoping that this would work as OSX server does indeed work supposedly, and I'm running apple hardware
 

teameurox

macrumors regular
Oct 26, 2010
175
11
Go it to work under latest beta of virtualbox.

To create the VM of your OSX physical partition

"C:\Program Files\Oracle\VirtualBox\vboxmanage" internalcommands listpartitions -rawdisk \\.\Physicaldrive0


"C:\Program Files\Oracle\VirtualBox\vboxmanage" internalcommands createrawvmdk -filename C:\Users\Revo\.VirtualBox\snowleopard.vmdk -rawdisk \\.\Physicaldrive0 -partitions 2

replacing user and drive numbers with yours.

After Set the CPU to a single processor, and you MUST run virtualbox with Admin Rights. Failure to do so will not allow the vm to access your OSX partition.
 

francorg

macrumors newbie
Jun 9, 2011
1
0
UPDATE----

I have successfully gotten virtual box to boot the physical osx partition. The issue now is Virtual Box VT enabling is causing osx to render the processor as not supported.
Do you have any tutorial on how to do it?
It would be very useful!!

Thank you,
Roberto
 

Goofjuzo

macrumors newbie
Nov 11, 2008
6
0
Go it to work under latest beta of virtualbox.

To create the VM of your OSX physical partition

"C:\Program Files\Oracle\VirtualBox\vboxmanage" internalcommands listpartitions -rawdisk \\.\Physicaldrive0


"C:\Program Files\Oracle\VirtualBox\vboxmanage" internalcommands createrawvmdk -filename C:\Users\Revo\.VirtualBox\snowleopard.vmdk -rawdisk \\.\Physicaldrive0 -partitions 2

replacing user and drive numbers with yours.

After Set the CPU to a single processor, and you MUST run virtualbox with Admin Rights. Failure to do so will not allow the vm to access your OSX partition.
It works !! Many many thanks, I'm so happy!
 

teameurox

macrumors regular
Oct 26, 2010
175
11
No problem glad I could help. Now my issue is once I changed my bootcamp partition to the optibay its not quite as simple of a process
 

dRuEFFECT

macrumors newbie
Jul 28, 2010
2
0
Sorry for reviving an old thread, but I'm trying this and get the error "VirtualBox Command Line Tool has stopped working" when trying the commands above.

Any ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.