ArchiveTeam / warrior-preseed

Constructing a new warrior VM
5 stars 1 forks source link

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.

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