问题:virtualbox 宿主机增加内存后,虚拟机无法启动,
VirtualBox虚拟机启动报错:Acritical error has occurred while running the virtual machine and the machine execution has been stopped
尝试解决问题:
去掉没有的ub.vdi文件
进入Virtual Media Manager ,发现Hard disks 以前放在usb盘的ub.vdi没有了(因为拿掉了挂载的硬盘),在Virtual Media中去掉该硬盘,
再启动,还是一样报错。
使用apt更新virtualbox软件
apt update
apt upgrade virtualbox
更新后还是一样报错。
中间不小心断电重启,apt不能用,提示
sudo dpkg --configure -a 来修复
修复后更新virtualbox
apt update
apt upgrade virtualbox
更新后问题依旧
查看log信息
00:00:03.923700 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00:00:03.923700 emR3Debug: rc=VERR_VMM_SET_JMP_ABORTED_RESUME
00:00:04.061234 GUI: Machine-window #0 deactivated
00:00:04.061337 GUI: Releasing mouse on focus out
00:00:04.061356 GUI: Releasing keyboard on focus out
00:00:04.061791 GUI: Machine-view #0 unfocused, reason=3
00:00:18.404885 GUI: Releasing keyboard on pause/stuck
00:00:18.405416 GUI: Releasing mouse on pause/stuck
00:00:18.896758 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:18.905819 ERROR [COM]: aRC=NS_ERROR_INVALID_ARG (0x80070057) aIID={4680b2de-8690-11e9-b83d-5719e53cf1de} aComponent={DisplayWrap} aText={Argument aWidth is invalid (must be aWidth != 0 && aWidth <= 32767)}, preserve=false aResultDetail=0
00:00:18.995000 GUI: Machine-window #0 activated
00:00:18.995137 GUI: Machine-view #0 focused, reason=3
00:00:19.019401 GUI: Machine-window #0 deactivated
00:00:19.019521 GUI: Releasing mouse on focus out
00:00:19.019547 GUI: Releasing keyboard on focus out
00:00:19.020404 GUI: Machine-view #0 unfocused, reason=3
00:00:22.396337 GUI: 2D video acceleration is disabled
00:00:22.396591 GUI: HID LEDs sync is not supported on this platform
00:00:22.397025 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=7
00:00:22.410691 GUI: Machine-window #0 activated
00:00:22.410793 GUI: Machine-view #0 focused, reason=3
00:00:25.024976 GUI: Machine-window #0 deactivated
00:00:25.025038 GUI: Releasing mouse on focus out
00:00:25.025052 GUI: Releasing keyboard on focus out
00:00:25.025423 GUI: Machine-view #0 unfocused, reason=3
00:00:26.369769 GUI: Machine-window #0 activated
00:00:26.369842 GUI: Machine-view #0 focused, reason=3
00:00:27.857842 GUI: Machine-window #0 deactivated
00:00:27.857945 GUI: Releasing mouse on focus out
00:00:27.862725 GUI: Releasing keyboard on focus out
00:00:27.864121 GUI: Machine-view #0 unfocused, reason=3
这个可能没有需要的信息,看这个:
00:00:06.858318 E1000#0: Received frames : 0
00:00:06.858329 E1000#0: Transmitted frames: 0
00:00:06.858340 E1000#0: TX frames up to 1514: 0
00:00:06.858352 E1000#0: TX frames up to 2962: 0
00:00:06.858363 E1000#0: TX frames up to 4410: 0
00:00:06.858374 E1000#0: TX frames up to 5858: 0
00:00:06.858386 E1000#0: TX frames up to 7306: 0
00:00:06.858397 E1000#0: TX frames up to 8754: 0
00:00:06.858408 E1000#0: TX frames up to 16384: 0
00:00:06.858419 E1000#0: TX frames up to 32768: 0
00:00:06.858430 E1000#0: Larger TX frames : 0
00:00:06.858441 E1000#0: Max TX Delay : 0
00:00:06.904575 GIM: KVM: Resetting MSRs
00:00:06.906479 Changing the VM state from 'DESTROYING' to 'TERMINATED'
00:00:06.918565 Console: Machine state changed to 'PoweredOff'
00:00:07.463628 GUI: Passing request to close Runtime UI from machine-logic to UI session.
00:00:07.730968 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:07.731068 ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={4680b2de-8690-11e9-b83d-5719e53cf1de} aComponent={DisplayWrap} aText={The console is not powered up (setVideoModeHint)}, preserve=false aResultDetail=0
00:00:07.731233 GUI: Aborting startup due to invalid machine state detected: 1
没有找到问题原因......
修改虚拟主机设置
进入虚拟机设置,在system 配置中
将enable PAE/NX勾选上
问题没解决。
看到有人的经验
[Solved] A critical error has occurred while running the virtual machine - virtualbox.org
I already tried the above solutions, and still not solving the problem.
I figured that my virtual box is 6.1 (seems up-to-date) but the minor version of my installed is 6.1.27 then I checked the newest version is 6.1.32
I download and installed the newest version by these steps:
1. download the latest virtualbox
2. install the downloaded without removing the installed version
3. it will show the 'RTR3Init failed with rc=-1912 (rc=-1912)' error, don't worry we solve this issue on next steps
4. run sudo apt-get purge virtualbox-dkms
5. run sudo apt-get install dkms
6. sudo /sbin/vboxconfig
跟着学习,到VirtualBox官网Oracle VM VirtualBox下载了最新版本7.0的安装软件:
Downloads – Oracle VM VirtualBox
选择了Ubuntu平台版本,然后使用
dpkg -i virtualbox-7.0_7.0.20-163906~Ubuntu~jammy_amd64.deb
安装好7.0版本VirtualBox。
启动VirtualBox,没有报错,问题解决。
总结:
不明白为什么加了内存之后VirtualBox会报错无法启动虚拟机,不过最终升级VirtualBox从6.x到7.0版本,问题解决。