You are not limited to our templates. If you would rather run your own operating system, bootloader and network setup, you can write your own bootable disk image straight over the Packetra template from inside your running VPS and reboot into it. Our panel does not offer ISO mounting or uploads, but because you hold full root on the running server, you can do the whole thing yourself from the command line. This guide shows you how.
Before You Begin – Use the Console, Not SSH
Because this process overwrites the running operating system, your SSH connection will drop the instant the disk is rewritten. If the write has not finished by then, you are left with an unbootable server. For this reason we strongly recommend running the whole procedure from the noVNC / HTML5 console in your Packetra client area rather than over SSH. From the console you can watch the write finish and the reboot happen, with no session to drop mid-way.
You will find the console under your service in the client portal. Log into your server there as cloudvpsXXX/root before continuing.
What Kind of Image Can I Use?
This method writes a whole-disk, BIOS-bootable image onto the disk, so the file you write must be a full disk image, not just any download. Good candidates are prebuilt cloud images (Debian, Ubuntu, Alpine and similar), a vendor appliance image, or an image you built yourself. The file is usually a .img or .raw, sometimes compressed as .gz, .xz or .zip, which you extract first.
Two things to know before you start:
- The image must already be set up to let you in — a known password, an injected SSH key, or a cloud-init datasource. There is no rescue shell once your image is on disk, so if you cannot log in, your only option is to reload the template from the panel and try again.
- This is for disk images, not interactive install ISOs. If you specifically want to run an OS installer, write a network boot loader such as netboot.xyz instead, which gives you an installer menu on the console. That is a separate workflow and generally wants a second disk to install onto.
Select your Linux OS to Prepare the Tools
First, install the tools we need, wget to download the image and the extractors for the common compressed formats. Select the tab matching the OS your VPS is currently running.
- Ubuntu
- Debian
- AlmaLinux
# Update the system and install the download and extract toolsapt updateapt install -y wget unzip xz-utils gzip
# Update the system and install the download and extract toolsapt updateapt install -y wget unzip xz-utils gzip
# Update the system and install the download and extract toolsdnf install -y wget unzip xz gzip
Download & Extract Your Image into RAM
We download the image into /dev/shm, which is a RAM-backed folder. This matters because we are about to overwrite the disk, the source image needs to live somewhere that isn’t the disk we are wiping. Keeping it in RAM means the write can read the image cleanly right up to the end. Replace the URL with the image you want to run.
cd /dev/shm
wget https://your-image-source/os-image.img.gz -O image.gz
# Extract with the tool that matches your file's format:
gunzip image.gz # .gz
# unzip image.zip # .zip
# xz -d image.xz # .xz
Verify the Image Before Writing
This one check saves the most common failure. Confirm the extracted file is a real disk image and note its exact name.
ls -la
file image.img
The file command must report something like DOS/MBR boot sector or data. If it says Zip archive, gzip compressed or XZ compressed, the extract did not happen, go back and run the right extractor. Do not proceed until this reports a boot sector.
Identify Your Target Disk
Next, find the disk your server boots from, this is the device we write your image onto. It is usually vda or sda, but you must confirm rather than assume, as writing to the wrong device will fail.
lsblk
Example: a line reading sda 25G disk with a partition sda1 mounted at / tells you the boot disk is /dev/sda. Use the whole disk (sda), not the partition (sda1). Note the name for the next step.
Write the Image and Reboot Into It
Now write the image to the disk. Replace image.img with the exact filename from the verify step, and /dev/sda with the disk you confirmed with lsblk. The sync flushes the write, then echo b forces an immediate reboot into your new image.
dd if=/dev/shm/image.img of=/dev/sda bs=4M conv=notrunc oflag=direct
sync
echo b > /proc/sysrq-trigger
The console will freeze briefly, then you will see the server reboot. SeaBIOS loads, and within a few seconds your image starts. Watch the console for the boot messages and a login prompt.
First Boot, Login & Networking
Log in with whatever credentials your image ships with, its default account, a password you set, or the SSH key you injected. If it is a cloud image relying on cloud-init, log in through the method your image expects.
Your image comes up with its own network configuration, which is often DHCP or cloud-init. If it does not get online automatically, set the networking manually. Everything you need — your IP address, gateway, netmask/prefix and usable DNS — is listed on your VPS’s page in the client area. Apply those values using whatever the OS you installed uses (for example netplan, systemd-networkd, or /etc/network/interfaces on Debian-based systems).
Once networking is up, confirm it before you rely on it:
ip address show
ping -c 3 YOUR_GATEWAY
ping -c 3 1.1.1.1
If both pings reply, your server is online and reachable, and you can connect over SSH as normal.
Final Words
You now run your own image on your Packetra VPS, installed directly from the running server with no special tooling and no ISO mounting required. This suits anyone who would rather bring their own OS, bootloader and network setup than use a prebuilt template. If you ever want to go back, reload the OS from your control panel and you are on a clean template again, we do not lock you into ours.
