Blog Code Forum

Virtual Windows XP

From Wiki.cyring.fr

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<syntaxhighlight lang="bash" line start="1">
<syntaxhighlight lang="bash" line start="1">
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
-
mount -o loop,offset=32256 v2WinXP.img /mnt
+
sudo mount -o loop,offset=32256 v2WinXP.img /mnt
mkdir ~/tmp/config
mkdir ~/tmp/config
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
Line 36: Line 36:
<syntaxhighlight lang="bash" line start="1">
<syntaxhighlight lang="bash" line start="1">
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
 +
sudo umount /mnt
</syntaxhighlight>
</syntaxhighlight>

Revision as of 09:19, 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. mkdir ~/tmp/config
  4. cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
  5. chntpw -e ~/tmp/config/system

nk CurrentControlSet
cd CurrentControlSet
nk Control
cd Control
nk CriticalDeviceDatabase
cd CriticalDeviceDatabase
nk primary_ide_channel
cd primary_ide_channel
nv 1 ClassGUID
ed ClassGUID
{4D36E96A-E325-11CE-BFC1-08002BE10318}
nv 1 Service
ed Service
atapi
cd ..
nk secondary_ide_channel
cd secondary_ide_channel
nv 1 ClassGUID
ed ClassGUID
{4D36E96A-E325-11CE-BFC1-08002BE10318}
nv 1 Service
ed Service
atapi
cd ..
q
y
  1. cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
  2. sudo umount /mnt
Personal tools