Skip to main content
Install the OS manually from your image
Last update:

Install the OS manually from your image

You can manually install an OS from your own image on a dedicated server. Unless you have special requirements for the OS, we recommend using standard images — of these can be install the OS by auto-installation or manually.

  1. Boot the server in Rescue mode.
  2. Install the OS from your image.
  3. Optional: configure the network interface.
  4. Change the upload template.

1. Boot the server in Rescue mode

  1. В control panels go to Servers and hardwareServers.

  2. Open the server page → tab Operating system.

  3. Click Change the upload template.

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

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

2. Install the OS

The script is used to install the OS from its own image qemu-iso. The script downloads the iso image to the server, starts the VNC server and initiates the OS installation process.

The OS image can be uploaded to the server:

  • via the URL of an image that is hosted on a publicly available resource. Script qemu-iso will load the OS image into the server's RAM;
  • or manually from the local computer to the disk or RAM of the server.
  1. Install a VNC client on the local computer. For a list of VNC clients for different operating systems, see subsection Connect via VNC instructions Connect to the server.

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

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

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

    Specify <ip_address> — the public IP address of the server. You can copy it to control panels: under Servers and hardwareServers → server page → tab Operating system → in the field IP click .

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

    To make the image download faster, we recommend that you place the image in Selectel object storage — see the instructions for details Load object.

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

    qemu-iso <url>

    Specify:

    • <url> — path to the OS image you copied in step 4;
    • optional: -nic_type <virtual_network_adapter> — the type of network device to emulate in the virtual machine. For example, to install VMware ESXi, change the virtual network adapter to vmxnet3. The full list of supported virtual network adapters can be viewed with the command qemu-system-x86_64 -device help.
  6. Wait for a message 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 the local computer.

  8. Connect to the server. The connection process depends on the selected VNC client. Parameters to connect:

    • The IP address is. localhost:5900;
    • password — leave the field blank.
  9. Go through all the steps of installing the OS.

  10. In the Rescue console, click Ctrl + C to complete the process qemu-iso.

  11. Optional: without leaving Rescue mode, configure the network interface. We recommend that you configure the network interface immediately after installing the OS, otherwise the server may not be accessible over the network.

3. configure the network interface

After manually installing the OS, the network configuration file may contain the interface name that was used in the virtual environment, e.g. eth0. After a reboot on the physical server, the network interface may receive a different name, such as enp1s0. Because of this mismatch, the server may not be accessible over the network until the network interface name is corrected to the correct one. We recommend correcting the name immediately after installing the OS without exiting Rescue mode.

You can also configure the network interface и synchronize time with an external NTP server later. Additional OS settings depend on the configuration of the image you are installing.

  1. In the Rescue console, look up the name of the network interface by bringing up the network interface information:

    ip a

    In the response, find the interface in the UP state that has a public IP address. Memorize or copy the name of the network interface in the field altname. For example:

      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

    Here. enp1s0 — the name of the desired network interface.

  2. Connect to the OS installed on the server, to do this run the script qemu-iso without specifying an image:

    qemu-iso
  3. Change the values of the interface parameters:

    3.1 Open the utility configuration file netplan word processor vi:

    vi /etc/netplan/00-installer-config.yaml

    3.2 Change the parameter values. The correct values can be found in control panels: under Servers and hardware → server page → tab Network → click on the desired subnet. The type of configuration file depends on the Ubuntu version:

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

    Specify:

    • <eth_name> — name of the network interface of the public network, value from the field altnamethat you looked at in step 1;
    • <ip_address> — the public IP address of the server. You can copy it to control panels: under Servers and hardwareServers → server page → tab Operating system → in the field IP click ;
    • <mask> — subnet mask.
  4. Click ESC.

  5. Exit the text editor vi with the changes intact:

    :wq
  6. Apply the configuration:

    netplan apply
  7. Synchronize the time with an external NTP server.

4. change the upload template

Bring back the old server loading template or reboot the server from the OS. When you reboot the server from the OS, the boot template will automatically change to the one that was set before server booting in Rescue mode.