diff --git a/pages/common/virt-install.md b/pages/common/virt-install.md new file mode 100644 index 0000000000..963ec9dea7 --- /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 0000000000..a4d08a3947 --- /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}}`