Custom Operating System
With the custom operating system feature of the Arvancloud Cloud Server, you can use an operating system file that is on your device's local storage or on the internet to install on an instance. You can also keep an archive of these operating systems to install them when needed.
Uploading a Custom Operating System
To create a custom operating system, log in to the panel, go to Cloud Server and then Custom OS, and click Upload Custom OS.
On the page that opens, after setting a name, choose the upload method from Internet Address or My Device.
Uploading a File from an Internet Address
To upload an operating system that is on the internet, simply enter its address on this page and click Upload Custom OS.
Note that the allowed formats for a custom operating system are raw, qcow2, vmdk, iso, img, and vhd, and the image file can be up to 500 GB.
Uploading a File from Your Device
In the device upload mode, you can select your file with drag and drop or Browse.
After you click the upload option, the upload starts.
Note that the allowed formats for a custom operating system are raw, qcow2, vmdk, iso, img, and vhd, and the image file can be up to 20 GB. Also, if you refresh the page during the upload, the upload stops.
Managing Custom Operating Systems
In the Custom OS section of the panel, you can see the list of files you have uploaded so far and manage them. From the actions menu, you can edit the name, manage tags, or delete the operating system.
Creating an Instance from a Custom Operating System
To create an instance from a custom operating system, use the button next to it.
You are then taken to the rest of the cloud server creation process. The guide to creating an instance helps you with this.
You can also select your file from the Custom OS tab in the second step of creating a new instance.
Creating an Image That Can Be Uploaded to Arvancloud Instances
To create an image manually, you first need to install a VM from the ISO file of the operating system you want (for example, Ubuntu) on one of the well-known hypervisors. For convenience, we choose VirtualBox. First, in the new virtual machine window, select Expert Mode.
After entering information such as the image name, the storage location, and the memory size, click Create.
In the next section, set Hard disk file type to QCOW and set File Size to the smallest possible value. Finally, click Create.
Next, turn on the virtual machine you created and select Install to start the installation.
Then select OpenSSH Server.
On the next page, select Yes.
After the operating system installation finishes, for the various parts of the cloud system to work with your image, you need to install the cloud-init package and follow these steps:
apt-get install cloud-init
dpkg-reconfigure cloud-init
In this step, set Data Source to None.
You can change the default username and password through the cloud.cfg file in the /etc/cloud/ path:
vim /etc/cloud/cloud.cfg
Next, you can install the software and packages you need. For example, you can install the Nginx web server. This way, every time you create an instance with this operating system, the Nginx web server is already installed on it. After installing the needed software, turn off the VM.
You can also upload and use the qcow file stored in your VM's path in the Arvancloud panel, but since qcow files are slow, it is recommended to convert the qcow file to raw as follows.
To convert qcow to raw, first download the qemu-img software for Windows from this link.
Then run the following command to convert qcow to raw:
qemu-img convert -f qcow -O raw Ubuntu-WebServer.qcow Ubuntu-WebServer.raw
Finally, to sysprep the image, you can run the following command through the Ubuntu bash installed on Windows 10:
apt-get install libguestfs-tools
virt-sysprep –a Ubuntu-WebServer.raw