Site Tools


Just an easy video showing all steps here:

Quick Steps used if you just need the commands: (Commands used in this video)

sudo apt-get install libguestfs-tools
sudo dd if=/dev/sdX of=hdd.img bs=4M
qemu-img convert -p -f raw -O qcow2 hdd.img hddraw.qcow2

sudo modprobe nbd max_part=10
sudo qemu-nbd -c /dev/nbd0 hddraw.qcow2
sudo gparted /dev/nbd0
sudo qemu-nbd -d /dev/nbd0

qemu-img create -f qcow2 -o preallocation=metadata ClonedDiskresize.qcow2 XXG
virt-resize hddraw.qcow2 ClonedDiskresize.qcow2

sudo qemu-nbd -c /dev/nbd0 ClonedDiskresize.qcow2
sudo gparted /dev/nbd0
sudo qemu-nbd -d /dev/nbd0
qemu-img info Win11Test.qcow2

bootrec /rebuildbcd
reagentc /info
reagentc /setreimage /path D:\recovery\WindowsRE /target C:\Windows
reagentc /enable

mbr2gpt in recovery mode to change disk to gpt

start/p2vamachine.txt · Last modified: 2022/06/09 19:03 by peter