Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to understand if it is possible to install Windows from Qemu to a physical HDD. I was trying to do that by doing something like this:

qemu-system-x64 -m1024 -vnc :1 -hda /dev/sda -cdrom .../Windows.iso

Installed successfully. But when i tried to boot normally got a blue screen telling me that a hardware change appeared so go away.

I guess the problem is not because of QEMU-CPU emulation or smth, but because of HDD`s UID change which is used inside of Windows registry. Am i right?

So if yes how to workaround this? Maybe i need to prepare Windows before the reboot? I have successfully installed FreeBSD via QEMU and thought with Windows it will go the same ...

share|improve this question

1 Answer 1

Yes, it is. You need to either add the physical computer's drivers to the Windows image before rebooting, or your need to run sysprep with the "Generalize" option to make Windows look for the correct drivers upon booting. This is the same problem as when doing a P2V conversion.

share|improve this answer
    
Add the the physical computers hardware? How? The sysprep hint is clear. Ill try it. Thank you. –  Radium Nov 26 '12 at 15:49
    
It's early in the morning... meant drivers, not hardware. –  Chris S Nov 26 '12 at 16:01
    
Hm. How to do that? I think HDD is a pretty common thing so drivers should be inside the Windows already. If not - how to add them?.. –  Radium Nov 26 '12 at 18:43
    
You need drivers for the hard drive controller, not the drive itself. This is typically packaged as a "chipset driver" or "storage controller" or similar. –  Chris S Nov 26 '12 at 18:49
    
But isn`t it already there by default? If i just install Windows over KVM i do not install extra drivers - it automatically catches everything. So how to do that?.. I know how to install drivers if the device is already in the 'device manager'. –  Radium Nov 26 '12 at 19:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.