Perry Myers
2008-Nov-14 22:06 UTC
[Ovirt-devel] [PATCH] Series to simplify the appliance and appliance creation scripts
These 4 patches need to be applied together. [PATCH recipe] Changes to support removal of second network interface on the appliance [PATCH appliance] Create separate data disk for storing iSCSI and NFS for appliance [PATCH appliance] Move appliance creation out of spec file to Makefile [PATCH appliance] Refactor the create-ovirt-appliance script into several scripts The end results are: 1. an appliance that only has a single network interface 2. appliance has a separate data disk for storing NFS and iSCSI sparse images 3. appliance is no longer packaged inside of an RPM, instead it is packaged as qcow2 disk images w/ helper scripts and virt-image XML in a tarball 4. ovirt-appliance RPM still exists but is just used to hold the helper scripts so that the process for downloading the appliance on a Fedora system would be # yum install ovirt-appliance # get-ovirt-appliance # create-ovirt-network # create-ovirt-nodes # create-ovirt-appliance get-ovirt-appliance retrieves the appliance image from the ovirt.org server or from a local directory (see -l parameter). create-ovirt-network sets up either a self contained network for fake nodes or bridges to specified interface with -e parameter. create-ovirt-appliance just creates the appliance from the virt-image XML definition and optionally starts and connects to its serial console. create-ovirt-nodes creates the fake nodes; this step is optional. Splitting out the functionality into several files will make debugging issues easier (in the past our one script to do it all caused problems when someone -just- wanted to redefine the appliance but not the network, or just create fake nodes separately). And the change in packaging helps non-RPM based systems download and use the appliance easier and decreases build time by several minutes...
Perry Myers
2008-Nov-14 22:06 UTC
[Ovirt-devel] [PATCH appliance] Create separate data disk for storing iSCSI and NFS for appliance
Signed-off-by: Perry Myers <pmyers at redhat.com> --- ovirt-appliance.ks | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ovirt-appliance.ks b/ovirt-appliance.ks index 3613a53..69286fb 100644 --- a/ovirt-appliance.ks +++ b/ovirt-appliance.ks @@ -15,16 +15,13 @@ services --disabled=libvirtd,postgresql --enabled=network,tgtd,nfs,iptables,ntpd timezone --utc UTC text -bootloader --location=mbr --driveorder=sda --append="console=tty0 console=ttyS0,115200" -# The following is the partition information you requested -# Note that any partitions you deleted are not expressed -# here so unless you clear all partitions first, this is -# not guaranteed to work +bootloader --location=mbr --driveorder=sda,sdb --append="console=tty0 console=ttyS0,115200" zerombr -clearpart --all --drives=sda +clearpart --all --drives=sda,sdb part /boot --ondisk=sda --fstype=ext3 --size=100 -part / --ondisk=sda --fstype=ext3 --size=20000 +part / --ondisk=sda --fstype=ext3 --size=2000 part swap --ondisk=sda --fstype=swap --size=512 +part /mnt/data --ondisk=sdb --fstype=ext3 --size=20000 reboot network --device=eth1 --bootproto=static --ip=192.168.50.2 --netmask=255.255.255.0 --onboot=on --nameserver=192.168.50.2 --hostname=management.priv.ovirt.org -- 1.6.0.3