Register a Microsoft Azure user, create a virtual machine (RHEL8.2) on Azure, and connect with SSH with Tera Term. This time I used the free frame.
Click "Start for free" on the Free account creation screen of Azure.
Enter your Microsoft account credentials and click "Next". If you have not created a Microsoft account, create a new one at this time.
Enter your profile information such as your name, email address and phone number and click "Next".
Enter a phone number that can use SMS and click "Send text message". After clicking, confirm that the confirmation code is sent to the specified phone number.
Enter the confirmation code sent to you in the confirmation code field and click "Confirm Code".
Enter your credit card information and click "Next".
Check the agreement and click "Sign up".
Confirm that preparations for starting to use Azure have started, and click "Build in the portal".
Click Start> to deploy the virtual machine in the Quick Start Center. In the free tier, a credit of ¥ 22,500 will be given for 30 days only.
On this screen, select whether to deploy a Linux server or a Windows server. This time, to deploy RHEL8.2, which is a Linux server, click "Create" to create a Linux virtual machine.
Enter the detailed information of the virtual machine to be deployed from here. This time, the input items for setting the minimum configuration are shown as an example.
item | concents inputted |
---|---|
subscription | Free trial version |
Resource group | (新規)Resource group |
item | concents inputted |
---|---|
Virtual machine name | test01 |
area | (Asia Pacific) Eastern Japan |
Availability options | No need for infrastructure redundancy |
image | Red Hat Enterprise Linux 8.2 (LVM) - Gen1 |
Azure Spot Instance | no check |
size | B1ls(1vcpu、0.5GB memory) (\556/Moon) |
Click "Next: Disk>" when the input is completed.
item | concents inputted |
---|---|
OS disk type | Standard HDD |
Type of encryption | (Regulation) Encryption at the time of storage using platform managed key |
No change
After completing the input, click "Next: Network>".
item | concents inputted |
---|---|
Virtual network | (New) XXX_group-vnet |
Subnet | (New) default (10).0.0.0/24) |
Public IP | (New) test01-ip |
NEC Network Security Group | Basic |
After completing the input, click "Next: Manage>".
item | concents inputted |
---|---|
Enable the free Basic plan | Checked |
item | concents inputted |
---|---|
Boot diagnostics | Enable with a managed storage account (recommended) |
Enable OS guest diagnostics | no check |
After completing the input, click "Next: Details>". Click "Next: Tag>" and "Next: Confirm and Create>" in the same procedure on the following screens. (The input value is OK by default)
If there is no problem with the created contents, click "Create".
Click "Download private key and create resource" to create and download the private key to be used when connecting to Tera Term. After that, the browser download will start, so save it in any location.
The deployment begins. Wait for a few tens of seconds to a few minutes.
Confirm that the message "Deployment is complete" is displayed on the screen, and click "Go to Resource".
Make a note of the "public IP address" information displayed on the screen.
Start Tera Term.
Enter the public IP address information you wrote down earlier in the host field. Enter "22" for the TCP port and "SSH" for the service, and click "OK".
Specify azureuser as the user name. (No password entered) Check "Use RSA/DSA/ECDSA/ED25519 Key", specify the private key you downloaded earlier as the private key, and click "OK".
Check that the SSH connection is established as shown below.
ctivate the web console with: systemctl enable --now cockpit.socket
This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register
[azureuser@test01 ~]$
If you want to become root, you can use "sudo su-" etc.
[azureuser@test01 ~]$ sudo su -
[root@test01 ~]#
Since you will be charged for the credits granted while the virtual machine is running, it is better to stop the virtual machine from the portal after use. (Although it is a free frame, the credit is limited)
Recommended Posts