In this tutorial, you will learn how to install your own Operating System (OS) in Fuga Cloud, and connect with the Virtual Machine (VM) using the Remote Desktop Protocol (RDP).
For this tutorial you need the following:
- An active Fuga Cloud account
- An image that doesn't require a license.
- Private network
- Virtual router
- Floating IP
The OS that has been tested for this tutorial are:
- Pop OS
- Ubuntu 20.04 desktop.
Step 1 - Upload the image.
Login to the Fuga dashboard, select 'storage' at the left-hand side, and go to 'images'. Click 'Create image', enter the image name and upload your image. Make your selection at the dropdown 'Choose disk format ISO', and click the button Create image.
It will take a few minutes to upload the image.
Step 2 - Create a bootable volume
Go to 'Volume Store' (left side), and select 'Create Volume'. Name the new volume to the OS image you've just uploaded, keep the options volume source as it is, enter a volume size of 20GB, and select in the dropdown 'Volume type' the option 'tier-2'.
When the volume is created, click on the three dots ( ... ) of your volume, and select Make bootable. Switch it on and submit the form.
Step 3 - Create Instance
Go to 'Compute' (left side), select 'Instances', and select 'Create instance'.
Under 'Select Boot Source' you select the tab menu 'Custom image & snapshot', and select the image you have uploaded.
Under 'Boot disk' you select 'Ephemeral', then choose a flavor (E.g: c3.medium), a Network, your Key pair, your Security group, and give your instance a name. And finish by clicking 'Launch instance' below.
Step 4 - Attach Volume
When the instance is done booting, stop the instance. And attach the new bootable volume you have created to the instance.
Go to 'Storage' (left side), and select 'Volume Store'. Select 'add volume to an instance' and select the instance you just created. Go back to your instances in the dashboard, and select 'Start instance'. Click on the three dots ( ... ) and select 'show console'.
From the Fuga dashboard, you can connect to the instance via a console. When you install the OS through the console, an OS will ask by default which disk you want to use to install it on. Select here the volume disk (bootable volume) you have created in step 2.
When the installation is complete, shut down the instance. And detach the bootable volume from the instance. You can delete the image if you like.
Step 5 - Create a new security group with RDP
The security group enables you to filter traffic. For connecting with the OS, you need to add permission for port 3389 to allow the connecting.
Go to 'Networking' (left side), and select 'Security Groups'. Select 'Create security group' and give the security group a name, like RDP, and confirm by clicking 'Create security group'. Next select 'Add rule' and at 'Rule source' choose RDP, keep the option Remote and CIDR as they are, and click on 'Create Rule'.
Step 6 - set up a private network and a virtual router
Go to Networks (left side, menu Networking) and select Create new network.
A window will appear, give your network a name, keep ‘Create Subnet’ on, and click the 'Create network and subnet' button.
Another window will appear, this time for your Subnet, so here you give your subnet a name, and select the following private IP address for the subnet range: 192.168.0.0/24
For IP Version, choose IPv4, keep Gateway on, and for the Gateway IP, enter the following IP address: 192.168.0.1
The Gateway IP must match the subnet range you selected before. If you have completed all fields on the form, click on 'Create subnet'.
After creating the Private Network, go to 'Routers' and select 'Create Router'. Give the router a name, at 'External Gateway' select public, keep 'Add interface' select on, at 'Choose subnet or port' you select subnet, and at 'Choose subnet', you select the subnet you have created before and finally click on 'Create router'.
Go to ‘IP addresses’ and click on 'Allocate Floating IP' you can give the IP a description if you prefer, and click on 'Allocate IP' to create a floating IP.
Step 7 - Boot the OS
Go to 'Compute' (left side), and select 'Instances'. Select 'Create instance'. Under 'Select Boot Source' you select the tab menu 'Volumes' and select the bootable disk you have installed the OS on. Choose a flavor, a 'Network' select the private network you have created in step 6 and deselect public network, a Key pair, at 'Security groups' select RDP, and give your instance a name. Launch your instance by clicking the button at the right bottom side.
After creating the instance, you select it and scroll down until IP Addresses, click on the plus (+) and add the floating IP you have allocated in step 6.
Connect with the OS through the console, and install xrdp. This package allows you to connect with the instance with RDP:
$ sudo apt install xrdp
Now you can use a remote desktop tool to connect with your instance (E.g. Microsoft Remote desktop). Use the IP address of the instance for connection.
In this tutorial, you have learned how to install your own OS. By uploading an image in OpenStack, and installing the OS on a bootable volume. When the installation is finished, you have made the connection through RDP.