How to Create a Loadable Image on the ArvanCloud Instances
When you are building your personal operating system, you may prefer to design an image to fit your needs, and then implement it on the system. To create an image manually, you should first use the iso file of your intended operating system (for example, Ubuntu) to install a VM Machine on one of the known Hypervisors. We choose the Virtualbox for convenience.
Step 1: When creating a VM on the following panel, select the Expert Mode option:
Step 2: According to the following figure, click on the Create button:
Step 3: In this stage, you should set the Hard disk file type on the QCOW option, and put the File Size on the least possible amount. In the end, click on the Create button.
Step 4: Turn on your virtual machine, which you have created earlier, and complete the following steps to enter the installation stage.
Step 5: When you finish the installation of the operating system, you have to install the cloub-init software if you want the different parts of the system to work with your image. So, follow the below steps:
You can change your default username and password through the cloud.cfg file located in the /etc/cloud/ path:
Step 6: You can now install your required softwares and packages. For example, you can install Nginx so that you have the Nginx installed on your instances whenever creating an instance by this image.
In this stage, turn off the VM Machine when you installed your required softwares.
Step 7: You can upload and use the qcow file, which you have created in the VM Machine path, on the ArvanCloud panel. However, the qcow files are slow, so we suggest that you employ the following method to convert the qcow file into raw.
To convert the qcow file into raw, first, download the qemu-image for windows from the following link:
Then, run the following command to convert the qcow into raw:
In the end, you can use the following command via Ubuntu bash, which you can install on windows 10, to sysprep the image: