Trying to follow section 9.10.2 of the manual. Host OS is openSUSE 11.1.
(Note that the "physical" Windows instance has been set up with an additional profile, and the MergeIDE utility has been run).
First step:
# VBoxManage internalcommands listpartitions -rawdisk /dev/sda
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x07 0 /1 /1 1023/254/63 20018 63
2 0x12 1023/254/63 1023/254/63 5945 58749705
3 0x83 1023/254/63 1023/254/63 70 70926975
4 0x8e 1023/254/63 1023/254/63 87580 71071560
My Windows partition is number 1.
Next, we need an MBR file. The various Howtos recommend using 'install-mbr' from the Debian 'mbr' package . To build it, 'as86' is required, from the 'bin86' package.
MBR file is created using 'sudo install-mbr ./mbr -f -p 1' (partition 1).
Next step is to create the VM definition, per manual: VBoxManage internalcommands createrawvmdk -filename /home/pjt//.VirtualBox/WinXP1.vmdk -rawdisk /dev/sda -partitions 1 -relative -register -mbr ./p1.mbr
When I started the VM, I got the infamous "disk read error". It turned out to be the Thinkpad BIOS CHS error: http://l4x.org/unix/virtualbox_disk_read_error.html
Running geometry (hd0) at the grub boottime prompt gave the the settings for adjusting the .vmdk file. XP booted correctly at this point.
2009-03-28
Subscribe to:
Comments (Atom)