Installing Windows 8 or Windows 7 on a Mac without Superdrive with VirtualBox
Posté le 3 février 2012 dans Non classé | 3 730 visites | 17 Commentaires »
You just need to do the following to configure the VirtualBox.
Hello everyone,
I’ve been trying to install Windows 7 on my MacBook Pro that doesn’t have a superdrive and it’s been quite painful. But I’ve found a solution that works perfectly. I’ve written this post in French, but it seems legit to have a world wide audience for that solution that I hope will work for your too!
I’ve tried several tutorials on the web, but none has really worked. To do this one, I’ve been inspired by this article, which is really great… but didn’t do the trick to me!
If you are lucky, try Part 2 directly, it might work for you if you have a 2011 MacBook Pro. For others, start at Part 1!
What you’ll need:
- A 4 Gb USB drive
- A ISO image of Windows 7
- VirtualBox 4.1.8
- WinClone 2.3.3
- Some free time ! It’ll take around 3h to succeed
The 3 big steps:
- Create a « Generalized » Windows 7 installation
- Create a BootCamp partition
- Clone the « generalized » Windows 7 image onto the BootCamp partition
Let’s Go !
Part 1 – Create a « Generalized » Windows 7 image
First, we are going to create a Windows 7 installation that will not take into account the hardware on which it’s running. Indeed, when Windows is installing itself, it takes into account the hardware it’s running on to configure only the drivers it needs. But in this first step we’re installing it on a Virtual Machine, which is not a real PC, so we need to say to Windows : Ok, next time you boot, check the hardware and install whatever driver is necessary.
Step 1: Install Windows 7 on the Virtual Machine
- Download and install VirtualBox
- Add a new virtual machine and name it Win7 (easier when prompting commands later), add how much RAM you want
- Add a VDI hard drive of type and then, choose dynamically allocated that use 10 Gb (you’ll need less, but it is to be sure, and you can choose more, but it’s going to take longer in the last part of this tutorial)
- Launch the virtual machine and choose the ISO image of Windows 7 installer
- It’ll take two reboots to finish the installation
First step is done. Let’s start tricking Microsoft!
Step 2: Delete the « System reserved » Partition
Truth is, Windows has created two partitions when installing, to prepare the use of the built-in encryption technology called BitLocker. And this little partition is considered as the principal, which means Windows will eventually boot on this one and not the one we’d like to. This is why we need to delete this partition.
Just go and use this great article from Terabyteunlimited to do the trick. You’ll only need part 1 and 3 and to reboot the system between these two steps.
Step 3 : Generalize the Windows 7 installation with sysprep
I must say this step was the most painful to me, because I didn’t have any tutorial and needed to find why things didn’t work by myself !
What we’ll basically do here is create an installation of Windows that is independent of the hardware it’s booting on with the help of sysprep.
- Reboot your virtual machine (we’re never too safe…)
- Don’t ask me why BUT we need to stop the Windows Media Player Service
- Click on Start
- in the search box, type « cmd »
- On the application that has been found, right click and select « Use as an Administrator »
- Type this command « net stop WMPNetworkSvc » without the quotes
- Go to the directory C:\Windows\System32\sysprep
- In this directory, create a file and name it « unattend.xml« , without the quotes. If you don’t have the rights to create a file, then, go to the desktop and then copy it when the next steps are done.
- Be careful, when creating the file, it will automatically add the .txt extension. To change this, when on a folder window, hit « alt ». The menu shall appear. Under View, select « Folder Options ». In the window that appears, select the « View » tab and uncheck « Hide extension for known file types ». Then, you’ll see the .txt extension on the unattend.xml file. Erase the .txt extension and click Yes when prompted to change the file extension
- Copy-Paste this into the file:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-Security-Licensing-SLC"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipRearm>1</SkipRearm>
</component>
</settings>
</unattend>
- Save it (and copy it in the sysprep folder)
- Double click on sysprep app and select these options: (complementary info)
- In the « System Cleanup Action list » list, select « System Out-of-Box Experience (OOBE)«
- Select the « Generalise » check box
- In the »Shutdown Options » list, select « Shutdown«
- Click OK
If your virtual machine stops, you can be proud of yourself because you’ve done the most difficult part! Congrats!
If you get the painful error : « A fatal error occurred while trying to Sysprep the machine.« , well, you’re screwed… But you can be helped by opening the log file that can be found in that folder: C:\Windows\System32\sysprep\Panther. At the end of the log, you’ll find the error ID. Google might help you with it!
Well done to the ones that have gone so far, the end is near !
Part 2 – Create a BootCamp partition
I know that I’m giving the hardest solution here, and I hope it’ll go painlessly for you, but I had to do all these steps. If you can create the Bootcamp partition without these steps, you can go to the Third Part (the easiest!).
Step 1: Create the BootCamp partition
Well, I must say that I’ve done that a long time ago, so I can’t recall everything, but these are the main steps.
As explained before, I don’t have a super drive. So I need to make the BootCamp Assistant think I’m a Mac with rights to boot on a USB drive. To do that :
- Go to Applications/Utilities
- Right click on Boot Camp Assistant and select »Show Package Contents«
- Open the Contents folder
- Open Info.plist with TextMate or TextEdit. If you don’t have permission to do that, copy the file on your desktop. Once you’ve made the changes, copy back this file in the folder.
- Click on the top left Apple menu of your Mac, go to
About this Mac. In the opened window, click « More Info« - In Hardware:
- Find Model Identifier (Mine is MacBookPro6,2)
- Find Boot Rom Version (Mine is MBP61.0057.B0C)
- In the previously opened Info.plist, copy paste the previous info on top of the list in the correct field:
- In « <key>DARequiredROMVersions</key>« , add a string that matches your Boot ROM Version. For instance, mine was:
<key>DARequiredROMVersions</key> <array> <string>MBP61.0057.B0C</string> <string>IM41.0055.B08</string>- Go to « <key>USBBootSupportedModels</key>« , and add a string that matches your model. It’s a bit tricky here, but you need to find the right model. For instance, I have a MacBookPro6,2, so I had to write: MBP61. If you have a MacBook Air3,2, you would have: MBA31 etc… You can try several times if it doesn’t work. Here is what I added:
<key>USBBootSupportedModels</key> <array> <string>MBP61</string> <string>IM130</string> - Once the info.plist has been saved (and copied where it was before), double click on Boot Camp Assistant, the greyed check box « Create a booting USB drive » shouldn’t be anymore.
- You should also check « download the last drivers« , you’ll need it later
- At last, create your BootCamp partition
What happened next was that the Mac rebooted, couldn’t boot on the USB drive, and couldn’t find how to boot on the Mac partition neither. Don’t panic, just press the hard button and reboot it again, plugging out your USB drive.
Edit Thanks to wilson :
At the end of Part 2, where we finish installing Boot Camp partition and rebooting i kept getting the « No boot partition found blank screen ».
Easy fix, just reboot again and hold down the « Alt/option » key so you can select your main MAC OS and reboot that way.
Congrats, you’re really near to have your Windows! Great job.
Part 3 – Clone the Virtual Machine Hard Drive onto BootCamp
This is the easiest part and the one that works every time!
In a few minutes, you’ll have your Windows 7!
Step 1: Prepare the Virtual Machine Hard Drive
- Download and open VirtualBox
- Go to the File menu and click on « Media Manager«
- Click to select the partition that matches your virtual machine
- Click on Copy, a wizard should appear
- Choose Fixed size. (Really important)
- And then rename the file as: Win7_copy. (will be easier when prompting in Terminal)
- Once the copy is done, open Terminal (Applications/Utilities), go to the folder where your previously copied file is (to do that use the command « cd path/to/the/file ») and paste this command: (this command wil create a raw file that can be understood by the Mac as a partition)
- Once the copy is done, you’ll need to mount this partition. Enter this command:
VBoxManage internalcommands converttoraw Win7_copy.vdi win7.raw
hdiutil attach -imagekey diskimage-class=CRawDiskImage win7.raw
If everything went well, you should have a disk image called « Untitled » on the desktop. And the end is pretty near!
Last step!
Step 2 - Clone the virtual machine onto the Boot Camp partition
This is the last step.
- Download and launch WinClone
- On the « Image » Tab:
- Source: Choose the partition « Untitled » that matches your virtual machine (should be disk2 or disk3)
- Click on Image and choose a folder to copy the files
- Once the copy is done, click on the Restore Tab:
- Restore Image: Choose the image that has just been done
- Destination: « BOOTCAMP »
- Click on Restore
DONE !
Once the copy is done, reboot your Mac and maintain pressure on the alt button just before the « Dong » sound. You should have your Windows partition. Windows will then initialize with two restarts. You’ll need your CD key again.
You have your Windows !
I hope that I’m clear enough, and I can help some of you in the comment section. Hope you’ll make it !
Cheers.

17 Réponses
erpel
Il y a 105 jours
Hi
Thanks for linking back to my article, I’m happy that it was useful to somebody.
I read through your text and noticed one tiny inconsistency that stems from translating the article: In Part 3 Step 1 7. you use « Win7_copy » as the name for the new disk image but the following command still uses the french « Win7_copie ».
Also, I really appreciate you putting up an english version, because with the little french I still remember from school, reading this text in french would have been impossible.
Greetings
Philipp
Installing Windows 7 on a MacBook Pro without a Superdrive | No touching!
Il y a 105 jours
[...] Hugues Valentin wrote about his experience with this process, his article is also available in french. He especially covers the steps involved in generalizing the Windows [...]
huguesval
Il y a 104 jours
Hi Philipp,
Thanks very much for checking my blog and what I’ve written.
I must say that your post really helped me and even if it didn’t work with me, it allowed me to have the basis to see elsewhere.
And thanks for the trackback
!
Greetings.
Hugues
The road to Boot Camp Hell! :-) « Virtually Lost
Il y a 73 jours
[...] net for any sign of intelligent life that has faced this issue too. Luckily I stumbled upon this one blog post that looked too French very promising. Long story short…the process actually flipping worked. [...]
Hardik Kotadia
Il y a 54 jours
Hi,
Worked perfectly for me.
Thanks a lot.
huguesval
Il y a 54 jours
Great ! Happy that it worked for you too !
Wilson
Il y a 46 jours
Greetings from the US.
Thank you for the wonderful tutorial. It was pretty simple to follow, but I two little suggestions on your tutorial.
First – On the unattend.xml file, when you create it, make sure the file extension is not an .txt, but ends with .xml . I kept getting those errors while running sysprep thinking I did something went fatally wrong, when it was my fault for not watching my extension when I created the unattend file on my desktop.
Second – At the end of Part 2, where we finish installing Boot Camp partition and rebooting i kept getting the « No boot partition found blank screen ».
Easy fix, just reboot again and hold down the « Alt/option » key so you can select your main MAC OS and reboot that way.
My Windows 7 install works great! Thank you for writing this follow through!
Merci Beaucoup
huguesval
Il y a 43 jours
Thanks for commenting & add your suggestions ! I’ve followed them and edited the tutorial ! Thanks again !
Anthony
Il y a 18 jours
Greetings,
Ive Seem To Run Into A Problem, When Reaching Part 3. In Step 1 I Sucesfully Completed #6 And Made A Copy Of Win7.vdi And Named It Win7_Copy.vdi. But When Entering Into The Terminal This Command
VBoxManage internalcommands converttoraw Win7_copy.vdi win7.raw
I Receive An Error As Follows: VBoxManage: error: Only converting harddisk images is supported
Any Tips Ive Been Trying To Find A Solution But Cant, Thank You
huguesval
Il y a 18 jours
Hi Anthony,
This must be a matter of directory.
Here is what I suggest:
Using « spotlight » (the search field) in the Finder, find your image named « Win7_Copy.vdi » and move it to the root directory (to do that, in the Finder App, select menu « Go To » and then Computer and then double click on your hard drive in the windows that has opened (hope it’s that, I’ve a French version and have translated what I’ve seen).
Once you’re in your hard drive directory, move the « Win7_Copy.vdi » file in it.
Then, open Terminal and enter theses commands: (without quotes)
« cd / » press enter
« ls » press enter (it’s a « L » then a « S »)
You should see the your file « Win7_Copy.vdi »
Once you have it, re-run the command:
VBoxManage internalcommands converttoraw Win7_copy.vdi win7.raw
It should work.
If it doesn’t, I’ll contact you by mail.
Hope it’ll do the trick, thanks for commenting
Anthony
Il y a 18 jours
Thank You So Much That Did It =)
Anthony
Il y a 18 jours
Hello,
Sorry don’t mean to bother you , but after recieving the .raw file i have entered this command as mentioned in the blog
hdiutil attach -imagekey diskimage-class=CRawDiskImage win7.raw
and no disk image named untitled appears on the desktop , have i done something wrong ?
Thanks
Anthony
Il y a 18 jours
This Is Receive When I Input The Command:
/dev/disk2 FDisk_partition_scheme
/dev/disk2s1 Windows_NTFS /Volumes/Untitled
huguesval
Il y a 18 jours
Hi Anthony,
You’ve done it alright
The partition is mounted : /Volumes/Untitled
You passed the test !
Just open WinClone, it’ll show you the partition Untitled in the source list.
Have a nice day !
Windows 7 auf MacBook Pro ohne internes optisches Laufwerk installieren | entspiegelt.de
Il y a 12 jours
[...] http://huguesval.com/blog/2012/02/installing-windows-7-on-a-mac-without-superdrive-with-virtualbox/ [...]
Matt
Il y a 8 jours
For months now I have been searching for answers to this problem. I replaced my super drive with a HDD caddy and then realised I could no longer install windows.
THANK YOU SO MUCH (to both you and the guy you linked to) I just wrote this comment using windows 8 on my Macbook Pro Early 2011
LEGENDS
Anonymous
Il y a 5 jours
Hi, I thought I was screwed, but did not rest for a minute, never give up! Googled for a minute.
Step 3
I was getting error, actually I think all I have needed is to run sysprep.exe from command line with administratitive priveleges and options, most import was I think to point to the unattend.xml
sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml
After a minute my Virtual Machine shut down.
Laisser un commentaire