Docsity

Creating a CentOS Virtual Machine in Miscrosoft Azure, Lab Reports of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
Creating a CentOS Virtual Machine in Miscrosoft Azure
These instructions will explain how to create a new (CentOS) Virtual Machine in Microsoft
Azure. You should already have registered with Azure and have a username and password for
your Azure account to hand. You will need to do this on the Azure Portal on the Interment and
also to have the Putty console program available to connect to the new VM once created. You
only need a basic VM (1-2Gb RAM and standard) – this will avoid any charges.
1) Create an Azure account and login to it.
2) Go the Azure Portal.
3) Select the Virtual Machines from the menu on the left
4) The Create a Virtual Machine page appears – see figure 1 below.
5) Add a new VM
6) Ensure that the subscription is Free Trial
7) Give the VM a name of your choosing
8) Select the region as UK South
9) Select CentOS-based 7.7 as the Image type (not Linux or anything else)
10) Select Size and then from the list select “B1s” – you only need 1-2Gb of RAM and
one processor (to avoid charges)
11) For “Authentication type” it is easiest to select “Password”
Enter a username for your administrator account on the VM, eg. admin01 and a secure
password that you can remember
(the VM will be accessible over the Internet so a good password is essential)
Note: if you want to configure SSH with a public key instead of password – please see
instruction at the end of this document)
12) Select Inbound Port Rules and then make sure that SSH port 22 and RDP port
3386 are checked to allow remote access.
13) Leave everything else as per defaults.
14) Then click the Next: Disks button at the bottom of the page
15) On the Disks page (see figure 2 below) select the OS disk type as Standard HDD
pf3
pf4

Partial preview of the text

Download Creating a CentOS Virtual Machine in Miscrosoft Azure and more Lab Reports Computer Systems Networking and Telecommunications in PDF only on Docsity!

Creating a CentOS Virtual Machine in Miscrosoft Azure These instructions will explain how to create a new (CentOS) Virtual Machine in Microsoft Azure. You should already have registered with Azure and have a username and password for your Azure account to hand. You will need to do this on the Azure Portal on the Interment and also to have the Putty console program available to connect to the new VM once created. You only need a basic VM (1-2Gb RAM and standard) – this will avoid any charges.

  1. Create an Azure account and login to it.
  2. Go the Azure Portal.
  3. Select the Virtual Machines from the menu on the left
  4. The Create a Virtual Machine page appears – see figure 1 below.
  5. Add a new VM
  6. Ensure that the subscription is Free Trial
  7. Give the VM a name of your choosing
  8. Select the region as UK South
  9. Select CentOS-based 7.7 as the Image type (not Linux or anything else)
  10. Select Size and then from the list select “B1s” – you only need 1-2Gb of RAM and one processor (to avoid charges)
  11. For “Authentication type” it is easiest to select “Password” Enter a username for your administrator account on the VM, eg. admin01 and a secure password that you can remember (the VM will be accessible over the Internet so a good password is essential) Note: if you want to configure SSH with a public key instead of password – please see instruction at the end of this document)
  12. Select Inbound Port Rules and then make sure that SSH port 22 and RDP port 3386 are checked to allow remote access.
  13. Leave everything else as per defaults.
  14. Then click the Next: Disks button at the bottom of the page
  15. On the Disks page (see figure 2 below) select the OS disk type as Standard HDD

Figure 1. Creating a new virtual machine in Azure. Note: select B1s for Size (not D2 as shown)

  1. Then select Next: Networking at the bottom of the page Figure 2. Disks page.
  2. On the Networking page see figure 3 – leave the defaults for all, but make sure that under “Public Inbound Ports” that “allow Selected Ports” is selected (so that you can connect to your virtual machine remotely. Figure 3 Networking Page – note select the
  3. Select Next: Management at the bottom of the page.

Accessing your new VM Over the Internet

  1. To access your VM start Putty to open a new putty session (see figure 5 below).
  2. Ensure that SSH is selected (port 22) and the public IP address of your VM.
  3. Then select Open.
  4. You should be prompted for the username and password that you created above. Figure 5. Accessing your VM using SSH in Putty. Using and SSH Public Key to Connect to you VM rather than username and Password If you selected Password for “Authentication Type” you will need to supply a username and password each time you connect using Putty. A more secure method is to use an SSH key.
  5. On the first page in creating a virtual machine you could either select Password or SSH Public Key. If you selected SSH public key you should run PuttyGen (see figure 6 below)
  6. You should select Generate and then move your mouse around in the blank area as instructed.
  7. Then select all the text in the “Public key for passing into OpenSSH ……” and paste this into the “SSH Public Key” box on the first page when creating your new VM in Azure.
  8. Then above this box in Azure enter a username that you will use for the administrator on the new VM. Figure 6. Generating a Public Key with PuttyGen.