본문 바로가기

퍼블릭 클라우드

[aws] Amazon Linux 2를 온프레미스 가상 머신으로 실행

반응형

Amazon Linux 2를 온프레미스 가상 머신으로 실행

가상 머신 생성

Oracle VM VirtualBox > 가상 머신 만들기

생성한 가상 머신에서 설정 변경

컨트롤러(SATA 또는 IDC) 추가, 기존 amzn2vdi 삭제해도 무방합니다.

Amazon Linux 2 LTS 2.0 VirtualBox image(amzn2-virtualbox-2.0.20220805.0-x86_64.xfs.gpt.vdi) 미디어 추가

Amazon Linux 2 LTS 2.0 VirtualBox image(amzn2-virtualbox-2.0.20220805.0-x86_64.xfs.gpt.vdi) 선택

root 패스워드 초기화를 위해 "recovery mode" 진입

e

ro single 삭제

rd.break 추가 > Ctrl-x 부팅

mount -o rw, remount /sysroot
chroot /sysroot
passwd
exit
reboot

 

참고URL

- https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html

- Amazon Linux 2 LTS 이미지 : https://cdn.amazonlinux.com/os-images/2.0.20220805.0/

 

728x90
반응형