1, download

Official Download link

My computer runs Windows

2. Install VirtualBox

The installation is very simple, I use the default directory to demonstrate, right click. Exe file, run as the administrator, go all the way to the next step, follow the process of installation. If you want to customize another directory, choose another directory to install

3. VirtualBox Creates a Linux VM

For the sake of the demonstration, I chose the default installation directory

If you want to customize another directory, select another directory to install

The memory is set according to their own needs, I set 2048 here

Because I custom installed in the system disk, my computer system disk is relatively small, so casually set up an 8GB, practice must be much larger than 8GB, see their own needs to set

Now that we’re done, we need to download the cent-OS image

4. Download the CentOS image file

CentOS image download address

What I choose here is the mirror of Ali Cloud, you can choose at will

I choose a boot file, the file has more than 700 MB, can install their own needs to choose

5. Configure the CentOS image file for the VM

Click Register and select the Cente-OS image file you just downloaded

At this point, cent-OS is configured

6, try to start, the result is RNM refund, was tortured all day

Error relaunching VirtualBox VM process:5

The virtual machine 'centos_8' has terminated unexpectedly during startup with exit code 1 (0x1).  More details may be available in 'C:\Users\Administrator\VirtualBox VMs\centos_8\Logs\VBoxHardening.log'. Return code: E_FAIL (0x80004005Component: MachineWrap interface: IMachine {85632C68-b5bb -4316-a900-5eb28d3413df}
Copy the code

Fault 2: Call to WHvSetupPartition failed

Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED). Return code: E_FAIL (0x80004005) Components: ConsoleWrap interface: IConsole {872DA645-4A9b -1727-bee2-5585105b9eed}
Copy the code

Exit or uninstall some anti-virus software

2. Enable VT virtualization in the BIOS of the local host

You can open task Manager to check whether virtualization is enabled on the local host

3. Enable Windows VM functions

Disable Hyper-V

Win+R -> cmd -> Ctrl+Shift+Enter -> bcdedit /set hypervisorlaunchtype off

Open Windows Security Center and turn off kernel isolation

Set off

5. Uninstall VirtualBox, restart your COMPUTER, and reinstall it as an administrator

Reinstall, boot, tear eye

6. Unresolved problems

Error relaunching VirtualBox VM process:5 is displayed every time you restart your PC and start VirtualBox

Temporary solution: Uninstall VirtualBox > Restart your COMPUTER > Reinstall VirtualBox