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 your own image. The script uploads the ISO image to the server, starts the VNC server, and initiates the OS installation process.
You can load the OS image onto the server:
via the image URL hosted on a publicly accessible resource. The qemu-iso script will load the OS image into the server RAM;
or manually from your local computer to a disk or the server RAM.
Install with image loading via URL
Install with image upload to the server
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.
Open CLI. On a local computer running Windows, use PowerShell.
Connect to the server via SSH by forwarding the standard VNC port – 5900:
ssh-L5900:localhost:5900 root@<ip_address>
Specify <ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click .
Copy the URL of the OS image you intend to install. The image must be hosted on a publicly accessible resource, and its size must be at least 2 GB less than the server RAM volume.
To speed up image loading, we recommend storing the image in Servercore S3 — for more information, see the Uploading an object guide.
Run the qemu-iso script. 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> — the 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. A complete list of supported virtual network adapters can be viewed using the qemu-system-x86_64 -device help command.
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!
Open the VNC client on your local computer.
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.
Complete all OS installation steps.
In the Rescue console, press Ctrl + C to terminate the qemu-iso process.
Optional: without exiting Rescue mode, configure the network interface. We recommend configuring the network interface immediately after OS installation, otherwise the server may be unreachable over the network.
Upload the image to a disk
Upload the image to RAM
Ensure your server has an additional disk. The OS image must be stored on a disk on which the OS will not be installed. If the server does not have an additional disk, you can change the configuration of the dedicated server.
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.
Open CLI. On a local computer running Windows, use PowerShell.
Connect to the server via SSH by forwarding the standard VNC port – 5900:
ssh-L5900:localhost:5900 root@<ip_address>
Specify <ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click .
Save the image on your local computer.
Upload the OS image to the server:
6.1. View the name of the disk to which you will upload the OS image by displaying disk information:
lsblk
6.2. Create a partition on the disk:
fdisk /dev/<partition>
Specify <partition> — the disk partition to which the OS image will be loaded. For example, for a disk named sdX — sdX1.
6.3. Create a file system using the mkfs utility (using the ext4 partitioning format):
mkfs.ext4 /dev/<partition>
Specify <partition> — the disk partition you created in step 6.2.
6.4. Mount the file system:
mount /dev/<partition> /mnt
Specify <partition> — the disk partition you created in step 6.2.
6.5. Upload the OS image from your local computer to the dedicated server using the scp utility:
<iso_image_name> — the OS image filename in .iso format;
<ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click ;
<partition> — the disk partition you created in step 6.2.
Run the qemu-iso script. The script will start the VNC server and initiate the OS installation process:
qemu-iso <path_to_image>
Specify:
<path_to_image> — the path to the OS image file you uploaded to the server in step 6.5. For example, /mnt/sdX1/Win_Server_2022.iso;
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. A complete list of supported virtual network adapters can be viewed using the qemu-system-x86_64 -device help command.
Wait for the message stating that the VNC server is running:
VM has been created!
Open the VNC client on your local computer.
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.
In the Rescue console, press Ctrl + C to terminate the qemu-iso process.
Optional: without exiting Rescue mode, configure the network interface. We recommend configuring the network interface immediately after OS installation, otherwise the server may be unreachable over the network.
Install a VNC client on your local computer. For a list of VNC clients for different OSs, see the Connect via VNC link in the Connecting to a server guide.
Open CLI. On a local computer running Windows, use PowerShell.
Connect to the server via SSH by forwarding the standard VNC port – 5900:
ssh-L5900:localhost:5900 root@<ip_address>
Specify <ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click .
Save the OS image on your local computer. The image size must be at least 2 GB less than the server RAM volume.
Upload the OS image to the RAM of the dedicated server using the scp utility:
scp ./<iso_image_name> root@<ip_address>:/tmp/
Specify:
<iso_image_name> — the OS image filename in .iso format;
<ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click .
Run the qemu-iso script. The script will start the VNC server and initiate the OS installation process:
qemu-iso <path_to_image>
Specify:
<path_to_image> — the path to the OS image file you uploaded to the server in step 5. For example, /tmp/Win_Server_2022.iso;
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. A complete list of supported virtual network adapters can be viewed using the qemu-system-x86_64 -device help command.
Wait for the message stating that the VNC server is running:
VM has been created!
Open the VNC client on your local computer.
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.
Complete all OS installation steps.
In the Rescue console, press Ctrl + C to terminate the qemu-iso process.
Optional: without exiting Rescue mode, configure the network interface. We recommend configuring the network interface immediately after OS installation, otherwise the server may be unreachable over the network.
4. Configure the network interface
After manual OS installation, the network configuration file might contain the interface name used in the virtual environment, for example, eth0. After rebooting on a physical server, the network interface may get a different name, for example, enp1s0. Due to this mismatch, the server may be inaccessible over the network until the network interface name is corrected to the current one. We recommend correcting the name immediately after OS installation, without exiting Rescue mode.
In the Rescue console, view the network interface name by displaying network interface information:
ip a
In the response, find the interface in the UP state that has a public IP address. Remember or copy the network interface name in the altname field. For example:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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 is the name of the required network interface.
Connect to the OS installed on the server by running the qemu-iso script without specifying an image:
qemu-iso
Open the netplan utility configuration file with the vi text editor:
vi /etc/netplan/00-installer-config.yaml
Change the parameter values. Correct values can be viewed in the control panel: from the top menu, click Products → Dedicated Servers → server page → Network tab → click the required subnet.
network:
ethernets:
<eth_name>:
addresses:
- <ip_address>/<mask>
gateway4: <gateway>
renderer: networkd
version: 2
Specify:
<eth_name> — the public network interface name, the value from the altname field you obtained in step 1;
<ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click ;
In the Rescue console, view the network interface name by displaying network interface information:
ip a
In the response, find the interface in the UP state that has a public IP address. Remember or copy the network interface name in the altname field. For example:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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 is the name of the required network interface.
Connect to the OS installed on the server by running the qemu-iso script without specifying an image:
qemu-iso
Open the netplan utility configuration file with the vi text editor:
vi /etc/netplan/00-installer-config.yaml
Change the parameter values. Correct values can be viewed in the control panel: from the top menu, click Products → Dedicated Servers → server page → Network tab → click the required subnet.
network:
version: 2
renderer: networkd
ethernets:
<eth_name>:
addresses:
- <ip_address>/<mask>
gateway4: <gateway>
Specify:
<eth_name> — the public network interface name, the value from the altname field you obtained in step 1;
<ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click ;
In the Rescue console, view the network interface name by displaying network interface information:
ip a
In the response, find the interface in the UP state that has a public IP address. Remember or copy the network interface name in the altname field. For example:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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 is the name of the required network interface.
Connect to the OS installed on the server by running the qemu-iso script without specifying an image:
qemu-iso
Open the network interfaces configuration file with the vi text editor:
vi /etc/network/interfaces.d/50-cloud-init
Change the parameter values. Correct values can be viewed in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Network tab → click the required subnet.
auto <eth_name>
iface <eth_name> inet static
address <ip_address>/<mask>
gateway <gateway>
Specify:
<eth_name> — the public network interface name, the value from the altname field you obtained in step 1;
<ip_address> — the server public IP address, for example 203.0.113.0. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click ;
2.1. In the control panel, from the top menu, click Products and select Dedicated Servers.
2.2. In the Servers section, open the server page → Operating System tab.
2.3. Click Change boot template.
2.4. In the Boot template field, select Boot to Rescue.
Connect to the server via SSH by forwarding the standard VNC port — 5900.
ssh-L5900:localhost:5900 root@<ip_address>
Specify <ip_address> — the server public IP address. You can copy it in the control panel: from the top menu, click Products → Dedicated Servers → Servers → server page → Operating System tab → in the IP field, click .
View the network adapter name by displaying Ethernet network device information:
lspci |grep Ethernet
The network adapter name will appear in the response. Remember or copy it.
The list will contain network interfaces from address 0000 to 0013.
10.2. Find the interface whose Driver Desc parameter value specifies the network adapter names obtained in step 4. Save the NetCfgInstanceId parameter value for the network adapter with the lowest number in the list.
Specify <net_cfg_instance_id> — the value of the NetCfgInstanceId parameter, which you saved in step 10.2.
11.2. Change the parameter values. Correct values can be viewed in the control panel: from the top menu, click Products → Dedicated Servers → server page → Network tab → click the required subnet.
IPAddress — the server public IP address, for example 203.0.113.0;
SubnetMask — the subnet mask.
DefaultGateway — the default gateway.
EnableDHCP — enter 0 if you do not use DHCP, if you do, enter 1.