Bochs 3.0 启动过程的详解分析(一次失败的启动经历)

先看下面的内容:

sudo bochs -f /etc/bochsrc -q
00000000000i[      ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/local/lib/bochs/plugins'
========================================================================
                     Bochs x86 Emulator 3.0.devel
             Built from GitHub snapshot after release 3.0
                  Compiled on Oct 29 2025 at 11:48:33
========================================================================
00000000000i[      ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
00000000000i[      ] lt_dlhandle is 0x55a60697a430
00000000000i[PLUGIN] loaded plugin libbx_parallel.so
00000000000i[      ] lt_dlhandle is 0x55a60697c110
00000000000i[PLUGIN] loaded plugin libbx_gameport.so
00000000000i[      ] lt_dlhandle is 0x55a60697c9c0
00000000000i[PLUGIN] loaded plugin libbx_speaker.so
00000000000i[      ] lt_dlhandle is 0x55a60697da90
00000000000i[PLUGIN] loaded plugin libbx_biosdev.so
00000000000i[      ] lt_dlhandle is 0x55a60697e2d0
00000000000i[PLUGIN] loaded plugin libbx_unmapped.so
00000000000i[      ] lt_dlhandle is 0x55a60697eb40
00000000000i[PLUGIN] loaded plugin libbx_extfpuirq.so
00000000000i[      ] lt_dlhandle is 0x55a60697f310
00000000000i[PLUGIN] loaded plugin libbx_serial.so
00000000000i[      ] reading configuration from /etc/bochsrc
magic breakpoint mask: 0x0 
magic breakpoint mask: 0x8 bx 
00000000000i[      ] lt_dlhandle is 0x55a606984a10
00000000000i[PLUGIN] loaded plugin libbx_sb16.so
00000000000i[      ] lt_dlhandle is 0x55a606983810
00000000000i[PLUGIN] loaded plugin libbx_textconfig.so
00000000000i[      ] lt_dlhandle is 0x55a606983ef0
00000000000i[PLUGIN] loaded plugin libbx_sdl2_gui.so
00000000000i[      ] installing sdl2 module as the Bochs GUI
00000000000i[SDL2  ] maximum host resolution: x=4096 y=2160
00000000000i[      ] Bochs x86 Emulator 3.0.devel
00000000000i[      ]   Built from GitHub snapshot after release 3.0
00000000000i[      ]   Compiled on Oct 29 2025 at 11:48:33
00000000000i[      ] System configuration
00000000000i[      ]   processors: 1 (cores=1, HT threads=1)
00000000000i[      ]   A20 line support: yes
00000000000i[      ] IPS is set to 4000000
00000000000i[      ] CPU configuration
00000000000i[      ]   SMP support: yes, quantum=16
00000000000i[      ]   Using pre-defined CPU configuration: corei7_haswell_4770
00000000000i[      ] Optimization configuration
00000000000i[      ]   RepeatSpeedups support: yes
00000000000i[      ]   Fast function calls: yes
00000000000i[      ]   Handlers Chaining speedups: yes
00000000000i[      ] Devices configuration
00000000000i[      ]   PCI support: i440FX i430FX i440BX
00000000000i[      ]   Network devices support: NE2000 E1000
00000000000i[      ]   Sound support: SB16 ES1370
00000000000i[      ]   USB support: UHCI OHCI xHCI
00000000000i[      ]   VGA extension support: vbe cirrus voodoo
00000000000i[IMG   ] Disk image modules
00000000000i[IMG   ]   flat concat sparse dll growing undoable volatile vpc
00000000000i[IMG   ]   vmware3 vmware4 vvfat vbox
00000000000i[NETCTL] Networking modules
00000000000i[NETCTL]   null socket slirp vnet linux vde tuntap
00000000000i[SNDCTL] Sound drivers
00000000000i[SNDCTL]   dummy oss alsa sdl file pulse
00000000000i[USBCTL] Pluggable USB devices
00000000000i[USBCTL]   hub disk cdrom floppy printer mouse tablet keypad
00000000000i[USBCTL]   keyboard
00000000000i[MEM0  ] allocated memory at 0x7f1aca5dd010. after alignment, vector=0x7f1aca5de000, block_size = 128K
00000000000i[MEM0  ] 256.00MB
00000000000i[MEM0  ] mem block size = 0x00020000, blocks=2048
00000000000i[MEM0  ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest')
00000000000i[CPU0  ] You must compile with --enable-vmx=2 for Intel Core i7 Haswell VMX configuration
00000000000i[CPU0  ] WARNING: RDRAND would not produce true random numbers !
00000000000i[CPU0  ] initialized CPU model corei7_haswell_4770
00000000000i[DEV   ] will paste characters every 100 iodev timer ticks
00000000000i[      ] lt_dlhandle is 0x55a6069c5a40
00000000000i[PLUGIN] loaded plugin libbx_soundalsa.so
00000000000i[WAVOUT] ALSA: opened default PCM output device
00000000000i[WAVOUT] changed sample rate to 48000
00000000000i[      ] lt_dlhandle is 0x55a6070d5780
00000000000i[PLUGIN] loaded plugin libbx_pci.so
00000000000i[      ] lt_dlhandle is 0x55a6070d5060
00000000000i[PLUGIN] loaded plugin libbx_pci2isa.so
00000000000i[      ] lt_dlhandle is 0x55a6070c00d0
00000000000i[PLUGIN] loaded plugin libbx_usb_uhci.so
00000000000i[      ] lt_dlhandle is 0x55a6070e8670
00000000000i[PLUGIN] loaded plugin libbx_acpi.so
00000000000i[      ] lt_dlhandle is 0x55a6070e9190
00000000000i[PLUGIN] loaded plugin libbx_hpet.so
00000000000i[      ] lt_dlhandle is 0x55a6070e9ff0
00000000000i[PLUGIN] loaded plugin libbx_cmos.so
00000000000i[      ] lt_dlhandle is 0x55a6070ea7f0
00000000000i[PLUGIN] loaded plugin libbx_dma.so
00000000000i[      ] lt_dlhandle is 0x55a6070eb140
00000000000i[PLUGIN] loaded plugin libbx_pic.so
00000000000i[      ] lt_dlhandle is 0x55a6070eb920
00000000000i[PLUGIN] loaded plugin libbx_pit.so
00000000000i[      ] lt_dlhandle is 0x55a6070ec2d0
00000000000i[PLUGIN] loaded plugin libbx_vga.so
00000000000i[      ] lt_dlhandle is 0x55a6070ed860
00000000000i[PLUGIN] loaded plugin libbx_floppy.so
00000000000i[      ] lt_dlhandle is 0x55a6070ee650
00000000000i[PLUGIN] loaded plugin libbx_ioapic.so
00000000000i[      ] lt_dlhandle is 0x55a6070eee30
00000000000i[PLUGIN] loaded plugin libbx_keyboard.so
00000000000i[      ] lt_dlhandle is 0x55a6070ef720
00000000000i[PLUGIN] loaded plugin libbx_pci_ide.so
00000000000i[      ] lt_dlhandle is 0x55a6070f0170
00000000000i[PLUGIN] loaded plugin libbx_harddrv.so
00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[DEV   ] i440FX PMC present at device 0, function 0
00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS  ] Using local time for initial clock
00000000000i[CMOS  ] Setting initial clock to: Wed Oct 29 13:21:34   2025 tz=utc (time0=1761744094)
00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA   ] channel 4 used by cascade
00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0  ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff
00000000000i[VGA   ] interval=100000, mode=realtime
00000000000i[VGA   ] Setting VGA update interval to 100000 (10.0 Hz)
00000000000i[VGA   ] VSYNC using standard mode
00000000000i[MEM0  ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff
00000000000i[BXVGA ] VBE Bochs Display Extension Enabled (16 MB)
00000000000i[KEYMAP] Loading keymap from '/usr/local/share/bochs/keymaps/sdl2-pc-us.map'
00000000000i[KEYMAP] Loaded 147 symbols
00000000000i[MEM0  ] rom at 0xc0000/39424 ('/usr/local/share/bochs/vgabios-cirrus.bin-1.13.0')
00000000000i[PLUGIN] init_dev of 'floppy' plugin device by virtual method
00000000000i[DMA   ] channel 2 used by Floppy Drive
00000000000i[FLOPPY] fd0: '/os/sources/hucos/hucos.img' ro=0, h=2,t=80,spt=18
00000000000i[FLOPPY] Using boot sequence disk, none, none
00000000000i[FLOPPY] Floppy boot signature check is enabled
00000000000i[PLUGIN] init_dev of 'acpi' plugin device by virtual method
00000000000i[DEV   ] ACPI Controller present at device 1, function 3
00000000000i[PLUGIN] init_dev of 'hpet' plugin device by virtual method
00000000000i[HPET  ] initializing HPET
00000000000i[MEM0  ] Register memory access handlers: 0x0000fed00000 - 0x0000fed003ff
00000000000i[PLUGIN] init_dev of 'ioapic' plugin device by virtual method
00000000000i[IOAPIC] initializing I/O APIC
00000000000i[MEM0  ] Register memory access handlers: 0x0000fec00000 - 0x0000fec00fff
00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000)
00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pci_ide' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI IDE controller present at device 1, function 1
00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR   ] parallel port 1 at 0x0378 irq 7
00000000000i[PLUGIN] init_dev of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'speaker' plugin device by virtual method
00000000000i[PCSPK ] Using lowlevel sound support for output
00000000000i[PLUGIN] init_dev of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'serial' plugin device by virtual method
00000000000i[SER   ] com1 at 0x03f8 irq 4 (mode: null)
00000000000i[PLUGIN] init_dev of 'sb16' plugin device by virtual method
00000000000i[SB16  ] midi=1,'/dev/midi00'  wave=1,'/dev/dsp'  log=2,'/dev/stdout'  dmatimer=600000
00000000000i[DMA   ] channel 1 used by SB16
00000000000 (1) SB16 emulation initialised, IRQ 5, IO 220/330/388, DMA 1/0
00000000000i[PLUGIN] init_dev of 'usb_uhci' plugin device by virtual method
00000000000i[DEV   ] USB UHCI present at device 1, function 2
00000000000i[UHCI  ] USB UHCI initialized
00000000000i[PLUGIN] register state of 'pci' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] register state of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] register state of 'dma' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pit' plugin device by virtual method
00000000000i[PLUGIN] register state of 'vga' plugin device by virtual method
00000000000i[PLUGIN] register state of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] register state of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] register state of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] register state of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] register state of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] register state of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] register state of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] register state of 'serial' plugin device by virtual method
00000000000i[PLUGIN] register state of 'sb16' plugin device by virtual method
00000000000i[PLUGIN] register state of 'usb_uhci' plugin device by virtual method
00000000000i[PLUGIN] register state of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] register state of 'hpet' plugin device by virtual method
00000000000i[PLUGIN] register state of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci_ide' plugin device by virtual method
00000000000i[PLUGIN] register state of 'harddrv' plugin device by virtual method
00000000000i[SYS   ] bx_pc_system_c::Reset(HARDWARE) called
00000000000i[CPU0  ] cpu hardware reset
00000000000i[APIC0 ] allocate APIC id=0 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU0  ] CPU[0] is the bootstrap processor
00000000000i[CPU0  ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU0  ] CPUID[0x00000001]: 000306c3 00010800 77faf39f bfebfbff
00000000000i[CPU0  ] CPUID[0x00000002]: 76036301 00f0b5ff 00000000 00c10000
00000000000i[CPU0  ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU0  ] CPUID[0x00000005]: 00000040 00000040 00000003 00042120
00000000000i[CPU0  ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU0  ] CPUID[0x00000007]: 00000000 000027ab 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU0  ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU0  ] CPUID[0x0000000b]: 00000001 00000001 00000100 00000000
00000000000i[CPU0  ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU0  ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000001]: 00000000 00000000 00000121 2c100000
00000000000i[CPU0  ] CPUID[0x80000002]: 65746e49 2952286c 726f4320 4d542865
00000000000i[CPU0  ] CPUID[0x80000003]: 37692029 3737342d 50432030 20402055
00000000000i[CPU0  ] CPUID[0x80000004]: 30342e33 007a4847 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU0  ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU0  ] CPUID[0x80000008]: 00003028 00000200 00000000 00000000
00000000000i[CPU0  ] CPU Features supported:
00000000000i[CPU0  ]            x87
00000000000i[CPU0  ]            486ni
00000000000i[CPU0  ]            pentium_ni
00000000000i[CPU0  ]            p6ni
00000000000i[CPU0  ]            mmx
00000000000i[CPU0  ]            debugext
00000000000i[CPU0  ]            vme
00000000000i[CPU0  ]            pse
00000000000i[CPU0  ]            pae
00000000000i[CPU0  ]            pge
00000000000i[CPU0  ]            mtrr
00000000000i[CPU0  ]            pat
00000000000i[CPU0  ]            sysenter_sysexit
00000000000i[CPU0  ]            clflush
00000000000i[CPU0  ]            sse
00000000000i[CPU0  ]            sse2
00000000000i[CPU0  ]            sse3
00000000000i[CPU0  ]            ssse3
00000000000i[CPU0  ]            sse4_1
00000000000i[CPU0  ]            sse4_2
00000000000i[CPU0  ]            popcnt
00000000000i[CPU0  ]            mwait
00000000000i[CPU0  ]            longmode
00000000000i[CPU0  ]            lm_lahf_sahf
00000000000i[CPU0  ]            nx
00000000000i[CPU0  ]            1g_pages
00000000000i[CPU0  ]            cmpxhg16b
00000000000i[CPU0  ]            rdtscp
00000000000i[CPU0  ]            xsave
00000000000i[CPU0  ]            xsaveopt
00000000000i[CPU0  ]            aes_pclmulqdq
00000000000i[CPU0  ]            movbe
00000000000i[CPU0  ]            fsgsbase
00000000000i[CPU0  ]            avx
00000000000i[CPU0  ]            avx2
00000000000i[CPU0  ]            avx_f16c
00000000000i[CPU0  ]            avx_fma
00000000000i[CPU0  ]            lzcnt
00000000000i[CPU0  ]            bmi1
00000000000i[CPU0  ]            bmi2
00000000000i[CPU0  ]            rdrand
00000000000i[CPU0  ]            smep
00000000000i[CPU0  ]            xapic
00000000000i[CPU0  ]            x2apic
00000000000i[CPU0  ]            pcid
00000000000i[CPU0  ]            invpcid
00000000000i[CPU0  ]            tsc_adjust
00000000000i[CPU0  ]            tsc_deadline
00000000000i[CPU0  ]            fcs_fds_deprecation
00000000000i[PLUGIN] reset of 'pci' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] reset of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] reset of 'dma' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pit' plugin device by virtual method
00000000000i[PLUGIN] reset of 'vga' plugin device by virtual method
00000000000i[DDC   ] Using default EDID for resolution 1920x1200
00000000000i[PLUGIN] reset of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] reset of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] reset of 'hpet' plugin device by virtual method
00000000000i[PLUGIN] reset of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci_ide' plugin device by virtual method
00000000000i[PLUGIN] reset of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] reset of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] reset of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] reset of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] reset of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] reset of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] reset of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] reset of 'serial' plugin device by virtual method
00000000000i[PLUGIN] reset of 'sb16' plugin device by virtual method
00000000000i[PLUGIN] reset of 'usb_uhci' plugin device by virtual method
00000001734i[BIOS  ] BIOS BUILD DATE: 05/15/25
00000314444i[KBD   ] reset-disable command received
00000316429i[BIOS  ] Starting rombios32
00000316867i[BIOS  ] Shutdown flag 0
00000317475i[BIOS  ] ram_size=0x10000000
00000317930i[BIOS  ] ram_end=256MB
00000358702i[BIOS  ] Found 1 cpu(s)
00000372695i[BIOS  ] bios_table_addr: 0x000fa1d8 end=0x000fcc00
00000700522i[PCI   ] i440FX PMC write to PAM register 59 (TLB Flush)
00001028469i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b
00001028493i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09
00001028517i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b
00001028541i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09
00001028553i[P2ISA ] write: ELCR2 = 0x0a
00001029323i[BIOS  ] PIIX3/PIIX4 init: elcr=00 0a
00001037348i[BIOS  ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600
00001039721i[BIOS  ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601
00001041926i[BIOS  ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101
00001042191i[PIDE  ] BAR #4: i/o base address = 0xc000
00001042808i[BIOS  ] region 4: 0x0000c000
00001044837i[BIOS  ] PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020 class=0x0c03
00001045079i[UHCI  ] BAR #4: i/o base address = 0xc020
00001045696i[BIOS  ] region 4: 0x0000c020
00001045836i[UHCI  ] new IRQ line = 9
00001047740i[BIOS  ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680
00001048083i[ACPI  ] new PM base address: 0xb000
00001048098i[ACPI  ] new SM base address: 0xb100
00001048126i[PCI   ] setting SMRAM control register to 0x4a
00001212263i[CPU0  ] Enter to System Management Mode
00001212263i[CPU0  ] enter_system_management_mode: temporary disable VMX while in SMM mode
00001212273i[CPU0  ] RSM: Resuming from System Management Mode
00001376327i[PCI   ] setting SMRAM control register to 0x0a
00001391725i[BIOS  ] MP table addr=0x000fa2b0 MPC table addr=0x000fa1e0 size=0xc8
00001393457i[BIOS  ] SMBIOS table addr=0x000fa2c0
00001394173i[BIOS  ] HPET present at 0xfed00000
00001396251i[BIOS  ] ACPI tables: RSDP addr=0x000fa3f0 ACPI DATA addr=0x0fff0000 size=0xff8
00001399252i[BIOS  ] Firmware waking vector 0xfff00cc
00001401509i[PCI   ] i440FX PMC write to PAM register 59 (TLB Flush)
00001402242i[BIOS  ] bios_table_cur_addr: 0x000fa414
00001521862i[BIOS  ] Start SeaVGABIOS (version 1.13.0-20191228_205600-linux-b3qz)
00001523284i[BIOS  ] VGABUILD: gcc: (SUSE Linux) 7.4.1 20190905 [gcc-7-branch revision 275407] binut
00001524336i[BIOS  ] ls: (GNU Binutils; openSUSE Leap 15.1) 2.32.0.20190909-lp151.3.3
00001524722i[BIOS  ] enter vga_post:
00001527119i[BIOS  ]    a=6000f000  b=00000000  c=0009c000  d=00000402 ds=0000 es=f000 ss=0000
00001529559i[BIOS  ]   si=000e417b di=00009f90 bp=0000fff2 sp=0000fff4 cs=f000 ip=a079  f=0003
00001529898i[BIOS  ] cirrus init
00001531012i[BIOS  ] Failed to initialize VGA hardware.  Exiting.
00013629458i[BIOS  ] int13_harddisk: function 02, unmapped device for ELDL=80
00013634154p[BIOS  ] >>PANIC<< No bootable device.
00013634154i[CPU0  ] CPU is in real mode (active)
00013634154i[CPU0  ] CS.mode = 16 bit
00013634154i[CPU0  ] SS.mode = 16 bit
00013634154i[CPU0  ] EFER = 0x00000000: ffxsr nxe lma lme sce
00013634154i[CPU0  ] XCR0=0x00000001: tiledata tilecfg hwp lbr uintr hdc cet_s cet_u pasid pkru pt hi_zmm zmm_hi256 opmask bndcfg bndregs ymm sse FPU
00013634154i[CPU0  ] | EAX=8000040a  EBX=0000cd24  ECX=00090004  EDX=00000402
00013634154i[CPU0  ] | ESP=0000ffa8  EBP=0000ffac  ESI=000e0000  EDI=0000ffac
00013634154i[CPU0  ] | EFLAGS=00000046: id vip vif ac vm rf nt IOPL=0 of df if tf sf ZF af PF cf
00013634154i[CPU0  ] | SEG sltr(index|ti|rpl)     base    limit G D
00013634154i[CPU0  ] |  CS:f000( 0004| 0|  0) 000f0000 0000ffff 0 0
00013634154i[CPU0  ] |  DS:f000( 0005| 0|  0) 000f0000 0000ffff 0 0
00013634154i[CPU0  ] |  SS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00013634154i[CPU0  ] |  ES:07c0( 0005| 0|  0) 00007c00 0000ffff 0 0
00013634154i[CPU0  ] |  FS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00013634154i[CPU0  ] |  GS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00013634154i[CPU0  ] | EIP=00000512 (00000511)
00013634154i[CPU0  ] | CR0=0x60000010: pg CD NW ac wp ne ET ts em mp pe
00013634154i[CPU0  ] | CR2=0x00000000
00013634154i[CPU0  ] | CR3=0x00000000
00013634154i[CPU0  ] | CR4=0x00000000: lass uintr pks cet pke smap smep keylock osxsave pcid fsgsbase smx vmx la57 umip osxmmexcpt osfxsr pce pge mce pae pse de tsd pvi vme
00013634154i[CPU0  ] 0x0000000000000511>> out dx, al : EE
00013634154i[CMOS  ] Last time: 1761744097 tz=utc (Wed Oct 29 13:21:37   2025)
00013634154i[      ] restoring default signal behavior
========================================================================
Bochs is exiting with the following message:
[BIOS  ] No bootable device.
========================================================================
00013634154i[SIM   ] quit_sim called with exit code 1
                                                                                                                                                            
┌──(kali㉿kali)-[/applications/bochs/bochs]
└─$ sudo bochs -f /etc/bochsrc -q
00000000000i[      ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/local/lib/bochs/plugins'
========================================================================
                     Bochs x86 Emulator 3.0.devel
             Built from GitHub snapshot after release 3.0
                  Compiled on Oct 29 2025 at 11:48:33
========================================================================
00000000000i[      ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
00000000000i[      ] lt_dlhandle is 0x556d771c5430
00000000000i[PLUGIN] loaded plugin libbx_parallel.so
00000000000i[      ] lt_dlhandle is 0x556d771c7110
00000000000i[PLUGIN] loaded plugin libbx_gameport.so
00000000000i[      ] lt_dlhandle is 0x556d771c79c0
00000000000i[PLUGIN] loaded plugin libbx_speaker.so
00000000000i[      ] lt_dlhandle is 0x556d771c8a90
00000000000i[PLUGIN] loaded plugin libbx_biosdev.so
00000000000i[      ] lt_dlhandle is 0x556d771c92d0
00000000000i[PLUGIN] loaded plugin libbx_unmapped.so
00000000000i[      ] lt_dlhandle is 0x556d771c9b40
00000000000i[PLUGIN] loaded plugin libbx_extfpuirq.so
00000000000i[      ] lt_dlhandle is 0x556d771ca310
00000000000i[PLUGIN] loaded plugin libbx_serial.so
00000000000i[      ] reading configuration from /etc/bochsrc
magic breakpoint mask: 0x0 
magic breakpoint mask: 0x8 bx 
00000000000i[      ] lt_dlhandle is 0x556d771cfa10
00000000000i[PLUGIN] loaded plugin libbx_sb16.so
00000000000i[      ] lt_dlhandle is 0x556d771ce810
00000000000i[PLUGIN] loaded plugin libbx_textconfig.so
00000000000i[      ] lt_dlhandle is 0x556d771ceef0
00000000000i[PLUGIN] loaded plugin libbx_sdl2_gui.so
00000000000i[      ] installing sdl2 module as the Bochs GUI
00000000000i[SDL2  ] maximum host resolution: x=4096 y=2160
00000000000i[      ] Bochs x86 Emulator 3.0.devel
00000000000i[      ]   Built from GitHub snapshot after release 3.0
00000000000i[      ]   Compiled on Oct 29 2025 at 11:48:33
00000000000i[      ] System configuration
00000000000i[      ]   processors: 1 (cores=1, HT threads=1)
00000000000i[      ]   A20 line support: yes
00000000000i[      ] IPS is set to 4000000
00000000000i[      ] CPU configuration
00000000000i[      ]   SMP support: yes, quantum=16
00000000000i[      ]   Using pre-defined CPU configuration: corei7_haswell_4770
00000000000i[      ] Optimization configuration
00000000000i[      ]   RepeatSpeedups support: yes
00000000000i[      ]   Fast function calls: yes
00000000000i[      ]   Handlers Chaining speedups: yes
00000000000i[      ] Devices configuration
00000000000i[      ]   PCI support: i440FX i430FX i440BX
00000000000i[      ]   Network devices support: NE2000 E1000
00000000000i[      ]   Sound support: SB16 ES1370
00000000000i[      ]   USB support: UHCI OHCI xHCI
00000000000i[      ]   VGA extension support: vbe cirrus voodoo
00000000000i[IMG   ] Disk image modules
00000000000i[IMG   ]   flat concat sparse dll growing undoable volatile vpc
00000000000i[IMG   ]   vmware3 vmware4 vvfat vbox
00000000000i[NETCTL] Networking modules
00000000000i[NETCTL]   null socket slirp vnet linux vde tuntap
00000000000i[SNDCTL] Sound drivers
00000000000i[SNDCTL]   dummy oss alsa sdl file pulse
00000000000i[USBCTL] Pluggable USB devices
00000000000i[USBCTL]   hub disk cdrom floppy printer mouse tablet keypad
00000000000i[USBCTL]   keyboard
00000000000i[MEM0  ] allocated memory at 0x7f67731dd010. after alignment, vector=0x7f67731de000, block_size = 128K
00000000000i[MEM0  ] 256.00MB
00000000000i[MEM0  ] mem block size = 0x00020000, blocks=2048
00000000000i[MEM0  ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest')
00000000000i[CPU0  ] You must compile with --enable-vmx=2 for Intel Core i7 Haswell VMX configuration
00000000000i[CPU0  ] WARNING: RDRAND would not produce true random numbers !
00000000000i[CPU0  ] initialized CPU model corei7_haswell_4770
00000000000i[DEV   ] will paste characters every 100 iodev timer ticks
00000000000i[      ] lt_dlhandle is 0x556d77210a40
00000000000i[PLUGIN] loaded plugin libbx_soundalsa.so
00000000000i[WAVOUT] ALSA: opened default PCM output device
00000000000i[WAVOUT] changed sample rate to 48000
00000000000i[      ] lt_dlhandle is 0x556d77920780
00000000000i[PLUGIN] loaded plugin libbx_pci.so
00000000000i[      ] lt_dlhandle is 0x556d77920060
00000000000i[PLUGIN] loaded plugin libbx_pci2isa.so
00000000000i[      ] lt_dlhandle is 0x556d7790b0d0
00000000000i[PLUGIN] loaded plugin libbx_usb_uhci.so
00000000000i[      ] lt_dlhandle is 0x556d77933670
00000000000i[PLUGIN] loaded plugin libbx_acpi.so
00000000000i[      ] lt_dlhandle is 0x556d77934190
00000000000i[PLUGIN] loaded plugin libbx_hpet.so
00000000000i[      ] lt_dlhandle is 0x556d77934ff0
00000000000i[PLUGIN] loaded plugin libbx_cmos.so
00000000000i[      ] lt_dlhandle is 0x556d779357f0
00000000000i[PLUGIN] loaded plugin libbx_dma.so
00000000000i[      ] lt_dlhandle is 0x556d77936140
00000000000i[PLUGIN] loaded plugin libbx_pic.so
00000000000i[      ] lt_dlhandle is 0x556d77936920
00000000000i[PLUGIN] loaded plugin libbx_pit.so
00000000000i[      ] lt_dlhandle is 0x556d779372d0
00000000000i[PLUGIN] loaded plugin libbx_vga.so
00000000000i[      ] lt_dlhandle is 0x556d77938860
00000000000i[PLUGIN] loaded plugin libbx_floppy.so
00000000000i[      ] lt_dlhandle is 0x556d77939650
00000000000i[PLUGIN] loaded plugin libbx_ioapic.so
00000000000i[      ] lt_dlhandle is 0x556d77939e30
00000000000i[PLUGIN] loaded plugin libbx_keyboard.so
00000000000i[      ] lt_dlhandle is 0x556d7793a720
00000000000i[PLUGIN] loaded plugin libbx_pci_ide.so
00000000000i[      ] lt_dlhandle is 0x556d7793b170
00000000000i[PLUGIN] loaded plugin libbx_harddrv.so
00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[DEV   ] i440FX PMC present at device 0, function 0
00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS  ] Using local time for initial clock
00000000000i[CMOS  ] Setting initial clock to: Wed Oct 29 13:23:23   2025 tz=utc (time0=1761744203)
00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA   ] channel 4 used by cascade
00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0  ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff
00000000000i[VGA   ] interval=100000, mode=realtime
00000000000i[VGA   ] Setting VGA update interval to 100000 (10.0 Hz)
00000000000i[VGA   ] VSYNC using standard mode
00000000000i[MEM0  ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff
00000000000i[BXVGA ] VBE Bochs Display Extension Enabled (16 MB)
00000000000i[KEYMAP] Loading keymap from '/usr/local/share/bochs/keymaps/sdl2-pc-us.map'
00000000000i[KEYMAP] Loaded 147 symbols
00000000000i[MEM0  ] rom at 0xc0000/39424 ('/usr/local/share/bochs/vgabios-cirrus.bin-1.13.0')
00000000000i[PLUGIN] init_dev of 'floppy' plugin device by virtual method
00000000000i[DMA   ] channel 2 used by Floppy Drive
00000000000i[FLOPPY] fd0: '/os/sources/hucos/hucos.img' ro=0, h=2,t=80,spt=18
00000000000i[FLOPPY] Using boot sequence floppy, none, none
00000000000i[FLOPPY] Floppy boot signature check is enabled
00000000000i[PLUGIN] init_dev of 'acpi' plugin device by virtual method
00000000000i[DEV   ] ACPI Controller present at device 1, function 3
00000000000i[PLUGIN] init_dev of 'hpet' plugin device by virtual method
00000000000i[HPET  ] initializing HPET
00000000000i[MEM0  ] Register memory access handlers: 0x0000fed00000 - 0x0000fed003ff
00000000000i[PLUGIN] init_dev of 'ioapic' plugin device by virtual method
00000000000i[IOAPIC] initializing I/O APIC
00000000000i[MEM0  ] Register memory access handlers: 0x0000fec00000 - 0x0000fec00fff
00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000)
00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pci_ide' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI IDE controller present at device 1, function 1
00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR   ] parallel port 1 at 0x0378 irq 7
00000000000i[PLUGIN] init_dev of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'speaker' plugin device by virtual method
00000000000i[PCSPK ] Using lowlevel sound support for output
00000000000i[PLUGIN] init_dev of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'serial' plugin device by virtual method
00000000000i[SER   ] com1 at 0x03f8 irq 4 (mode: null)
00000000000i[PLUGIN] init_dev of 'sb16' plugin device by virtual method
00000000000i[SB16  ] midi=1,'/dev/midi00'  wave=1,'/dev/dsp'  log=2,'/dev/stdout'  dmatimer=600000
00000000000i[DMA   ] channel 1 used by SB16
00000000000 (1) SB16 emulation initialised, IRQ 5, IO 220/330/388, DMA 1/0
00000000000i[PLUGIN] init_dev of 'usb_uhci' plugin device by virtual method
00000000000i[DEV   ] USB UHCI present at device 1, function 2
00000000000i[UHCI  ] USB UHCI initialized
00000000000i[PLUGIN] register state of 'pci' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] register state of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] register state of 'dma' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pit' plugin device by virtual method
00000000000i[PLUGIN] register state of 'vga' plugin device by virtual method
00000000000i[PLUGIN] register state of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] register state of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] register state of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] register state of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] register state of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] register state of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] register state of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] register state of 'serial' plugin device by virtual method
00000000000i[PLUGIN] register state of 'sb16' plugin device by virtual method
00000000000i[PLUGIN] register state of 'usb_uhci' plugin device by virtual method
00000000000i[PLUGIN] register state of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] register state of 'hpet' plugin device by virtual method
00000000000i[PLUGIN] register state of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci_ide' plugin device by virtual method
00000000000i[PLUGIN] register state of 'harddrv' plugin device by virtual method
00000000000i[SYS   ] bx_pc_system_c::Reset(HARDWARE) called
00000000000i[CPU0  ] cpu hardware reset
00000000000i[APIC0 ] allocate APIC id=0 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU0  ] CPU[0] is the bootstrap processor
00000000000i[CPU0  ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU0  ] CPUID[0x00000001]: 000306c3 00010800 77faf39f bfebfbff
00000000000i[CPU0  ] CPUID[0x00000002]: 76036301 00f0b5ff 00000000 00c10000
00000000000i[CPU0  ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU0  ] CPUID[0x00000005]: 00000040 00000040 00000003 00042120
00000000000i[CPU0  ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU0  ] CPUID[0x00000007]: 00000000 000027ab 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU0  ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU0  ] CPUID[0x0000000b]: 00000001 00000001 00000100 00000000
00000000000i[CPU0  ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU0  ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000001]: 00000000 00000000 00000121 2c100000
00000000000i[CPU0  ] CPUID[0x80000002]: 65746e49 2952286c 726f4320 4d542865
00000000000i[CPU0  ] CPUID[0x80000003]: 37692029 3737342d 50432030 20402055
00000000000i[CPU0  ] CPUID[0x80000004]: 30342e33 007a4847 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU0  ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU0  ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU0  ] CPUID[0x80000008]: 00003028 00000200 00000000 00000000
00000000000i[CPU0  ] CPU Features supported:
00000000000i[CPU0  ]            x87
00000000000i[CPU0  ]            486ni
00000000000i[CPU0  ]            pentium_ni
00000000000i[CPU0  ]            p6ni
00000000000i[CPU0  ]            mmx
00000000000i[CPU0  ]            debugext
00000000000i[CPU0  ]            vme
00000000000i[CPU0  ]            pse
00000000000i[CPU0  ]            pae
00000000000i[CPU0  ]            pge
00000000000i[CPU0  ]            mtrr
00000000000i[CPU0  ]            pat
00000000000i[CPU0  ]            sysenter_sysexit
00000000000i[CPU0  ]            clflush
00000000000i[CPU0  ]            sse
00000000000i[CPU0  ]            sse2
00000000000i[CPU0  ]            sse3
00000000000i[CPU0  ]            ssse3
00000000000i[CPU0  ]            sse4_1
00000000000i[CPU0  ]            sse4_2
00000000000i[CPU0  ]            popcnt
00000000000i[CPU0  ]            mwait
00000000000i[CPU0  ]            longmode
00000000000i[CPU0  ]            lm_lahf_sahf
00000000000i[CPU0  ]            nx
00000000000i[CPU0  ]            1g_pages
00000000000i[CPU0  ]            cmpxhg16b
00000000000i[CPU0  ]            rdtscp
00000000000i[CPU0  ]            xsave
00000000000i[CPU0  ]            xsaveopt
00000000000i[CPU0  ]            aes_pclmulqdq
00000000000i[CPU0  ]            movbe
00000000000i[CPU0  ]            fsgsbase
00000000000i[CPU0  ]            avx
00000000000i[CPU0  ]            avx2
00000000000i[CPU0  ]            avx_f16c
00000000000i[CPU0  ]            avx_fma
00000000000i[CPU0  ]            lzcnt
00000000000i[CPU0  ]            bmi1
00000000000i[CPU0  ]            bmi2
00000000000i[CPU0  ]            rdrand
00000000000i[CPU0  ]            smep
00000000000i[CPU0  ]            xapic
00000000000i[CPU0  ]            x2apic
00000000000i[CPU0  ]            pcid
00000000000i[CPU0  ]            invpcid
00000000000i[CPU0  ]            tsc_adjust
00000000000i[CPU0  ]            tsc_deadline
00000000000i[CPU0  ]            fcs_fds_deprecation
00000000000i[PLUGIN] reset of 'pci' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] reset of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] reset of 'dma' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pit' plugin device by virtual method
00000000000i[PLUGIN] reset of 'vga' plugin device by virtual method
00000000000i[DDC   ] Using default EDID for resolution 1920x1200
00000000000i[PLUGIN] reset of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] reset of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] reset of 'hpet' plugin device by virtual method
00000000000i[PLUGIN] reset of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci_ide' plugin device by virtual method
00000000000i[PLUGIN] reset of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] reset of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] reset of 'gameport' plugin device by virtual method
00000000000i[PLUGIN] reset of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] reset of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] reset of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] reset of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] reset of 'serial' plugin device by virtual method
00000000000i[PLUGIN] reset of 'sb16' plugin device by virtual method
00000000000i[PLUGIN] reset of 'usb_uhci' plugin device by virtual method
00000001734i[BIOS  ] BIOS BUILD DATE: 05/15/25
00000314444i[KBD   ] reset-disable command received
00000316429i[BIOS  ] Starting rombios32
00000316867i[BIOS  ] Shutdown flag 0
00000317475i[BIOS  ] ram_size=0x10000000
00000317930i[BIOS  ] ram_end=256MB
00000358702i[BIOS  ] Found 1 cpu(s)
00000372695i[BIOS  ] bios_table_addr: 0x000fa1d8 end=0x000fcc00
00000700522i[PCI   ] i440FX PMC write to PAM register 59 (TLB Flush)
00001028469i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b
00001028493i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09
00001028517i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b
00001028541i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09
00001028553i[P2ISA ] write: ELCR2 = 0x0a
00001029323i[BIOS  ] PIIX3/PIIX4 init: elcr=00 0a
00001037348i[BIOS  ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600
00001039721i[BIOS  ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601
00001041926i[BIOS  ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101
00001042191i[PIDE  ] BAR #4: i/o base address = 0xc000
00001042808i[BIOS  ] region 4: 0x0000c000
00001044837i[BIOS  ] PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020 class=0x0c03
00001045079i[UHCI  ] BAR #4: i/o base address = 0xc020
00001045696i[BIOS  ] region 4: 0x0000c020
00001045836i[UHCI  ] new IRQ line = 9
00001047740i[BIOS  ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680
00001048083i[ACPI  ] new PM base address: 0xb000
00001048098i[ACPI  ] new SM base address: 0xb100
00001048126i[PCI   ] setting SMRAM control register to 0x4a
00001212263i[CPU0  ] Enter to System Management Mode
00001212263i[CPU0  ] enter_system_management_mode: temporary disable VMX while in SMM mode
00001212273i[CPU0  ] RSM: Resuming from System Management Mode
00001376327i[PCI   ] setting SMRAM control register to 0x0a
00001391725i[BIOS  ] MP table addr=0x000fa2b0 MPC table addr=0x000fa1e0 size=0xc8
00001393457i[BIOS  ] SMBIOS table addr=0x000fa2c0
00001394173i[BIOS  ] HPET present at 0xfed00000
00001396251i[BIOS  ] ACPI tables: RSDP addr=0x000fa3f0 ACPI DATA addr=0x0fff0000 size=0xff8
00001399252i[BIOS  ] Firmware waking vector 0xfff00cc
00001401509i[PCI   ] i440FX PMC write to PAM register 59 (TLB Flush)
00001402242i[BIOS  ] bios_table_cur_addr: 0x000fa414
00001521862i[BIOS  ] Start SeaVGABIOS (version 1.13.0-20191228_205600-linux-b3qz)
00001523284i[BIOS  ] VGABUILD: gcc: (SUSE Linux) 7.4.1 20190905 [gcc-7-branch revision 275407] binut
00001524336i[BIOS  ] ls: (GNU Binutils; openSUSE Leap 15.1) 2.32.0.20190909-lp151.3.3
00001524722i[BIOS  ] enter vga_post:
00001527119i[BIOS  ]    a=6000f000  b=00000000  c=0009c000  d=00000402 ds=0000 es=f000 ss=0000
00001529559i[BIOS  ]   si=000e417b di=00009f90 bp=0000fff2 sp=0000fff4 cs=f000 ip=a079  f=0003
00001529898i[BIOS  ] cirrus init
00001531012i[BIOS  ] Failed to initialize VGA hardware.  Exiting.
00013884459i[BIOS  ] Booting from 0000:7c00
00088112000p[SDL2  ] >>PANIC<< User requested shutdown.
00088112000i[CPU0  ] CPU is in real mode (active)
00088112000i[CPU0  ] CS.mode = 16 bit
00088112000i[CPU0  ] SS.mode = 16 bit
00088112000i[CPU0  ] EFER = 0x00000000: ffxsr nxe lma lme sce
00088112000i[CPU0  ] XCR0=0x00000001: tiledata tilecfg hwp lbr uintr hdc cet_s cet_u pasid pkru pt hi_zmm zmm_hi256 opmask bndcfg bndregs ymm sse FPU
00088112000i[CPU0  ] | EAX=8000aa55  EBX=00000000  ECX=00090000  EDX=00000000
00088112000i[CPU0  ] | ESP=0000ffd0  EBP=00000000  ESI=000e0000  EDI=0000ffac
00088112000i[CPU0  ] | EFLAGS=00000882: id vip vif ac vm rf nt IOPL=0 OF df if tf SF zf af pf cf
00088112000i[CPU0  ] | SEG sltr(index|ti|rpl)     base    limit G D
00088112000i[CPU0  ] |  CS:f000( 0004| 0|  0) 000f0000 0000ffff 0 0
00088112000i[CPU0  ] |  DS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00088112000i[CPU0  ] |  SS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00088112000i[CPU0  ] |  ES:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00088112000i[CPU0  ] |  FS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00088112000i[CPU0  ] |  GS:0000( 0005| 0|  0) 00000000 0000ffff 0 0
00088112000i[CPU0  ] | EIP=0000ff53 (00007c0f)
00088112000i[CPU0  ] | CR0=0x60000010: pg CD NW ac wp ne ET ts em mp pe
00088112000i[CPU0  ] | CR2=0x00000000
00088112000i[CPU0  ] | CR3=0x00000000
00088112000i[CPU0  ] | CR4=0x00000000: lass uintr pks cet pke smap smep keylock osxsave pcid fsgsbase smx vmx la57 umip osxmmexcpt osfxsr pce pge mce pae pse de tsd pvi vme
00088112000i[CPU0  ] 0x0000000000007c0f>> int1  : F1
00088112000i[CMOS  ] Last time: 1761744225 tz=utc (Wed Oct 29 13:23:45   2025)
00088112000i[      ] restoring default signal behavior
========================================================================
Bochs is exiting with the following message:
[SDL2  ] User requested shutdown.
========================================================================
00088112000i[SIM   ] quit_sim called with exit code 1
 

现在,我们来详细解读一下上面的 Bochs 启动日志。上面的 Bochs 启动日志 显示了 Bochs 在尝试启动一个基于 /etc/bochsrc 配置文件的虚拟机时失败的过程。

总体流程和最终结果:​

Bochs 启动 -> 加载配置和插件 -> 初始化硬件(CPU、内存、各种 PCI 设备如 IDE、USB、声卡、网卡、VGA 等)-> BIOS 执行自检和初始化 -> ​VGA 初始化失败​ -> BIOS 报告无启动设备并可能尝试从软盘启动 -> 最终 Bochs 因内部错误或 BIOS 请求而退出。

逐段解析 (以第一份日志为主,两份内容高度一致):​

  1. Bochs 启动和基本信息:​

    • sudo bochs -f /etc/bochsrc -q: 使用 sudo 权限,指定配置文件 /etc/bochsrc-q 表示安静模式(减少一些非必要输出,但这里输出依然很多,因为是启动过程)。
    • LTDL_LIBRARY_PATH not set. using compile time default...: Bochs 找不到用户设置的库路径,使用编译时的默认路径。
    • Bochs x86 Emulator 3.0.devel ... Compiled on Oct 29 2025 ...: 显示 Bochs 版本信息,这是一个开发版,编译日期是 2025 年(对于当前时间来说是未来,表明这可能是一个特定构建或示例时间戳)。
    • BXSHARE not set. using compile time default ...: 类似地,使用编译时的共享数据路径。
    • lt_dlhandle is ... loaded plugin ...: Bochs 动态加载了一系列插件,这些插件提供了对不同硬件的仿真支持,例如:
      • libbx_parallel.so (并口)
      • libbx_gameport.so (游戏端口)
      • libbx_speaker.so (PC 喇叭)
      • libbx_biosdev.so (BIOS 设备)
      • libbx_unmapped.so (未映射的 I/O 空间)
      • libbx_extfpuirq.so (扩展 FPU 中断请求)
      • libbx_serial.so (串口)
      • libbx_sb16.so (Sound Blaster 16 声卡)
      • libbx_textconfig.so (文本配置界面支持)
      • libbx_sdl2_gui.so (使用 SDL2 作为图形界面)
  2. SDL2 GUI 初始化:​

    • installing sdl2 module as the Bochs GUI: 确认将使用 SDL2 模块作为图形用户界面。
    • maximum host resolution: x=4096 y=2160: SDL2 报告主机支持的最大分辨率。
  3. 系统配置信息摘要:​

    • 显示了模拟的系统配置,如处理器数量、A20 地址线支持、IPS (每秒指令数)、CPU 配置 (使用预定义的 corei7_haswell_4770 模型)、优化选项、设备配置 (PCI、网络、声卡、USB、VGA 扩展支持)。
  4. 磁盘和模块信息:​

    • Disk image modules: 列出支持的磁盘镜像格式。
    • Networking modules: 列出支持的网络设备。
    • Sound drivers: 列出支持的声卡驱动。
    • Pluggable USB devices: 列出支持的 USB 设备类型。
  5. 插件初始化细节:​

    • 大量 PLUGIN init_dev of ... by virtual methodPLUGIN reset of ... by virtual method:这是 Bochs 对每个加载的插件设备进行初始化和重置。每个设备都会报告其状态。
    • 关键设备初始化:
      • pci: i440FX 主板芯片组。
      • pci2isa: PIIX3 PCI 到 ISA 桥接芯片。
      • cmos: CMOS 芯片,用于存储 BIOS 设置和实时时钟。Using local time for initial clock 表示使用本地时间初始化。
      • dma, pic, pit: DMA 控制器、可编程中断控制器、可编程间隔定时器。
      • vga: VGA 显卡。BXVGA ] VBE Bochs Display Extension Enabled (16 MB) 表示启用了 VBE (VESA BIOS Extensions)。
      • floppy: 软驱。fd0: '/os/sources/hucos/hucos.img' 指定了软盘镜像文件。Using boot sequence floppy, none, none 设置软驱为第一启动设备。
      • acpi, hpet: ACPI 和 HPET (高精度事件定时器)。
      • ioapic: I/O APIC (高级可编程中断控制器)。
      • keyboard: 键盘。
      • pci_ide: PCI IDE 控制器。
      • harddrv: 硬盘驱动器 (虽然日志里没明确列出硬盘镜像,但配置文件中可能有,或者这里指的是 IDE 控制器本身)。
      • sb16: Sound Blaster 16 声卡初始化细节。
  6. CPU 重置和识别:​

    • SYS bx_pc_system_c::Reset(HARDWARE) called: 系统调用硬件重置。
    • CPU0 cpu hardware reset: CPU 0 被重置。
    • 接下来是一长串 CPUID 指令的输出,显示了模拟的 CPU (corei7_haswell_4770) 的特性和支持的指令集。例如 SSE, SSE2, AVX, AVX2 等。
    • WARNING: RDRAND would not produce true random numbers !: 如果 Bochs 没有使用宿主机的真随机源,RDRAND 指令可能不会产生真正的随机数。
  7. BIOS 执行阶段:​

    • BIOS BUILD DATE: 05/15/25: 启动的 ROM BIOS 镜像的构建日期。
    • Starting rombios32: 开始执行 ROM BIOS 32位代码。
    • ram_size=0x10000000 (256MB), ram_end=256MB: 报告检测到的内存大小。
    • Found 1 cpu(s): 检测到 1 个 CPU。
    • PCI 设备枚举:PCI: bus=0 devfn=... vendor_id=... device_id=... class=...。这里可以看到模拟的 i440FX (主机桥) 和 PIIX3 (PCI-to-ISA 桥) 等设备。
    • PIIX3/PIIX4 init: elcr=00 0a: 初始化 PIIX4 的 ELCR (可编程中断控制器) 寄存器。
    • ACPI tables: RSDP addr=... ACPI DATA addr=...: 报告 ACPI 表的地址。
  8. 致命错误:VGA 初始化失败

    • Start SeaVGABIOS (version 1.13.0...): Bochs 尝试启动其内置的 SeaVGABIOS。
    • enter vga_post:: 进入 VGA 的 POST (加电自检) 程序。
    • cirrus init: 尝试初始化模拟的 Cirrus Logic VGA 硬件。
    • ​**00001531012i[BIOS ] Failed to initialize VGA hardware. Exiting.: ​这是导致启动失败的核心错误。​**​ BIOS 无法初始化模拟的 Cirrus VGA 显卡。
  9. 启动失败的后续:​

    • 00013629458i[BIOS ] int13_harddisk: function 02, unmapped device for ELDL=80: 由于 VGA 初始化失败,系统可能处于不稳定状态。BIOS 尝试从硬盘 (ELDL=80 通常指第一个硬盘) 读取扇区 (INT 13h, AH=02h),但设备未映射或不可用。这可能是因为系统在 VGA 初始化失败后提早中止了正常的启动流程,或者 BIOS 认为没有可用的显示设备,从而无法继续。
    • 00013634154p[BIOS ] >>PANIC<< No bootable device.: BIOS 检测到没有可启动的设备。这很可能是 VGA 初始化失败导致的连锁反应,因为没有显示输出,系统可能认为无法正常引导,或者 BIOS 自身在检测到关键硬件(如显示适配器)初始化失败后,就判定为无启动设备。
    • 接下来是 CPU 寄存器和状态的转储,显示 CPU 处于实模式。
  10. Bochs 退出:​

    • 00088112000i[CMOS ] Last time: ...: 记录 CMOS 时间。
    • 00088112000i[ ] restoring default signal behavior: 恢复默认的信号处理。
    • ========================================================================
    • Bochs is exiting with the following message: [SDL2 ] User requested shutdown.: Bochs 退出,并报告 "用户请求关闭"。在这种情况下,这通常意味着模拟环境中发生了严重错误(如 BIOS 报告的 "No bootable device" 或更早的 VGA 初始化失败),导致模拟的操作系统或 BIOS 请求了一个关机或复位,Bochs 据此终止运行。
    • 00088112000i[SIM ] quit_sim called with exit code 1: 模拟器核心被要求退出,返回码为 1 (通常表示错误)。

总结与可能原因:​

  1. 主要问题:VGA 初始化失败。​Failed to initialize VGA hardware. Exiting.
    • 这通常指向模拟的 Cirrus Logic VGA 显卡或其 BIOS (vgabios-cirrus.bin-1.13.0,从日志中的路径 /usr/local/share/bochs/vgabios-cirrus.bin-1.13.0 可以推断) 存在问题。
  2. 次要问题:无启动设备。​[BIOS ] No bootable device.
    • 这是 VGA 初始化失败后的结果。因为没有图形输出,或者 BIOS 在 VGA 初始化失败后进入了错误状态,它无法或认为不应该继续尝试从软盘 (hucos.img) 启动。
  3. Bochs 报告 "User requested shutdown":​
    • 这是 Bochs 对内部致命错误的最终处理方式,而不是字面上的用户按下了关机键。它响应了 BIOS 层面的失败。

可能的解决方案/排查方向:​

  1. 检查 Cirrus VGA BIOS 文件:​
    • 确认 /usr/local/share/bochs/vgabios-cirrus.bin-1.13.0 文件存在且没有损坏。可以尝试重新下载或从其他来源获取这个 BIOS 文件。
  2. 更新 Bochs:​
    • 你使用的 Bochs 是 3.0.devel,可能存在已知的 VGA 模拟 bug。尝试更新到最新的稳定版本或开发版本。
  3. Bochs 编译选项:​
    • 日志中提到了 --enable-vmx=2 的警告,但这通常不影响基本的 VGA 模拟。不过,确保 Bochs 是完整编译的。
  4. 尝试不同的 VGA 模式/ROM (如果可能):​
    • 虽然 Bochs 通常捆绑特定的 VGA ROM,但如果配置允许或有其他途径,可以尝试不同的 VGA 兼容模式或 ROM (例如,标准 VGA 或其他模拟的显卡类型,如果你的配置和目标系统支持)。但在你的配置中,似乎是明确使用了 Cirrus。
  5. 简化配置测试:​
    • 作为调试步骤,可以尝试一个非常简单的 Bochs 配置,只包含最基本的硬件(CPU、内存、一个软驱、一个基本的 VGA),看是否能启动。如果能,再逐步添加回你的配置项。
  6. 查看 Bochs 社区/bug追踪器:​
    • 搜索是否有其他人遇到过相同版本的 Bochs 和类似的 "Failed to initialize VGA hardware" 错误。

总的来说,这个日志清晰地指出了启动失败发生在 BIOS 尝试初始化模拟的 Cirrus VGA 显卡时。解决这个 VGA 初始化问题是让虚拟机继续启动的关键。

注:本次启动失败的重要原因,在于 选择了不合适的 vgabios 镜像,更换为 更为合适的 vgabios 镜像后,问题即可解决!例如:vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest.bin ,如需在 bochs3.0 devel 启动时,即进入调试模式,可以通过如下方式启动:

sudo bochs -f /etc/bochsrc -debugger -q
 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值