How to upload and use custom images
Estimated time to read: 2 minutes
Introduction
Fuga Cloud offers ready to go images to help you get your instance up and running in no time. We offer images of the most used Linux distributions, but you can also upload your custom images. In this tutorial, we will show you how you can upload your custom image and boot it as an instance using the OpenStack CLI tools.
The following image files are supported: ISO, OVA, PLOOP, QCOW2, Raw, VDI, VHD, VMDK, AKI, AMI, ARI, Docker.
Prerequisites:
- Active Fuga Cloud account
- OpenStack CLI tools installed
- An image (it's not possible to use a live image)
- OpenStack credentials (open.rc file)
Step 1: Uploading your custom image
Make sure you are logged in to Fuga Cloud with your CLI tools
We have to upload your image to Fuga Cloud. In this example, we use a qcow2 file. Upload your image using the following command.$ openstack image create --container-format bare --disk-format qcow2 --file <image_file_path> <name_your_image>
Step 2: Boot your image in Fuga Cloud
Before we can start our instance using our newly uploaded image, we need to specify a couple of things like flavor, network, security group, and key pair that we want to use.
Check the list of available flavors using the following command:
Check your available networks Your security groups Your key pairs Now for launching an instance using your custom image we can use the following command:$ openstack server create --flavor <flavor> --network <network_name> --security-group <name_of_sc> --image <snapshot_name> --key-name <keypair_name> <name_your_instance>
Conclusion
You now learned how to upload your custom images using the CLI tools and launch an instance.