Tag Archives: KVM

Reduce KVM Windows qcow2 file size

Clean up the virtual drive (remove temps files, etc) Defrag with the open source UltraDefrag software with “full optimisation” Run “sdelete -z c:“ Run “qemu-img convert -p -f qcow2 -O qcow2 Win7.qcow2  /newpath/Win7.qcow2“ For Linux Guest: dd if=/dev/zero of=/mytempfile # … Continue reading

Posted in Linux, Windows | Tagged | Leave a comment

Resize KVM guest disk space then resize PV LV

Increase KVM virtual machine guest’s disk space from the command line if you initially set insufficient amount of disk space: Shutdown the VM Move the current image mv mykvm.img mykvm.img.bak Create a new image qemu-img create -f raw addon.raw 30G … Continue reading

Posted in Linux | Tagged , | Leave a comment

KVM rename Virtual Machine ( virsh undefine/define )

virsh dumpxml $DOMAIN > New_Domain.xml virsh undefine $DOMAIN <edit New_Domain.xml> virsh define New_Domain.xml

Posted in Linux | Tagged | Leave a comment