Reinstalling your Dedicated Server

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


Reinstalling 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 Compute, select Dedicated Server.
    The Dedicated Servers overview page displays. 
  2. Click the ID of the server that you want to reinstall.
    The Server Details page displays.

  3. Under Actions menu, click Reinstall.

  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.
    If a reinstall is performed with a free operating system, any existing operating system licenses are automatically canceled at the end of the contract term.

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

    Field Name


    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.


    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, 10
    Debian0, 1, 5, 10
    Ubuntu0, 1, 5, 10
    Microsoft Windows Server1


    • RAID is applied on the first disks seen by the operating system (/dev/sda, /dev/sdb, etc.) Please ensure that subseqent disks after the first disk are at least equal in capacity, or the installation will fail.
    • Contrary to other RAID levels, RAID 0 provides increased capacity and performance, but reduced redundancy and uptime!

    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 ESXi.
    • 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.

    At this moment, Control Panels are only supported with the CentOS 7 Operating System.

  7. 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:

    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.

  8. Using these panels have license fees included. If you reinstall a server that initially did not have a licensed panel you will have purchase the license first.
    For more information about Control panels, please refer to Control Panels.

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

    Additionally, you can opt out of the email that is sent to notify you when the reinstall 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. The reinstallation remains valid for 9 hours, before it is automatically expired if the server is not restarted.

  10. The Confirmation page is displayed.

  11. The reinstall of your server with the selected operating system starts when you press the Install 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 Managing Dedicated Server credentials

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)

CentOS Source

Open Source
ESXi licensing model
FreeBSD Source
Ubuntu Source
Microsoft Windows Server 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 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.