From fcc5bc0fe1f28446b6653591fb23cbfb17f3028e Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones"
import guestfs -input = "f16x32.img" +input = "disk.img" g = guestfs.GuestFS () diff --git a/2012-dublin/0700-resizing.html b/2012-dublin/0700-resizing.html index 5c847ee..8b9eebf 100644 --- a/2012-dublin/0700-resizing.html +++ b/2012-dublin/0700-resizing.html @@ -5,9 +5,9 @@diff --git a/2012-dublin/0750-alignment.d/.dir b/2012-dublin/0750-alignment.d/.dir new file mode 100644 index 0000000..e69de29 diff --git a/2012-dublin/0750-alignment.term b/2012-dublin/0750-alignment.term new file mode 100755 index 0000000..1bd5263 --- /dev/null +++ b/2012-dublin/0750-alignment.term @@ -0,0 +1,11 @@ +#!/bin/bash - + +source functions + +# History. +remember 'virt-alignment-scan -a disk.img' + +echo "Example: Alignment scanning" + +cd 0750-alignment.d +terminal diff --git a/2012-dublin/0800-sysprep.html b/2012-dublin/0800-sysprep.html new file mode 100644 index 0000000..4d2e286 --- /dev/null +++ b/2012-dublin/0800-sysprep.html @@ -0,0 +1,40 @@ + + + + +Resizing
--
+virt-resize
-virt-alignment-scan
-virt-resize
++virt-resize input.img output.img --expand sda2 ++diff --git a/2012-dublin/0900-sparse.term b/2012-dublin/0900-sparse.term index 803c3d3..ee91aa2 100755 --- a/2012-dublin/0900-sparse.term +++ b/2012-dublin/0900-sparse.term @@ -3,7 +3,6 @@ source functions # History. -remember 'ls -l -h' remember 'ls -l -h -s' remember 'man virt-sparsify' diff --git a/2012-dublin/0800-svirt.html b/2012-dublin/0950-svirt.html similarity index 100% rename from 2012-dublin/0800-svirt.html rename to 2012-dublin/0950-svirt.html diff --git a/2012-dublin/1000-auditing.html b/2012-dublin/1000-auditing.html index 3577f4c..425100d 100644 --- a/2012-dublin/1000-auditing.html +++ b/2012-dublin/1000-auditing.html @@ -6,7 +6,7 @@Sysprep
+ +virt-sysprep
++$ virt-sysprep --list-operations +bash-history Remove the bash history in the guest +blkid-tab Remove blkid tab in the guest +ca-certificates Remove CA certificates in the guest +cron-spool Remove user at-jobs and cron-jobs +dhcp-client-state Remove DHCP client leases +dhcp-server-state Remove DHCP server leases +dovecot-data Remove Dovecot (mail server) data +flag-reconfiguration Flag the system for reconfiguration +hostname Change the hostname of the guest +kerberos-data Remove Kerberos data in the guest +logfiles Remove many log files from the guest +mail-spool Remove email from the local mail spool directory +net-hwaddr Remove HWADDR (hard-coded MAC address) configuration +package-manager-cache Remove package manager cache +pam-data Remove the PAM data in the guest +random-seed Generate random seed for guest +rhn-systemid Remove the RHN system ID +samba-db-log Remove the database and log files of Samba +script Run arbitrary scripts against the guest +smolt-uuid Remove the Smolt hardware UUID +ssh-hostkeys Remove the SSH host keys in the guest +ssh-userdir Remove ".ssh" directories in the guest +sssd-db-log Remove the database and log files of sssd +udev-persistent-net Remove udev persistent net rules +user-account Remove the user accounts in the guest +utmp Remove the utmp file +yum-uuid Remove the yum UUID ++ +Licensing, Auditing, CVEs
virt-inspector
+virt-inspector
virt-ls
+
git.annexia.org → libguestfs-talks (in Tech Talk format)
diff --git a/2012-dublin/bashrc b/2012-dublin/bashrc index e8fcde3..4c6a3c6 100644 --- a/2012-dublin/bashrc +++ b/2012-dublin/bashrc @@ -1,5 +1,8 @@ # -*- shell-script -*- +# Colour ls. +if [ -f /etc/profile.d/colorls.sh ]; then . /etc/profile.d/colorls.sh; fi + # Fancy prompt colours (see # https://wiki.archlinux.org/index.php/Color_Bash_Prompt) promptcol='\e[0;32m' ;# colour for the prompt diff --git a/2012-dublin/run b/2012-dublin/run index 93cbfb0..ed31b35 100755 --- a/2012-dublin/run +++ b/2012-dublin/run @@ -9,8 +9,8 @@ export GNOME_KEYRING_PID= find -name '*~' -delete # Get everything into the cache. -guestfish -a /dev/null run > /dev/null 2>&1 -guestfish --ro -a 0050-demo.d/f16x32.img run > /dev/null 2>&1 +guestfish -a /dev/null run > /dev/null +guestfish --ro -a 0050-demo.d/disk.img -i exit > /dev/null # Run techtalk. techtalk-pse -- 1.8.3.1