Virtual Windows XP
From Wiki.cyring.fr
(Difference between revisions)
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
qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img
sudo mount -o loop,offset=32256 v2WinXP.img /mnt
mkdir ~/tmp/config
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
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
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/
sudo umount /mnt