Installimage can be run directly from the Rescue System on your server. It offers a menu driven interface where you can select a Linux distribution. You have full control over the partitioning of your drive(s) and can activate the use of software RAID as well as LVM in a simple editor.

Аutosetup

If installimage finds an /autosetup file in the Rescue System, it will automatically use it as the configuration file. If there are errors in this file, no menu and no editor will be displayed.

Using installimage

You can activate the rescue-system in your Client Area at our website.

Choose “Servers” service:

How to install OS on server (installimage)

Click “Manage service” on the right side in the row of the necessary server:

How to install OS on server (installimage)

Press the “Rescue Mode” button, select an OS (for example, Linux x64) and press “Activate”:

How to install OS on server (installimage)

You will get data access for Rescue Mode after activation. Copy it and then select “Reboot”. There are three methods for reboot, choose one (unless you reboot the server, the Rescue Mode is not activated). The fastest reboot method is a “Send CTRL+ALT+DEL to the server”, but this method will not work if you have already installed Windows. Select “Perform a hard reset” to reboot in this case.

How to install OS on server (installimage)

Enter the system with SSH using the data you had copied.

Now yu can start installation:

root@rescue ~ # installimage

You will see a menu where you can choose a Linux distribution, and once selected you will see a list of images.

How to install OS on server (installimage)

After choosing an image, you will receive a note that the editor will be started, which opens the configuration file.

Midnight Commander (“mcedit”) is used as editor.

The drives that are present in the server are identified in the first row with the variable DRIVE. Above each line you can see the type of drive. If you want to leave a drive in its current state and not make any changes to it you can leave it out (remove it) by placing a “#” before it. Please note that doing so means that the number after the next DRIVE variable must be properly adjusted.

Example:

# ST31500341AS
#DRIVE1 /dev/sda
# ST31500341AS
DRIVE1 /dev/sdb

When the server has multiple drives the variables “SWRAID” and “SWRAIDLEVEL” can be used to create different software RAID levels. Any software RAID levels are always applied to all (marked with DRIVE) drives. If you don’t want to include a particular drive into a RAID-array, you have to remove it from the configuration.

With the variable “BOOTLOADER” you can select either of the bootloaders “Grub” or “Lilo”. When selecting “grub” either GRUB2 or GRUB1 (legacy grub) is installed, depending on the distribution.

The variable “HOSTNAME” sets the appropriate host name in the system.

The installimage also supports the adjustment of the partitioning scheme (including the use of LVM). You may find the necessary syntax in the examples in the editor.

Press F10 to leave the editor (save and close), after this the syntax of the config file will be checked. If you see that editor returns again, it means that there are some errors in the file.
How to install OS on server (installimage)

If you see this output after 1-5 minutes (depends on the image and partitioning used), the system is ready.

The root password is set to the current password of the Rescue System.

“Reboot” the Rescue System:

root@rescue ~ # reboot

The newly installed system is booted and you can login with the previous Rescue System password.

Particularities

  • When installing Debian or Ubuntu using the installimage script, the times for the /etc/cron.d/mdadm are set randomly.

Questions/answers

Will I lose any data on my drive(s)?

Yes. The chosen drive(s) is/are completely erased and a new partition table is created.

Why can’t I create partitions larger than 2 TiB?

The creation of partitions larger than 2TiB is only possible with a таблицы разделов GUID (GPT) (GPT). Thus, GRUB2 must be selected as it supports booting from GPT drives.

The installation script shows one or more errors. What should I do?

First, re-run the installation, please.

Do I have to put “all” at the end of the partition table or can I put this line further at the top?

The size “all” in the config file means use the rest of the available space on the drive. Since partitions are created one after another, the partition table will end after using “all” because there will be no space available afterwards. Of course, it is also possible not to use “all” at all.

I have two (or more) drives installed. Can the installimage script automatically create a программный RAID?

Yes, the script can create software RAID with levels 0, 1, 5, 6 or 10. The configuration file has two options: SWRAID and SWRAIDLEVEL. If the option SWRAID is activated (1) a software RAID with the level SWRAIDLEVEL is created.

Pressing F10 does not work. Instead “~21” (or something similar) is displayed.

Press Escape and then “0”. In most cases this has the same effect as F10.

Can I use the partitions (LVM)?

Yes.

I recieve an error: “Due to maintenance the installimage-script is temporarily unavailable. We are sorry for the inconvenience.” What should I do?

You see this massege in case when the parts of the script are updated. As usual it take several minutes. To avoid errors use block during the update. You may use this script in several minutes after getting this message.

Who is the author of the script? Can I use it freely?

The scripts and the programming language are freely available for inspection by any person, and can be used and modified freely. The scripts were written by developers of Hetzner Online GmbH and are maintained and extended by them.Unihost.comassumes no liability for any damage caused by changing the scripts and excludes any support for guides that include script modification.

What is the MySQL Root password when LAMP has been installed? ?

The MySQL Root password on a LAMP Image can be found in the /password.txt file.