Skip to content

Instantly share code, notes, and snippets.

@mdpuma
Created August 11, 2018 18:22
Show Gist options
  • Select an option

  • Save mdpuma/0f2630348546a72c25f6554fe35abb2c to your computer and use it in GitHub Desktop.

Select an option

Save mdpuma/0f2630348546a72c25f6554fe35abb2c to your computer and use it in GitHub Desktop.
make solusvm template from vm
#!/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