QEMU: Difference between revisions
imported>Abowen No edit summary |
m link to qemu added |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[https://www.qemu.org/ QEMU] is a generic and open source machine emulator and virtualizer. | |||
== Install == | == Install == | ||
Line 27: | Line 27: | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||
environment = { | environment = { | ||
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" '' | systemPackages = [ | ||
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" '' | |||
qemu-system-x86_64 \ | |||
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \ | |||
"$@" | |||
'') | |||
]; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
qcow-efi images generated from [https://github.com/nix-community/nixos-generators nixos-generators] require more RAM than the default 128MB. Failing to provide enough RAM results in grub reporting "error: start_image() returned 0x800000000000009." or systemd-boot reporting "Failed to execute NixOS: Out of resources". | |||
[[Category:Virtualization]] |