What is Amazon Linux?
Amazon Linux 2 is a Linux operating system from Amazon Web Services (AWS). It provides a security-focused, stable, and high-performance execution environment to develop and run cloud applications. -https://aws.amazon.com/amazon-linux-2
Preparation
- Download ImgBurn Download
- Download the Amazon Linux virtual disk image (.vdi) Download
- Download the sample Amazon Linux cloud init (seed.iso) Download
- Extract the downloaded seed.iso file with 7-Zip
- Edit meta-data in a text editor
- Update local-hostname as needed > Save the changes > Close
- Edit user-data in a text editor
- Update as needed to create users in the VM > Save the changes > Close
- Extract the downloaded ImgBurn .exe file with 7-Zip
- Launch ImgBurn.exe inside the extracted folder
- Select Build mode from the main menu
- Click Browse for a file > Browse to and select the updated meta-data and user-data files edited earlier > Click Open
- At the top right of the window, select the Options tab
- Set the File System to ISO9660 + Joliet
- Select the Labels tab
- Set the two labels to cidata
- Click the browse icon next to the destination folder
- Browse to the downloads location and name the file updated-seed.iso > Click Save
- Click the large icon at the bottom left of the window to build the iso
Creating the VM
- Launch VirtualBox Manager
- Create a New VM by selecting Machine > New
Name: Amazon Linux
Folder: C:\VMs
ISO Image: <not selected>
Type: Linux
Version: Other Linux (64-bit)
Base Memory: 2048 MB (or more)
Processors: 1 (or more)
Hard disk: Do Not Add a Virtual Hard Disk - Click Finish
- Right click the VM > Show in Explorer
- Copy the downloaded .vdi file and the updated-seed.iso files inside the VM folder
- Back in VirtualBox Manager, select the VM and Click Settings
- Select Storage
- Click the Add hard disk icon > Browse to and select the Amazon Linux .vdi downloaded earlier
- Click the Add optical disc icon > Browse to and select the updated-seed.iso file created earlier
- Select Network
- Set the attached to dropdown to Bridged Adapter
- Click OK
- Make sure the Amazon Linux VM is selected and click Start > Normal
- Once the boot process completes, login using the credentials created in user-data
- Welcome to Amazon Linux