Although we offer several different operating system images and CDROMs at the UpCloud Control Panel, you might want to install an operating system from your own installation media. This process requires you to create a storage that contains the install image, define it as a CDROM at the control panel and then boot up the server from that CDROM-storage.
Deploying a new server
Start off by creating a new cloud server of your choice at your UpCloud Control Panel. This guide uses a Linux system and the example commands below will assume as much.
Make the required configurations by
- Naming your server and giving it a description.
- Selecting the availability zone you wish to deploy the server.
- Choose the configuration for CPU core count and RAM amount.
- Name your first disk device and add a second disk by clicking the text.
- Pick the OS you are comfortable with for a one time boot.
- Add any SSH keys you might have to allow password free login.
- Check through the miscellaneous options for anything else.
- Confirm your selections and click the Deploy server button.
Once your server has finished deploying, you can log in with SSH using any keys you might have selected or the root password that will be displayed in the notifications at your UpCloud Control Panel.
Preparing the install media
When logged in, check that you have the storage space required to continue with the command underneath.
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 253:0 0 30G 0 disk `-vda1 253:1 0 30G 0 part / vdb 253:16 0 10G 0 disk
The first disk should show up with the regular operating system partition which is mounted at the root and the second disk should be a simple empty disk with no partitions.
Download the installation image you wish to use to the server, for example using curl and wait for the download to finish.
curl -o ~/image.iso https://example.com/install-image.iso
When you have the desired image saved on the server, copy the file contents to the empty storage device with the following command. Check that the image name and the target disk are set correctly and that the image is copied directly.
dd if=~/image.iso of=/dev/vdb bs=16M oflag=direct
This operation is quite fast and when the image file has been copied to the storage, shutdown the server either from your UpCloud Control Panel or with the command below.
shutdown -h now
With the server powered down, go to your Server settings and the Disks tab. Change the Disk Controller for the secondary storage device to a CDROM. This will tell the server to boot up from the media disk so that you may start the installation. Confirm your selection by checking that the previously secondary disk is now listed as the first device on the Disks list.
Installing from the image disk
You can now start the server again and go through the installation process with the disk image you downloaded. You will need to use either the Web Console at your Server settings or a VNC connection to access the server during this time. You can find more information about how to use these methods at a guide about Connecting to Your Server.
When you have finished installing the new operating system, shut down the server again and detach or delete the installation device from the Disks menu.
If you should need any further instructions with the operation, please do not hesitate to contact us and ask for assistance.