2

I have problem with Windows 10. I've installed Windows 10 on Qemu virtual machine and I need to clone this image to physical disk. I use ntfstool for do that.

Unfortunatelly my Windows doesn't boot because UNIQUEID for disk is different. I can change disk uniqueid to correct and boot windows but I must change uniqueid in Windows VM to 0x00000000. I have a system which automatically save windows images to correct disk but all disks have uniqueid as 0x00000000. I need to have image with the same id.

My questions are:
1. Can I change unique id for Windows disks without loosing boot ability?
2. Can I tell Qemu which id should new disk have?

Thanks.

airhuff
  • 182
  • 10
esio
  • 161
  • 1
  • 9

2 Answers2

4

+1 Run sysprep to prepare system for cloning then go with Clonezilla to prepare image of your VM and to write it on physical host.

Mr. Raspberry
  • 3,918
  • 13
  • 32
  • I don't use clonezilla, I use ntfsclone because I want to automat that process. Unfortunatelly after sysprep my system goes to reboot loop. :( – esio Jan 22 '17 at 18:48
2

There is guide how to prepare windows system before cloning.

In two words, you need to use sysprep before cloning to remove system-specific data from Windows.

Slipeer
  • 3,295
  • 2
  • 21
  • 33
  • 1
    Thank you for a suggestion but It doesn't work. After sysprep I got some questions during boot and everything takes too much time. Anyway I didn't run cloned system because it went to reboot loop. :( Previously I manually installed system on disk with id 0x00000000 and clone with ntfsclone. All my machines has partition with that ID. Now I wan't to automate that process and use qemu to create system but I have problem because I can't tell qemu to create disk with specific disk id. – esio Jan 22 '17 at 18:51