27 | | After the above steps, your Windows installation should work fine in !VirtualBox. |
| 30 | This should work for Win2k Vista and Windows 7 as well, but it's untested. |
| 31 | |
| 32 | 1. Run the `MergeIDE` utility as mentioned above on existing windows machine. |
| 33 | 1. Shut down windows machine. |
| 34 | 1. Either pull the drive from the windows machine or copy the data with a low level image tool (like `dd`) to a USB drive or other removable media. If making an image, DO NOT image just the partition, this will not work! |
| 35 | 1. Use VBoxMange convertfromfaw to convert the image or to copy from the drive you pulled from the windows machine. |
| 36 | a. If you are converting from the image, the syntax is just |
| 37 | {{{ |
| 38 | VBoxManage convertfromraw ImageFile.dd OutputFile.vdi |
| 39 | }}} |
| 40 | a. If you are converting from the drive, you need to use `VBoxManage stdin /dev/sdg OutPutFile.vdi NUMBEROFBYTES`. Note, if you use `fdisk -l` in Linux you can see how many bytes each drive is to supply this parameter. Example: |
| 41 | {{{ |
| 42 | # fdisk-l /dev/sda |
| 43 | Disk /dev/sda: 1500.3 GB, 1500301910016 bytes |
| 44 | }}} |
| 45 | 1. Then use the media manager in VirtualBox to add the newly converted drive. |
| 46 | 1. Make a new virtual machine, using the drive you just added with the media manager. |
| 47 | 1. Once it is created, go in and turn on “Enable IO APIC”, select the # of processors you want etc. |
| 48 | 1. Try to boot the new virtual machine. It may “just work”, or you may get a BSOD. If it just works install guest additions and you are done. Depending on your license you might need to re-activate Windows. |
| 49 | 1. If it did not work, and you got a BSOD. Shutdown the virtual machine and boot up from a windows CD. Go through until you get to the select a partition, select the existing partition, and choose “repair”. It will basically reinstall windows and configure it for your new hardware (virtual hardware). |
| 50 | 1. Reinstall patches (Service packs) and updates. |
| 51 | 1. Install guest additions |