How To Migrate From Vmware To KVM

From KVM
Revision as of 11:12, 8 March 2009 by ShaharMintz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The vmware system consists of two disks in raw format: the old boot disk and the second one. It is Windows 2000 Server guest OS.

  1. Create empty new boot image (use dd).
  2. Boot stand alone OS from any other disk with old boot disk and new boot image connected (that is at least 3 disks).
  3. Sign up, make partition and format the new disk (do not make volume).
  4. xcopy /e /c /r /h /k /o /x /y old_boot_disk:\ new_boot_disk:\
  5. Copy boot.ini from new boot disk to the second one (that is not boot disk).
  6. Edit boot.ini on the second disk to boot from rdisk(1)
  7. Swap disks: new <-> second.
  8. Boot setup from CD and go on Repair Procedure (after licence agreement) for the new boot disk.
  9. fdisk new boot image and toggle Boot flag.
  10. Swap disks back: second <-> new.
  11. Boot from the new disk.
  12. Remove vmware tools and devices.
  13. Reboot and be happy.

That's all.

P. S. To swap disks and edit boot.ini (items 5,6,7,10) should be excluded if the boot disk is named C:, that is right in most cases. Those items are for strange case, when boot disk is D: and second one is C:.