How to reopen the VirtualBox virtual machine after it crashes

The computer (Mac system) restarted automatically due to a certain problem. After restarting, the VirtualBox (virtual machine manager) that was used before can resume operation, but the process of VirtualBoxVM (virtual machine terminal) has stopped, and the "display" of the manager also appears An error is reported, causing the virtual machine to be unusable.

1. Error reporting

Figure 1-1 Pop-up prompt: first determine the machine to be started, and use this command to start

Figure 1-1 Pop-up prompt: first determine the machine to be started, and use this command to start

If you close the virtual machine manager at this time, it will show that the virtual machine is running in the manager after restarting, but clicking "Display" still reports an error.

Note: First distinguish between virtual machine manager and virtual machine terminal . VirtualBox is a virtual machine manager, which is responsible for the parameter configuration management of the virtual machine. Generally, every time the virtual machine is started, it is started through the manager. VirtualBoxVM is a virtual machine terminal, that is, a virtual machine running process, and virtual machine operations are performed here, as shown in the following figure:

Figure 1-2 Virtual machine manager and virtual machine terminal

Figure 1-2 Virtual machine manager and virtual machine terminal

Figure 1-3 Virtual machine manager and virtual machine terminal process

Figure 1-3 Virtual machine manager and virtual machine terminal process

Two, the solution

At present, there are two solutions, among which the second method is faster and simpler, and the corresponding methods are as follows:

Method 1: According to the prompt, use the command to directly start the virtual machine (official pop-up suggestion)

According to the error message in Figure 1-1, the virtual machine can be restarted through the command, which needs to use the virtual machine UUID (Universal Unique Identifier). What is the UUID of the virtual machine? The method of querying UUID is as follows:

Figure 2-1 Query the virtual machine UUID

Figure 2-1 Query the virtual machine UUID

MacBook-Pro:~ fy$ 
MacBook-Pro:~ fy$ VBoxManage list vms
"Windows_7" {
    
    fa800cfb-6c97-451a-9573-020ec852dc03}
MacBook-Pro:~ fy$ 

After obtaining the UUID of the virtual machine, use the startup command to start the virtual machine, as follows:

MacBook-Pro:~ fy$ 
MacBook-Pro:~ fy$ VirtualBoxVM --startvm fa800cfb-6c97-451a-9573-020ec852dc03
DEBUG: issetugid_for_AppKit was called by 0x7fff302003d3 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit::_NSCheckForIllegalSetugidApp+0xb (via 0x7fff30200172)

After the command is executed, you will see that the virtual machine is called up directly (that is, it is not started through the virtual machine manager), as shown in the figure:

Figure 2-2 Start the virtual machine with commands

Figure 2-2 Virtual machine manager and virtual machine terminal process

Method 2: Open "Users and Groups", and only need to unlock (simple and quick)

Another method is to enter "System Preferences", open "Users and Groups", click and operate a few times after unlocking, and then open VirtualBox. At this time, you will find that the virtual machine can start normally. The operation steps are as follows :

Figure 2-3 After clicking "Users and Groups", the virtual machine can also be started

Figure 2-3 After clicking "Users and Groups", the virtual machine can also be started

Guess you like

Origin blog.csdn.net/fanyong245758753/article/details/129355619