This post is the 18th day post (pinch hitter) of Sakura Internet Advent Calendar 2020. On the 17th day, he was pitan's "Enjoy netbox", and on the 19th day he was 0n1shi's "Use Cert manager on Kuberentes built in Sakura's cloud "was.
The fastest way to set up Ubuntu Server 20.10 on Sakura's cloud is to use an ISO image. This is an installation procedure using an ISO image. With Sakura Cloud, the ISO image can be used as a public ISO image, so there is no need to download it. Also, since the virtual server (machine) to boot supports DHCP, it can automatically communicate with the Internet side, which is convenient when you want to use it immediately.
From "Server" in the IaaS menu of the control panel, click "Add" at the top right of the screen.
To install with an ISO image, you need to cancel "Simple mode". If it is in simple mode (checked), cancel it.
Choose the virtual core and memory of your server plan. If you want to move (try to start) for the time being, 1 core 1GB is fine, but change it if necessary.
Then scroll the screen and click "Blank" in the "Disc" section.
Then click "▼" from "Use ISO Image" and click "Ubuntu Server 20.10 64bit".
It's okay if it is selected like this.
Then scroll the screen and in the server information, for Name, enter Ubuntu Server, for example. This is the name of the server displayed on the server list screen (not the host name hostname in the server).
After that, scroll as it is and click "Create" at the bottom right of the screen.
Click Create on the confirmation screen as well, and wait until the creation is completed.
The server is now ready. Click Close.
From the server list screen, double-click the target server.
Click "Console" in the menu.
Then you will see a black screen like this.
Click on the screen and wait for the boot to complete and the menu to appear.
From here, you can set up with the console function. Although it is a server on the cloud, you can work as if you set it up on a normal server.
First, select the language of the installer. The installer enters the enter key with English "English" selected.
The next screen is the keyboard layout and language settings. If it remains in English, it will proceed as it is, but if you want to use Japanese, you can move the selected item with the "Tab" key. Press the tab several times to move to the "Layout" column, press the "Enter" key, move up and down the cursor keys, move to "Japanese" and press "Enter".
Tab again and click Done.
Second, if you connect the server to a public network, DHCP will automatically assign you an IP address. With Done still selected, click Enter.
No Proxy settings are required, so this is also "Enter".
Archive mirrors are usually just "enter".
For the installation disk, if there is no problem as it is, press the Tab key to move to "Done" and click "Enter".
On the confirmation screen, enter with "Done".
This is the final confirmation of whether to initialize and install the storage (disk). If it is a new disk, there is no problem, so click the tab, select "Continue", and press "Enter".
Next is the input of profile information (account settings). Enter and move while holding down the "Tab" key.
--Your name: Enter your name in alphabet (optional) --Your server's name: Enter the server name --Pick a username: Enter the user name (account name) when logging in to the server --Choose a password: Enter password --Confirm a password: Enter the password again
Click "Done" when you are done.
Next, for remote SSH connection and operation, click "Space" in "Install OpenSSH Server" to make it selected.
By the way, if you select "Import SSH identiy" here, you can also automatically set the public key registered in GitHub or Launchpad.
After confirmation, click "Done".
Then select additional packages (press the spacebar) as needed, then teach the tabs and press "Done".
After that, setup and package update work will start automatically. Look at the screen or have a cup of coffee until the end.
Rotate around to the right of "security updates" at the bottom of the screen ← ↖ ↑ ↗ → ↘ ↓ ↙ ← ↖ ↑ ↗ When you finish, the screen will switch to "Reboot", so press enter to restart the virtual machine. To do.
Then you will see a warning like this on the screen.
The message is that the CD-ROM cannot be automounted. Remove the ISO image connected to this server from the control panel.
Click the tab that looks like "Ubuntu" and click "Eject". Click "Eject" on the confirmation screen as well.
This completes the removal.
After that, return to the "Console" screen again and press "Enter".
This completes the setup.
Then reopen the console and you'll see a log of cloud-init initialization.
To log in to the server through the console function as it is, press the "Enter" key to display the login prompt.
If you have set up the OpenSSH server in the previous step, you can SSH log in remotely. To log in to the server, first check your IP address. You can check the column that says "NIC" in the server list, or you can check it on the "NIC" tab in the server details. In the example below, it is 163.43.133.25.
Clicking the icon next to this IP address is convenient because you can copy it to the clipboard.
After that, let's log in with the user name created during setup.
$ ssh -l lain 163.43.133.25
The authenticity of host '163.43.133.25 (163.43.133.25)' can't be established.
ECDSA key fingerprint is SHA256:FwlPbLNVqZ78kSWQ+mShy2X6jraopVnbXx5SiZuUw/s.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '163.43.133.25' (ECDSA) to the list of known hosts.
[email protected]'s password:
Welcome to Ubuntu 20.10 (GNU/Linux 5.8.0-33-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Dec 22 11:49:06 PM UTC 2020
System load: 0.0 Processes: 99
Usage of /: 21.7% of 18.57GB Users logged in: 0
Memory usage: 18% IPv4 address for ens3: 163.43.133.25
Swap usage: 0%
20 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
lain@tachibana-lab:~$
You are now logged in!
If you need to work as root, use the sudo
command. Here, enter your login password. The following is an execution example.
lain@tachibana-lab:~$ sudo apt update
[sudo] password for lain:← There is no display on the screen (no echo back), but enter it
Hit:1 http://jp.archive.ubuntu.com/ubuntu groovy InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu groovy-updates InRelease [110 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu groovy-backports InRelease [101 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu groovy-security InRelease [110 kB]
Fetched 321 kB in 0s (915 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
lain@tachibana-lab:~$
Finally, if necessary, set Sakura's cloud packet filter function and TCP Wrapper or security settings.
Enjoy!
Recommended Posts