I don't know what number it is, but I ran Amazon Linux 2 in VirtualBox.
The official documentation is here. https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html
The official documentation describes how to create a customized seed.iso, but a sample seed.iso is also available, so I'll start it using this.
Disk image (vdi) https://cdn.amazonlinux.com/os-images/latest/virtualbox/
Sample seed.iso https://cdn.amazonlinux.com/os-images/latest/
As of October 17, 2020, latest will be redirected to 2.0.20200917.0.
In the sample seed.iso, the following settings are made.
Host name amazonlinux.onprem user user1 (password amazon) user2 (password amazon)? user3 (no password set, ssh key specified) ec2-user (password amazon)
I feel like I should start it with seed.iso for the time being and change the settings later.
Just set the vdi file you got as a hard disk and seted.iso as an optical drive.


You can log in with ec2-user (password amazon).

https://aws.amazon.com/jp/premiumsupport/knowledge-center/ec2-linux-2-install-gui/ Follow the instructions to install mate desktop and TigerVNC and try to access with GUI.
sudo amazon-linux-extras install mate-desktop1.x
sudo bash -c 'echo PREFERRED=/usr/bin/mate-session > /etc/sysconfig/desktop'
sudo yum install tigervnc-server
vncpasswd
sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/[email protected]
sudo sed -i 's/<USER>/ec2-user/' /etc/systemd/system/[email protected]
sudo systemctl daemon-reload
sudo systemctl enable vncserver@:1
sudo systemctl start vncserver@:1
It looks pretty dull, but I was able to access it via VNC.

Recommended Posts