/zeroshell-linode

Script for Zeroshell installation on Linode (Xen)

Primary LanguageShellApache License 2.0Apache-2.0

This is not an official Google product.

zeroshell-linode

Automate running ZeroShell (http://zeroshell.org) under Xen (Linode in particular)

If you're asking yourself how to run ZeroShell on Linode (or Xen in general) I've got an answer for you, an automted script for installation.

Biggest problem with ZeroShell 3.2.1 is that it does not have Xen support compiled in. So we need to recompile a kernel. Another thing is that Linode pv-grub only supports /boot/grub/menu.lst file, which we need to create on the root filesystem. And Linode does not like multipartitioned disks.

Installation ZeroShell 3.2.1 onto Linode

Just for reference here are instructions from Linode: https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-custom-compiled-kernel-with-pvgrub

I would expect that you've read Linode documentation and know the basics.

  1. Create new Linode
  2. Create ZeroShell ext3 disk of at least 1GB
  3. Create Installation etx4 disk of at least 2GB
  4. Create Profiles ext3/4 disk of at least 1GB (order of creation is important)
  5. Go into the Rescue Mode
  6. Grab installation files from github:
apt-get update
apt-get install --yes git flex bison build-essential libssl-dev
git -c http.sslVerify=false clone https://github.com/mrsimonbennett/zeroshell-linode.git
cd zeroshell-linode
  1. ./install.sh
  2. Wait for several hours... until it's ready
  3. Create new Configuration Profile pv-grub-x86-32 /dev/xvda: ZeroShell /dev/xvdb: Profiles Root device: /dev/xvda 12. All Filesystem/Boot Helper knobs enabled
  4. Restart into new configuration and wait for ZeroShell to start in lish console
  5. Go to IP Manager and enable DHCP client: ihEnabledq
  6. Enable Fail-Safe Mode
  7. Your ZeroShell should be accessible by http now