Notepad:KVM

From Amar
Revision as of 22:59, 14 May 2024 by Lax (talk | contribs) (→‎KVM)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

Copy a Sparse File

From Fastest way to copy a sprse file the end result was :

  • cp --sparse=always srcFile dstFile
  • dd if=srcFile of=dstFile iflag=direct oflag=direct bs=4M conv=sparse
  • rsync --ignore-existing -aS srcFile dstFile
  • virt-sparsify srcFile dstFile

← Back to Notepad



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