728x90
반응형

Windows 11 pro 환경에서 virtual box 설치 후 아래와 같은 오류가 발생했을 때, 조금 삽질하다가 해결방법을 찾았다

D:\k8s>vagrant up
Bringing machine 'master-node' up with 'virtualbox' provider...
==> master-node: Checking if box 'rockylinux/8' version '8.8-20230518.0' is up to date...
==> master-node: Clearing any previously set forwarded ports...
==> master-node: Clearing any previously set network interfaces...
==> master-node: Preparing network interfaces based on configuration...
    master-node: Adapter 1: nat
    master-node: Adapter 2: hostonly
==> master-node: Forwarding ports...
    master-node: 22 (guest) => 2222 (host) (adapter 1)
==> master-node: Running 'pre-boot' VM customizations...
==> master-node: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "7fbdc99a-dae7-432f-88dd-e52069f688c6", "--type", "headless"]

Stderr: VBoxManage.exe: error: The virtual machine 'k8s_master' has terminated unexpectedly during startup with exit code 1 (0x1).  More details may be available in 'C:\Users\minipc\VirtualBox VMs\k8s_master\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

초기에 설치 시도했던 것은 아래와 같다.
- Virtualbox 7.0.8-156879.exe
- Vagrant 2.3.4 windows_amd64.msi

해결방법은 아래 oracle page에서 7.0.22 버전(현재 최신버전)을 설치하고 나서 vagrant up 명령어를 실행하니 바로 에러 없이 실행되었다.

Oracle VM VirtualBox - Downloads | Oracle Technology Network | Oracle

반응형

+ Recent posts