At the Cloud VPC service, if you have an obstacle in the Virtual Machine configuration, cannot access SSH and configuration DNS, then you can follow the following instructions:
Virtual Machine (VM) Configuration on VPC
- Log into the main view of your VPC menu
- Then enter Menu Compute
- Once inside the Menu Compute, first you get into the menu Networks, choose Creative Virtual Network, then configuration first for Local/Private IP You
- Then, you can make Local/Private IP according to what you want and don't forget to fill out the server DNS his, example
-
For the name of the IP Local you can specify for yourself
-
After that, click Save
-
Then click Crete Virtual Network
- Once you create Local IP on the Netowrks menu, don't forget you configure Virtual Routers on menu Routers on your VPC menu
-
For the Virtual Router name, you can determine for yourself
-
Select Network with the IP Public that we have provided
-
Then Add the internal interface with the Local IP you just made, then click Crete.
- Wait. External Network It's been public for a while.
-
After External Network It's public, so the configuration for Local/Private and Virtual Routers is complete.
- After Local/Private and Virtual Routers Configuration, you can continue to configuration VM (Virtual Machine) on the menu Virtual Machine
- Select Creative Machine
- Then name the VM that you want to create, for example, we call it OS that you want to install on the VM.
- After that, don't forget you added Image/System Operations which you want to use, here we select CentOS as the Image/System Operation to use, and select CentOS 7, after that click Done
-
Don't forget, adjust Volumes/Storage, adjust to what you want, to edit, you can click Pencil Icon, once it's finished adjusting, click Save
-
Then, after adjusting Volumes/Storage, you should also choose Flavor/#RAM & CPU) which you want to use, for example, we choose Flavor/#RAM & CPU) Small type, suit your needs
-
Next step, you have to add Network Interface. Network Interface This works to give the IP address to the VM (Virtual Machine) you want to create, this Network Interface, using the Local/Private IP that you previously created, and then click Add and Done
-
Next, to create the password on the VM that you create, you can use the Script below and put it on the menu. Customization script, for example
#cloud-configpassword: <Enter your preferred password>chpasswd: {expired: False}ssh_pwauth: TrueHTML After everything you need is already configured, then select Deploy
Wait until the Deploy process is complete
Once the VM Configuration (Virtual Machine) is completed, the next step is to install the IP Floating on the menu. Floating IP, then choose Add Floating IP
- Then assign to the server name you have created, along with the Local/Private IP on that server
- Wait until the process is completed
- After process Floating IP finish, then you'll get IP Public that can be used for SSH on the server you have created
- Next step, you must configuration Firewall on your VPC, by choosing the menu Security GroupsSelect default
- Then Add Rule Firewall on the menu, and then select SSH, after that Check for the Rule Firewall
- Next step, the access test to your Server using SSH, with Username according to name Operation System used
root@DESKTOP-76E9L7S:~# ssh CentOS@103,193.15.229
CentOS@103.193.15.229's password:
- Come in, will you? Password which you have made before
If message appears (Current) UNIX password, get back in. Password the one you made earlier
root@DESKTOP-76E9L7S:~# ssh CentOS@103,193.15.229
CentOS@103.193.15.229's password:
You arequired to change your password instantly (root enforced)
Your password has expanded.
You must change your password now and login again!
Changing password for user CentOS.
Changing password for CentOS.
(Current) UNIX password:
Put it back Password which is different from Password before and replace with Password It's recent.
After the message has appeared passwd: all authentication tokens updated successfully, you can log back into Server You used SSH with Password most recentroot@DESKTOP-76E9L7S:~# ssh CentOS@103,193.15.229
CentOS@103.193.15.229's password:
You arequired to change your password instantly (root enforced)
Last login: Tue Dec 28 10:08:07 2021 from 103,101,224,210
Your password has expanded.
You must change your password now and login again!
Changing password for user CentOS.
Changing password for CentOS.
(Current) UNIX password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Connection to 103.193.15.229 closed.
Do it. Login with Password Your latest
root@DESKTOP-76E9L7S:~# ssh CentOS@103,193.15.229
CentOS@103.193.15.229's password:
Last failed login: Tue Dec 28 10:14:38 UTC 2021 from 103.101.224.210 on ssh:notty
There was a failed login attet since the last successful login.
Last login: Tue Dec 28 10:12:13 2021 from 103,101,224,210
[CentOS@CentOS ~]$
- Last step, change it too DNS on Server which you have by type sudo su, then
type vi /etc/resolf.conf, press i next to edit, and change to
nameserver 103.195.31.16
nameserver 103.195.31.17
After that, click. ESC, then type:wq
Finish.