From 50a4126485311813b09b0b23a1bbdcc8fb774b4a Mon Sep 17 00:00:00 2001 From: Anton Karmanov Date: Thu, 17 Sep 2020 16:13:29 +0500 Subject: [PATCH] virt-install, virt-sparsify: add page (#4333) --- pages/common/virt-install.md | 8 ++++++++ pages/common/virt-sparsify.md | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pages/common/virt-install.md create mode 100644 pages/common/virt-sparsify.md diff --git a/pages/common/virt-install.md b/pages/common/virt-install.md new file mode 100644 index 000000000..963ec9dea --- /dev/null +++ b/pages/common/virt-install.md @@ -0,0 +1,8 @@ +# virt-install + +> Create virtual machines with libvirt and begin OS installation. +> More information: . + +- Create a virtual machine with 1 GiB RAM and 12 GiB storage and start Debian installation: + +`virt-install --memory {{1024}} --disk path={{path/to/image.qcow2}},size={{12}} --cdrom {{path/to/debian.iso}}` diff --git a/pages/common/virt-sparsify.md b/pages/common/virt-sparsify.md new file mode 100644 index 000000000..a4d08a394 --- /dev/null +++ b/pages/common/virt-sparsify.md @@ -0,0 +1,13 @@ +# virt-sparsify + +> Make virtual machine drive images thin-provisioned. +> NOTE: Use only for offline machines to avoid data corruption. +> Home page: . + +- Create a sparsified compressed image without snapshots from an unsparsified one: + +`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/image_new.qcow2}}` + +- Sparsify an image in-place: + +`virt-sparsify --in-place {{path/to/image.img}}`