본문 바로가기

리눅스

VMware ESXi에서 실행 중인 우분투 가상 머신에서 GRUB 부트 메뉴에 진입하는 방법

반응형

VMware ESXi에서 실행 중인 우분투 가상 머신(VM)에서 GRUB 부트 메뉴에 진입하는 방법

GRUB 메뉴 항상 표시하도록 설정

1. VM 실행 중이면 종료하거나 reboot합니다.

2. VM이 완전히 꺼졌다면, ESXi에서 해당 VM을 편집합니다.

3. Advanced > Boot Options에서 다음 설정을 조정합니다.

  • Force BIOS setup (BIOS 강제 진입) 체크하여 일단 BIOS로 진입한 후, 부팅 순서를 조정하거나 일시 중지할 수 있습니다.

VM 부팅 시 Shift 또는 Esc 키

  • BIOS 모드 : Shift 키
  • UEFI 모드 : Esc 키

VMware 콘솔 창에서는 키 입력이 타이밍상 제대로 전달되지 않는 경우가 많습니다.

부팅 일시 중지(Boot Delay 설정)

GRUB 메뉴 진입 시간을 확보하려면 VMware 설정합니다.

 

ESXi → VM 편집 → VM Options 탭

Boot Options > Boot Delay 설정 (예: 5000ms → 5초)

VMware ESXi 7

728x90

변경 저장 후 VM 부팅 → GRUB 키 (Shift 또는 Esc) 반복 입력

VMware ESXi 7
VMware ESXi 7

부팅 시 GRUB 메뉴를 표시하도록 설정하는 방법

/etc/default/grub 파일 수정

sudo vim /etc/default/grub
더보기

---

cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

---

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5
  • GRUB_TIMEOUT_STYLE=hidden → 메뉴 숨김
  • GRUB_TIMEOUT_STYLE=menu → 메뉴 표시
  • GRUB_TIMEOUT=5 → 메뉴 5초간 표시

설정 반영

sudo update-grub

재부팅

sudo reboot

 

반응형