Skip to main content

Install the OS manually from your own image

You can manually install an OS on a dedicated server from a custom image. If you do not have specific requirements for an OS, we recommend using standard images — from these, you can install an OS via autoinstall or manually.

  1. Boot the server in Rescue mode.
  2. Optional: if you are connecting to the server from Windows, install the OpenSSH client.
  3. Install the OS from your own image.
  4. Optional: configure the network interface.
  5. Change the boot template.

1. Boot the server in Rescue mode

  1. In the control panel, from the top menu, click Products and select Dedicated Servers.

  2. In the Servers section, open the server page → Operating System tab.

  3. Click Change boot template.

  4. In the Boot template field, select Boot to Rescue.

  5. Click Save and reboot. The server will be rebooted.

2. Optional: install OpenSSH Client

If you are connecting to the server from a non-Windows OS, skip this step.

To connect via SSH from Windows OS, you need to install OpenSSH Client. Learn more about working with OpenSSH in the Get started with OpenSSH for Windows Microsoft documentation.

  1. Run PowerShell as an administrator.

  2. Check if OpenSSH Client is installed on your Windows OS:

    Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Client'

    The name and status of the OpenSSH components will appear in the response. For example:

    Name : OpenSSH.Client~~~~0.0.1.0
    State : Installed

    Here State is the status of the components:

    • Installed — the component is installed in the OS; ;
    • NotPresent — the component is not installed in the OS.
  3. If the value in the State field in the response to step 2 is NotPresent, the OpenSSH components are not installed. Install OpenSSH Client:

    Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

    Response example:

    Path :
    Online : True
    RestartNeeded : False
  4. If the response in step 3 shows True in the RestartNeeded field, restart your computer.

3. Install the OS from your own image

The qemu-iso script is used to install an OS from a custom image. The script downloads the ISO image to the server, starts a VNC server, and initiates the OS installation process.

You can load the OS image onto the server:

  • via an image URL hosted on a publicly accessible resource. The qemu-iso script will upload the OS image to the server RAM;
  • or manually from your local computer to a disk or the server RAM.
  1. Install a VNC client on your local computer. For a list of VNC clients for different OSs, see the Connect via VNC subsection of the Connecting to a server guide.

  2. Open CLI. On a local computer running Windows, use PowerShell.

  3. Connect to the server via SSH by forwarding the standard VNC port – 5900:

    ssh -L 5900:localhost:5900 root@<ip_address>

    Specify <ip_address> — the server public IP address. You can copy it in the control panel: in the top menu, click ProductsDedicated ServersServers → server page → Operating System tab → in the IP field, click.

  4. Copy the URL of the OS image you are going to install. The image must be hosted on a publicly accessible resource, and the image size must be at least 2 GB smaller than the server's RAM capacity.

    Чтобы загрузка образа прошла быстрее, мы рекомендуем разместить образ in S3 Selectel — подробнее in инструкции Загрузить объект

  5. Run the qemu-iso script. The script will upload installation files to the server, start a VNC server, and initiate the OS installation process:

    qemu-iso <url>

    Specify:

    • <url> — the path to the OS image you copied in step 4;
    • optional: -nic_type <virtual_network_adapter> — тип сетевого устройства для эмуляции in виртуальной машине. Например, для установки VMware ESXi измените виртуальный сетевой адаптер on vmxnet3. Полный список поддерживаемых виртуальных сетевых адаптеров можно посмотреть with помощью команды qemu-system-x86_64 -device help.
  6. Wait for the message stating that the OS image has been uploaded to the server and the VNC server is running:

    VM has been created!
  7. Open the VNC client on your local computer.

  8. Connect to the server. The connection process depends on the VNC client you choose. Connection parameters:

    • IP address — localhost:5900;
    • password — leave the field empty.
  9. Complete all OS installation steps.

  10. В консоли Rescue нажмите Ctrl + C для завершения процесса qemu-iso.

  11. Optional: without exiting the Rescue mode, configure the network interface. We recommend configuring the network interface immediately after OS installation, otherwise the server may be unavailable over the network.

4. Configure the network interface

После ручной установки ОС in файле конфигурации сети может быть указано имя интерфейса, которое использовалось in виртуальной среде, например eth0. После перезагрузки on физическом сервере сетевой интерфейс может получить другое имя, например enp1s0. Из-за этого несоответствия сервер может быть недоступен по сети, пока имя сетевого интерфейса не будет исправлено on актуальное. Мы рекомендуем исправить имя сразу после установки ОС, не выходя из режима Rescue.

Вы также можете настроить сетевой интерфейс and синхронизировать время with внешним NTP-сервером позднее. Дополнительные настройки ОС зависят от конфигурации образа, который вы устанавливаете.

  1. In the Rescue console, view the network interface name by displaying network interface information:

    ip a

    В ответе найдите интерфейс in состоянии UP, который имеет публичный IP-адрес. Запомните or скопируйте имя сетевого интерфейса in поле altname. Например:

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
    valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:00:0f:0:f0 brd ff:ff:ff:ff:ff:ff
    altname enp1s0
    inet 203.0.113.0/24 brd 203.0.113.255 scope global eth0
    valid_lft forever preferred_lft forever
    inet6 fe00::000c:00ff:fe0f:00f0/64 scope link proto kernel_ll
    valid_lft forever preferred_lft forever

    Здесь enp1s0 — имя нужного сетевого интерфейса.

  2. Подключитесь к установленной on сервере ОС, для этого запустите скрипт qemu-iso без указания образа:

    qemu-iso
  3. Откройте конфигурационный файл утилиты netplan текстовым редактором vi:

    vi /etc/netplan/00-installer-config.yaml
  4. Измените значения параметров. Корректные значения можно посмотреть in панели управления: in верхнем меню нажмите ПродуктыВыделенные серверы → страница сервера → вкладка Сеть → нажмите on нужную подсеть.

    network:
    ethernets:
    <eth_name>:
    addresses:
    - <ip_address>/<mask>
    gateway4: <gateway>
    renderer: networkd
    version: 2

    Specify:

    • <eth_name> — имя сетевого интерфейса публичной сети, значение из поля altname, которое вы получили on шаге 1;
    • <ip_address> — публичный IP-адрес сервера. Можно скопировать in панели управления: in верхнем меню нажмите ПродуктыВыделенные серверыСерверы → страница сервера → вкладка Операционная система → in поле IP нажмите ;
    • <mask> — маска подсети;
    • <gateway> — шлюз по умолчанию.
  5. Press ESC.

  6. Выйдите из текстового редактора vi with сохранением изменений:

    :wq
  7. Apply the configuration:

    netplan apply
  8. Synchronize time with an external NTP server.

5. Change the boot template

Restore the previous server boot template or reboot the server from the OS. When rebooting the server from the OS, the boot template will automatically change to the one that was set before loading the server in Rescue mode.