Virtual Windows XP
From Wiki.cyring.fr
(Difference between revisions)
Line 2: | Line 2: | ||
qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img | qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img | ||
sudo mount -o loop,offset=32256 v2WinXP.img /mnt | sudo mount -o loop,offset=32256 v2WinXP.img /mnt | ||
+ | cp ~/tmp/WXP/X86/VIOSER.SYS /mnt/WINDOWS/system32/drivers/ | ||
mkdir ~/tmp/config | mkdir ~/tmp/config | ||
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/ | cp /mnt/WINDOWS/system32/config/* ~/tmp/config/ | ||
Line 11: | Line 12: | ||
nk Control | nk Control | ||
cd Control | cd Control | ||
- | nk | + | nk pci#ven_1af4&dev_1001&subsys_00000000 |
- | + | nk pci#ven_1af4&dev_1001&subsys_00020000 | |
- | nk | + | nk pci#ven_1af4&dev_1001&subsys_00021af4 |
- | cd | + | |
+ | cd pci#ven_1af4&dev_1001&subsys_00000000 | ||
nv 1 ClassGUID | nv 1 ClassGUID | ||
ed ClassGUID | ed ClassGUID | ||
- | { | + | {4D36E97B-E325-11CE-BFC1-08002BE10318} |
nv 1 Service | nv 1 Service | ||
ed Service | ed Service | ||
- | + | viostor | |
cd .. | cd .. | ||
- | + | ||
- | cd | + | cd pci#ven_1af4&dev_1001&subsys_00020000 |
nv 1 ClassGUID | nv 1 ClassGUID | ||
ed ClassGUID | ed ClassGUID | ||
- | { | + | {4D36E97B-E325-11CE-BFC1-08002BE10318} |
nv 1 Service | nv 1 Service | ||
ed Service | ed Service | ||
- | + | viostor | |
cd .. | 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 | ||
+ | |||
q | q | ||
y | y |
Revision as of 10:21, 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 ~/tmp/WXP/X86/VIOSER.SYS /mnt/WINDOWS/system32/drivers/
mkdir ~/tmp/config
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
chntpw -e ~/tmp/config/system
nk CurrentControlSet cd CurrentControlSet nk Control cd Control 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 q y
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
sudo umount /mnt