Virtual Windows XP
From Wiki.cyring.fr
(Difference between revisions)
Line 6: | Line 6: | ||
mkdir ~/tmp/config | mkdir ~/tmp/config | ||
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/ | cp /mnt/WINDOWS/system32/config/* ~/tmp/config/ | ||
+ | reged -I ~/tmp/config/system HKEY_LOCAL_MACHINE ~/tmp/devicedb.reg | ||
+ | </syntaxhighlight><br /> | ||
+ | devicedb.reg | ||
+ | <syntaxhighlight lang="reg"> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet] | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Control] | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase] | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00000000] | ||
+ | "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" | ||
+ | "Service"="viostor" | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00020000] | ||
+ | "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" | ||
+ | "Service"="viostor" | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00021af4] | ||
+ | "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" | ||
+ | "Service"="viostor" | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services] | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor] | ||
+ | "Type"=dword:00000001 | ||
+ | "Start"=dword:00000000 | ||
+ | "Group"="SCSI miniport" | ||
+ | "ErrorControl"=dword:00000001 | ||
+ | "ImagePath"="system32\\drivers\\viostor.sys" | ||
+ | "Tag"=dword:00000040 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Enum] | ||
+ | "0"="PCI\\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\\3&13c0b0c5&0&20" | ||
+ | "Count"=dword:00000000 | ||
+ | "NextInstance"=dword:00000001 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters] | ||
+ | "BusType"=dword:00000001 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\MaxTransferSize] | ||
+ | "ParamDesc"="Maximum Transfer Size" | ||
+ | "type"="enum" | ||
+ | "default"="0" | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\MaxTransferSize\enum] | ||
+ | "0"="64 KB" | ||
+ | "1"="128 KB" | ||
+ | "2"="256 KB" | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\PnpInterface] | ||
+ | "5"=dword:00000001 | ||
+ | |||
+ | </syntaxhighlight><br /> | ||
+ | <syntaxhighlight lang="bash" line start="1"> | ||
chntpw -e ~/tmp/config/system | chntpw -e ~/tmp/config/system | ||
</syntaxhighlight><br /> | </syntaxhighlight><br /> | ||
- | <syntaxhighlight lang=" | + | <syntaxhighlight lang="xml"> |
nk CurrentControlSet | nk CurrentControlSet | ||
cd CurrentControlSet | cd CurrentControlSet | ||
Line 129: | Line 186: | ||
nv 1 0 | nv 1 0 | ||
ed 0 | ed 0 | ||
- | PCI | + | PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13c0b0c5&0&20 |
nv 4 Count | nv 4 Count | ||
ed Count | ed Count |
Revision as of 17:38, 3 November 2012
qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img
sudo mount -o loop,offset=32256 v2WinXP.img /mnt
cp -R ~/tmp/WXP /mnt/
cp ~/tmp/WXP/X86/VIOSER.SYS /mnt/WINDOWS/system32/drivers/
mkdir ~/tmp/config
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
reged -I ~/tmp/config/system HKEY_LOCAL_MACHINE ~/tmp/devicedb.reg
devicedb.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\CurrentControlSet] [HKEY_LOCAL_MACHINE\CurrentControlSet\Control] [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase] [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00000000] "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" "Service"="viostor" [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00020000] "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" "Service"="viostor" [HKEY_LOCAL_MACHINE\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00021af4] "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" "Service"="viostor" [HKEY_LOCAL_MACHINE\CurrentControlSet\Services] [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor] "Type"=dword:00000001 "Start"=dword:00000000 "Group"="SCSI miniport" "ErrorControl"=dword:00000001 "ImagePath"="system32\\drivers\\viostor.sys" "Tag"=dword:00000040 [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Enum] "0"="PCI\\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\\3&13c0b0c5&0&20" "Count"=dword:00000000 "NextInstance"=dword:00000001 [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters] "BusType"=dword:00000001 [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\MaxTransferSize] "ParamDesc"="Maximum Transfer Size" "type"="enum" "default"="0" [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\MaxTransferSize\enum] "0"="64 KB" "1"="128 KB" "2"="256 KB" [HKEY_LOCAL_MACHINE\CurrentControlSet\Services\viostor\Parameters\PnpInterface] "5"=dword:00000001
chntpw -e ~/tmp/config/system
nk CurrentControlSet cd CurrentControlSet nk Control cd Control nk CriticalDeviceDatabase cd CriticalDeviceDatabase nk pci#ven_1af4&dev_1001&subsys_00000000 nk pci#ven_1af4&dev_1001&subsys_00020000 nk pci#ven_1af4&dev_1001&subsys_00021af4 cd pci#ven_1af4&dev_1001&subsys_00000000 nv 1 ClassGUID ed ClassGUID {4D36E97B-E325-11CE-BFC1-08002BE10318} nv 1 Service ed Service viostor cd .. cd pci#ven_1af4&dev_1001&subsys_00020000 nv 1 ClassGUID ed ClassGUID {4D36E97B-E325-11CE-BFC1-08002BE10318} nv 1 Service ed Service viostor cd .. cd pci#ven_1af4&dev_1001&subsys_00021af4 nv 1 ClassGUID ed ClassGUID {4D36E97B-E325-11CE-BFC1-08002BE10318} nv 1 Service ed Service viostor cd .. cd .. cd .. nk Services cd Services nk viostor cd viostor nv 4 Type ed Type 00000001 nv 4 Start ed Start 00000000 nv 1 Group ed Group SCSI miniport nv 4 ErrorControl ed ErrorControl 00000001 nv 1 ImagePath ed ImagePath system32\drivers\viostor.sys nv 4 Tag ed Tag 00000021 nk Parameters nk Enum cd Parameters nv 4 BusType ed BusType 00000001 nk MaxTransferSize cd MaxTransferSize nv 1 ParamDesc ed ParamDesc Maximum Transfer Size nv 1 type ed type enum nv 1 default ed default 0 nk enum cd enum nv 1 0 ed 0 64 KB nv 1 1 ed 1 128 KB nv 1 2 ed 2 256 KB cd .. cd .. nk PnpInterface cd PnpInterface nv 4 5 ed 5 00000001 cd .. cd .. cd Enum nv 1 0 ed 0 PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13c0b0c5&0&20 nv 4 Count ed Count 00000001 nv 4 NextInstance ed NextInstance 00000001 q y
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
sudo umount /mnt