-
Notifications
You must be signed in to change notification settings - Fork 46
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
Arch not booting with Booster when running as a Hyper-V guest, gets stuck on empty screen with text input. #196
Comments
It looks like booster is unable to load some required modules. Start with using |
@anatol Here is the output that I can see when stops with the Not sure if this is at all useful but out of curiosity I also built an initramfs with |
For these screenshots - is there any chance to get the logs from the very beginning of the boot? Like a *.mov file you've posted in the first comment? And in addition to this - could you please boot with dracut and then post the output of |
I found the missing module: Side note; It appears that the compressed file extension has to be included, contrary to the documentation, or it can't find the module, alternatively entering the parent folder with the trailing lsmod output when booted with Dracut
lsmod output when booted with Booster with described config
dmesg output from Booster with described config
I tried getting a recording of the boot process, but even at 60fps I only get 3 frames of output, the first one shows a very cropped part of the center of the screen, the second one shows the same output as the first, this time the entire contents of the screen, the third one is where it hangs. The exact content of frames 1/2 changes every recording attempt, but both frames always show parts of the same text output. Here is an example recording, I made 5 of them which show different output, if you are interested I can upload them. A feature to slow down the output in debug mode would be useful for these situations. Attempt.1.mp4Edit: Oh man, posting these long logs is an absolute pain, especially when putting them in a dropdown thingy! I'll just attach them as a text file next time 😅. Not sure if I mentioned it, but I am using an AMD Ryzen 5900x processor, I know that the host CPU is to some extent affecting VMs, I haven't tested this on an Intel CPU, in case that might be a factor. Edit 2; Also, about the recording, if you want to see all the frames, you either have to view it using a suitable program that can move frame-by-frame (like MPV), or scroll forward in the embed here, scrolling backwards doesn't show all the frames. The video is very short so the timeline is wide enough to allow viewing all frames with the mouse. |
You specify the module either by name:
|
HYPER-V vm needs kernel/drivers/scsi/hv_storvsc for its storage subsystem. Add this (and all other scsi drivers) to the the generator's default modules list. Fixes: #196
To fix your problem booster needs to detect all modules required for boot. In your case it is MS HyperV modules. The most important of them is the storage driver SCSI drivers are related to storage hardware and it makes sense to add all of them to the list of "modules checked by default". I pushed a proposed fix to the |
I modified the Thanks for looking into this! |
Was the problem in the end that it couldn't find any storage devices due to lack of SCSI module? Shouldn't this usually spit out an error? |
The SCSI modules were not packet to the image by default. With the patch above booster does it now. And it fixes the problem.
booster does not really know in advance what modules are needed to get the root filesystem mounted. The root is usually specified by its path or UUID and we do not know exactly on what disk it lives - it could be nvme or SCSI or ATA. Booster basically processes udev events until it finds the root partition. Some of the non-matched udev rules are not processed and it is not an indication of error. |
Booster version
0.9-1
Host: Hyper-V running on Windows 11 22H2 (Hyper-V Manager Version
10.0.22621.1
)Virtual machine type: Generation 2 with secure boot disabled.
Note: I already encountered this issue earlier this year, back then on a recent Windows 10 version. It hasn't worked at any point that I am aware of. Booster works fine with the same machine on "bare metal".
Here are my systemd-boot entries:
I tried using a
--universal
image without success.vmconnect_HC5wpc9ve3.mp4
The video shows me first booting with Dracut, then attempting to boot with Booster. The video shows a normal bootup process with Dracut, but with Booster I end up on blank screen where I freely enter text, but without any response, even after waiting longer than shown here.
For this demonstration, the root partition is unencrypted BTRFS, so I am not expecting a password entry screen. When I tried it with an encrypted root partition, I got the same result and typing in the valid password there did nothing.
Please let me know if there is anything I can do to help diagnose the issue.
Edit: In the same VM, both Dracut and mkinitcpio work without issues out of the box.
The text was updated successfully, but these errors were encountered: