Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:virtualbox [2011/12/15 12:30]
cyril
software:virtualbox [2014/11/29 10:03] (current)
cyril
Line 2: Line 2:
  
 ===== Using same installation for DualBoot and VirtualBoot ===== ===== Using same installation for DualBoot and VirtualBoot =====
 +
 +How to boot Windows from its partition with VirtualBox. 
 +
 ==== Summary ==== ==== Summary ====
 === Install Windows === === Install Windows ===
Line 7: Line 10:
  
 === Create disk === === Create disk ===
-  * Create the MBR. Two ways, from your disk:<code>+  * Create the MBR. Two ways, from your disk, but the second one seems better:<code>
 dd if=/dev/sda of=disk.mbr bs=512 count=1 dd if=/dev/sda of=disk.mbr bs=512 count=1
 </code> or from scratch with ''install-mbr'':<code> </code> or from scratch with ''install-mbr'':<code>
Line 13: Line 16:
 </code> </code>
   * Create the virtual disk:<code>   * Create the virtual disk:<code>
-VBoxManage internalcommands createrawvmdk -filename disk.vmdk -rawdisk /dev/sda -partitions 1 -relative -mbr disk.mbr+VBoxManage internalcommands createrawvmdk -filename disk.vmdk -rawdisk /dev/sda -partitions 1 -relative -mbr disk.mbr # if single partition for windows 
 +VBoxManage internalcommands createrawvmdk -filename disk.vmdk -rawdisk /dev/sda -partitions 1,2 -relative -mbr disk.mbr # if boot + system partition for windows
 </code> </code>
  
Line 19: Line 23:
  
   * Create the virtual machine in VirtualBox the usual way, with the following settings:   * Create the virtual machine in VirtualBox the usual way, with the following settings:
-    * check "Enable IO APIC" in "System" tab +    * check "Enable IO APIC" in System/Motherboard tab and "Enable PAE/NX" in System/Processor tab 
-    * set you real mac address for the Network adapter+    * set your real mac address for the Network adapter
   * Set the DMI BIOS information to avoid activation problems. Execute:<code>   * Set the DMI BIOS information to avoid activation problems. Execute:<code>
 sudo dmidecode -t0 # provides DmiBIOS* variables sudo dmidecode -t0 # provides DmiBIOS* variables
 sudo dmidecode -t1 # provides DmiSystem* variables sudo dmidecode -t1 # provides DmiSystem* variables
-</code>And update the values of the following script that you will then execute:<code>+</code>And update the values of the following script that you will then execute (if a value is listed as "Not specified", set it to "<EMPTY>"):<code>
 #! /bin/sh #! /bin/sh
 VM_NAME="Win7" # Name of your Virtual Machine VM_NAME="Win7" # Name of your Virtual Machine
Line 53: Line 57:
 Bootrec.exe /FixMbr Bootrec.exe /FixMbr
 </code> </code>
-  * If you get a BSOD "Stop: 0x0000007b" and the installation DVD fails to repair Windows, reboot natively under Windows, and merge the following registry file merge_ide.reg:<code>+  * You can also try different combinations of partitions you export with VBoxManage (sometimes it can require 1,2,3 which are diagnostic,recovery,windows) 
 +  * If you get a BSOD "Stop: 0x0000007b" and the installation DVD fails to repair this, reboot natively under Windows, and merge the following registry file merge_ide.reg (you may have to set the main disk as IDE to boot Windows and another useless disk as ATA so that it installs the drivers, and then switch the main disk to ATA):<code>
 Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00
  
Line 242: Line 247:
 I did not find the .cab file to extract, but the .sys drivers were already at the right place, so I just merged the .reg file after rebooting to the native Win7, and then it worked also in VirtualBox, even with SATA ! I did not find the .cab file to extract, but the .sys drivers were already at the right place, so I just merged the .reg file after rebooting to the native Win7, and then it worked also in VirtualBox, even with SATA !
  
 +Several years after I ran into more problems and found this complete tutorial:
 +
 +[[https://forums.virtualbox.org/viewtopic.php?t=33356]]
software/virtualbox.1323952229.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0