[Ovirt-devel] [PATCH] Reduce size of wui appliance
Hugh O. Brock
hbrock at redhat.com
Fri Jun 6 00:14:58 UTC 2008
On Thu, Jun 05, 2008 at 07:58:30PM -0400, Perry Myers wrote:
> This set of patches does a few things:
> 1. kickstart packages list is edited to minimize packages installed on the
> WUI. In particular --nobase is added so that random unnecessary
> packages are not installed.
> 2. Size of / is reduced to 2GB. Of which 1.4GB is used. Total sda disk
> size is 3GB to account for /, 100MB /boot, 512MB swap and iSCSI partitions
> 3. Disk image is created using qcow2 instead of raw. This should make the
> disk easier to package up for download. .img file size after install
> is 1.7GB. Compressed with bz2 it is about 470MB
>
> Signed-off-by: Perry Myers <pmyers at redhat.com>
> ---
> wui-appliance/common-install.ks | 2 +-
> wui-appliance/common-pkgs.ks | 46 +++++++-------------------------
> wui-appliance/create-wui-appliance.sh | 6 +++-
> wui-appliance/wui-devel-x86_64.ks | 2 +-
> 4 files changed, 16 insertions(+), 40 deletions(-)
>
> diff --git a/wui-appliance/common-install.ks b/wui-appliance/common-install.ks
> index 36eb28d..fa1300c 100644
> --- a/wui-appliance/common-install.ks
> +++ b/wui-appliance/common-install.ks
> @@ -20,5 +20,5 @@ part /boot --fstype ext3 --size=100 --ondisk=sda
> part pv.2 --size=1 --grow --ondisk=sda
> volgroup VolGroup00 --pesize=32768 pv.2
> logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512
> -logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
> +logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=2048
> reboot
> diff --git a/wui-appliance/common-pkgs.ks b/wui-appliance/common-pkgs.ks
> index ab4c5da..5c42401 100644
> --- a/wui-appliance/common-pkgs.ks
> +++ b/wui-appliance/common-pkgs.ks
> @@ -1,47 +1,21 @@
> - at admin-tools
> - at editors
> - at system-tools
> - at text-internet
> @core
> - at base
> - at hardware-support
> - at web-server
> - at sql-server
> - at development-libs
> - at legacy-fonts
> - at development-tools
> -pax
> -imake
> -dnsmasq
> +policycoreutils
> +chkconfig
> +rootfiles
> dhclient
> +libvirt-python
> +openssh-server
> +nfs-utils
> +collectd
> ipa-server
> ipa-admintools
> -libvirt
> -cyrus-sasl-gssapi
> scsi-target-utils
> iscsi-initiator-utils
> -collectd
> -ruby-libvirt
> -ruby-postgres
> ovirt-wui
> ovirt-host-image-pxe
> firefox
> xorg-x11-xauth
> virt-viewer
> -ruby-devel
> -avahi-devel
> -livecd-tools
> --libgcj
> --glib-java
> --valgrind
> --boost-devel
> --frysk
> --bittorrent
> --fetchmail
> --slrn
> --cadaver
> --mutt
> --oprofile-gui
> --qt
> --nmap
> --kernel-devel
> +cobbler
> +bind-utils
> +
> diff --git a/wui-appliance/create-wui-appliance.sh b/wui-appliance/create-wui-appliance.sh
> index 5e84060..4cfb015 100755
> --- a/wui-appliance/create-wui-appliance.sh
> +++ b/wui-appliance/create-wui-appliance.sh
> @@ -6,7 +6,7 @@ try_h() { printf "Try \`$ME -h' for more information.\n" >&2; }
> die() { warn "$@"; try_h; exit 1; }
>
> RAM=768
> -IMGSIZE=6
> +IMGSIZE=3000M
>
> ISO=
> IMGDIR_DEFAULT=/var/lib/libvirt/images
> @@ -194,7 +194,9 @@ mkdir -p $IMGDIR
> virsh destroy $NAME > /dev/null 2>&1
> virsh undefine $NAME > /dev/null 2>&1
>
> -virt-install -n $NAME -r $RAM -f "$IMGDIR/$IMGNAME" -s $IMGSIZE --vnc \
> +rm -f "$IMGDIR/$IMGNAME"
> +qemu-img create -f qcow2 "$IMGDIR/$IMGNAME" $IMGSIZE
> +virt-install -n $NAME -r $RAM -f "$IMGDIR/$IMGNAME" --vnc \
> --accelerate -v --os-type=linux --arch=$ARCH \
> -w network:default -w network:$BRIDGENAME \
> $location_arg $cdrom_arg $extra_flag "$extra_arg" --noacpi $CONSOLE_FLAG
> diff --git a/wui-appliance/wui-devel-x86_64.ks b/wui-appliance/wui-devel-x86_64.ks
> index 512dd60..0287b3a 100644
> --- a/wui-appliance/wui-devel-x86_64.ks
> +++ b/wui-appliance/wui-devel-x86_64.ks
> @@ -11,7 +11,7 @@ logvol /iscsi5 --name=iSCSI5 --vgname=VolGroup00 --size=64
>
> %include repos-x86_64.ks
>
> -%packages
> +%packages --nobase
>
> %include common-pkgs.ks
>
> --
> 1.5.5.1
ACK, looks lovely, please commit so I can build the tip with it again...
--Hugh
More information about the ovirt-devel
mailing list