[libvirt-users] Migrate Win2k3 to KVM

Pierre Schweitzer pierre at reactos.org
Sun Jul 12 09:38:45 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/07/2015 11:09, Ruzsinszky Attila wrote:
>> Great, then, it opens possibilities. Let's try the following: - -
>> Install chntpw
>> 
> Is that a Linux program? I use Ubuntu 14.04 64 bit.

Yes. And Ubuntu provides a package for this program.

>> - - Now, start registry editor: chntpw -e sam system security
>> software
>> 
> "system security software" is parameters?

All are parameters. '-e' means you want to start the program as
registry editor. Then, the rest if just the list of the hives you want
to open. SAM is mandatory, chntpw is always looking for it. Security &
software might actually not be mandatory for what we do.

>> The following commands are to type in chntpw prompt: - - hive 1
>> (to move to system) - - cd ControlSet001 - - cd Control - - cd
>> CriticalDeviceDatabase - - Check you have the following keys:
>> primary_ide_channel, secondary_ide_channel,
>> pci#ven_8086&dev_7010, pci#ven_8086&dev_7111 keys. Some will be
>> missing (otherwise, you'd boot ;-)).
>> 
> I think I'll find SATA something, because the original image was
> taken from a SATA system.

You'll likely find pci#vend_XXXX&dev_XXXX keys matching your SATA buses.

>> - - Add the missing ones. For example: 'nk
>> pci#ven_8086&dev_7111'
>> 
> What does it mean "'nk"?

It's the command for creating a 'new key'

>> followed by: 'cd pci#ven_8086&dev_7111' followed by 'nv 1
>> Service' (1
>> 
> ... and "'nv"?

It's the command for creating a 'new value' in a key.

>> for REG_SZ) followed by 'ed Service' and type intelide. Proceed
>> like that will all the missing keys & values[1], 'cd ..' when
>> you're done with all the values of a key, to proceed for the
>> others - - cd .. (you're now in Control) - - cd .. (you're now in
>> ControlSet001) - - cd Services - - Check you have the following
>> keys: atapi and intelide - - Add the missing ones[2]. REG_DWORD
>> type is 4 when doing nv. (like nv 4 ErrorControl) - - You're
>> done, so: q to quit chntpw (of course, reply 'y' to write hives)
>> 
> Maybe I'll have question with registry. Tomorrow morning I'll try
> your steps. Can I a backup file from the registy before I start the
> procedure? And how?

Backup the config directory files. They are the hives containing your
Windows registry.

>> Back to your linux term: - - cd ../drivers/ - - Check you have
>> atapi.sys and intelide.sys. In case you don't, extract them from
>> the cab file you can find in Windows\Driver Cache\i386 - -
>> Umount - - Try to boot again, and report.
>> 
> Now I copied the virtio drivers to the ./Drivers directory. I
> understand the 1st goal is booting from IDE. What about SATA?

I unfortunately don't happen to have a VM using SATA buses, so I've no
idea what HW IDs is Qemu using for its buses. It could be interesting
to have a look though.
- -- 
Pierre Schweitzer <pierre at reactos.org>
System & Network Administrator
Senior Kernel Developer
ReactOS Deutschland e.V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJVojWlAAoJEHVFVWw9WFsLAh8P/1s7UBbw8Laip+59rzTxFjp5
4YMe1SgIG9QM05iBhGeoP0BqmbaU+4/aZtOouBC1HqtuuBE/NGKS8UymTapTxJhn
vOQmLX6i+LTAUP51kc5+v4bWE7tu6fv1wpdRyHOktEbb6stwNAQCAg718UluhLRJ
wbLavy7Y1KyabJ3zn6ntco83f8GsEIGy6VefYdjE9xmDrwL06lD82ayrtz0Xn7rS
nD3XwmfUyumYHiyIPIxXYCZvH4ysu5D4ThHQpX4PYpwtslb8p9zC0TeMHmWKCzyX
g88DZDncwX1bv/iZfRBBFKmWWdfZbqM86bf0NF9x0djEoP++RhoopExH+qHkzMAn
vgslxMBtcRT8hxstE78cfAvSdXkCliZ0Qq1ZFMSeyJRyO+Yro7Ws5cNuS6/GPx6L
FnQuridzmNpWZ355aFCJ5oM9Cu9UQ1ifW2e2AjyS33duSLcv4iGvh3e0AFNdV+fd
igmUNf83Q4dSKQfTmTGdjqMD/jvFGgQbd6o2NSZYaH5MloEzUfcrK83IiJ9adYPb
riN/H/VcyqOJNOhcy21/0+8zq5yUyBrb+ITLNericrI8qnkiys5cfW4mzYfkPWq5
AZnnNcdk8j87JEnZRikeHhtMCLBvQsxvTxtkUe93bVuslharSdQEPumXiB9oPdQ7
d/pbtNKMi/D4s4xs/41n
=kQWD
-----END PGP SIGNATURE-----




More information about the libvirt-users mailing list