Skip to content

Instantly share code, notes, and snippets.

View 0xSheepdog's full-sized avatar
💭
fixing your broken shit

Jeff Pettorino 0xSheepdog

💭
fixing your broken shit
  • guardians of the galaxy
  • Mountain Standard Tribe
View GitHub Profile
@0xSheepdog
0xSheepdog / virt-customize-example.sh
Last active January 14, 2024 03:20
howto customize libvirt guest disk image before deployment
# This script provides examples for using the 'virt-customize' command to modify
# a libvirt guest disk image. It demonstrates a few common items as well as
# runs a shell script with more in-depth commands that will be run on the
# appliance and saved to the disk image. See my 'customize-guest.sh' gist for
# an example of the type of script you may use.
# gist.github.com/0xSheepdog/07284a9b1a1a3e2d30cc63a40a89cb77
$ virt-customize \
-a rocky-9.0-x86_64.qcow2 \
--root-password password:S3CRETPA$SW0RD \