Blog Code Forum

Virtual Windows XP

From Wiki.cyring.fr

(Difference between revisions)
Jump to: navigation, search
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 CriticalDeviceDatabase
+
nk pci#ven_1af4&dev_1001&subsys_00000000
-
cd CriticalDeviceDatabase
+
nk pci#ven_1af4&dev_1001&subsys_00020000
-
nk primary_ide_channel
+
nk pci#ven_1af4&dev_1001&subsys_00021af4
-
cd primary_ide_channel
+
 
 +
cd pci#ven_1af4&dev_1001&subsys_00000000
nv 1 ClassGUID
nv 1 ClassGUID
ed ClassGUID
ed ClassGUID
-
{4D36E96A-E325-11CE-BFC1-08002BE10318}
+
{4D36E97B-E325-11CE-BFC1-08002BE10318}
nv 1 Service
nv 1 Service
ed Service
ed Service
-
atapi
+
viostor
cd ..
cd ..
-
nk secondary_ide_channel
+
 
-
cd secondary_ide_channel
+
cd pci#ven_1af4&dev_1001&subsys_00020000
nv 1 ClassGUID
nv 1 ClassGUID
ed ClassGUID
ed ClassGUID
-
{4D36E96A-E325-11CE-BFC1-08002BE10318}
+
{4D36E97B-E325-11CE-BFC1-08002BE10318}
nv 1 Service
nv 1 Service
ed Service
ed Service
-
atapi
+
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

  1. qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img
  2. sudo mount -o loop,offset=32256 v2WinXP.img /mnt
  3. cp ~/tmp/WXP/X86/VIOSER.SYS /mnt/WINDOWS/system32/drivers/
  4. mkdir ~/tmp/config
  5. cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
  6. 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
  1. cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
  2. sudo umount /mnt
Personal tools