Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Centos 6.4 x86-64
  • English language and keyboard
  • hostname: localhost.localdomain (the default)
    • if it is localhost it should set it to the dhcp hostname provided.
  • eth0:
    • Clear "Device MAC address"
    • Connect automatically
    • IPv4 Settings
      • Automatic (DHCP)

  • set timezone to america/indiana/indianapolis, clock uses utc
  • root password is 'changeme'
  • partitioning:
    • custom layout
      • /dev/sda1:  500M ext4 mounted as /boot
      • /dev/sda2:  (remainder of disk) Physical volume
      • Volume Group:  vg_avalon
        • PVs: /dev/sda2
        • LV lv_swap 2G
        • LV lv_root (remainder of disk) ext4 mounted as /
  • Desktop install
  • Reboot / Firstboot
    • Leave all of the defaults, except...
    • Do Not create a new user
  • Log in as root
    • do not check "do not show me this again" to the "you are running as root" dialog.  Just close it.
    • yum update
    • open these ports in the firewall:
      • tcp/22
      • tcp/80
      • tcp/1935
      • tcp/18080
    • clean up eth0 configuration in /etc/sysconfig/network-scripts/ifcfg-eth0:
      • remove UUID
      • remove any DHCP_CLIENT_ID

        Code Block
        egrep -v '^(UUID|DHCP_CLIENT_ID)=' /etc/sysconfig/network-scripts/ifcfg-eth0 > /etc/sysconfig/network-scripts/ifcfg-eth0
  • OPTIONAL:
    • shut down the VM
    • at this point the vm is at "baseOS" and can be used as a cloning point

...

  • OPTIONAL:
    • clone the latest democontent image as dist-YYMMDD
  • Install avalon-vm-2.0-1.noarch.rpm to install the firstboot changes and tools
  • If IPv6 was disabled during install, re-enable it by removing the lines added to /etc/sysctl.conf during BaseOS.  If these lines are not removed, email will not work.
  • Prepare the disk for compacting
    • clean up anything that's left over from the build process

      Code Block
      rm -rf /root/Downloads/* /var/avalon/dropbox/* /home/makerpm/rpmbuild /opt/staging /root/avalon-installer-flat /root/flat.tar.gz
      yum clean all
      swapoff /dev/mapper/vg_avalon-lv_swap; dd if=/dev/zero of=/dev/mapper/vg_avalon-lv_swap bs=1M; mkswap /dev/mapper/vg_avalon-lv_swap
    • deleted files still take up space on the disk image.  The disk image (as of 4/24/13) is roughly 12G in size, with 7.8G of actual data.  Write zeros to a file until the disk is full to clear out the sectors which are unallocated but had data at one point.  Since the .VDI image is sparsely allocated, the disk image size will actually grow less that 1G even though nearly 500G has been written.

      Code Block
      dd if=/dev/zero of=/tmp/foo bs=1M oflag=direct; rm /tmp/foo
  • run /usr/share/avalon/dist-prep to prepare the machine for release
  • clear the command line history  (history -cw)
  • shutdown the VM
  • Compact the disk image
    • On the host run:

      Code Block
      VBoxManage modifyhd avalon-vm-disk-YYMMDD.vdi --compact
  • Export the appliance
    • List the VMs and find the UUID of the Avalon VM

      Code Block
      VBoxManage list vms
    • Disable USB 2.0 in the VM to avoid a warning when users don't have the VirtualBox extensions loaded.

      Code Block
      VBoxManage modifyvm <machine-id> --usb off
    • VM Settings:

      NameValue
      Nameavalon-vm
      ProductAvalon Media System
      Product-URLhttp://www.avalonmediasystem.org
      VersionR2
      Code Block
      VBoxManage export <machine-id> --output avalon-vm.ova --product "Avalon Media System" --producturl http://www.avalonmediasystem.org --version R2

       

       

  • copy the OVA to the distribution point
    • Make sure to set the avalon-vm.ova symlink to the current release
    • Set the permissions to 644 (they're 600 by default)

...