대상: Ubuntu 24.04 LTS
문제: VirtualBox 실행 시 “AMD-V is being used by another hypervisor (VERR_SVM_IN_USE)” 오류 발생
[1] 문제 개요
❗ 증상
VirtualBox에서 VM 실행 시 다음 오류가 발생:
AMD-V is being used by another hypervisor (VERR_SVM_IN_USE).
VirtualBox can't enable the AMD-V extension.
Please disable the KVM kernel extension, recompile your kernel and reboot.
Result Code: NS_ERROR_FAILURE (0x80004005)
💡 의미
VirtualBox가 CPU의 하드웨어 가상화(AMD-V/VT-x)에 접근하려는데,
KVM 커널 모듈(kvm, kvm_amd) 이 이미 그 기능을 선점 중이라 실패.
커널이 AMD-V를 “부팅 시점에” 자동으로 활성화하도록 변경된 것이 원인.
[2] 근본 원인
항목
설명
KVM(Kernel-based Virtual Machine)
리눅스 커널 내장 하이퍼바이저로 /dev/kvm을 통해 CPU 가상화 기능 점유
Ubuntu 24.04 커널 패치
Canonical이 커널 빌드 시 kvm.enable_virt_at_load=1(기본값)을 적용 → 커널이 부팅 시 AMD-V를 자동 활성화
VirtualBox의 동작 방식
자체 모듈(vboxdrv)로 AMD-V/VT-x를 직접 제어해야 함
결과
KVM이 이미 AMD-V를 점유 → VirtualBox가 접근 실패 (VERR_SVM_IN_USE)