Tutorials Custom server images

Custom server images

Custom images are a useful tool for creating new servers with the same base configuration. It is also useful if you just need to set up a server similar to what you already have, and wish to skip the hassle of configuring a new server from scratch.

Imaging a server creates a new storage disk that is a 1:1 copy of the base server’s storage. The custom image can then be used to deploy new servers with the same features and settings.

Before imaging

Before imaging a server, you should check through your server to make sure everything is working as expected. For servers running CentOS 6.7 or older and Ubuntu 12.04 or older, you should rename the current MAC address reference file to avoid extra reboots.

sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old

The system will generate a new file again on the next reboot.

Other servers with an OSs different to those mentioned above, such as any newer Linux distribution or Windows Servers, do not need any special preparations for imaging.

Creating custom image

Note that the source storage cannot be in use during imaging.

To start imaging a server, log in to your UpCloud control panel and shut down the server.

Go to your Storage list and find the system device of the server you wish to image. On the list of storage devices, Attached to will indicate which server each storage belongs to.

Click the Create custom image button on the storage device you want to copy into a new image. Then give the custom image a name and click the Create button.

Create new template

The process of image creation is quick but will vary depending on the size of the storage device. Once finished, you’ll get a notification and the origin server can be started up again.

Successfully created custom image

Deploying custom image

You can find your custom images at your UpCloud control panel under the Storage section. The custom images can be deployed straight from the list or you can find the images in the operating system selection at the deployment page.

Deploy a new server using a custom image by clicking the Deploy button.

Deploy custom image

This will open a new server deployment page with the custom image and associated location preselected.

Pick the server configuration and give your new custom server a hostname, then click the Deploy button when ready.

Leave a Reply

Your email address will not be published. Required fields are marked *

Locations

Helsinki (HQ)

In the capital city of Finland, you will find our headquarters, and our first data centre. This is where we handle most of our development and innovation.

London

London was our second office to open, and a important step in introducing UpCloud to the world. Here our amazing staff can help you with both sales and support, in addition to host tons of interesting meetups.

Seattle

Seattle is our 4th and latest office to be opened, and our way to reach out across the pond to our many users in the Americas.

Singapore

Singapore was our 3rd office to be opened, and enjoys one of most engaged and fastest growing user bases we have ever seen.