Closed isaprykin closed 9 months ago
This seems like a user-space configuration difference with the WSL2 image Canonical uses.
Also confirmed on Debian 11 (bullseye). Any workaround? wget
from somewhere?
sudo apt-get install -y bochsbios
and
sudo apt-get install -y vgabios
might help
try sudo apt-get install -y bochsbios and sudo apt-get install -y vgabios might help
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!
The file actually exists, but it's still an error like that.(Windows11)
Environment
Steps to reproduce
I install bochs on WSL2. When I run it bochs fails with
. /usr/share/bochs doesn't have the required files. When I install bochs in the same way on a freshly installed Ubuntu 20.04 LTS under VirtualBox bochs runs fine. /usr/share/bochs does have the required files.
installs vgabios under Virtualbox but it doesn't install vgabios under WSL2.
Ubuntu under VirtualBox:
WSL logs:
Expected behavior
results in
Actual behavior
results in
Installation logs that show the difference in vgabios:
Ubuntu 20.04 under WSL2
Ubuntu 20.04 under VirtualBox
Here is what it's like to run bochs without those files:
This is the Bochs Configuration Interface, where you can describe the machine that you want to simulate. Bochs has already searched for a configuration file (typically called bochsrc.txt) and loaded it if it could be found. When you are satisfied with the configuration, go ahead and start the simulation.
You can also start bochs with the -q option to skip these menus.
Please choose one: [2] 6 00000000000i[ ] lt_dlhandle is 0x558ef3774cc0 00000000000i[PLUGIN] loaded plugin libbx_x.so 00000000000i[ ] installing x module as the Bochs GUI 00000000000i[ ] Bochs x86 Emulator 2.6.11 00000000000i[ ] Built from SVN snapshot on January 5, 2020 00000000000i[ ] Timestamp: Sun Jan 5 08:36:00 CET 2020 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[ ] level: 6 00000000000i[ ] APIC support: xapic 00000000000i[ ] FPU support: yes 00000000000i[ ] MMX support: yes 00000000000i[ ] 3dnow! support: no 00000000000i[ ] SEP support: yes 00000000000i[ ] SIMD support: sse2 00000000000i[ ] XSAVE support: no 00000000000i[ ] AES support: no 00000000000i[ ] SHA support: no 00000000000i[ ] MOVBE support: no 00000000000i[ ] ADX support: no 00000000000i[ ] x86-64 support: yes 00000000000i[ ] 1G paging support: no 00000000000i[ ] MWAIT support: yes 00000000000i[ ] VMX support: 1 00000000000i[ ] SVM support: no 00000000000i[ ] Optimization configuration 00000000000i[ ] RepeatSpeedups support: yes 00000000000i[ ] Fast function calls: yes 00000000000i[ ] Handlers Chaining speedups: no 00000000000i[ ] Devices configuration 00000000000i[ ] PCI support: i440FX i430FX i440BX 00000000000i[ ] Networking support: NE2000 E1000 00000000000i[ ] Sound support: SB16 ES1370 00000000000i[ ] USB support: UHCI OHCI EHCI xHCI 00000000000i[ ] VGA extension support: vbe cirrus voodoo 00000000000i[MEM0 ] allocated memory at 0x7fdac6434010. after alignment, vector=0x7fdac6435000 00000000000i[MEM0 ] 32.00MB 00000000000i[MEM0 ] mem block size = 0x00020000, blocks=256 00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/share/bochs/BIOS-bochs-latest') 00000000000i[ ] lt_dlhandle is 0x558ef3775a50 00000000000i[PLUGIN] loaded plugin libbx_hdimage.so 00000000000i[ ] lt_dlhandle is 0x558ef3db5490 00000000000i[PLUGIN] loaded plugin libbx_soundalsa.so ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default 00000000000i[ ] lt_dlhandle is 0x558ef3dcf5f0 00000000000i[PLUGIN] loaded plugin libbx_pci.so 00000000000i[ ] lt_dlhandle is 0x558ef3dcf540 00000000000i[PLUGIN] loaded plugin libbx_pci2isa.so 00000000000i[ ] lt_dlhandle is 0x558ef3db6030 00000000000i[PLUGIN] loaded plugin libbx_usb_uhci.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddafd0 00000000000i[PLUGIN] loaded plugin libbx_acpi.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddb7b0 00000000000i[PLUGIN] loaded plugin libbx_hpet.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddc620 00000000000i[PLUGIN] loaded plugin libbx_cmos.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddce10 00000000000i[PLUGIN] loaded plugin libbx_dma.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddd860 00000000000i[PLUGIN] loaded plugin libbx_pic.so 00000000000i[ ] lt_dlhandle is 0x558ef3dde0c0 00000000000i[PLUGIN] loaded plugin libbx_pit.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddeac0 00000000000i[PLUGIN] loaded plugin libbx_vga.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddf320 00000000000i[PLUGIN] loaded plugin libbx_floppy.so 00000000000i[ ] lt_dlhandle is 0x558ef3ddfed0 00000000000i[PLUGIN] loaded plugin libbx_ioapic.so 00000000000i[ ] lt_dlhandle is 0x558ef3de07f0 00000000000i[PLUGIN] loaded plugin libbx_keyboard.so 00000000000i[ ] lt_dlhandle is 0x558ef3de0fc0 00000000000i[PLUGIN] loaded plugin libbx_harddrv.so 00000000000i[ ] lt_dlhandle is 0x558ef3de3220 00000000000i[PLUGIN] loaded plugin libbx_pci_ide.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: Thu Dec 31 13:26:09 2020 (time0=1609449969) 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=200000, mode=realtime 00000000000i[VGA ] VSYNC using standard mode 00000000000i[MEM0 ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff 00000000000i[BXVGA ] VBE Bochs Display Extension Enabled 00000000000i[XGUI ] test_alloc_colors: 16 colors available out of 16 colors tried 00000000000i[XGUI ] font 8 wide x 16 high, display depth = 24 00000000000p[MEM0 ] >>PANIC<< ROM: couldn't open ROM image file '/usr/share/bochs/VGABIOS-lgpl-latest'.
Bochs is exiting with the following message: [MEM0 ] ROM: couldn't open ROM image file '/usr/share/bochs/VGABIOS-lgpl-latest'.
00000000000i[CPU0 ] CPU is in real mode (active) 00000000000i[CPU0 ] CS.mode = 16 bit 00000000000i[CPU0 ] SS.mode = 16 bit 00000000000i[CPU0 ] EFER = 0x00000000 00000000000i[CPU0 ] | EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000000 00000000000i[CPU0 ] | ESP=00000000 EBP=00000000 ESI=00000000 EDI=00000000 00000000000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf 00000000000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D 00000000000i[CPU0 ] | CS:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | DS:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | SS:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | ES:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | FS:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | GS:0000( 0000| 0| 0) 00000000 00000000 0 0 00000000000i[CPU0 ] | EIP=00000000 (00000000) 00000000000i[CPU0 ] | CR0=0x00000000 CR2=0x00000000 00000000000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000 (0).[0] [0x000000000000] 0000:0000 (unk. ctxt): add byte ptr ds:[bx+si], al ; 0000 00000000000i[SIM ] quit_sim called with exit code 1