GNU bug report logs -
#28768
guix system vm Failed to install GRUB (EFI)
Previous Next
Full log
Message #22 received at 28768-done <at> debbugs.gnu.org (full text, mbox):
Hello!
Marius Bakke <mbakke <at> fastmail.com> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
[...]
>> Another option, in the meantime is this:
>>
>> diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
>> index 273a895be..f763b430b 100644
>> --- a/gnu/system/vm.scm
>> +++ b/gnu/system/vm.scm
>> @@ -565,6 +565,14 @@ environment with the store shared with the host. MAPPINGS is a list of
>> user-file-systems)))
>>
>> (operating-system (inherit os)
>> +
>> + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware),
>> + ;; force the traditional i386/BIOS method.
>> + ;; See <https://bugs.gnu.org/28768>.
>> + (bootloader (bootloader-configuration
>> + (bootloader grub-bootloader)
>> + (target "/dev/vda")))
>> +
>> (initrd (lambda (file-systems . rest)
>> (apply base-initrd file-systems
>> #:volatile-root? #t
>>
>> That’s what I do manually anyway.
>>
>> WDYT? If that’s fine with you, I can commit it.
>
> LGTM!
Pushed as 9b396c0cabb086746cbe4ec20d4ae0d79962d758 (along with the
missing #:use-module clause that Oleg reported.)
I’m closing this bug. We can create a new issue when we add support for
UEFI in VMs.
Oleg Pykhalov <go.wigust <at> gmail.com> skribis:
> But I got another issue, not related to Grub.
>
> Loops in QEMU:
>
> …
> waiting for partition 'magnolia-data' to appear
> …
> failed to start service 'file-systems'
> …
This is expected: there’s no partition with that label in the VM.
You have to comment out the ‘file-system’ declaration because it doesn’t
make sense inside the VM. Perhaps ‘virtualized-operating-system’ could
do it automatically as well, not sure.
HTH,
Ludo’.
This bug report was last modified 7 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.