Running an Amazon Linux (AL2) VM in VirtualBox

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=17Snj0iomZg



Duration: 0:00
311 views
10


#AmazonLinux #VirtualBox #AL2VM

Full steps can be found at https://i12bretro.github.io/tutorials/0157.html

--------------------------------------------------------------------
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
--------------------------------------------------------------------
   01. Install 7-Zip if it is not already installed  https://www.7-zip.org/download.html
   02. Download ImgBurn  https://download.imgburn.com/SetupImgBurn_2.5.8.0.exe
   03. Download the Amazon Linux virtual disk image (.vdi)  https://cdn.amazonlinux.com/os-images/latest/virtualbox/
   04. Download the sample Amazon Linux cloud init (seed.iso)  https://cdn.amazonlinux.com/os-images/latest/seed.iso
   05. Extract the downloaded seed.iso file with 7-Zip
   06. Edit meta-data in a text editor
   07. Update local-hostname as needed ≫ Save the changes ≫ Close
   08. Edit user-data in a text editor
   09. Update as needed to create users in the VM ≫ Save the changes ≫ Close
   10. Extract the downloaded ImgBurn .exe file with 7-Zip
   11. Launch ImgBurn.exe inside the extracted folder
   12. Select Build mode from the main menu
   13. Click Browse for a file ≫ Browse to and select the updated meta-data and user-data files edited earlier ≫ Click Open
   14. At the top right of the window, select the Options tab
   15. Set the File System to ISO9660 + Joliet
   16. Select the Labels tab
   17. Set the two labels to cidata
   18. Click the browse icon next to the destination folder
   19. Browse to the downloads location and name the file updated-seed.iso ≫ Click Save
   20. Click the large icon at the bottom left of the window to build the iso
 
--------------------------------------------------------------------
Creating the VM
--------------------------------------------------------------------
   01. Launch VirtualBox Manager
   02. 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
   03. Click Finish
   04. Right click the VM ≫ Show in Explorer
   05. Copy the downloaded .vdi file and the updated-seed.iso files inside the VM folder
   06. Back in VirtualBox Manager, select the VM and Click Settings
   07. Select Storage
   08. Click the Add hard disk icon ≫ Browse to and select the Amazon Linux .vdi downloaded earlier
   09. Click the Add optical disc icon ≫ Browse to and select the updated-seed.iso file created earlier
   10. Select Network
   11. Set the attached to dropdown to Bridged Adapter
   12. Click OK
   13. Make sure the Amazon Linux VM is selected and click Start ≫ Normal
   14. Once the boot process completes, login using the credentials created in user-data
   15. Welcome to Amazon Linux
 


Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro