/warrior-preseed

Constructing a new warrior VM

Primary LanguageShell

Warrior VM construction scripts (2012)

The scripts in this repository can be used to build a new virtual machine of the ArchiveTeam Warrior 2.

You may be interested in using https://github.com/ArchiveTeam/Ubuntu-Warrior instead.

  • build-vm.sh is a script that builds a new VirtualBox virtual machine.
  • warrior-preseed.cfg is a Debian 6.0 (Squeeze) preseed configuration file.
  • pack-vm.sh turns the virtual machine into a virtual appliance (.ova).

Building a warrior

Install VirtualBox and download the Debian netinst ISO.

  1. Create a VM with the required properties by running ./build-vm.sh

  2. Start the VM. It will start the Debian installer. To start the automated installation, press Esc and type

     auto url=https://raw.github.com/ArchiveTeam/warrior-preseed/master/warrior-preseed.cfg hostname=warriorvm domain=archiveteam
    

    Please replace this GitHub URL with a local HTTP URL. The Debian installer does not like HTTPS.

  3. Wait for the installer to finish and shut down the VM.

  4. As an optional step, to minimise the disk size of your appliance, you can run a cleanup script that removes the log files, the APT cache and a few other large, unnecessary files. It will also zero-fill the unused space on the disk.

  5. Start the VM and select the rescue mode from the grub menu. Log in with root password archiveteam. Then run /home/warrior/warrior-code2/cleanup.sh and wait for the script to finish. The zero-filling will end with a warning about disk space. Stop the VM with shutdown -h now

  6. You can now turn the VM into a virtual appliance package with ./pack-vm.sh