VirtualBox 无法启动混合 GPT/MBR,也无法启动 EFI 或 MBR

VirtualBox 无法启动混合 GPT/MBR,也无法启动 EFI 或 MBR

同一个安装好的Debian系统上的同版本VirtualBox不能从原始磁盘U盘启动,而另一个系统上可以,也可以从连接物理机的U盘启动。

这是具有 GPT 保护 MBR 分区的 USB。在 WFI 模式和传统 MBR 模式下启动均能完美运行,GRUB 启动无问题。

在 VirtualBox 安装中,我无法启动 UEFI 引导加载程序,即使直接执行 grubx64.efi 它仍然是空的,并且在 mbr 模式下它启动 grub 但操作系统启动仍然是空的。

在 MBR 模式下,我可以从 GRUB 加载内核,但在启动命令之后虚拟机挂起。

没有任何适配器,它是 usb 直接转换为虚拟介质的模式:

VBoxManage internalcommands createrawvmdk -filename /home/n7rc/VirtualBox\ VMs/sda.vmdk -rawdisk /dev/sda

记录机器直至崩溃

00:00:01.159174 Console: Machine state changed to 'Running'
00:00:01.159174 GUI: Capturing keyboard on resume
00:00:01.158119 HM: fUsePauseFilter=false fUseLbrVirt=false fUseVGif=true  fUseVirtVmsaveVmload=true 
00:00:01.164758 VMMDev: Guest Log: BIOS: VirtualBox 6.1.32
00:00:01.164860 PCI: Setting up resources and interrupts
00:00:01.165587 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:01.190806 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:01.190941 VMMDev: Guest Log: CPUID EDX: 0x178bfbff
00:00:01.190976 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x00 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:01.191007 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:01.191336 VMMDev: Guest Log: BIOS: ata0-0: PCHS=16383/16/63 LCHS=1024/255/63
00:00:01.193345 PIT: mode=2 count=0x48d3 (18643) - 64.00 Hz (ch=0)
00:00:01.220491 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=00007f8b71400000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:01.664006 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:01.667309 GUI: 2D video acceleration is disabled
00:00:01.667515 GUI: HID LEDs sync is not supported on this platform
00:00:01.683725 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:03.677023 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:03.683627 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.684020 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0002
00:00:03.684510 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:00:03.685146 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0xc4 (-1 usec ago) CmdIf1=0xa1 (-1 usec ago)
00:00:03.685222 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:03.848601 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=00007f8b7152c000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:27.686597 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:31.709861 GUI: Machine-window #0 deactivated
00:00:31.709926 GUI: Releasing mouse on focus out
00:00:31.709935 GUI: Releasing keyboard on focus out
00:00:31.710628 GUI: Machine-view #0 unfocused, reason=3

在此处输入图片描述

答案1

解决了为源自物理 USB 的虚拟磁盘选择 AHCI 控制器的问题。

相关内容