Uploading your own image
Find out how to upload your own image to Public Cloud
Find out how to upload your own image to Public Cloud
Last updated 27th October 2020
OVHcloud offers ready-to-go images for Public Cloud instances, however we also enable customers to use their own images.
This guide will provide the steps to upload your own images to your project.
It is advisable to either use cloud-ready images already provided by the distribution vendor or build your own image using solutions such as Packer OpenStack builder.
Cloud-ready images can be found here:
Other operating systems tend to offer ISO images which are also applicable when building images with Packer such as QEMU and VirtualBox builders.
We recommend ensuring the following is installed on your images for them to be cloud-ready:
Finally we recommend images to be either in RAW or QCOW2 format. As best practice, keep the size of the image as small as possible so that you are billed less per month and spawns of your instances are quicker.
With OpenStack there are two ways of uploading your own image. You can either upload it via the OpenStack command line interface or with the Horizon web interface.
Once your image is ready to upload, you can use the following steps to upload it using the OpenStack CLI:
1. Download your openrc.sh file for your OpenStack user from the OVHcloud Control Panel (select the region you want to upload to).
2. Source the openrc file:
source openrc.sh
3. Once the file is sourced, you will be asked to enter the password for the OpenStack user. Enter your password.
4. Now you can upload your image. This example command will do the following:
openstack image create --disk-format raw --container-format bare --file debian9.raw "Debian 9 - My Image" --private --property distribution=debian --property hw_disk_bus=scsi --property hw_scsi_model=virtio-scsi --property hw_qemu_guest_agent=yes --property image_original_user=debian
Once your image is ready to upload, you can use the following steps to upload it using the OpenStack Horizon web interface:
1. Log in to the Horizon interface.
2. Select on the top left the region to which you want to upload your image.
3. Go to the Images
section and click on Create Image
.
4. Enter the details of your image and select the file from your computer.
5. Enter the instance metadata (any custom ones you may have you can also add) and then click Create Image
.
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community