Notepad:KVM: Difference between revisions

From Amar
Jump to navigationJump to search
→‎KVM: Shrink QCOW2
Line 15: Line 15:
== Expand the size of QCOW2 disk ==
== Expand the size of QCOW2 disk ==
[http://www.naturalborncoder.com/virtualization/2014/12/05/increasing-the-size-of-a-qcow2-image-under-kvm/ Expand the size of a QCOW2 disk image ]
[http://www.naturalborncoder.com/virtualization/2014/12/05/increasing-the-size-of-a-qcow2-image-under-kvm/ Expand the size of a QCOW2 disk image ]
== Shrink a QCOW2 disk ==
Clear the empty space
sudo dd if=/dev/zero of=/zerofile bs=1M
sudo rm -f /zerofile
or
sdelete.exe -z C:
Then change the size
qemu-img convert -O qcow2 -c input.qcow2 output.qcow2


{{notepad}}
{{notepad}}

Revision as of 18:24, 10 May 2024

From: HowTos | KVM

KVM

Networking - brctl

systemd-networkd

Start/Start libvirtd

Virtual Shell virsh

virsh man

Transfer Running Machines

Expand the size of QCOW2 disk

Expand the size of a QCOW2 disk image

Shrink a QCOW2 disk

Clear the empty space

sudo dd if=/dev/zero of=/zerofile bs=1M
sudo rm -f /zerofile

or

sdelete.exe -z C:

Then change the size

qemu-img convert -O qcow2 -c input.qcow2 output.qcow2



← Back to Notepad



<insert>googlesearchwiki</insert> <insert>paypal</insert> <insert>analytics</insert>