VPS with a custom ISO: when ready-made templates are not enough and how to install the system yourself
An ordinary VPS is deployed from a template: you pick Ubuntu or Debian from a list and get a password a minute later. Templates are convenient, but their range is limited, and they often contain the host's own settings: its kernel, agents, its own disk layout. A plan that lets you boot your own ISO removes this limitation: you attach an installation image to the virtual machine as a CD and install the system just as on a physical server.
What people install from their own image
- Network systems. pfSense, OPNsense, VyOS and MikroTik CHR are rarely available as templates. For a router in a data centre there are dedicated selections: VPS for MikroTik and VPS for pfSense. Note that CHR is distributed not as an ISO but as a ready disk image: it is written to the disk from a booted Linux image with the
ddcommand. - Rare and specialised distributions. NixOS, Gentoo, Void, recent versions of FreeBSD, and certified Russian operating systems (used for compliance in Russia) if you have purchased them.
- Windows with your own licence. If you already have a key and the host includes its own licence in the template price, installing from the original ISO saves you from paying twice. Read the licence terms first: not every licence allows running on a third-party provider's server. Plans with a ready-made system are collected on the Windows VPS page.
- Your own disk layout and encryption. If you need LVM, ZFS or full-disk encryption with a passphrase at boot, this can only be done from the installer.
Why it has to be KVM
Only a full virtual machine with its own kernel and its own BIOS or UEFI can boot from a virtual CD. That is KVM virtualization, less often VMware or Hyper-V. OpenVZ and LXC containers run on the host machine's kernel and have no boot stage, so installing your own system there is impossible in principle: you can only choose one of the templates.
Even on KVM not every host offers this feature: some disable ISO mounting on cheap plans or provide it only through a support request. The selection above includes plans where image upload is stated explicitly.
How installation goes
- Uploading the image. The panel usually has a field for a link: the host downloads the ISO from a direct URL itself. Sometimes the image can be chosen from the host's library or uploaded as a file. Check the size limit: Windows images weigh 5–6 GB.
- Boot order. Attach the ISO, put CD-ROM first in the boot order and restart the machine.
- VNC console. You see the installer in a browser window, like the server's monitor. There may be no network yet at this point, so the console is the only way to control the machine. The console keyboard layout may be English only, and pasting from the clipboard does not work everywhere: it is better to set simple passwords during installation and change them later over SSH or RDP.
- Network by hand. Many hosts do not hand out addresses via DHCP. Copy the IP, netmask, gateway and DNS from the panel before starting the installation. Sometimes the address is given with a /32 mask and a gateway outside the subnet: then the route to the gateway is added separately, and some installers do not accept this scheme, so the network is set up after the first boot.
- Detaching the ISO. After installation detach the image and set booting from disk again, otherwise the machine will start the installer once more.
virtio drivers
KVM gives the virtual machine fast paravirtualized virtio devices: disk, network card, memory balloon. Linux and FreeBSD support them out of the box. Windows does not: the installer simply will not see the disk. The solution is a second virtio-win image with drivers. If the panel lets you attach two ISOs, at the disk selection step click "Load driver" and point to the folder for your Windows version; after installation, install the network driver and the guest agent from the same image. If there is only one slot, ask support whether the disk can be switched to SATA mode for the duration of the installation: it is slower but needs no drivers.
The QEMU guest agent is worth installing on Linux too: through it the host's panel shuts the machine down properly and takes consistent disk snapshots.
What you lose without a template
Your own system also means your own responsibility. Automatic configuration via cloud-init, password reset from the panel, one-click IP change and built-in backups may not work or may work only partly. The host's support helps with hardware and network, but usually does not deal with a non-standard OS. Before moving a production project, test restoring from a backup and keep at least one copy outside this server. For experimenting with images, hourly billing is convenient: a failed installation can be deleted after paying for a couple of hours.