Created
August 11, 2018 18:22
-
-
Save mdpuma/0f2630348546a72c25f6554fe35abb2c to your computer and use it in GitHub Desktop.
make solusvm template from vm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| LVM=vg_solus1-kvm533_img | |
| DISTRO=debian-8 | |
| DATE=$(date +%Y-%m-%d) | |
| virt-sysprep -a /dev/mapper/$LVM | |
| virt-sparsify -v /dev/mapper/$LVM --convert qcow2 --compress /home/solusvm/kvm/template/linux-$DISTRO-$DATE-x86_64-min-gen2-v1.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment