Reinstalling your server

Description  This page describes how to reinstall your Dedicated server through the Action panel in the Customer Portal.

Contents

Re-installation of your Dedicated Server

Leaseweb delivers IaaS Dedicated servers to customers. As a customer you are able to install or re-install the Operating System for those servers in different ways. This page describes these methods.

During installation all existing data on your server will be wiped, and cannot be recovered. If you want to save any of the data, please backup before installing.
In case you don't have access to the server, try starting your server in rescue mode and recover your data before performing a installation.


By default all installations are done using the Leaseweb installer. This installer is capable of deploying the Operating system of your choice rapid and tuned for best performance on your Dedicated server. During the process a custom partitioning scheme can be applied for Linux & BSD distributions.

Another option is using the Leaseweb API, or installing from your own http(s) offered image over our iPXE boot environment. Please check the explanation below.

Reinstalling Dedicated server using the Leaseweb installer

Perform the following steps to install a Dedicated or Bare Metal server:

  1. In the menu bar, under Dedicated & Bare Metal Servers, select All Servers.
    The All Servers overview page displays. 
  2. Click the Manage link for the server that you want to (re-)install.
    The Server Details page displays.


  3. Under Actions, click

  4. The first step in the Installation menu is to choose the Operating System to install your server with:


    For operating systems that require a software license, the monthly cost is displayed. It will be added to your invoice automatically when the (re-)install is started.

  5. Select an operating system from the drop-down list, and click the  button 
    The Disk Partitioning & RAID settings page displays:



    Field Name

    Description

    DeviceSelect the disk you are going to partition. The disk should be set as boot device. Currently this setting is ignored, and the boot device is detected automatically by the installer.
    Note: Booting from NVMe disks is currently not supported.
    Size MBEnter the size of each partition. Note: We recommend that you insert * to assign the remaining amount of space to the last partition. This is to ensure that all available space is assigned. Currently this is only supported for the last partition.
    TypeSelect the partition type and filesystem. Note that not all partition types may be supported by all operating systems.
    Mount pointSelect the mount point.
    BootableSelect the partition that needs to be bootable. Currently this setting is ignored, and the "bootable" flag is managed automatically by the installer.


    RAID

    Installing your server with Software RAID feature is an effective way to enable data redundancy and/or performance improvements on servers that are not equipped with a Hardware RAID option.


    The following RAID levels are supported for software RAID:

    OSSoftware RAID level
    CentOS0, 1, 5, 6, 10
    Debian0, 1, 5, 6, 10
    Ubuntu0, 1, 5, 6, 10
    ESXiNone
    FreeBSDNone
    Microsoft Windows ServerNone

    Note: with Microsoft Windows Server, Software RAID can be easily applied after installation in the Windows Disk Manager control panel applet.


    For servers with a Hardware RAID controller, the Hardware RAID level can be set from this screen, instead of Software RAID:


    Custom partitioning

    Customized partitioning is not supported with all operating systems, most notably Windows. For Windows installations, you can use the Disk Manager to resize and create partitions, as well as setup software RAID, after the installation has finished.

    If the total size of the partitions exceeds the hard disk size, or if you select options that are incompatible with the operating system, the (re-)installation will fail. If you are unsure about customized partition layout, we recommend that you select Default Partitioning to avoid any errors.

    Additional disks can be partitioned after the installation has finished.
  6. On the next page, an optional Control panel can be selected to be installed with the operating system:

    Only the control panels that are supported by Leaseweb's Installation System and compatible with the selected operating system will be displayed.
    If your server has multiple IP addresses, the main IP address will be registered with the software vendor. You will need to use this IP address to access the control panel.

    To make server management more easy, there are diverse management control panels that support hosting companies in their day to day business. Leaseweb offers the following control panels:

    • Plesk Onyx (previously known as Paralells Plesk) - https://www.plesk.com/, available for CentOS.
    • cPanel - https://cpanel.com/, available for CentOS

      Installations of the cPanel control panel can take up quite some time. If you are able to login to your server, please make sure the cPanel installation is finished before making any changes to your server.

    Using these panels have license fees included. If you (re-)install a server that initially did not have a licensed panel you will have to agree on purchasing the license.
    For more information about Control panels, please refer to Control Panels

  7. On the Settings page, optionally a hostname, timezone, SSH keys and postinstall scripts can be specified.


    Additionally, you can opt out of the e-mail that is sent to notify you when the (re-)install has finished, and the power cycle that is used to start the installation.

    In the SSH keys field, enter one or more SSH public keys exactly as you would add it to /root/.ssh/authorized_keys file.

    In the Post-installation Script field you can put any script, it is written to an executable text file and executed as root after installation. Supported scripting languages depend on the operating system chosen.
    With Linux / FreeBSD, postinstall scripts must start with a #! "shebang" line. Script logs will go to /var/log/lsw-postinstall.txt
    On Windows, the postinstall script is executed with Powershell, as Administrator.

    In the Callback URL field, an additional callback URL can be added which is called with a plain HTTP POST when the installation has finished. The POST data includes the installation job information in json format.


    Note: if you uncheck the power cycle box, you will have to restart your server manually for the (re-)install to start.

  8. The confirmation page is displayed:


    The (re-)install of your server with the selected operating system starts when you press the  button.
    In case you've selected Windows or a control panel, an additional message is shown to inform you about the cost.

    You will be assigned initial generated passwords that will display after (re-)installation is complete. We recommend that you change your passwords often and also right after the installation. To view the password, on the Server details page, under Details - Credentials, click 'View Password'.


    See also .Server management: Credentials v1

Operating systems supported by the Leaseweb installer

At Leaseweb we try to support a wide range of operating systems. Our installers always use the latest stable version and we offer all currently maintained versions till the last day of support. We support the open source community in multiple ways, one of them offering them free hosting of their software via our mirrors (Cheat Sheet)

DistributionInformationLicence
CentOShttps://www.centos.org/Open Source
Debian

http://www.debian.org/

Open Source
ESXihttp://www.vmware.com/VMware licensing model
FreeBSDhttps://www.freebsd.org/Open Source
Ubuntuhttp://www.ubuntu.com/Open Source
Microsoft Windows Serverhttp://www.microsoft.com/Microsoft paid licensing model

Is there an OS missing in this list? Please inform support or your account manager so we can add it.

Installation of a Dedicated or Bare Metal server using your own IPXE server

In our Leaseweb labs blogpost "Automatically provision your bare metal infrastructure" one of our engineers explains installing your server using Leaseweb's iPXE boot environment and your own boot image. This way you can use your own provisioning system to install one of our servers.

More information:

  • Open Source boot firmware iPXE for installing your server (Linux or Windows). On ipxe.org you can find a lot of examples and information how this works.
  • On the Leaseweb developer page you can find the instructions for usage of the api-calls /bareMetals/{bareMetalId}/leases and /bareMetals/{bareMetalId}/leases/{macAddress} needed for this operation.
  • Automated provisioning platforms like FOREMAN can deliver a good framework to provide the needed automation.