Post AH5RPaJIvRZSwTWh9M by tokudan@chaos.social
 (DIR) More posts by tokudan@chaos.social
 (DIR) Post #AH3aiPazUtoUU5vovY by xarvos@nixnet.social
       2022-03-04T03:44:00.865672Z
       
       0 likes, 0 repeats
       
       I’m installing #nixos on qemu following the manual and stuck at this.Anyone knows what’s going on here? Error text:updating GRUB 2 menu...installing the GRUB 2 boot loader on /dev/sda...Installing for i386-pc platform./nix/store/sdsxlkpmkgw2fjhnp8b63f4i53gw4gk4-grub-2.06/sbin/grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible./nix/store/sdsxlkpmkgw2fjhnp8b63f4i53gw4gk4-grub-2.06/sbin/grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged../nix/store/sdsxlkpmkgw2fjhnp8b63f4i53gw4gk4-grub-2.06/sbin/grub-install: error: will not proceed with blocklists./nix/store/k8r23ngm4ir0s20lavc7qdhhcw651a33-install-grub.pl: installation of GRUB on /dev/sda failed: No such file or directory[root_nixos_~]#Also i386-pc platformWhat :bunthink: I’m sure I downloaded an x86_64 image and running qemu-system-x86_64#ask 
       
 (DIR) Post #AH3c42vUYu34VAOuEy by xarvos@nixnet.social
       2022-03-04T03:57:17.560021Z
       
       0 likes, 0 repeats
       
       Also I'm sure sda is still there```# ls /dev/sd*/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3```
       
 (DIR) Post #AH3c9Ue8vV0LvEsp7o by xarvos@nixnet.social
       2022-03-04T03:57:30.855930Z
       
       0 likes, 0 repeats
       
       Also I’m sure sda is still there# ls /dev/sd*/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3
       
 (DIR) Post #AH3uIQBefs4Ns9xttQ by xarvos@nixnet.social
       2022-03-04T07:23:25.018505Z
       
       0 likes, 0 repeats
       
       Not sure about this but apparently it's because qemu does not use UEFI by default:https://www.ubuntubuzz.com/2021/04/how-to-boot-uefi-on-qemu.htmlhttps://superuser.com/questions/903112/grub2-install-this-gpt-partition-label-contains-no-bios-boot-partition
       
 (DIR) Post #AH3xm1Zx1ywS6N8Y4G by xarvos@nixnet.social
       2022-03-04T08:02:22.962281Z
       
       0 likes, 0 repeats
       
       Hmm still doesn't workalso> this GPT partition label contains no BIOS Boot Partition; embedding won't be possiblewot I created a boot partition
       
 (DIR) Post #AH41aXslV95EdAidGa by xarvos@nixnet.social
       2022-03-04T08:45:08.006567Z
       
       0 likes, 0 repeats
       
       Just wipe the disk and it works now? :flan_confused:
       
 (DIR) Post #AH4RnPFhUqy8RDEvs8 by xarvos@nixnet.social
       2022-03-04T13:38:47.299378Z
       
       0 likes, 0 repeats
       
       Feels like I'm ready for either renovating my system or breaking it beyond repair. Wish me luck :ablobcatbongo:
       
 (DIR) Post #AH4gqf04tv3nScwTmS by xarvos@nixnet.social
       2022-03-04T16:27:27.084770Z
       
       0 likes, 0 repeats
       
       Yay it didn't breakbut at what cost :meowTears:
       
 (DIR) Post #AH4i3obOc2CuxXEZHM by xarvos@nixnet.social
       2022-03-04T16:41:02.035939Z
       
       0 likes, 0 repeats
       
       wait wtf where is man page
       
 (DIR) Post #AH4igIl8w9ivUi92jQ by xarvos@nixnet.social
       2022-03-04T16:47:59.417140Z
       
       0 likes, 0 repeats
       
       I forgot to back up my music that I spent hours labeling :meowTears:
       
 (DIR) Post #AH5RPaJIvRZSwTWh9M by tokudan@chaos.social
       2022-03-05T00:35:47Z
       
       0 likes, 0 repeats
       
       @xarvos My guess would be that you're missing an EFI boot partition.Step 4 in the manual:https://nixos.org/manual/nixos/stable/index.html#sec-installation-partitioning-UEFIOr there could be some mismatch between booting via UEFI or legacy BIOS and your settings in configuration.nix.I think you can only do an UEFI install if you've booted with UEFI, but my knowledge on that could be wrong or outdated.
       
 (DIR) Post #AH5RPagLXm0E5wJ648 by xarvos@nixnet.social
       2022-03-05T01:09:10.733637Z
       
       0 likes, 0 repeats
       
       @tokudan yep, apparently qemu doesn’t use uefi by default, i had to install a plugin for it to work
       
 (DIR) Post #AHAUUdO6BO8JaSfTii by xarvos@nixnet.social
       2022-03-07T11:37:16.269568Z
       
       0 likes, 0 repeats
       
       @solene the device does exist; the problem was that i assumed it’s booted in uefi mode and the message is a bit misleading here. i searched for the warning instead and found the solution
       
 (DIR) Post #AHGOUt0dygy73ePcki by xarvos@nixnet.social
       2022-03-10T07:58:21.479504Z
       
       0 likes, 0 repeats
       
       @solene I removed the qemu image and followed these instructions to boot qemu with uefi: