-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running in VirtualBox #56
Comments
After doing a little more research it seems like the right approach is to try to create a bootable ISO file from the bin file, but there seem to be many ways to do that and I'm not sure what I should try. Many of them seem to involve a separate bootloader, but as I understand it |
Some progress on the VDI approach. After manually padding the
I was able to get the VM to start up by mounting that VDI under the IDE Hard Disk. But it crashes immediately. All I see on screen is
Tried searching for that error but just got a bunch of generic problems. |
Looking through the logs more I think it may be a triple fault that's the root error. |
Sorry for replying so late! It sounds like we do something in the bootloader that VirtualBox doesn't like. Maybe it's our use of unreal mode, but I'm not sure about that. Unfortunately, I don't have time to help debugging this at the moment. We're currently planning a rewrite of the bootloader which might solve these issues, but it still in an early stage so it won't be ready anytime soon. |
No problem, this was mostly just an experiment for me to see if I could get my OS running in a different environment. I'll just try again later with the new bootloader. |
This might be fixed by rust-osdev/bootloader#123. Could someone test this? |
I tried this again, manually padding the
The rest after that seems to be lots of VM state dump info. |
Is there any evidence that this approach of padding and converting to VDI is the right path to go down? Or could that be the real source of the issues? The fact that I see the |
With bootloader 0.9.6 I was able to boot on VirtualBox using both
I didn't have to do any manual padding before converting the image, but I did change some of the default settings when configuring the VM. Using the unknown 64 bit OS template I disabled I/O APIC, USB, soundcard, network card and other stuff that is unused. |
Thanks @rsribeiro I can confirm that it also works for me, I used the second command. |
The second command works for me now as well, I realized I just hadn't updated to the latest version of |
Hello, loving this tool and your blog series!
I've been trying to get the image files built by
bootimage
to run in VirtualBox to no avail. I looked through the comments on Minimal Rust Kernel and found #7 which added an option that would make files that would be convertible to VDI format, but it seems that option has since been removed. Trying to create a VDI file at the moment results in:Somewhere someone suggested just padding the file with zeroes up to 4MB. I tried that and was able to convert to VDI successfully, but when I tried to load the VDI in VirtualBox I got:
Are there other options or things I should try? If
bootimage
was just never meant to work with VirtualBox that's a fine answer too.Thanks!
The text was updated successfully, but these errors were encountered: